br-dionysus 0.8.9 → 0.9.1

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 CHANGED
@@ -273,7 +273,6 @@ const test = ref<number>(0)
273
273
  size="small"
274
274
  @selected="selected"
275
275
  multiple
276
- @selectMultiple="selectMultiple"
277
276
  filterable
278
277
  tableHeight="200"
279
278
  reserveSelection
@@ -363,17 +362,13 @@ const arr = [{
363
362
  }]
364
363
  const options = ref()
365
364
 
366
- const selected = (value: string, row: any) => {
365
+ const selected = (value: string | number | Array<number | string>, row: any) => {
367
366
  code.value = value
368
367
 
369
368
  // console.log('selected',value)
370
369
  // console.log('selected', row)
371
370
  }
372
- const selectMultiple = (value: string[], rows: any) => {
373
- code.value = value
374
- // console.log('selectMultiple',value)
375
- // console.log('selectMultiple', rows)
376
- }
371
+
377
372
  const one = () => {
378
373
  setTimeout(() => {
379
374
  options.value = arr.map((item, index) => {
@@ -632,21 +627,22 @@ const remoteMethod = async (query: string = '', page: Page) => {
632
627
 
633
628
  ### 2) Attributes
634
629
 
635
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
636
- |-------------------|:------------------------:|:--------:|:--------------------:|:-----:|
637
- | value / v-model | 绑定值 | string | number | - | '' |
638
- | placeholder | 输入框默认 placeholder | string | - | '' |
639
- | disabled | 是否禁用 | boolean | - | false |
640
- | options | 选项内容,详情见Options接口 | Option[] | - | [] |
641
- | tableTitle | 表格标题配置 | any[] | - | [] |
642
- | remoteMethod | 自定义远程搜索方法 | Function | - | - |
643
- | allowCreate | 是否允许用户创建新条目 | boolean | - | false |
644
- | focusShow | 是否聚焦显示(既,当搜索值为空时是否显示选择器) | - | false | - |
645
- | isSelect | 是否多选 | boolean | - | false |
646
- | clearable | 是否可以清空选项 | boolean | - | false |
647
- | size | 数值输入框尺寸 | string | 'large', 'small', '' | '' |
648
- | scrollbarAlwaysOn | 总是显示滚动条 | boolean | - | - | false |
649
- | total | 总数据量,当有值时,出现分页器 | number | null | - | null |
630
+ | 参数 | 说明 | 类型 | 可选值 | 默认值 |
631
+ |-------------------|:------------------------:|:--------:|:--------------------:|:-------:|
632
+ | value / v-model | 绑定值 | string | number | - | '' |
633
+ | placeholder | 输入框默认 placeholder | string | - | '' |
634
+ | disabled | 是否禁用 | boolean | - | false |
635
+ | options | 选项内容,详情见Options接口 | Option[] | - | [] |
636
+ | tableTitle | 表格标题配置 | any[] | - | [] |
637
+ | remoteMethod | 自定义远程搜索方法 | Function | - | - |
638
+ | allowCreate | 是否允许用户创建新条目 | boolean | - | false |
639
+ | focusShow | 是否聚焦显示(既,当搜索值为空时是否显示选择器) | - | false | - |
640
+ | isSelect | 是否多选 | boolean | - | false |
641
+ | clearable | 是否可以清空选项 | boolean | - | false |
642
+ | size | 数值输入框尺寸 | string | 'large', 'small', '' | '' |
643
+ | scrollbarAlwaysOn | 总是显示滚动条 | boolean | - | - |
644
+ | total | 总数据量,当有值时,出现分页器 | number | null | - |
645
+ | labelKey | label映射key | string | - | 'label' |
650
646
 
651
647
  #### Options(选项接口)
652
648