br-dionysus 1.8.5 → 1.8.6
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 +211 -42
- package/attributes.json +1 -1
- package/dist/br-dionysus.es.js +3528 -3444
- package/dist/br-dionysus.umd.js +8 -8
- package/dist/index.css +1 -1
- package/dist/packages/Hook/useFormInline/useFormInline.d.ts +25 -0
- package/dist/packages/Hook/usePackageConfig/usePackageConfig.d.ts +1 -1
- package/dist/packages/MDialog/src/MDialog.vue.d.ts +1 -1
- package/dist/packages/MInline/src/MInline.vue.d.ts +7 -0
- package/dist/packages/MInputNumber/src/MInputNumber.vue.d.ts +2 -2
- package/dist/packages/MSelectTable/src/MSelectTable.vue.d.ts +2 -2
- package/dist/packages/MSelectTableV1/src/MSelectTableV1.vue.d.ts +3 -3
- package/dist/packages/MSelectV2/src/MSelectV2.vue.d.ts +1 -1
- package/dist/packages/MTableColumnSet/src/MTableColumnSet.vue.d.ts +1 -1
- package/dist/packages/Tool/slotsToData/slotsToData.d.ts +19 -0
- package/package.json +1 -1
- package/packages/Hook/useFormInline/README.md +45 -0
- package/packages/Hook/useFormInline/demo.vue +141 -0
- package/packages/Hook/useFormInline/useFormInline.ts +60 -0
- package/packages/Hook/usePackageConfig/usePackageConfig.ts +1 -1
- package/packages/Hook/useTableConfig/useTableConfig.ts +1 -1
- package/packages/MInline/docs/README.md +7 -6
- package/packages/MInline/docs/demo.vue +16 -13
- package/packages/MInline/src/MInline.vue +127 -3
- package/packages/MInputNumber/docs/demo.vue +42 -2
- package/packages/MInputNumber/src/MInputNumber.vue +7 -7
- package/packages/MTableSuper/src/MTableSuper.vue +1 -1
- package/packages/SkinConfig/src/useSkin.ts +2 -2
- package/packages/Tool/slotsToData/README.md +26 -0
- package/packages/Tool/slotsToData/slotsToData.ts +38 -0
- package/tags.json +1 -1
- package/web-types.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
|
|
31
31
|
+ TabPage([标签页组件](#标签页组件))
|
|
32
32
|
|
|
33
|
+
+ useFormInline([筛选项配置化-hook](#筛选项配置化-hook))
|
|
34
|
+
|
|
33
35
|
+ usePackageConfig([配置保存与获取-hook](#配置保存与获取-hook))
|
|
34
36
|
|
|
35
37
|
+ useRemainingSpace([计算获取剩余空间-hook](#计算获取剩余空间-hook))
|
|
@@ -310,38 +312,38 @@ const open3 = () => {
|
|
|
310
312
|
</el-input>
|
|
311
313
|
</el-form-item>
|
|
312
314
|
<el-form-item
|
|
313
|
-
label="
|
|
314
|
-
prop="
|
|
315
|
+
label="类型"
|
|
316
|
+
prop="type"
|
|
315
317
|
data-item
|
|
316
318
|
>
|
|
317
319
|
<el-input
|
|
318
|
-
v-model="formInline.
|
|
320
|
+
v-model="formInline.type"
|
|
319
321
|
clearable
|
|
320
|
-
placeholder="
|
|
322
|
+
placeholder="请输入类型"
|
|
321
323
|
>
|
|
322
324
|
</el-input>
|
|
323
325
|
</el-form-item>
|
|
324
326
|
<el-form-item
|
|
325
|
-
label="
|
|
326
|
-
prop="
|
|
327
|
+
label="地区"
|
|
328
|
+
prop="region"
|
|
327
329
|
data-item
|
|
328
330
|
>
|
|
329
331
|
<el-input
|
|
330
|
-
v-model="formInline.
|
|
332
|
+
v-model="formInline.region"
|
|
331
333
|
clearable
|
|
332
|
-
placeholder="
|
|
334
|
+
placeholder="请输入地区"
|
|
333
335
|
>
|
|
334
336
|
</el-input>
|
|
335
337
|
</el-form-item>
|
|
336
338
|
<el-form-item
|
|
337
|
-
label="
|
|
338
|
-
prop="
|
|
339
|
+
label="等级"
|
|
340
|
+
prop="level"
|
|
339
341
|
data-item
|
|
340
342
|
>
|
|
341
343
|
<el-input
|
|
342
|
-
v-model="formInline.
|
|
344
|
+
v-model="formInline.level"
|
|
343
345
|
clearable
|
|
344
|
-
placeholder="
|
|
346
|
+
placeholder="请输入等级"
|
|
345
347
|
>
|
|
346
348
|
</el-input>
|
|
347
349
|
</el-form-item>
|
|
@@ -367,7 +369,10 @@ import { reactive } from 'vue'
|
|
|
367
369
|
const formInline = reactive({
|
|
368
370
|
name: '',
|
|
369
371
|
code: '',
|
|
370
|
-
time: ''
|
|
372
|
+
time: '',
|
|
373
|
+
type: '',
|
|
374
|
+
region: '',
|
|
375
|
+
level: ''
|
|
371
376
|
})
|
|
372
377
|
</script>
|
|
373
378
|
|
|
@@ -382,15 +387,16 @@ const formInline = reactive({
|
|
|
382
387
|
|
|
383
388
|
### 2) Attributes
|
|
384
389
|
|
|
385
|
-
| 参数
|
|
386
|
-
|
|
387
|
-
| minWidth
|
|
388
|
-
| maxWidth
|
|
389
|
-
| size
|
|
390
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
391
|
+
|-----------|:-----:|:------:|:-------------------------:|:-------:|
|
|
392
|
+
| minWidth | 列最小宽度 | number | - | 200 |
|
|
393
|
+
| maxWidth | 列最大宽度 | number | - | 300 |
|
|
394
|
+
| size | 组件尺寸 | enum | large \| default \| small | default |
|
|
395
|
+
| configKey | 配置key | string | - | - |
|
|
390
396
|
|
|
391
397
|
### 2) Events
|
|
392
398
|
|
|
393
|
-
|
|
|
399
|
+
| 事件名 | 说明 | 参数 |
|
|
394
400
|
|--------|:----------------------:|:---------------:|
|
|
395
401
|
| switch | 当切换展开与折叠模式时触发,返回当前展开状态 | unfold(boolean) |
|
|
396
402
|
|
|
@@ -407,14 +413,54 @@ const formInline = reactive({
|
|
|
407
413
|
|
|
408
414
|
<template>
|
|
409
415
|
<div class="g-demo-m-input-number-box">
|
|
410
|
-
<m-input-number
|
|
416
|
+
<m-input-number
|
|
417
|
+
v-model="test"
|
|
418
|
+
@input="numberInput"
|
|
419
|
+
@change="numberChange"
|
|
420
|
+
></m-input-number>
|
|
421
|
+
<h5>对比组</h5>
|
|
422
|
+
<el-input-number
|
|
423
|
+
v-model="test2"
|
|
424
|
+
@input="numberInput2"
|
|
425
|
+
@change="numberChange2"
|
|
426
|
+
></el-input-number>
|
|
411
427
|
</div>
|
|
412
428
|
</template>
|
|
413
429
|
|
|
414
430
|
<script setup lang="ts">
|
|
415
|
-
import { ref } from 'vue'
|
|
431
|
+
import { ref, watch } from 'vue'
|
|
416
432
|
|
|
417
433
|
const test = ref<number>(0)
|
|
434
|
+
const numberInput = (val: number) => {
|
|
435
|
+
console.log('m1', val)
|
|
436
|
+
console.log('m2', test.value)
|
|
437
|
+
}
|
|
438
|
+
const numberChange = (val: number) => {
|
|
439
|
+
console.log('m3', val)
|
|
440
|
+
console.log('m4', test.value)
|
|
441
|
+
}
|
|
442
|
+
watch(
|
|
443
|
+
() => test.value,
|
|
444
|
+
() => {
|
|
445
|
+
console.log('m5', test.value)
|
|
446
|
+
}
|
|
447
|
+
)
|
|
448
|
+
|
|
449
|
+
const test2 = ref<number>(0)
|
|
450
|
+
const numberInput2 = (val: number) => {
|
|
451
|
+
console.log('e1', val)
|
|
452
|
+
console.log('e2', test2.value)
|
|
453
|
+
}
|
|
454
|
+
const numberChange2 = (val: number) => {
|
|
455
|
+
console.log('e3', val)
|
|
456
|
+
console.log('e4', test2.value)
|
|
457
|
+
}
|
|
458
|
+
watch(
|
|
459
|
+
() => test2.value,
|
|
460
|
+
() => {
|
|
461
|
+
console.log('e5', test2.value)
|
|
462
|
+
}
|
|
463
|
+
)
|
|
418
464
|
</script>
|
|
419
465
|
|
|
420
466
|
<style scoped>
|
|
@@ -2646,6 +2692,8 @@ const list = ref<{ name: string, className: string }[]>([
|
|
|
2646
2692
|
|
|
2647
2693
|
## Hook列表
|
|
2648
2694
|
|
|
2695
|
+
+ useFormInline([筛选项配置化-hook](#筛选项配置化-hook))
|
|
2696
|
+
|
|
2649
2697
|
+ usePackageConfig([配置保存与获取-hook](#配置保存与获取-hook))
|
|
2650
2698
|
|
|
2651
2699
|
+ useRemainingSpace([计算获取剩余空间-hook](#计算获取剩余空间-hook))
|
|
@@ -2659,6 +2707,51 @@ const list = ref<{ name: string, className: string }[]>([
|
|
|
2659
2707
|
|
|
2660
2708
|
|
|
2661
2709
|
|
|
2710
|
+
筛选项配置化 hook
|
|
2711
|
+
=================
|
|
2712
|
+
|
|
2713
|
+
### 1) 基础用法
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
### 2) 所需参数
|
|
2718
|
+
|
|
2719
|
+
| 名称 | 描述 | 类型 | 可选值 | 默认值 |
|
|
2720
|
+
|-----------|---------------|---------------------------------|:---:|:----:|
|
|
2721
|
+
| configKey | 当前配置标识,即唯一key | string | - | '' |
|
|
2722
|
+
| data | 筛选条件关联key map | <T extends Record<string, any>> | - | - |
|
|
2723
|
+
| isConfig | 是否开启配置 | boolean | - | true |
|
|
2724
|
+
|
|
2725
|
+
### 2) 返回值
|
|
2726
|
+
|
|
2727
|
+
| 名称 | 描述 | 类型 |
|
|
2728
|
+
|----|-----|------------------------------------|
|
|
2729
|
+
| - | 返回值 | UseFormInlineReturnType<T> \| void |
|
|
2730
|
+
|
|
2731
|
+
#### 2.1) UseFormInlineReturnType
|
|
2732
|
+
|
|
2733
|
+
| 名称 | 描述 | 类型 |
|
|
2734
|
+
|-----------------|---------------|------------|
|
|
2735
|
+
| \[K in keyof T] | 筛选条件关联key map | T\[K] |
|
|
2736
|
+
| reset | 重置方法 | () => void |
|
|
2737
|
+
|
|
2738
|
+
### 3) 配置结构 FormInlineConfigType<T>
|
|
2739
|
+
|
|
2740
|
+
| 名称 | 描述 | 类型 |
|
|
2741
|
+
|--------------|------|---------|
|
|
2742
|
+
| sort | 排序 | number |
|
|
2743
|
+
| defaultValue | 默认值 | any |
|
|
2744
|
+
| show | 是否显示 | boolean |
|
|
2745
|
+
|
|
2746
|
+
|
|
2747
|
+
|
|
2748
|
+
|
|
2749
|
+
|
|
2750
|
+
|
|
2751
|
+
|
|
2752
|
+
|
|
2753
|
+
|
|
2754
|
+
|
|
2662
2755
|
配置保存与获取 hook
|
|
2663
2756
|
=================
|
|
2664
2757
|
|
|
@@ -2855,6 +2948,8 @@ const list = ref<{ name: string, className: string }[]>([
|
|
|
2855
2948
|
+ createHash([](#))
|
|
2856
2949
|
|
|
2857
2950
|
+ moneyFormat([](#))
|
|
2951
|
+
|
|
2952
|
+
+ slotsToData([](#))
|
|
2858
2953
|
|
|
2859
2954
|
|
|
2860
2955
|
对话框
|
|
@@ -3126,38 +3221,38 @@ const open3 = () => {
|
|
|
3126
3221
|
</el-input>
|
|
3127
3222
|
</el-form-item>
|
|
3128
3223
|
<el-form-item
|
|
3129
|
-
label="
|
|
3130
|
-
prop="
|
|
3224
|
+
label="类型"
|
|
3225
|
+
prop="type"
|
|
3131
3226
|
data-item
|
|
3132
3227
|
>
|
|
3133
3228
|
<el-input
|
|
3134
|
-
v-model="formInline.
|
|
3229
|
+
v-model="formInline.type"
|
|
3135
3230
|
clearable
|
|
3136
|
-
placeholder="
|
|
3231
|
+
placeholder="请输入类型"
|
|
3137
3232
|
>
|
|
3138
3233
|
</el-input>
|
|
3139
3234
|
</el-form-item>
|
|
3140
3235
|
<el-form-item
|
|
3141
|
-
label="
|
|
3142
|
-
prop="
|
|
3236
|
+
label="地区"
|
|
3237
|
+
prop="region"
|
|
3143
3238
|
data-item
|
|
3144
3239
|
>
|
|
3145
3240
|
<el-input
|
|
3146
|
-
v-model="formInline.
|
|
3241
|
+
v-model="formInline.region"
|
|
3147
3242
|
clearable
|
|
3148
|
-
placeholder="
|
|
3243
|
+
placeholder="请输入地区"
|
|
3149
3244
|
>
|
|
3150
3245
|
</el-input>
|
|
3151
3246
|
</el-form-item>
|
|
3152
3247
|
<el-form-item
|
|
3153
|
-
label="
|
|
3154
|
-
prop="
|
|
3248
|
+
label="等级"
|
|
3249
|
+
prop="level"
|
|
3155
3250
|
data-item
|
|
3156
3251
|
>
|
|
3157
3252
|
<el-input
|
|
3158
|
-
v-model="formInline.
|
|
3253
|
+
v-model="formInline.level"
|
|
3159
3254
|
clearable
|
|
3160
|
-
placeholder="
|
|
3255
|
+
placeholder="请输入等级"
|
|
3161
3256
|
>
|
|
3162
3257
|
</el-input>
|
|
3163
3258
|
</el-form-item>
|
|
@@ -3183,7 +3278,10 @@ import { reactive } from 'vue'
|
|
|
3183
3278
|
const formInline = reactive({
|
|
3184
3279
|
name: '',
|
|
3185
3280
|
code: '',
|
|
3186
|
-
time: ''
|
|
3281
|
+
time: '',
|
|
3282
|
+
type: '',
|
|
3283
|
+
region: '',
|
|
3284
|
+
level: ''
|
|
3187
3285
|
})
|
|
3188
3286
|
</script>
|
|
3189
3287
|
|
|
@@ -3198,15 +3296,16 @@ const formInline = reactive({
|
|
|
3198
3296
|
|
|
3199
3297
|
### 2) Attributes
|
|
3200
3298
|
|
|
3201
|
-
| 参数
|
|
3202
|
-
|
|
3203
|
-
| minWidth
|
|
3204
|
-
| maxWidth
|
|
3205
|
-
| size
|
|
3299
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
3300
|
+
|-----------|:-----:|:------:|:-------------------------:|:-------:|
|
|
3301
|
+
| minWidth | 列最小宽度 | number | - | 200 |
|
|
3302
|
+
| maxWidth | 列最大宽度 | number | - | 300 |
|
|
3303
|
+
| size | 组件尺寸 | enum | large \| default \| small | default |
|
|
3304
|
+
| configKey | 配置key | string | - | - |
|
|
3206
3305
|
|
|
3207
3306
|
### 2) Events
|
|
3208
3307
|
|
|
3209
|
-
|
|
|
3308
|
+
| 事件名 | 说明 | 参数 |
|
|
3210
3309
|
|--------|:----------------------:|:---------------:|
|
|
3211
3310
|
| switch | 当切换展开与折叠模式时触发,返回当前展开状态 | unfold(boolean) |
|
|
3212
3311
|
|
|
@@ -3223,14 +3322,54 @@ const formInline = reactive({
|
|
|
3223
3322
|
|
|
3224
3323
|
<template>
|
|
3225
3324
|
<div class="g-demo-m-input-number-box">
|
|
3226
|
-
<m-input-number
|
|
3325
|
+
<m-input-number
|
|
3326
|
+
v-model="test"
|
|
3327
|
+
@input="numberInput"
|
|
3328
|
+
@change="numberChange"
|
|
3329
|
+
></m-input-number>
|
|
3330
|
+
<h5>对比组</h5>
|
|
3331
|
+
<el-input-number
|
|
3332
|
+
v-model="test2"
|
|
3333
|
+
@input="numberInput2"
|
|
3334
|
+
@change="numberChange2"
|
|
3335
|
+
></el-input-number>
|
|
3227
3336
|
</div>
|
|
3228
3337
|
</template>
|
|
3229
3338
|
|
|
3230
3339
|
<script setup lang="ts">
|
|
3231
|
-
import { ref } from 'vue'
|
|
3340
|
+
import { ref, watch } from 'vue'
|
|
3232
3341
|
|
|
3233
3342
|
const test = ref<number>(0)
|
|
3343
|
+
const numberInput = (val: number) => {
|
|
3344
|
+
console.log('m1', val)
|
|
3345
|
+
console.log('m2', test.value)
|
|
3346
|
+
}
|
|
3347
|
+
const numberChange = (val: number) => {
|
|
3348
|
+
console.log('m3', val)
|
|
3349
|
+
console.log('m4', test.value)
|
|
3350
|
+
}
|
|
3351
|
+
watch(
|
|
3352
|
+
() => test.value,
|
|
3353
|
+
() => {
|
|
3354
|
+
console.log('m5', test.value)
|
|
3355
|
+
}
|
|
3356
|
+
)
|
|
3357
|
+
|
|
3358
|
+
const test2 = ref<number>(0)
|
|
3359
|
+
const numberInput2 = (val: number) => {
|
|
3360
|
+
console.log('e1', val)
|
|
3361
|
+
console.log('e2', test2.value)
|
|
3362
|
+
}
|
|
3363
|
+
const numberChange2 = (val: number) => {
|
|
3364
|
+
console.log('e3', val)
|
|
3365
|
+
console.log('e4', test2.value)
|
|
3366
|
+
}
|
|
3367
|
+
watch(
|
|
3368
|
+
() => test2.value,
|
|
3369
|
+
() => {
|
|
3370
|
+
console.log('e5', test2.value)
|
|
3371
|
+
}
|
|
3372
|
+
)
|
|
3234
3373
|
</script>
|
|
3235
3374
|
|
|
3236
3375
|
<style scoped>
|
|
@@ -5533,3 +5672,33 @@ const list = ref<{ name: string, className: string }[]>([
|
|
|
5533
5672
|
| repairZero | 末尾补到几位零 | number | - |
|
|
5534
5673
|
|
|
5535
5674
|
|
|
5675
|
+
|
|
5676
|
+
|
|
5677
|
+
## vue3的slots转json
|
|
5678
|
+
|
|
5679
|
+
### 1) 参数
|
|
5680
|
+
|
|
5681
|
+
| 参数 | 描述 | 类型 | 默认值 |
|
|
5682
|
+
|-------|-------------|--------|-----------|
|
|
5683
|
+
| slots | vue的slots对象 | Slots | - |
|
|
5684
|
+
| name | 插槽名 | string | 'default' |
|
|
5685
|
+
|
|
5686
|
+
### 2) 返参
|
|
5687
|
+
|
|
5688
|
+
| 参数 | 描述 | 类型 | 默认值 |
|
|
5689
|
+
|----|--------------|-------------------|-----|
|
|
5690
|
+
| - | 格式化后的slots数据 | SlotsToDataReturn | [] |
|
|
5691
|
+
|
|
5692
|
+
#### 2.1) SlotsToDataReturn
|
|
5693
|
+
| 参数 | 描述 | 类型 | 默认值 |
|
|
5694
|
+
|-------------------|--------------|-------------------------|-----|
|
|
5695
|
+
| SlotsToDataReturn | 格式化后的slots数据 | SlotsToDataReturnItem[] | [] |
|
|
5696
|
+
|
|
5697
|
+
#### 2.1) SlotsToDataReturn
|
|
5698
|
+
| 参数 | 描述 | 类型 | 默认值 |
|
|
5699
|
+
|----------|---------------|-----------------------------|-----|
|
|
5700
|
+
| name | 标签名 | string | - |
|
|
5701
|
+
| props | 组件标签上的props参数 | Record<string, any> \| null | - |
|
|
5702
|
+
| children | 子级 | SlotsToDataReturnItem[] | - |
|
|
5703
|
+
|
|
5704
|
+
|
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/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":""}}
|