br-dionysus 1.18.13 → 1.18.14
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 +8 -0
- package/attributes.json +1 -1
- package/dist/br-dionysus.es.d.ts +74 -10
- package/dist/br-dionysus.es.js +5152 -5138
- package/dist/br-dionysus.umd.js +6 -6
- package/dist/index.css +1 -1
- package/package.json +2 -2
- package/packages/MTable/docs/DemoTest9.vue +150 -0
- package/packages/MTable/docs/demo.vue +4 -0
- package/packages/MTable/src/MTable.vue +80 -3
- package/packages/MTableColumn/src/MTableColumn.vue +15 -19
- package/tags.json +1 -1
- package/web-types.json +1 -1
package/README.md
CHANGED
|
@@ -980,6 +980,9 @@ const options: Option[] = [{
|
|
|
980
980
|
|
|
981
981
|
<DemoTest8></DemoTest8>
|
|
982
982
|
<el-divider />
|
|
983
|
+
|
|
984
|
+
<DemoTest9></DemoTest9>
|
|
985
|
+
<el-divider />
|
|
983
986
|
</div>
|
|
984
987
|
</template>
|
|
985
988
|
|
|
@@ -992,6 +995,7 @@ import DemoTest5 from 'packages/MTable/docs/DemoTest5.vue'
|
|
|
992
995
|
import DemoTest6 from 'packages/MTable/docs/DemoTest6.vue'
|
|
993
996
|
import DemoTest7 from 'packages/MTable/docs/DemoTest7.vue'
|
|
994
997
|
import DemoTest8 from 'packages/MTable/docs/DemoTest8.vue'
|
|
998
|
+
import DemoTest9 from 'packages/MTable/docs/DemoTest9.vue'
|
|
995
999
|
</script>
|
|
996
1000
|
|
|
997
1001
|
<style lang="scss" scoped>
|
|
@@ -3655,6 +3659,9 @@ const options: Option[] = [{
|
|
|
3655
3659
|
|
|
3656
3660
|
<DemoTest8></DemoTest8>
|
|
3657
3661
|
<el-divider />
|
|
3662
|
+
|
|
3663
|
+
<DemoTest9></DemoTest9>
|
|
3664
|
+
<el-divider />
|
|
3658
3665
|
</div>
|
|
3659
3666
|
</template>
|
|
3660
3667
|
|
|
@@ -3667,6 +3674,7 @@ import DemoTest5 from 'packages/MTable/docs/DemoTest5.vue'
|
|
|
3667
3674
|
import DemoTest6 from 'packages/MTable/docs/DemoTest6.vue'
|
|
3668
3675
|
import DemoTest7 from 'packages/MTable/docs/DemoTest7.vue'
|
|
3669
3676
|
import DemoTest8 from 'packages/MTable/docs/DemoTest8.vue'
|
|
3677
|
+
import DemoTest9 from 'packages/MTable/docs/DemoTest9.vue'
|
|
3670
3678
|
</script>
|
|
3671
3679
|
|
|
3672
3680
|
<style lang="scss" scoped>
|
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 | boolean | Array<number | string | boolean>]","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":"{ label: string, value: string }","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/update:modelValue":{"type":"[value: string | number | boolean | Array<string | number | boolean>]","description":""},"m-select-table/selected":{"type":"[values: string | number | boolean | Array<string | number | boolean>, 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 | number | Array<string | number>]","description":"当没有使用filterMethod时候才会有回调否则没有"},"m-select-table/selectChange":{"type":"[values: string | number | Array<string | number>]","description":"勾选数据change事件,选中值不发生变化"},"m-select-table/clear":{"type":"[]","description":"用户点击清空按钮时触发"},"m-select-table/removeTag":{"type":"[value: any, index: number]","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('./../../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":"Record<string, Array<string | number>> | 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/selectionCell":{"type":"string | number | symbol","description":"选中列"},"m-table/summaryMethod":{"type":"((data: { columns: any[], data: any[] }) => string[]) | null","description":"自定义的合计计算方法"},"m-table/circleTotal":{"type":"boolean","description":"是否圈选合计"},"m-table/isCircleCopy":{"type":"boolean","description":"是否启用圈选复制"},"m-table/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: Record<string, any>,\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<Record<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 | number | symbol ]","description":"选中单元格更新"},"m-table/copyData":{"type":"[ data: { text: string, selection: { startX: number, startY: number, endX: number, endY: number } } ]","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/isBatchEdit":{"type":"boolean","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/expandColumnKey":{"type":"string","description":"展开列的key"},"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 | boolean | Array<number | string | boolean>]","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":"{ label: string, value: string }","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/update:modelValue":{"type":"[value: string | number | boolean | Array<string | number | boolean>]","description":""},"m-select-table/selected":{"type":"[values: string | number | boolean | Array<string | number | boolean>, 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 | number | Array<string | number>]","description":"当没有使用filterMethod时候才会有回调否则没有"},"m-select-table/selectChange":{"type":"[values: string | number | Array<string | number>]","description":"勾选数据change事件,选中值不发生变化"},"m-select-table/clear":{"type":"[]","description":"用户点击清空按钮时触发"},"m-select-table/removeTag":{"type":"[value: any, index: number]","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('./../../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":"Record<string, Array<string | number>> | 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/selectionCell":{"type":"string | number | symbol","description":"选中列"},"m-table/summaryMethod":{"type":"((data: { columns: any[], data: any[] }) => string[]) | null","description":"自定义的合计计算方法"},"m-table/circleTotal":{"type":"boolean","description":"是否圈选合计"},"m-table/isCircleCopy":{"type":"boolean","description":"是否启用圈选复制"},"m-table/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: Record<string, any>,\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<Record<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 | number | symbol ]","description":"选中单元格更新"},"m-table/copyData":{"type":"[ data: { text: string, selection: { startX: number, startY: number, endX: number, endY: number } } ]","description":"复制事件"},"m-table/sortChange":{"type":"[ data: { column: Record<string, any>, prop: string, order: any } ]","description":"当表格的排序条件发生变化的时候会触发该事件"},"m-table-column/filtersValue":{"type":"Record<string, Array<string | number>> | 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/isBatchEdit":{"type":"boolean","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/expandColumnKey":{"type":"string","description":"展开列的key"},"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":""}}
|
package/dist/br-dionysus.es.d.ts
CHANGED
|
@@ -397,10 +397,6 @@ declare interface FilterValue_2 {
|
|
|
397
397
|
[key: string]: Array<string | number>;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
declare interface FilterValue_3 {
|
|
401
|
-
[key: string]: Array<string | number>;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
400
|
/** 返回值 */
|
|
405
401
|
declare type GlobalEventManager = {
|
|
406
402
|
/** 注册行为 */
|
|
@@ -483,6 +479,11 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
483
479
|
endY: number;
|
|
484
480
|
};
|
|
485
481
|
}) => any) | undefined;
|
|
482
|
+
onSortChange?: ((data: {
|
|
483
|
+
column: Record<string, any>;
|
|
484
|
+
prop: string;
|
|
485
|
+
order: any;
|
|
486
|
+
}) => any) | undefined;
|
|
486
487
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
487
488
|
size: {
|
|
488
489
|
type: PropType<"" | "small" | "large">;
|
|
@@ -559,6 +560,11 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
559
560
|
endY: number;
|
|
560
561
|
};
|
|
561
562
|
}) => any) | undefined;
|
|
563
|
+
onSortChange?: ((data: {
|
|
564
|
+
column: Record<string, any>;
|
|
565
|
+
prop: string;
|
|
566
|
+
order: any;
|
|
567
|
+
}) => any) | undefined;
|
|
562
568
|
}, "size" | "data" | "tableConfig" | "filtersValue" | "tableConfigKey" | "sole" | "expandProp" | "expandRowKeys" | "rowKey" | "selectionCell" | "summaryMethod" | "circleTotal" | "isCircleCopy">;
|
|
563
569
|
$attrs: {
|
|
564
570
|
[x: string]: unknown;
|
|
@@ -584,6 +590,10 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
584
590
|
endX: number;
|
|
585
591
|
endY: number;
|
|
586
592
|
};
|
|
593
|
+
}) => void) & ((event: "sortChange", data: {
|
|
594
|
+
column: Record<string, any>;
|
|
595
|
+
prop: string;
|
|
596
|
+
order: any;
|
|
587
597
|
}) => void);
|
|
588
598
|
$el: any;
|
|
589
599
|
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
@@ -662,6 +672,11 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
662
672
|
endY: number;
|
|
663
673
|
};
|
|
664
674
|
}) => any) | undefined;
|
|
675
|
+
onSortChange?: ((data: {
|
|
676
|
+
column: Record<string, any>;
|
|
677
|
+
prop: string;
|
|
678
|
+
order: any;
|
|
679
|
+
}) => any) | undefined;
|
|
665
680
|
}, {
|
|
666
681
|
clearSelection: () => any;
|
|
667
682
|
getSelectionRows: () => any;
|
|
@@ -696,6 +711,11 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
696
711
|
endY: number;
|
|
697
712
|
};
|
|
698
713
|
}) => void;
|
|
714
|
+
sortChange: (data: {
|
|
715
|
+
column: Record<string, any>;
|
|
716
|
+
prop: string;
|
|
717
|
+
order: any;
|
|
718
|
+
}) => void;
|
|
699
719
|
}, string, {
|
|
700
720
|
size: "" | "small" | "large";
|
|
701
721
|
data: Record<string, any>[];
|
|
@@ -809,6 +829,11 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
809
829
|
endY: number;
|
|
810
830
|
};
|
|
811
831
|
}) => any) | undefined;
|
|
832
|
+
onSortChange?: ((data: {
|
|
833
|
+
column: Record<string, any>;
|
|
834
|
+
prop: string;
|
|
835
|
+
order: any;
|
|
836
|
+
}) => any) | undefined;
|
|
812
837
|
}, "sort" | "getTableTitle" | "clearSelection" | "getSelectionRows" | "toggleRowSelection" | "toggleAllSelection" | "toggleRowExpansion" | "setCurrentRow" | "clearSort" | "clearFilter" | "doLayout" | "scrollTo" | "setScrollTop" | "setScrollLeft"> & ShallowUnwrapRef<{
|
|
813
838
|
clearSelection: () => any;
|
|
814
839
|
getSelectionRows: () => any;
|
|
@@ -906,6 +931,11 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
906
931
|
endY: number;
|
|
907
932
|
};
|
|
908
933
|
}) => any) | undefined;
|
|
934
|
+
onSortChange?: ((data: {
|
|
935
|
+
column: Record<string, any>;
|
|
936
|
+
prop: string;
|
|
937
|
+
order: any;
|
|
938
|
+
}) => any) | undefined;
|
|
909
939
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
910
940
|
size: {
|
|
911
941
|
type: PropType<"" | "small" | "large">;
|
|
@@ -982,6 +1012,11 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
982
1012
|
endY: number;
|
|
983
1013
|
};
|
|
984
1014
|
}) => any) | undefined;
|
|
1015
|
+
onSortChange?: ((data: {
|
|
1016
|
+
column: Record<string, any>;
|
|
1017
|
+
prop: string;
|
|
1018
|
+
order: any;
|
|
1019
|
+
}) => any) | undefined;
|
|
985
1020
|
}, "size" | "data" | "tableConfig" | "filtersValue" | "tableConfigKey" | "sole" | "expandProp" | "expandRowKeys" | "rowKey" | "selectionCell" | "summaryMethod" | "circleTotal" | "isCircleCopy">;
|
|
986
1021
|
$attrs: {
|
|
987
1022
|
[x: string]: unknown;
|
|
@@ -1007,6 +1042,10 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
1007
1042
|
endX: number;
|
|
1008
1043
|
endY: number;
|
|
1009
1044
|
};
|
|
1045
|
+
}) => void) & ((event: "sortChange", data: {
|
|
1046
|
+
column: Record<string, any>;
|
|
1047
|
+
prop: string;
|
|
1048
|
+
order: any;
|
|
1010
1049
|
}) => void);
|
|
1011
1050
|
$el: any;
|
|
1012
1051
|
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
@@ -1085,6 +1124,11 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
1085
1124
|
endY: number;
|
|
1086
1125
|
};
|
|
1087
1126
|
}) => any) | undefined;
|
|
1127
|
+
onSortChange?: ((data: {
|
|
1128
|
+
column: Record<string, any>;
|
|
1129
|
+
prop: string;
|
|
1130
|
+
order: any;
|
|
1131
|
+
}) => any) | undefined;
|
|
1088
1132
|
}, {
|
|
1089
1133
|
clearSelection: () => any;
|
|
1090
1134
|
getSelectionRows: () => any;
|
|
@@ -1119,6 +1163,11 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
1119
1163
|
endY: number;
|
|
1120
1164
|
};
|
|
1121
1165
|
}) => void;
|
|
1166
|
+
sortChange: (data: {
|
|
1167
|
+
column: Record<string, any>;
|
|
1168
|
+
prop: string;
|
|
1169
|
+
order: any;
|
|
1170
|
+
}) => void;
|
|
1122
1171
|
}, string, {
|
|
1123
1172
|
size: "" | "small" | "large";
|
|
1124
1173
|
data: Record<string, any>[];
|
|
@@ -1232,6 +1281,11 @@ export declare const MBatchEdit: DefineComponent<__VLS_WithDefaults_5<__VLS_Type
|
|
|
1232
1281
|
endY: number;
|
|
1233
1282
|
};
|
|
1234
1283
|
}) => any) | undefined;
|
|
1284
|
+
onSortChange?: ((data: {
|
|
1285
|
+
column: Record<string, any>;
|
|
1286
|
+
prop: string;
|
|
1287
|
+
order: any;
|
|
1288
|
+
}) => any) | undefined;
|
|
1235
1289
|
}, "sort" | "getTableTitle" | "clearSelection" | "getSelectionRows" | "toggleRowSelection" | "toggleAllSelection" | "toggleRowExpansion" | "setCurrentRow" | "clearSort" | "clearFilter" | "doLayout" | "scrollTo" | "setScrollTop" | "setScrollLeft"> & ShallowUnwrapRef<{
|
|
1236
1290
|
clearSelection: () => any;
|
|
1237
1291
|
getSelectionRows: () => any;
|
|
@@ -2005,6 +2059,11 @@ export declare const MTable: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
|
|
|
2005
2059
|
endY: number;
|
|
2006
2060
|
};
|
|
2007
2061
|
}) => void;
|
|
2062
|
+
sortChange: (data: {
|
|
2063
|
+
column: Record<string, any>;
|
|
2064
|
+
prop: string;
|
|
2065
|
+
order: any;
|
|
2066
|
+
}) => void;
|
|
2008
2067
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
|
|
2009
2068
|
size?: "" | "small" | "large" | undefined;
|
|
2010
2069
|
sole?: string | undefined;
|
|
@@ -2070,6 +2129,11 @@ export declare const MTable: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
|
|
|
2070
2129
|
endY: number;
|
|
2071
2130
|
};
|
|
2072
2131
|
}) => any) | undefined;
|
|
2132
|
+
onSortChange?: ((data: {
|
|
2133
|
+
column: Record<string, any>;
|
|
2134
|
+
prop: string;
|
|
2135
|
+
order: any;
|
|
2136
|
+
}) => any) | undefined;
|
|
2073
2137
|
}, {
|
|
2074
2138
|
size: "" | "small" | "large";
|
|
2075
2139
|
data: Record<string, any>[];
|
|
@@ -2095,7 +2159,7 @@ export declare const MTable: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_Wit
|
|
|
2095
2159
|
|
|
2096
2160
|
export declare const MTableColumn: __VLS_WithTemplateSlots_4<DefineComponent<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<{
|
|
2097
2161
|
/** 列筛选过滤条件(当为null时,不显示筛选图标) */
|
|
2098
|
-
filtersValue?:
|
|
2162
|
+
filtersValue?: Record<string, (string | number)[]> | null | undefined;
|
|
2099
2163
|
/** 过滤选项 */
|
|
2100
2164
|
filters?: {
|
|
2101
2165
|
text: string | number;
|
|
@@ -2116,7 +2180,7 @@ export declare const MTableColumn: __VLS_WithTemplateSlots_4<DefineComponent<__V
|
|
|
2116
2180
|
"update:filtersValue": (...args: any[]) => void;
|
|
2117
2181
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_6<{
|
|
2118
2182
|
/** 列筛选过滤条件(当为null时,不显示筛选图标) */
|
|
2119
|
-
filtersValue?:
|
|
2183
|
+
filtersValue?: Record<string, (string | number)[]> | null | undefined;
|
|
2120
2184
|
/** 过滤选项 */
|
|
2121
2185
|
filters?: {
|
|
2122
2186
|
text: string | number;
|
|
@@ -2143,7 +2207,7 @@ export declare const MTableColumn: __VLS_WithTemplateSlots_4<DefineComponent<__V
|
|
|
2143
2207
|
}[];
|
|
2144
2208
|
filterMethod: Function | null;
|
|
2145
2209
|
isBatchEdit: boolean;
|
|
2146
|
-
filtersValue:
|
|
2210
|
+
filtersValue: Record<string, (string | number)[]> | null;
|
|
2147
2211
|
}, {}>, {
|
|
2148
2212
|
default?(_: any): any;
|
|
2149
2213
|
header?(_: any): any;
|
|
@@ -2216,7 +2280,7 @@ export declare const MTableV2: __VLS_WithTemplateSlots_9<DefineComponent<__VLS_W
|
|
|
2216
2280
|
/** 表格列配置 */
|
|
2217
2281
|
columns?: TableV2Title[] | undefined;
|
|
2218
2282
|
/** 表格内容筛选(当为null时,不显示筛选图标) */
|
|
2219
|
-
filtersValue?:
|
|
2283
|
+
filtersValue?: FilterValue_2 | null | undefined;
|
|
2220
2284
|
/** 表格配置 */
|
|
2221
2285
|
tableConfig?: TableConfig | null | undefined;
|
|
2222
2286
|
/** 表格配置key */
|
|
@@ -2281,7 +2345,7 @@ export declare const MTableV2: __VLS_WithTemplateSlots_9<DefineComponent<__VLS_W
|
|
|
2281
2345
|
/** 表格列配置 */
|
|
2282
2346
|
columns?: TableV2Title[] | undefined;
|
|
2283
2347
|
/** 表格内容筛选(当为null时,不显示筛选图标) */
|
|
2284
|
-
filtersValue?:
|
|
2348
|
+
filtersValue?: FilterValue_2 | null | undefined;
|
|
2285
2349
|
/** 表格配置 */
|
|
2286
2350
|
tableConfig?: TableConfig | null | undefined;
|
|
2287
2351
|
/** 表格配置key */
|
|
@@ -2334,7 +2398,7 @@ export declare const MTableV2: __VLS_WithTemplateSlots_9<DefineComponent<__VLS_W
|
|
|
2334
2398
|
fixed: boolean;
|
|
2335
2399
|
height: number;
|
|
2336
2400
|
tableConfig: TableConfig | null;
|
|
2337
|
-
filtersValue:
|
|
2401
|
+
filtersValue: FilterValue_2 | null;
|
|
2338
2402
|
columns: TableV2Title[];
|
|
2339
2403
|
border: boolean;
|
|
2340
2404
|
tableConfigKey: string;
|