br-dionysus 1.16.2 → 1.16.3
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 +64 -20
- package/attributes.json +1 -1
- package/dist/br-dionysus.es.js +2934 -2911
- package/dist/br-dionysus.umd.js +7 -7
- package/dist/index.css +1 -1
- package/dist/packages/MTable/src/MTable.vue.d.ts +1 -0
- package/dist/packages/Tool/slotsToData/slotsToData.d.ts +2 -1
- package/package.json +1 -1
- package/packages/MTable/docs/README.md +15 -7
- package/packages/MTable/docs/demo.vue +17 -3
- package/packages/MTable/src/MBatchEdit.vue +10 -3
- package/packages/MTable/src/MTable.vue +36 -4
- package/packages/Tool/slotsToData/slotsToData.ts +3 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
- package/dist/packages/MTable/src/MBatchEdit.vue.d.ts +0 -58
package/README.md
CHANGED
|
@@ -1249,13 +1249,13 @@ const options: Option[] = [{
|
|
|
1249
1249
|
|
|
1250
1250
|
<h3>批改</h3>
|
|
1251
1251
|
<MBatchEdit
|
|
1252
|
-
ref="mBatchEditRef"
|
|
1253
1252
|
size="small"
|
|
1254
1253
|
v-model:tableData="tableData1"
|
|
1255
1254
|
:selectionCell="selectionCell"
|
|
1256
|
-
:
|
|
1255
|
+
:relevancyTable="mTableRef"
|
|
1257
1256
|
></MBatchEdit>
|
|
1258
1257
|
<MTable
|
|
1258
|
+
ref="mTableRef"
|
|
1259
1259
|
:data="tableData1"
|
|
1260
1260
|
border
|
|
1261
1261
|
scrollbarAlwaysOn
|
|
@@ -1273,9 +1273,15 @@ const options: Option[] = [{
|
|
|
1273
1273
|
:filters="item.filters"
|
|
1274
1274
|
:headerAlign="item.headerAlign"
|
|
1275
1275
|
:fixed="item.fixed"
|
|
1276
|
+
:isBatchEdit="item.isBatchEdit"
|
|
1276
1277
|
v-model:filtersValue="filtersValue"
|
|
1277
1278
|
showOverflowTooltip
|
|
1278
1279
|
></MTableColumn>
|
|
1280
|
+
<MTableColumn
|
|
1281
|
+
prop="prop"
|
|
1282
|
+
label="label"
|
|
1283
|
+
showOverflowTooltip
|
|
1284
|
+
></MTableColumn>
|
|
1279
1285
|
</MTable>
|
|
1280
1286
|
<p>选中的单元格:{{ selectionCell }}</p>
|
|
1281
1287
|
</div>
|
|
@@ -1475,7 +1481,15 @@ const handleSelectionChange = (val: any[]) => {
|
|
|
1475
1481
|
* 批量修改
|
|
1476
1482
|
* */
|
|
1477
1483
|
const selectionCell = ref<string>('')
|
|
1478
|
-
const
|
|
1484
|
+
const mTableRef = ref<any>(null)
|
|
1485
|
+
const test = () => {
|
|
1486
|
+
if (mTableRef.value) {
|
|
1487
|
+
mTableRef.value.getTableTitle()
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
setTimeout(() => {
|
|
1491
|
+
test()
|
|
1492
|
+
}, 1000)
|
|
1479
1493
|
</script>
|
|
1480
1494
|
|
|
1481
1495
|
<style lang="scss" scoped>
|
|
@@ -1516,7 +1530,14 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
|
|
|
1516
1530
|
| update:selectionCell | 选中单元格更新 | \[string] |
|
|
1517
1531
|
| 其余方法 | 参考el官网的table | https://element-plus.org/zh-CN/component/table.html |
|
|
1518
1532
|
|
|
1519
|
-
### 4)
|
|
1533
|
+
### 4) Exposes
|
|
1534
|
+
|
|
1535
|
+
| 方法名 | 说明 | 回调参数 |
|
|
1536
|
+
|---------------|--------------|-----------------------------------------------------|
|
|
1537
|
+
| getTableTitle | 获取表格头信息 | tableTitle: TableTitle[] |
|
|
1538
|
+
| 其余方法 | 参考el官网的table | https://element-plus.org/zh-CN/component/table.html |
|
|
1539
|
+
|
|
1540
|
+
### 5) PasteAction
|
|
1520
1541
|
|
|
1521
1542
|
| 参数 | 说明 | 类型 |
|
|
1522
1543
|
|------------|----------------------------------------|--------|
|
|
@@ -1529,12 +1550,13 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
|
|
|
1529
1550
|
|
|
1530
1551
|
#### 1) Attributes
|
|
1531
1552
|
|
|
1532
|
-
| 参数
|
|
1533
|
-
|
|
1534
|
-
| selectionCell
|
|
1535
|
-
| size
|
|
1536
|
-
| tableData
|
|
1537
|
-
| tableTitle
|
|
1553
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
1554
|
+
|----------------|-------------------------------------------|---------------------------------------------------------------|--------------------------|------|
|
|
1555
|
+
| selectionCell | 选中列 | string | - | '' |
|
|
1556
|
+
| size | 组件大小 | string | 'small' \| 'large' \| '' | '' |
|
|
1557
|
+
| tableData | 表格数据 | Record<string, any>[] | - | [] |
|
|
1558
|
+
| tableTitle | 表格列配置 | TableTitle[] \| null | - | null |
|
|
1559
|
+
| relevancyTable | 关联表格(与tableTitle属性互斥,同时存在时只有tableTitle生效) | InstanceType<typeof import('packages/MTable').MTable> \| null | - | null |
|
|
1538
1560
|
|
|
1539
1561
|
#### 2) Events
|
|
1540
1562
|
|
|
@@ -4394,13 +4416,13 @@ const options: Option[] = [{
|
|
|
4394
4416
|
|
|
4395
4417
|
<h3>批改</h3>
|
|
4396
4418
|
<MBatchEdit
|
|
4397
|
-
ref="mBatchEditRef"
|
|
4398
4419
|
size="small"
|
|
4399
4420
|
v-model:tableData="tableData1"
|
|
4400
4421
|
:selectionCell="selectionCell"
|
|
4401
|
-
:
|
|
4422
|
+
:relevancyTable="mTableRef"
|
|
4402
4423
|
></MBatchEdit>
|
|
4403
4424
|
<MTable
|
|
4425
|
+
ref="mTableRef"
|
|
4404
4426
|
:data="tableData1"
|
|
4405
4427
|
border
|
|
4406
4428
|
scrollbarAlwaysOn
|
|
@@ -4418,9 +4440,15 @@ const options: Option[] = [{
|
|
|
4418
4440
|
:filters="item.filters"
|
|
4419
4441
|
:headerAlign="item.headerAlign"
|
|
4420
4442
|
:fixed="item.fixed"
|
|
4443
|
+
:isBatchEdit="item.isBatchEdit"
|
|
4421
4444
|
v-model:filtersValue="filtersValue"
|
|
4422
4445
|
showOverflowTooltip
|
|
4423
4446
|
></MTableColumn>
|
|
4447
|
+
<MTableColumn
|
|
4448
|
+
prop="prop"
|
|
4449
|
+
label="label"
|
|
4450
|
+
showOverflowTooltip
|
|
4451
|
+
></MTableColumn>
|
|
4424
4452
|
</MTable>
|
|
4425
4453
|
<p>选中的单元格:{{ selectionCell }}</p>
|
|
4426
4454
|
</div>
|
|
@@ -4620,7 +4648,15 @@ const handleSelectionChange = (val: any[]) => {
|
|
|
4620
4648
|
* 批量修改
|
|
4621
4649
|
* */
|
|
4622
4650
|
const selectionCell = ref<string>('')
|
|
4623
|
-
const
|
|
4651
|
+
const mTableRef = ref<any>(null)
|
|
4652
|
+
const test = () => {
|
|
4653
|
+
if (mTableRef.value) {
|
|
4654
|
+
mTableRef.value.getTableTitle()
|
|
4655
|
+
}
|
|
4656
|
+
}
|
|
4657
|
+
setTimeout(() => {
|
|
4658
|
+
test()
|
|
4659
|
+
}, 1000)
|
|
4624
4660
|
</script>
|
|
4625
4661
|
|
|
4626
4662
|
<style lang="scss" scoped>
|
|
@@ -4661,7 +4697,14 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
|
|
|
4661
4697
|
| update:selectionCell | 选中单元格更新 | \[string] |
|
|
4662
4698
|
| 其余方法 | 参考el官网的table | https://element-plus.org/zh-CN/component/table.html |
|
|
4663
4699
|
|
|
4664
|
-
### 4)
|
|
4700
|
+
### 4) Exposes
|
|
4701
|
+
|
|
4702
|
+
| 方法名 | 说明 | 回调参数 |
|
|
4703
|
+
|---------------|--------------|-----------------------------------------------------|
|
|
4704
|
+
| getTableTitle | 获取表格头信息 | tableTitle: TableTitle[] |
|
|
4705
|
+
| 其余方法 | 参考el官网的table | https://element-plus.org/zh-CN/component/table.html |
|
|
4706
|
+
|
|
4707
|
+
### 5) PasteAction
|
|
4665
4708
|
|
|
4666
4709
|
| 参数 | 说明 | 类型 |
|
|
4667
4710
|
|------------|----------------------------------------|--------|
|
|
@@ -4674,12 +4717,13 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
|
|
|
4674
4717
|
|
|
4675
4718
|
#### 1) Attributes
|
|
4676
4719
|
|
|
4677
|
-
| 参数
|
|
4678
|
-
|
|
4679
|
-
| selectionCell
|
|
4680
|
-
| size
|
|
4681
|
-
| tableData
|
|
4682
|
-
| tableTitle
|
|
4720
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
4721
|
+
|----------------|-------------------------------------------|---------------------------------------------------------------|--------------------------|------|
|
|
4722
|
+
| selectionCell | 选中列 | string | - | '' |
|
|
4723
|
+
| size | 组件大小 | string | 'small' \| 'large' \| '' | '' |
|
|
4724
|
+
| tableData | 表格数据 | Record<string, any>[] | - | [] |
|
|
4725
|
+
| tableTitle | 表格列配置 | TableTitle[] \| null | - | null |
|
|
4726
|
+
| relevancyTable | 关联表格(与tableTitle属性互斥,同时存在时只有tableTitle生效) | InstanceType<typeof import('packages/MTable').MTable> \| null | - | null |
|
|
4683
4727
|
|
|
4684
4728
|
#### 2) Events
|
|
4685
4729
|
|
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/drawerMode":{"type":"boolean","description":"抽屉模式"},"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/modelValue":{"type":"any","description":"选中项绑定值"},"m-select/update:modelValue":{"type":"[value: number | string | Array<number | string>]","description":""},"m-select/change":{"type":"[value: any]","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/selectChange":{"type":"[values: string | number | Array<string | number>]","description":"勾选数据change事件"},"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-batch-edit/selectionCell":{"type":"string","description":"选中列"},"m-batch-edit/size":{"type":"'small' | 'large' | ''","description":"组件大小"},"m-batch-edit/tableData":{"type":"Record<string, any>[]","description":"表格数据"},"m-batch-edit/tableTitle":{"type":"TableTitle[]","description":"表格列配置"},"m-batch-edit/update:tableData":{"type":"[data: Record<string, any>[]]","description":""},"m-table/size":{"type":"'small' | 'large' | ''","description":""},"m-table/sole":{"type":"string","description":""},"m-table/data":{"type":"Record<string, any>[]","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/showSelectionCellStatus":{"type":"boolean","description":"显示单元格选中状态"},"m-table/selectionCell":{"type":"string","description":"选中列(必须showSelection为true)"},"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/update:selectionCell":{"type":"[string]","description":"选中单元格更新"},"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/drawerMode":{"type":"boolean","description":"抽屉模式"},"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/modelValue":{"type":"any","description":"选中项绑定值"},"m-select/update:modelValue":{"type":"[value: number | string | Array<number | string>]","description":""},"m-select/change":{"type":"[value: any]","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/selectChange":{"type":"[values: string | number | Array<string | number>]","description":"勾选数据change事件"},"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-batch-edit/selectionCell":{"type":"string","description":"选中列"},"m-batch-edit/size":{"type":"'small' | 'large' | ''","description":"组件大小"},"m-batch-edit/tableData":{"type":"Record<string, any>[]","description":"表格数据"},"m-batch-edit/tableTitle":{"type":"TableTitle[] | null","description":"表格列配置"},"m-batch-edit/relevancyTable":{"type":"InstanceType<typeof import('packages/MTable').MTable> | null","description":"关联表格(与tableTitle属性互斥,同时存在时只有tableTitle生效)"},"m-batch-edit/update:tableData":{"type":"[data: Record<string, any>[]]","description":""},"m-table/size":{"type":"'small' | 'large' | ''","description":""},"m-table/sole":{"type":"string","description":""},"m-table/data":{"type":"Record<string, any>[]","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/showSelectionCellStatus":{"type":"boolean","description":"显示单元格选中状态"},"m-table/selectionCell":{"type":"string","description":"选中列(必须showSelection为true)"},"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/update:selectionCell":{"type":"[string]","description":"选中单元格更新"},"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":""}}
|