v-custom-plugins
v0.2.2
Published
基于vue+element-ui的自定义组件
Downloads
1
Readme
v-custom-plugins
How to use?
#安装
npm install v-custom-plugins
#引入
import VcPlugins from 'v-custom-plugins'
#全局安装
VcPlugins.install(Vue)
components
VcUploadFile
支持上传shp、geojson等空间数据
Attributes
| Param | Type | Description | Default | | --- | --- | --- | -- | | accept | string | 支持文件类型 | .shp,.prj,.json,.txt | | onSuccess | function(result) | 成功回调 | | onError | function(result) | 失败回调 |
event
| Name | Description | Param | | :------------- | :----------: | ------------: | | on-success | 成功触发 | result | | on-error | 失败触发 | result |
VcSplitPanel
左右分割面板
| Param | Type | Description | Default | | --- | --- | --- | -- | | leftWidth | number | 左侧面板宽 | 300 | | minWidth | number | 面板最小宽度 | 200 |