br-dionysus 1.8.7 → 1.9.0

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 (43) hide show
  1. package/README.md +118 -206
  2. package/attributes.json +1 -1
  3. package/dist/br-dionysus.es.js +4340 -4158
  4. package/dist/br-dionysus.umd.js +8 -8
  5. package/dist/index.css +1 -1
  6. package/dist/packages/Hook/useFormInline/useFormInline.d.ts +1 -1
  7. package/dist/packages/Hook/usePackageConfig/usePackageConfig.d.ts +1 -1
  8. package/dist/packages/MInline/src/MInline.vue.d.ts +15 -1
  9. package/dist/packages/MTable/src/token.d.ts +1 -1
  10. package/dist/packages/MTableColumnSet/src/MTableColumnSet.vue.d.ts +1 -1
  11. package/dist/packages/MTableSuper/src/token.d.ts +1 -1
  12. package/dist/packages/SkinConfig/src/useSkin.d.ts +1 -1
  13. package/dist/packages/index.d.ts +2 -0
  14. package/package.json +1 -1
  15. package/packages/Hook/useFormInline/useFormInline.ts +16 -6
  16. package/packages/Hook/usePackageConfig/demo.vue +1 -1
  17. package/packages/Hook/usePackageConfig/usePackageConfig.ts +3 -7
  18. package/packages/Hook/useRemainingSpace/demo.vue +1 -1
  19. package/packages/Hook/useTableConfig/demo.vue +1 -1
  20. package/packages/Hook/useTableV2Config/demo.vue +1 -1
  21. package/packages/MDialog/docs/demo.vue +2 -2
  22. package/packages/MInline/docs/README.md +7 -6
  23. package/packages/MInline/docs/demo.vue +43 -88
  24. package/packages/MInline/src/MInline.vue +283 -10
  25. package/packages/MSelect/src/MOption.vue +1 -1
  26. package/packages/MSelect/src/MSelect.vue +1 -1
  27. package/packages/MSelectTable/docs/demo.vue +1 -1
  28. package/packages/MTable/docs/demo.vue +2 -2
  29. package/packages/MTable/src/token.ts +1 -1
  30. package/packages/MTableColumnSet/src/MTableColumnSet.vue +1 -1
  31. package/packages/MTableSuper/docs/demo.vue +2 -2
  32. package/packages/MTableSuper/src/MTableSuper.vue +2 -2
  33. package/packages/MTableSuper/src/token.ts +1 -1
  34. package/packages/MTableV2/docs/demo.vue +1 -1
  35. package/packages/MTableV2/src/MTableV2.vue +1 -1
  36. package/packages/SkinConfig/docs/demo.vue +1 -1
  37. package/packages/SkinConfig/src/SkinConfig.vue +3 -3
  38. package/packages/SkinConfig/src/useSkin.ts +3 -3
  39. package/packages/Tool/slotsToData/slotsToData.ts +2 -0
  40. package/packages/index.ts +23 -21
  41. package/src/App.vue +4 -2
  42. package/tags.json +1 -1
  43. package/web-types.json +1 -1
package/README.md CHANGED
@@ -148,8 +148,8 @@
148
148
 
149
149
  <script setup lang="ts">
150
150
  import { ref } from 'vue'
151
- import { MDialog } from 'packages/MDialog'
152
- import { useRemainingSpace } from 'packages/index'
151
+ import { MDialog } from './../../MDialog'
152
+ import { useRemainingSpace } from './../../index'
153
153
 
154
154
  const dialogVisible = ref<boolean>(false)
155
155
  const open = () => {
@@ -242,7 +242,11 @@ const open3 = () => {
242
242
 
243
243
  <template>
244
244
  <div class="g-demo-m-inline-box">
245
- <m-inline size="small">
245
+ <m-inline
246
+ size="small"
247
+ :model="formInline"
248
+ :configKey="configKey"
249
+ >
246
250
  <template #inlineBtn>
247
251
  <el-button
248
252
  type="primary"
@@ -277,7 +281,7 @@ const open3 = () => {
277
281
  >
278
282
  <el-form-item
279
283
  label="编码"
280
- prop="code"
284
+ prop="code3"
281
285
  data-item
282
286
  >
283
287
  <el-input
@@ -287,18 +291,18 @@ const open3 = () => {
287
291
  >
288
292
  </el-input>
289
293
  </el-form-item>
290
- <el-form-item
291
- label="角色名"
292
- prop="name"
293
- data-item
294
- >
295
- <el-input
296
- v-model="formInline.name"
297
- clearable
298
- placeholder="请输入角色名"
299
- >
300
- </el-input>
301
- </el-form-item>
294
+ <!--<el-form-item-->
295
+ <!-- label="角色名"-->
296
+ <!-- prop="name"-->
297
+ <!-- data-item-->
298
+ <!--&gt;-->
299
+ <!-- <el-input-->
300
+ <!-- v-model="formInline.name"-->
301
+ <!-- clearable-->
302
+ <!-- placeholder="请输入角色名"-->
303
+ <!-- >-->
304
+ <!-- </el-input>-->
305
+ <!--</el-form-item>-->
302
306
  <el-form-item
303
307
  label="时间"
304
308
  prop="time"
@@ -357,93 +361,44 @@ const open3 = () => {
357
361
  >
358
362
  搜索
359
363
  </el-button>
364
+ <el-button
365
+ icon="refresh"
366
+ size="small"
367
+ @click="formInline.reset"
368
+ >
369
+ 重置
370
+ </el-button>
360
371
  </template>
361
372
  </m-inline>
362
-
363
- <div
364
- class="j-test"
365
- data="xxx"
366
- >
367
- <p
368
- class="j-p"
369
- draggable="true"
370
- >
371
- 111
372
- </p>
373
- <p
374
- class="j-p"
375
- draggable="true"
376
- >
377
- 222
378
- </p>
379
- <p
380
- class="j-p"
381
- draggable="true"
382
- >
383
- 333
384
- </p>
385
- <p
386
- class="j-p"
387
- draggable="true"
388
- >
389
- 444
390
- </p>
391
- <p
392
- class="j-p"
393
- draggable="true"
394
- >
395
- 555
396
- </p>
397
- </div>
373
+ <p>{{ formInline }}</p>
398
374
  </div>
399
375
  </template>
400
376
 
401
377
  <script setup lang="ts">
402
- import { reactive } from 'vue'
378
+ import useFormInline from './../../Hook/useFormInline/useFormInline'
403
379
 
404
380
  // 列表过滤条件表单
405
- const formInline = reactive({
406
- name: '',
407
- code: '',
408
- time: '',
409
- type: '',
410
- region: '',
411
- level: ''
412
- })
413
-
414
- const dragstart = (keyName: string = '') => {
415
- console.log('keyName', keyName)
416
- }
417
- const drop = (index: number) => {
418
- console.log('index', index)
419
- }
420
- const dragover = (event: Event) => {
421
- event.preventDefault()
422
- }
423
- const test = (keyName: string = '') => {
424
- console.log('keyName', keyName)
425
- }
426
- setTimeout(() => {
427
- const boxDom = document.querySelector('.j-test') as HTMLDivElement
428
- boxDom.ondragover = dragover
429
- const domNodeList: NodeList = document.querySelectorAll('.j-p')
430
- const domList: HTMLElement[] = []
431
- domNodeList.forEach(dom => domList.push(dom as HTMLElement))
432
- for (let i = 0; i < domList.length; i++) {
433
- const dom = domList[i]
434
- if (!dom) continue
435
-
436
- dom.draggable = true
437
- dom.ondrop = () => drop(i)
438
- dom.ondragstart = () => dragstart('item.props?.prop as string')
439
- dom.onclick = () => test('item.props?.prop as string')
440
- }
381
+ const configKey = 'FormInline'
382
+ const formInline = useFormInline<{
383
+ name: string;
384
+ code: string;
385
+ time: string;
386
+ type: string;
387
+ region: string;
388
+ level: string;
389
+ }>(configKey, {
390
+ name: '111',
391
+ code: '222',
392
+ time: '333',
393
+ type: '444',
394
+ region: '555',
395
+ level: '666'
441
396
  })
442
397
  </script>
443
398
 
444
399
  <style scoped>
445
400
  .g-demo-m-inline-box {
446
- max-width: 1000px;
401
+ max-width: 1100px;
447
402
  }
448
403
  </style>
449
404
 
@@ -452,12 +407,13 @@ setTimeout(() => {
452
407
 
453
408
  ### 2) Attributes
454
409
 
455
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
456
- |-----------|:-----:|:------:|:-------------------------:|:-------:|
457
- | minWidth | 列最小宽度 | number | - | 200 |
458
- | maxWidth | 列最大宽度 | number | - | 300 |
459
- | size | 组件尺寸 | enum | large \| default \| small | default |
460
- | configKey | 配置key | string | - | - |
410
+ | 参数 | 说明 | 类型 | 可选值 | 默认值 |
411
+ |-----------|:-----:|:---------------------------:|:-------------------------:|:-------:|
412
+ | minWidth | 列最小宽度 | number | - | 200 |
413
+ | maxWidth | 列最大宽度 | number | - | 300 |
414
+ | size | 组件尺寸 | enum | large \| default \| small | default |
415
+ | configKey | 配置key | string | - | - |
416
+ | model | 筛选对象 | Record<string, any> \| null | - | null |
461
417
 
462
418
  ### 2) Events
463
419
 
@@ -719,7 +675,7 @@ const options: Option[] = [{
719
675
 
720
676
  <script setup lang="ts">
721
677
  import { ref, onMounted } from 'vue'
722
- import { Page } from 'packages/typings/class'
678
+ import { Page } from './../../typings/class'
723
679
 
724
680
  const commodityOptionsTitle: TableTitle[] = [{
725
681
  prop: 'PRDocType',
@@ -1217,8 +1173,8 @@ const options: Option[] = [{
1217
1173
 
1218
1174
  <script setup lang="ts">
1219
1175
  import { ref } from 'vue'
1220
- import { useTableConfig } from 'packages/index'
1221
- import { MTableColumn } from 'packages/MTableColumn'
1176
+ import { useTableConfig } from './../../index'
1177
+ import { MTableColumn } from './../../MTableColumn'
1222
1178
 
1223
1179
  const privateExpandChange = (row: any, expandedRows: any[]) => {
1224
1180
  console.log('row', row)
@@ -1753,8 +1709,8 @@ const tableConfig = ref({
1753
1709
 
1754
1710
  <script setup lang="ts">
1755
1711
  import { ref } from 'vue'
1756
- import { useTableConfig } from 'packages/index'
1757
- import { MTableColumn } from 'packages/MTableColumn'
1712
+ import { useTableConfig } from './../../index'
1713
+ import { MTableColumn } from './../../MTableColumn'
1758
1714
 
1759
1715
  const privateExpandChange = (row: any, expandedRows: any[]) => {
1760
1716
  console.log('row', row)
@@ -1927,7 +1883,7 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
1927
1883
 
1928
1884
  <script setup lang="ts">
1929
1885
  import { ref } from 'vue'
1930
- import useTableV2Config from 'packages/Hook/useTableV2Config/useTableV2Config'
1886
+ import useTableV2Config from './../../Hook/useTableV2Config/useTableV2Config'
1931
1887
 
1932
1888
  const tableData = ref<any[]>([])
1933
1889
  const { tableTitle, tableConfig, filtersValue } = useTableV2Config('MTableV2Demo', [{
@@ -2093,7 +2049,7 @@ for (let i = 0; i < 1000; i++) {
2093
2049
 
2094
2050
  <script setup lang="ts">
2095
2051
  import { ref, onMounted } from 'vue'
2096
- import { SkinConfig } from 'packages/SkinConfig'
2052
+ import { SkinConfig } from './../../SkinConfig'
2097
2053
 
2098
2054
  const size = ref<string>('')
2099
2055
  const shinConfigRef = ref<InstanceType<typeof SkinConfig> | null>(null)
@@ -3122,8 +3078,8 @@ const list = ref<{ name: string, className: string }[]>([
3122
3078
 
3123
3079
  <script setup lang="ts">
3124
3080
  import { ref } from 'vue'
3125
- import { MDialog } from 'packages/MDialog'
3126
- import { useRemainingSpace } from 'packages/index'
3081
+ import { MDialog } from './../../MDialog'
3082
+ import { useRemainingSpace } from './../../index'
3127
3083
 
3128
3084
  const dialogVisible = ref<boolean>(false)
3129
3085
  const open = () => {
@@ -3216,7 +3172,11 @@ const open3 = () => {
3216
3172
 
3217
3173
  <template>
3218
3174
  <div class="g-demo-m-inline-box">
3219
- <m-inline size="small">
3175
+ <m-inline
3176
+ size="small"
3177
+ :model="formInline"
3178
+ :configKey="configKey"
3179
+ >
3220
3180
  <template #inlineBtn>
3221
3181
  <el-button
3222
3182
  type="primary"
@@ -3251,7 +3211,7 @@ const open3 = () => {
3251
3211
  >
3252
3212
  <el-form-item
3253
3213
  label="编码"
3254
- prop="code"
3214
+ prop="code3"
3255
3215
  data-item
3256
3216
  >
3257
3217
  <el-input
@@ -3261,18 +3221,18 @@ const open3 = () => {
3261
3221
  >
3262
3222
  </el-input>
3263
3223
  </el-form-item>
3264
- <el-form-item
3265
- label="角色名"
3266
- prop="name"
3267
- data-item
3268
- >
3269
- <el-input
3270
- v-model="formInline.name"
3271
- clearable
3272
- placeholder="请输入角色名"
3273
- >
3274
- </el-input>
3275
- </el-form-item>
3224
+ <!--<el-form-item-->
3225
+ <!-- label="角色名"-->
3226
+ <!-- prop="name"-->
3227
+ <!-- data-item-->
3228
+ <!--&gt;-->
3229
+ <!-- <el-input-->
3230
+ <!-- v-model="formInline.name"-->
3231
+ <!-- clearable-->
3232
+ <!-- placeholder="请输入角色名"-->
3233
+ <!-- >-->
3234
+ <!-- </el-input>-->
3235
+ <!--</el-form-item>-->
3276
3236
  <el-form-item
3277
3237
  label="时间"
3278
3238
  prop="time"
@@ -3331,93 +3291,44 @@ const open3 = () => {
3331
3291
  >
3332
3292
  搜索
3333
3293
  </el-button>
3294
+ <el-button
3295
+ icon="refresh"
3296
+ size="small"
3297
+ @click="formInline.reset"
3298
+ >
3299
+ 重置
3300
+ </el-button>
3334
3301
  </template>
3335
3302
  </m-inline>
3336
-
3337
- <div
3338
- class="j-test"
3339
- data="xxx"
3340
- >
3341
- <p
3342
- class="j-p"
3343
- draggable="true"
3344
- >
3345
- 111
3346
- </p>
3347
- <p
3348
- class="j-p"
3349
- draggable="true"
3350
- >
3351
- 222
3352
- </p>
3353
- <p
3354
- class="j-p"
3355
- draggable="true"
3356
- >
3357
- 333
3358
- </p>
3359
- <p
3360
- class="j-p"
3361
- draggable="true"
3362
- >
3363
- 444
3364
- </p>
3365
- <p
3366
- class="j-p"
3367
- draggable="true"
3368
- >
3369
- 555
3370
- </p>
3371
- </div>
3303
+ <p>{{ formInline }}</p>
3372
3304
  </div>
3373
3305
  </template>
3374
3306
 
3375
3307
  <script setup lang="ts">
3376
- import { reactive } from 'vue'
3308
+ import useFormInline from './../../Hook/useFormInline/useFormInline'
3377
3309
 
3378
3310
  // 列表过滤条件表单
3379
- const formInline = reactive({
3380
- name: '',
3381
- code: '',
3382
- time: '',
3383
- type: '',
3384
- region: '',
3385
- level: ''
3386
- })
3387
-
3388
- const dragstart = (keyName: string = '') => {
3389
- console.log('keyName', keyName)
3390
- }
3391
- const drop = (index: number) => {
3392
- console.log('index', index)
3393
- }
3394
- const dragover = (event: Event) => {
3395
- event.preventDefault()
3396
- }
3397
- const test = (keyName: string = '') => {
3398
- console.log('keyName', keyName)
3399
- }
3400
- setTimeout(() => {
3401
- const boxDom = document.querySelector('.j-test') as HTMLDivElement
3402
- boxDom.ondragover = dragover
3403
- const domNodeList: NodeList = document.querySelectorAll('.j-p')
3404
- const domList: HTMLElement[] = []
3405
- domNodeList.forEach(dom => domList.push(dom as HTMLElement))
3406
- for (let i = 0; i < domList.length; i++) {
3407
- const dom = domList[i]
3408
- if (!dom) continue
3409
-
3410
- dom.draggable = true
3411
- dom.ondrop = () => drop(i)
3412
- dom.ondragstart = () => dragstart('item.props?.prop as string')
3413
- dom.onclick = () => test('item.props?.prop as string')
3414
- }
3311
+ const configKey = 'FormInline'
3312
+ const formInline = useFormInline<{
3313
+ name: string;
3314
+ code: string;
3315
+ time: string;
3316
+ type: string;
3317
+ region: string;
3318
+ level: string;
3319
+ }>(configKey, {
3320
+ name: '111',
3321
+ code: '222',
3322
+ time: '333',
3323
+ type: '444',
3324
+ region: '555',
3325
+ level: '666'
3415
3326
  })
3416
3327
  </script>
3417
3328
 
3418
3329
  <style scoped>
3419
3330
  .g-demo-m-inline-box {
3420
- max-width: 1000px;
3331
+ max-width: 1100px;
3421
3332
  }
3422
3333
  </style>
3423
3334
 
@@ -3426,12 +3337,13 @@ setTimeout(() => {
3426
3337
 
3427
3338
  ### 2) Attributes
3428
3339
 
3429
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
3430
- |-----------|:-----:|:------:|:-------------------------:|:-------:|
3431
- | minWidth | 列最小宽度 | number | - | 200 |
3432
- | maxWidth | 列最大宽度 | number | - | 300 |
3433
- | size | 组件尺寸 | enum | large \| default \| small | default |
3434
- | configKey | 配置key | string | - | - |
3340
+ | 参数 | 说明 | 类型 | 可选值 | 默认值 |
3341
+ |-----------|:-----:|:---------------------------:|:-------------------------:|:-------:|
3342
+ | minWidth | 列最小宽度 | number | - | 200 |
3343
+ | maxWidth | 列最大宽度 | number | - | 300 |
3344
+ | size | 组件尺寸 | enum | large \| default \| small | default |
3345
+ | configKey | 配置key | string | - | - |
3346
+ | model | 筛选对象 | Record<string, any> \| null | - | null |
3435
3347
 
3436
3348
  ### 2) Events
3437
3349
 
@@ -3693,7 +3605,7 @@ const options: Option[] = [{
3693
3605
 
3694
3606
  <script setup lang="ts">
3695
3607
  import { ref, onMounted } from 'vue'
3696
- import { Page } from 'packages/typings/class'
3608
+ import { Page } from './../../typings/class'
3697
3609
 
3698
3610
  const commodityOptionsTitle: TableTitle[] = [{
3699
3611
  prop: 'PRDocType',
@@ -4191,8 +4103,8 @@ const options: Option[] = [{
4191
4103
 
4192
4104
  <script setup lang="ts">
4193
4105
  import { ref } from 'vue'
4194
- import { useTableConfig } from 'packages/index'
4195
- import { MTableColumn } from 'packages/MTableColumn'
4106
+ import { useTableConfig } from './../../index'
4107
+ import { MTableColumn } from './../../MTableColumn'
4196
4108
 
4197
4109
  const privateExpandChange = (row: any, expandedRows: any[]) => {
4198
4110
  console.log('row', row)
@@ -4727,8 +4639,8 @@ const tableConfig = ref({
4727
4639
 
4728
4640
  <script setup lang="ts">
4729
4641
  import { ref } from 'vue'
4730
- import { useTableConfig } from 'packages/index'
4731
- import { MTableColumn } from 'packages/MTableColumn'
4642
+ import { useTableConfig } from './../../index'
4643
+ import { MTableColumn } from './../../MTableColumn'
4732
4644
 
4733
4645
  const privateExpandChange = (row: any, expandedRows: any[]) => {
4734
4646
  console.log('row', row)
@@ -4901,7 +4813,7 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
4901
4813
 
4902
4814
  <script setup lang="ts">
4903
4815
  import { ref } from 'vue'
4904
- import useTableV2Config from 'packages/Hook/useTableV2Config/useTableV2Config'
4816
+ import useTableV2Config from './../../Hook/useTableV2Config/useTableV2Config'
4905
4817
 
4906
4818
  const tableData = ref<any[]>([])
4907
4819
  const { tableTitle, tableConfig, filtersValue } = useTableV2Config('MTableV2Demo', [{
@@ -5067,7 +4979,7 @@ for (let i = 0; i < 1000; i++) {
5067
4979
 
5068
4980
  <script setup lang="ts">
5069
4981
  import { ref, onMounted } from 'vue'
5070
- import { SkinConfig } from 'packages/SkinConfig'
4982
+ import { SkinConfig } from './../../SkinConfig'
5071
4983
 
5072
4984
  const size = ref<string>('')
5073
4985
  const shinConfigRef = ref<InstanceType<typeof SkinConfig> | null>(null)
package/attributes.json CHANGED
@@ -1 +1 @@
1
- {"m-dialog/modelValue":{"type":"boolean","description":""},"m-dialog/width":{"type":"string | number","description":"对话框的宽度,默认值为 50%"},"m-dialog/insideHeight":{"type":"number | null","description":"对话框内部空间的高度,默认为null"},"m-dialog/minInsideHeight":{"type":"number","description":"对话框内部空间的最小高度,默认为0(当同时存在maxHeight和minInsideHeight时,以maxHeight为准)"},"m-dialog/maxInsideHeight":{"type":"number","description":"对话框内部空间的最大高度,默认为Infinity"},"m-dialog/resize":{"type":"boolean","description":"是否开启拖拽改变大小"},"m-dialog/draggable":{"type":"boolean","description":"是否可拖动"},"m-dialog/insideClassName":{"type":"string","description":"对话框内部空间的className"},"m-dialog/resized":{"type":"[contentsSize: { width: number, height: number }]","description":"窗口大小改变完成事件"},"m-dialog/update:insideHeight":{"type":"[number]","description":"更新内部容器高度"},"m-dialog/update:modelValue":{"type":"[boolean]","description":""},"m-inline/minWidth":{"type":"number","description":"列最小宽度"},"m-inline/maxWidth":{"type":"number","description":"列最大宽度"},"m-inline/size":{"type":"Size","description":"组件尺寸"},"m-inline/switch":{"type":"[status: boolean]","description":"切换折叠展开事件"},"m-input-number/modelValue":{"type":"string | number","description":""},"m-input-number/placeholder":{"type":"string","description":""},"m-input-number/disabled":{"type":"boolean","description":"是否禁用数值输入框"},"m-input-number/size":{"type":"string","description":"数值输入框尺寸"},"m-input-number/min":{"type":"number","description":"设置数值输入框允许的最小值"},"m-input-number/max":{"type":"number","description":"设置数值输入框允许的最大值"},"m-input-number/step":{"type":"number","description":"数值输入框步长"},"m-input-number/stepStrictly":{"type":"boolean","description":"是否只能输入 step 的倍数"},"m-input-number/thousandthPlace":{"type":"boolean","description":"输入框是否显示千分位"},"m-input-number/noBorder":{"type":"boolean","description":"是否不要边框"},"m-input-number/noSpacing":{"type":"boolean","description":"不要边距"},"m-input-number/update:modelValue":{"type":"any","description":""},"m-input-number/change":{"type":"any","description":""},"m-input-number/focus":{"type":"any","description":""},"m-input-number/blur":{"type":"any","description":""},"m-select/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select/multiple":{"type":"boolean","description":"多选"},"m-select-table/modelValue":{"type":"string | number | Array<number | string>","description":""},"m-select-table/name":{"type":"string | number | Array<number | string>","description":"显示值"},"m-select-table/placeholder":{"type":"string","description":""},"m-select-table/disabled":{"type":"boolean","description":""},"m-select-table/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table/total":{"type":"number | null","description":"总数据量,当有值时,出现分页器"},"m-select-table/filterMethod":{"type":"Function | null","description":"自定义搜索"},"m-select-table/filterable":{"type":"boolean","description":"是否使用搜索"},"m-select-table/remote":{"type":"boolean","description":"是否使用 远程搜索"},"m-select-table/remoteMethod":{"type":"Function","description":"自定义远程搜索"},"m-select-table/options":{"type":"Option[]","description":""},"m-select-table/tableTitle":{"type":"TableTitle[]","description":""},"m-select-table/multiple":{"type":"boolean","description":"是否多选"},"m-select-table/keywords":{"type":"Option","description":"定义默认的 label 和value"},"m-select-table/reserveSelection":{"type":"boolean","description":"是否开启翻页多选"},"m-select-table/tableHeight":{"type":"string | number","description":""},"m-select-table/isAffirmBtn":{"type":"boolean","description":"是否有确认按钮"},"m-select-table/scrollbarAlwaysOn":{"type":"boolean","description":"是否常态显示滚动条"},"m-select-table/allowCreate":{"type":"boolean","description":"是否能够创建条目"},"m-select-table/border":{"type":"boolean","description":"表格边框"},"m-select-table/popupWidth":{"type":"number | string","description":"弹窗的宽度"},"m-select-table/selected":{"type":"[values: string | number | Array<string | number>, rows: Option[] | Option]","description":"单选或多选之后的回调"},"m-select-table/selectMultiple":{"type":"[values: Array<string | number>, rows: Option[]]","description":"多选确认按钮时的回调 配合isAffirmBtn使用"},"m-select-table/toPage":{"type":"[page: Page, query?: string]","description":"当没有使用filterMethod时候才会有回调否则没有"},"m-select-table/update:modelValue":{"type":"[value: string | number | Array<string | number>]","description":""},"m-select-table/clear":{"type":"[]","description":"用户点击清空按钮时触发"},"m-select-table/removeTag":{"type":"[tag: any]","description":"多选模式下移除tag时触发"},"m-select-table-v1/modelValue":{"type":"string | number","description":""},"m-select-table-v1/placeholder":{"type":"string","description":""},"m-select-table-v1/disabled":{"type":"boolean","description":""},"m-select-table-v1/options":{"type":"Option[]","description":""},"m-select-table-v1/tableTitle":{"type":"any[]","description":""},"m-select-table-v1/remoteMethod":{"type":"Function","description":""},"m-select-table-v1/allowCreate":{"type":"boolean","description":""},"m-select-table-v1/focusShow":{"type":"boolean","description":""},"m-select-table-v1/isSelect":{"type":"boolean","description":""},"m-select-table-v1/clearable":{"type":"boolean","description":""},"m-select-table-v1/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table-v1/labelKey":{"type":"string","description":""},"m-select-table-v1/scrollbarAlwaysOn":{"type":"boolean","description":""},"m-select-table-v1/total":{"type":"number | null","description":""},"m-select-table-v1/update:modelValue":{"type":"any","description":""},"m-select-table-v1/selectMultiple":{"type":"any","description":""},"m-select-table-v1/change":{"type":"any","description":""},"m-select-table-v1/selected":{"type":"any","description":""},"m-select-table-v1/clear":{"type":"any","description":""},"m-select-v2/modelValue":{"type":"ValueType","description":""},"m-select-v2/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select-v2/multiple":{"type":"boolean","description":"多选"},"m-select-v2/showAll":{"type":"boolean","description":"是否显示全选"},"m-select-v2/options":{"type":"Option[]","description":"选项"},"m-select-v2/update:modelValue":{"type":"[data: ValueType]","description":""},"m-table/size":{"type":"'small' | 'large' | ''","description":""},"m-table/sole":{"type":"string","description":""},"m-table/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table/expandProp":{"type":"string","description":"展开图标列(如使用这个属性则必须存在rowKey属性) (标记,约束条件后面解决)"},"m-table/expandRowKeys":{"type":"any[]","description":"可以通过该属性设置 Table 目前的展开行,需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。"},"m-table/rowKey":{"type":"Function | string","description":"行数据的 Key,用来优化 Table 的渲染; 在使用reserve-selection功能与显示树形数据时,该属性是必填的。 类型为 String 时,支持多层访问:user.info.id,但不支持 user.info[0].id,此种情况请使用 Function。"},"m-table/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"m-table/privateExpandChange":{"type":"[row: any, expandedRows: any[]]","description":"expandProp模式下 当用户对某一行展开或者关闭的时候会触发该事件"},"m-table-column/filtersValue":{"type":"FilterValue | null","description":"列筛选过滤条件(当为null时,不显示筛选图标)"},"m-table-column/filters":{"type":"Array<{ text: string | number, value: string | number }>","description":"过滤选项"},"m-table-column/filterMethod":{"type":"Function | null","description":"过滤方法"},"m-table-column/children":{"type":"Array<PropChildren>","description":""},"m-table-column/update:filtersValue":{"type":"any","description":""},"m-table-column-set/modelValue":{"type":"TableConfig","description":"配置"},"m-table-column-set/foldMode":{"type":"boolean","description":"是否为折叠模式"},"m-table-column-set/link":{"type":"boolean","description":"是否为链接按钮"},"m-table-column-set/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-column-set/update:modelValue":{"type":"any","description":""},"m-table-column-set/change":{"type":"any","description":""},"m-table-v2/size":{"type":"'small' | 'large' | 'default'","description":""},"m-table-v2/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table-v2/height":{"type":"number","description":"表格高度"},"m-table-v2/border":{"type":"boolean","description":"显示边框"},"m-table-v2/columns":{"type":"TableV2Title[]","description":"表格列配置"},"m-table-v2/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table-v2/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table-v2/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-v2/fixed":{"type":"boolean","description":"单元格宽度是自适应还是固定"},"m-table-v2/estimatedRowHeight":{"type":"number | null","description":"渲染动态的单元格的预估高度"},"m-table-v2/headerHeight":{"type":"number | number[] | null","description":"Header 的高度由height设置。 如果传入数组,它会使 header row 等于数组长度"},"m-table-v2/cellWidthAdaptive":{"type":"boolean","description":"单元格宽度自适应"},"m-table-v2/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table-v2/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"skin-config/change":{"type":"any","description":""},"tab-page/modelValue":{"type":"MenuItem[]","description":""},"tab-page/activeKey":{"type":"string","description":""},"tab-page/showRightClickMenu":{"type":"boolean","description":""},"tab-page/primaryColor":{"type":"string","description":""},"tab-page/primaryBackgroundColor":{"type":"string | null","description":""},"tab-page/close":{"type":"any","description":""},"tab-page/click":{"type":"any","description":""}}
1
+ {"m-dialog/modelValue":{"type":"boolean","description":""},"m-dialog/width":{"type":"string | number","description":"对话框的宽度,默认值为 50%"},"m-dialog/insideHeight":{"type":"number | null","description":"对话框内部空间的高度,默认为null"},"m-dialog/minInsideHeight":{"type":"number","description":"对话框内部空间的最小高度,默认为0(当同时存在maxHeight和minInsideHeight时,以maxHeight为准)"},"m-dialog/maxInsideHeight":{"type":"number","description":"对话框内部空间的最大高度,默认为Infinity"},"m-dialog/resize":{"type":"boolean","description":"是否开启拖拽改变大小"},"m-dialog/draggable":{"type":"boolean","description":"是否可拖动"},"m-dialog/insideClassName":{"type":"string","description":"对话框内部空间的className"},"m-dialog/resized":{"type":"[contentsSize: { width: number, height: number }]","description":"窗口大小改变完成事件"},"m-dialog/update:insideHeight":{"type":"[number]","description":"更新内部容器高度"},"m-dialog/update:modelValue":{"type":"[boolean]","description":""},"m-inline/minWidth":{"type":"number","description":"列最小宽度"},"m-inline/maxWidth":{"type":"number","description":"列最大宽度"},"m-inline/size":{"type":"Size","description":"组件尺寸"},"m-inline/configKey":{"type":"string","description":"配置key"},"m-inline/model":{"type":"Record<string, any> | null","description":"筛选对象"},"m-inline/switch":{"type":"[status: boolean]","description":"切换折叠展开事件"},"m-input-number/modelValue":{"type":"string | number","description":""},"m-input-number/placeholder":{"type":"string","description":""},"m-input-number/disabled":{"type":"boolean","description":"是否禁用数值输入框"},"m-input-number/size":{"type":"string","description":"数值输入框尺寸"},"m-input-number/min":{"type":"number","description":"设置数值输入框允许的最小值"},"m-input-number/max":{"type":"number","description":"设置数值输入框允许的最大值"},"m-input-number/step":{"type":"number","description":"数值输入框步长"},"m-input-number/stepStrictly":{"type":"boolean","description":"是否只能输入 step 的倍数"},"m-input-number/thousandthPlace":{"type":"boolean","description":"输入框是否显示千分位"},"m-input-number/noBorder":{"type":"boolean","description":"是否不要边框"},"m-input-number/noSpacing":{"type":"boolean","description":"不要边距"},"m-input-number/update:modelValue":{"type":"any","description":""},"m-input-number/change":{"type":"any","description":""},"m-input-number/focus":{"type":"any","description":""},"m-input-number/blur":{"type":"any","description":""},"m-select/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select/multiple":{"type":"boolean","description":"多选"},"m-select-table/modelValue":{"type":"string | number | Array<number | string>","description":""},"m-select-table/name":{"type":"string | number | Array<number | string>","description":"显示值"},"m-select-table/placeholder":{"type":"string","description":""},"m-select-table/disabled":{"type":"boolean","description":""},"m-select-table/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table/total":{"type":"number | null","description":"总数据量,当有值时,出现分页器"},"m-select-table/filterMethod":{"type":"Function | null","description":"自定义搜索"},"m-select-table/filterable":{"type":"boolean","description":"是否使用搜索"},"m-select-table/remote":{"type":"boolean","description":"是否使用 远程搜索"},"m-select-table/remoteMethod":{"type":"Function","description":"自定义远程搜索"},"m-select-table/options":{"type":"Option[]","description":""},"m-select-table/tableTitle":{"type":"TableTitle[]","description":""},"m-select-table/multiple":{"type":"boolean","description":"是否多选"},"m-select-table/keywords":{"type":"Option","description":"定义默认的 label 和value"},"m-select-table/reserveSelection":{"type":"boolean","description":"是否开启翻页多选"},"m-select-table/tableHeight":{"type":"string | number","description":""},"m-select-table/isAffirmBtn":{"type":"boolean","description":"是否有确认按钮"},"m-select-table/scrollbarAlwaysOn":{"type":"boolean","description":"是否常态显示滚动条"},"m-select-table/allowCreate":{"type":"boolean","description":"是否能够创建条目"},"m-select-table/border":{"type":"boolean","description":"表格边框"},"m-select-table/popupWidth":{"type":"number | string","description":"弹窗的宽度"},"m-select-table/selected":{"type":"[values: string | number | Array<string | number>, rows: Option[] | Option]","description":"单选或多选之后的回调"},"m-select-table/selectMultiple":{"type":"[values: Array<string | number>, rows: Option[]]","description":"多选确认按钮时的回调 配合isAffirmBtn使用"},"m-select-table/toPage":{"type":"[page: Page, query?: string]","description":"当没有使用filterMethod时候才会有回调否则没有"},"m-select-table/update:modelValue":{"type":"[value: string | number | Array<string | number>]","description":""},"m-select-table/clear":{"type":"[]","description":"用户点击清空按钮时触发"},"m-select-table/removeTag":{"type":"[tag: any]","description":"多选模式下移除tag时触发"},"m-select-table-v1/modelValue":{"type":"string | number","description":""},"m-select-table-v1/placeholder":{"type":"string","description":""},"m-select-table-v1/disabled":{"type":"boolean","description":""},"m-select-table-v1/options":{"type":"Option[]","description":""},"m-select-table-v1/tableTitle":{"type":"any[]","description":""},"m-select-table-v1/remoteMethod":{"type":"Function","description":""},"m-select-table-v1/allowCreate":{"type":"boolean","description":""},"m-select-table-v1/focusShow":{"type":"boolean","description":""},"m-select-table-v1/isSelect":{"type":"boolean","description":""},"m-select-table-v1/clearable":{"type":"boolean","description":""},"m-select-table-v1/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table-v1/labelKey":{"type":"string","description":""},"m-select-table-v1/scrollbarAlwaysOn":{"type":"boolean","description":""},"m-select-table-v1/total":{"type":"number | null","description":""},"m-select-table-v1/update:modelValue":{"type":"any","description":""},"m-select-table-v1/selectMultiple":{"type":"any","description":""},"m-select-table-v1/change":{"type":"any","description":""},"m-select-table-v1/selected":{"type":"any","description":""},"m-select-table-v1/clear":{"type":"any","description":""},"m-select-v2/modelValue":{"type":"ValueType","description":""},"m-select-v2/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select-v2/multiple":{"type":"boolean","description":"多选"},"m-select-v2/showAll":{"type":"boolean","description":"是否显示全选"},"m-select-v2/options":{"type":"Option[]","description":"选项"},"m-select-v2/update:modelValue":{"type":"[data: ValueType]","description":""},"m-table/size":{"type":"'small' | 'large' | ''","description":""},"m-table/sole":{"type":"string","description":""},"m-table/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table/expandProp":{"type":"string","description":"展开图标列(如使用这个属性则必须存在rowKey属性) (标记,约束条件后面解决)"},"m-table/expandRowKeys":{"type":"any[]","description":"可以通过该属性设置 Table 目前的展开行,需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。"},"m-table/rowKey":{"type":"Function | string","description":"行数据的 Key,用来优化 Table 的渲染; 在使用reserve-selection功能与显示树形数据时,该属性是必填的。 类型为 String 时,支持多层访问:user.info.id,但不支持 user.info[0].id,此种情况请使用 Function。"},"m-table/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"m-table/privateExpandChange":{"type":"[row: any, expandedRows: any[]]","description":"expandProp模式下 当用户对某一行展开或者关闭的时候会触发该事件"},"m-table-column/filtersValue":{"type":"FilterValue | null","description":"列筛选过滤条件(当为null时,不显示筛选图标)"},"m-table-column/filters":{"type":"Array<{ text: string | number, value: string | number }>","description":"过滤选项"},"m-table-column/filterMethod":{"type":"Function | null","description":"过滤方法"},"m-table-column/children":{"type":"Array<PropChildren>","description":""},"m-table-column/update:filtersValue":{"type":"any","description":""},"m-table-column-set/modelValue":{"type":"TableConfig","description":"配置"},"m-table-column-set/foldMode":{"type":"boolean","description":"是否为折叠模式"},"m-table-column-set/link":{"type":"boolean","description":"是否为链接按钮"},"m-table-column-set/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-column-set/update:modelValue":{"type":"any","description":""},"m-table-column-set/change":{"type":"any","description":""},"m-table-v2/size":{"type":"'small' | 'large' | 'default'","description":""},"m-table-v2/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table-v2/height":{"type":"number","description":"表格高度"},"m-table-v2/border":{"type":"boolean","description":"显示边框"},"m-table-v2/columns":{"type":"TableV2Title[]","description":"表格列配置"},"m-table-v2/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table-v2/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table-v2/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-v2/fixed":{"type":"boolean","description":"单元格宽度是自适应还是固定"},"m-table-v2/estimatedRowHeight":{"type":"number | null","description":"渲染动态的单元格的预估高度"},"m-table-v2/headerHeight":{"type":"number | number[] | null","description":"Header 的高度由height设置。 如果传入数组,它会使 header row 等于数组长度"},"m-table-v2/cellWidthAdaptive":{"type":"boolean","description":"单元格宽度自适应"},"m-table-v2/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table-v2/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"skin-config/change":{"type":"any","description":""},"tab-page/modelValue":{"type":"MenuItem[]","description":""},"tab-page/activeKey":{"type":"string","description":""},"tab-page/showRightClickMenu":{"type":"boolean","description":""},"tab-page/primaryColor":{"type":"string","description":""},"tab-page/primaryBackgroundColor":{"type":"string | null","description":""},"tab-page/close":{"type":"any","description":""},"tab-page/click":{"type":"any","description":""}}