element-assits 0.0.40 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -11
- package/lib/index.js +2391 -2247
- package/lib/style.css +1 -1
- package/lib/style.scss +179 -108
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Vue.use(ElementAssits)
|
|
|
24
24
|
```
|
|
25
25
|
使用:
|
|
26
26
|
默认全局注册了 `EaForm` `EaTable` `EaSelect` `EaModal` `EaPopover` 等组件
|
|
27
|
-
提供了 `uuid` `recursive
|
|
27
|
+
提供了 `uuid` `recursive` `recursiveFilter` `asyncLoad` `renderCell` 五个工具函数
|
|
28
28
|
Vue 原型上挂载了 `$asyncLoad` 方法(与asyncLoad相同)
|
|
29
29
|
> 如果单独引入 asyncLoad 方法,并且没有挂载在Vue原型上
|
|
30
30
|
> 那么,asyncLoad 方法载入的组件将游离在vueApp实例树之外
|
|
@@ -49,17 +49,18 @@ Vue 原型上挂载了 `$asyncLoad` 方法(与asyncLoad相同)
|
|
|
49
49
|
| loading | 表格加载状态 | Boolean | undefined |
|
|
50
50
|
| initRequest | 是否初始化发送请求 | Boolean | true |
|
|
51
51
|
| innerForm | 内部 - 表单(搜索栏) | Boolean \| Object | undefined |
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
52
|
+
| .model | 搜索表单的值 | Object | undefined |
|
|
53
|
+
| .limit|限制默认显示的搜索条件数量|Number \| auto \| all|auto|
|
|
54
|
+
| .referenceItemWidth|单项参考宽度|Number|180|
|
|
55
|
+
| .maxItemWidth|单项最大宽度|Number|240|
|
|
56
|
+
| .loading|控制更多按钮加载状态|Boolean|false|
|
|
57
|
+
| .column[].exclusiveDoubleCells|允许某一项独占两格|Boolean|false|
|
|
58
58
|
| innerSelection | 内部 - 选中列 | Boolean \| Object | undefined|
|
|
59
|
-
|
|
|
59
|
+
| .data | 选中的行 | Array | undefined |
|
|
60
|
+
| innerIndex | 内部 - 索引 | Boolean \| Object | true|
|
|
60
61
|
| innerPagination | 内部 - 分页 | Boolean \| Object | undefined|
|
|
61
62
|
| innerOperation | 内部 - 操作栏(尾列)| Boolean \| Object | undefined|
|
|
62
|
-
|
|
|
63
|
+
| .maxNumOfBtn|最大显示的按钮数,溢出折叠|Number|3|
|
|
63
64
|
#### methods
|
|
64
65
|
| 方法名 | 说明 | 参数 |
|
|
65
66
|
|:---|:---|:---|
|
|
@@ -68,12 +69,16 @@ Vue 原型上挂载了 `$asyncLoad` 方法(与asyncLoad相同)
|
|
|
68
69
|
#### slots
|
|
69
70
|
| 插槽名 | 默认值 | 说明 |
|
|
70
71
|
|:---|:---|:---|
|
|
72
|
+
| search | 搜索栏 | 如果想自定义搜索栏时
|
|
71
73
|
| table | 表格 | 如果不想用表格来渲染数据,此处可自定义渲染数据的方式
|
|
72
74
|
| top-menu | 无 | 顶部菜单
|
|
73
75
|
| row-menu | 无 | 行菜单,需要 initOperation 至少为true
|
|
74
76
|
| bottom-menu | 无 | 底部菜单
|
|
75
|
-
| before-column | 无 |
|
|
76
|
-
| after-column | 无 |
|
|
77
|
+
| before-column | 无 | 表格内部所有列之前
|
|
78
|
+
| after-index-column | 无 | 表格内部索引列之后
|
|
79
|
+
| after-selection-column | 无 | 表格多选列之后
|
|
80
|
+
| before-action-column | 无 | 表格内部操作列之前
|
|
81
|
+
| after-column | 无 | 表格内部所有列之后
|
|
77
82
|
| footer | bottom-menu&分页 | 表格底部
|
|
78
83
|
#### events
|
|
79
84
|
| 事件名 | 说明 | 参数 |
|
|
@@ -113,6 +118,10 @@ Vue 原型上挂载了 `$asyncLoad` 方法(与asyncLoad相同)
|
|
|
113
118
|
| 方法 | 说明 | 参数 |
|
|
114
119
|
|:---|:---|:---|
|
|
115
120
|
|setData|设置表单数据对象的值|要设置的数据对象|
|
|
121
|
+
#### events
|
|
122
|
+
| 事件名 | 说明 | 参数 |
|
|
123
|
+
|:---|:---|:---|
|
|
124
|
+
|change| 表单值变化事件 | 当前表单的值 |
|
|
116
125
|
|
|
117
126
|
### 按钮 EaButton
|
|
118
127
|
继承el-button, 简化按钮配置
|
|
@@ -249,6 +258,24 @@ el-scrollbar 衍生,优化样式
|
|
|
249
258
|
|filterNodeMethod|过滤方法|Function|undefined|
|
|
250
259
|
|emptyText|空数据时文字描述|String|暂无数据|
|
|
251
260
|
|
|
261
|
+
### 虚拟树 EaDataTree
|
|
262
|
+
#### props
|
|
263
|
+
| 属性名 | 说明 | 类型 | 默认值 |
|
|
264
|
+
|:---|:---|:---|:---|
|
|
265
|
+
|data|(树)数据|Array|[]|
|
|
266
|
+
|props|配置项|Object|`{ label: 'label', value: 'value', children: 'children' }`|
|
|
267
|
+
|height|组件高度|Number \| String| auto |
|
|
268
|
+
|maxHeight|当自动高度时,限制最大高度|Number| 500 |
|
|
269
|
+
|itemSize|单项高度|Number|32|
|
|
270
|
+
|checkbox|是否显示多选框|Boolean|false|
|
|
271
|
+
|disableCheckbox|是否禁止多选框|Boolean|false|
|
|
272
|
+
|noDataText|无数据时的文本|String|暂无数据|
|
|
273
|
+
#### methods
|
|
274
|
+
| 方法名 | 说明 | 参数 |
|
|
275
|
+
|:---|:---|:---|
|
|
276
|
+
| getChecked | 获取选中项 | 无 |
|
|
277
|
+
| setChecked | 设置选中项 | (树)数据(以`props.value`匹配) |
|
|
278
|
+
|
|
252
279
|
### 列表 EaList
|
|
253
280
|
#### props
|
|
254
281
|
| 属性名 | 说明 | 类型 | 默认值 |
|