element-assits 0.0.73 → 0.0.75

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.
Files changed (3) hide show
  1. package/README.md +10 -1
  2. package/lib/index.js +1160 -1131
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -286,7 +286,11 @@ el-scrollbar 衍生,优化样式
286
286
  | 属性名 | 说明 | 类型 | 默认值 |
287
287
  |:---|:---|:---|:---|
288
288
  |data|(树)数据|Array|[]|
289
- |props|配置项|Object|`{ label: 'label', value: 'value', children: 'children' }`|
289
+ |props|配置项|Object|见下文|
290
+ |    props.label|显示名称|String|label|
291
+ |    props.value|实际值|String|value|
292
+ |    props.children|子集|String|children|
293
+ |&nbsp;&nbsp;&nbsp;&nbsp;props.hasChildren|手动指定是否含有子集<br>配合 loadMethod 使用|String|undefined|
290
294
  |height|组件高度|Number \| String| auto |
291
295
  |maxHeight|当自动高度时,限制最大高度|Number| 500 |
292
296
  |itemSize|单项高度|Number|32|
@@ -294,6 +298,7 @@ el-scrollbar 衍生,优化样式
294
298
  |checkbox|是否显示多选框|Boolean|false|
295
299
  |disableCheckbox|是否禁止多选框|Boolean|false|
296
300
  |noDataText|无数据时的文本|String|暂无数据|
301
+ |loadMethod|展开节点时异步加载的方法|Function<br> () => Promise\<any[]\>|undefined|
297
302
  |border|是否显示边框|Boolean|false|
298
303
  |stripe|是否需要斑马纹|Boolean|false|
299
304
  #### methods
@@ -301,6 +306,10 @@ el-scrollbar 衍生,优化样式
301
306
  |:---|:---|:---|
302
307
  | getChecked | 获取选中项 | 无 |
303
308
  | setChecked | 设置选中项 | (树)数据(以`props.value`匹配) |
309
+ #### events
310
+ | 事件名 | 说明 | 参数 |
311
+ |:---|:---|:---|
312
+ |expand| 操作展开收起时 | 操作的节点 |
304
313
  #### slots
305
314
  | 插槽名 | 默认值 | 说明 |
306
315
  |:---|:---|:---|