@sdata/web-vue 1.11.1 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sd.css +177 -6
- package/dist/sd.min.css +1 -1
- package/es/_components/select-view/style/index.css +13 -6
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +2 -2
- package/es/_hooks/use-allow-search.d.ts +10 -0
- package/es/_hooks/use-allow-search.js +31 -0
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_utils/color.js +1 -1
- package/es/_utils/date.js +7 -1
- package/es/_utils/dom.js +1 -1
- package/es/_utils/global-config.js +1 -1
- package/es/_utils/omit.js +1 -1
- package/es/_utils/responsive-observe.js +1 -1
- package/es/_utils/virtual-dropdown.js +1 -1
- package/es/_utils/vue-utils.js +4 -18
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/asyncToGenerator.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/defineProperty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/extends.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectDestructuringEmpty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectSpread2.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutProperties.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPrimitive.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPropertyKey.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/typeof.js +1 -1
- package/es/affix/affix.vue_vue_type_script_lang.js +31 -3
- package/es/alert/alert.vue_vue_type_script_lang.js +55 -0
- package/es/anchor/anchor-link.vue_vue_type_script_lang.js +8 -0
- package/es/anchor/anchor.vue_vue_type_script_lang.js +32 -0
- package/es/auto-complete/auto-complete.js +102 -0
- package/es/avatar/avatar-group.js +31 -0
- package/es/avatar/avatar.vue_vue_type_script_lang.js +51 -1
- package/es/back-top/back-top.vue_vue_type_script_lang.js +16 -0
- package/es/badge/badge.js +34 -1
- package/es/breadcrumb/breadcrumb-item.js +27 -0
- package/es/breadcrumb/breadcrumb.js +39 -0
- package/es/button/button-group.vue_vue_type_script_lang.js +22 -0
- package/es/button/button.vue_vue_type_script_lang.js +58 -1
- package/es/calendar/calendar.js +47 -0
- package/es/calendar/month.js +1 -1
- package/es/calendar/year.js +1 -1
- package/es/card/card-grid.vue_vue_type_script_lang.js +6 -1
- package/es/card/card-meta.js +23 -0
- package/es/card/card.js +54 -0
- package/es/carousel/carousel.js +68 -1
- package/es/cascader/cascader-panel.js +2 -28
- package/es/cascader/cascader-panel.vue.d.ts +24 -306
- package/es/cascader/{cascader-panel.vue_vue_type_script_lang.js → cascader-panel.vue_vue_type_script_setup_true_lang.js} +92 -101
- package/es/cascader/cascader.js +2 -145
- package/es/cascader/cascader.vue.d.ts +53 -1289
- package/es/cascader/{cascader.vue_vue_type_script_lang.js → cascader.vue_vue_type_script_setup_true_lang.js} +236 -172
- package/es/cascader/index.d.ts +4 -2986
- package/es/cascader/types.d.ts +79 -0
- package/es/checkbox/checkbox-group.js +48 -0
- package/es/checkbox/checkbox.js +35 -0
- package/es/collapse/collapse-item.js +36 -0
- package/es/collapse/collapse.vue_vue_type_script_lang.js +47 -0
- package/es/color-picker/color-picker.js +90 -1
- package/es/color-picker/panel.js +5 -2
- package/es/color-picker/utils.js +1 -1
- package/es/comment/comment.js +47 -1
- package/es/components.d.ts +132 -127
- package/es/config-provider/config-provider.vue.d.ts +9 -0
- package/es/config-provider/config-provider.vue_vue_type_script_lang.js +72 -1
- package/es/config-provider/context.d.ts +1 -0
- package/es/config-provider/index.d.ts +15 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/theme.js +1 -1
- package/es/copy/copy.js +5 -0
- package/es/copy/copy.vue.d.ts +15 -0
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +95 -0
- package/es/copy/index.d.ts +15 -0
- package/es/copy/index.js +10 -0
- package/es/copy/style/css.js +2 -0
- package/es/copy/style/index.css +25 -0
- package/es/copy/style/index.d.ts +2 -0
- package/es/copy/style/index.js +2 -0
- package/es/copy/style/index.scss +15 -0
- package/es/copy/style/token.scss +3 -0
- package/es/copy/types.d.ts +21 -0
- package/es/cropper/cropper.js +5 -0
- package/es/cropper/cropper.vue.d.ts +45 -0
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +266 -0
- package/es/cropper/index.d.ts +130 -0
- package/es/cropper/index.js +10 -0
- package/es/cropper/interface.d.ts +59 -0
- package/es/cropper/style/css.js +2 -0
- package/es/cropper/style/index.css +51 -0
- package/es/cropper/style/index.d.ts +2 -0
- package/es/cropper/style/index.js +2 -0
- package/es/cropper/style/index.scss +43 -0
- package/es/cropper/style/token.scss +8 -0
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/index.d.ts +54 -576
- package/es/date-picker/panels/date/index.js +1 -1
- package/es/date-picker/panels/date/index.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/footer.vue.d.ts +55 -577
- package/es/date-picker/panels/footer.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/month/index.js +1 -1
- package/es/date-picker/panels/quarter/index.js +1 -1
- package/es/date-picker/panels/year/index.js +1 -1
- package/es/date-picker/picker-panel.vue.d.ts +54 -576
- package/es/date-picker/picker.js +1 -1
- package/es/date-picker/picker.vue.d.ts +54 -576
- package/es/date-picker/picker.vue_vue_type_script_lang.js +193 -1
- package/es/date-picker/pickers/date-picker.js +42 -0
- package/es/date-picker/pickers/month-picker.js +12 -0
- package/es/date-picker/pickers/quarter-picker.js +17 -0
- package/es/date-picker/pickers/week-picker.js +23 -0
- package/es/date-picker/pickers/year-picker.js +12 -0
- package/es/date-picker/range-picker-panel.vue.d.ts +54 -576
- package/es/date-picker/range-picker-panel.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/range-picker.js +1 -1
- package/es/date-picker/range-picker.vue.d.ts +54 -576
- package/es/date-picker/range-picker.vue_vue_type_script_lang.js +120 -1
- package/es/descriptions/descriptions-item.vue_vue_type_script_lang.js +16 -0
- package/es/descriptions/descriptions.js +65 -1
- package/es/divider/divider.js +24 -0
- package/es/drawer/drawer.vue_vue_type_script_lang.js +161 -2
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue_vue_type_script_lang.js +70 -0
- package/es/dropdown/dropdown-group.vue_vue_type_script_lang.js +12 -1
- package/es/dropdown/dropdown-option.vue_vue_type_script_lang.js +20 -1
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_lang.js +57 -0
- package/es/dropdown/dropdown.vue_vue_type_script_lang.js +55 -0
- package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +25 -2
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +24 -1
- package/es/empty/empty.js +18 -0
- package/es/form/form-item.vue_vue_type_script_lang.js +146 -3
- package/es/form/form.vue_vue_type_script_lang.js +108 -0
- package/es/grid/grid-col.vue_vue_type_script_lang.js +42 -1
- package/es/grid/grid-item.vue_vue_type_script_lang.js +13 -1
- package/es/grid/grid-row.vue_vue_type_script_lang.js +21 -0
- package/es/grid/grid.vue_vue_type_script_lang.js +20 -0
- package/es/icon.js +5 -5
- package/es/image/image.js +1 -1
- package/es/image/image.vue_vue_type_script_lang.js +82 -0
- package/es/image/preview-action.js +8 -0
- package/es/image/preview-group.js +1 -1
- package/es/image/preview-group.vue_vue_type_script_lang.js +48 -0
- package/es/image/preview-toolbar.vue_vue_type_script_lang.js +1 -0
- package/es/image/preview.vue_vue_type_script_lang.js +56 -1
- package/es/index.css +177 -6
- package/es/index.d.ts +9 -1
- package/es/index.js +6 -2
- package/es/index.scss +4 -0
- package/es/input/input-password.vue_vue_type_script_lang.js +13 -0
- package/es/input/input-search.js +35 -1
- package/es/input/input.js +129 -1
- package/es/input-number/index.d.ts +35 -23
- package/es/input-number/input-number.d.ts +19 -10
- package/es/input-number/input-number.js +205 -23
- package/es/input-tag/input-tag.js +137 -1
- package/es/input-tag/style/index.css +13 -6
- package/es/input-tag/utils.js +1 -1
- package/es/layout/content.js +5 -0
- package/es/layout/footer.js +5 -0
- package/es/layout/header.js +5 -0
- package/es/layout/layout.vue_vue_type_script_lang.js +6 -1
- package/es/layout/sider.vue_vue_type_script_lang.js +46 -0
- package/es/link/index.d.ts +44 -564
- package/es/link/interface.d.ts +15 -0
- package/es/link/link.js +2 -17
- package/es/link/link.vue.d.ts +31 -286
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +112 -0
- package/es/link/style/index.css +6 -0
- package/es/link/style/index.scss +10 -0
- package/es/list/list-item-meta.vue_vue_type_script_lang.js +23 -0
- package/es/list/list-item.js +21 -1
- package/es/list/list.js +104 -2
- package/es/mention/mention.js +87 -1
- package/es/menu/base-menu.vue_vue_type_script_lang.js +102 -0
- package/es/menu/item-group.vue_vue_type_script_lang.js +11 -1
- package/es/menu/item.d.ts +1 -1
- package/es/menu/item.js +13 -2
- package/es/menu/menu.js +2 -1
- package/es/menu/sub-menu-pop.vue.d.ts +1 -1
- package/es/menu/sub-menu.js +40 -1
- package/es/message/index.js +1 -1
- package/es/modal/index.js +2 -2
- package/es/modal/modal.vue_vue_type_script_lang.js +193 -2
- package/es/notification/index.js +1 -1
- package/es/overflow-list/overflow-list.js +25 -1
- package/es/page-header/page-header.vue_vue_type_script_lang.js +38 -0
- package/es/pagination/page-jumper.vue.d.ts +35 -22
- package/es/pagination/pagination.js +122 -0
- package/es/popconfirm/popconfirm.vue_vue_type_script_lang.js +95 -1
- package/es/popover/popover.vue_vue_type_script_lang.js +62 -0
- package/es/progress/line.vue_vue_type_script_lang.js +1 -1
- package/es/progress/progress.vue_vue_type_script_lang.js +48 -0
- package/es/radio/radio-group.js +53 -0
- package/es/radio/radio.js +36 -0
- package/es/rate/rate.js +54 -0
- package/es/resize-box/resize-box.vue_vue_type_script_lang.js +47 -1
- package/es/result/result.vue_vue_type_script_lang.js +40 -0
- package/es/scrollbar/scrollbar.vue_vue_type_script_lang.js +108 -2
- package/es/sd-vue.js +10 -2
- package/es/secret/index.d.ts +48 -0
- package/es/secret/index.js +10 -0
- package/es/secret/secret.js +5 -0
- package/es/secret/secret.vue.d.ts +17 -0
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +64 -0
- package/es/secret/style/css.js +2 -0
- package/es/secret/style/index.css +54 -0
- package/es/secret/style/index.d.ts +2 -0
- package/es/secret/style/index.js +2 -0
- package/es/secret/style/index.scss +48 -0
- package/es/secret/style/token.scss +9 -0
- package/es/select/hooks/use-options.js +1 -1
- package/es/select/optgroup.vue_vue_type_script_lang.js +12 -1
- package/es/select/option.vue_vue_type_script_lang.js +27 -0
- package/es/select/select.js +8 -6
- package/es/select/utils.js +1 -1
- package/es/skeleton/line.vue_vue_type_script_lang.js +16 -0
- package/es/skeleton/shape.vue_vue_type_script_lang.js +10 -0
- package/es/skeleton/skeleton.vue_vue_type_script_lang.js +8 -0
- package/es/slider/index.d.ts +66 -42
- package/es/slider/slider-input.vue.d.ts +33 -21
- package/es/slider/slider.vue.d.ts +33 -21
- package/es/slider/slider.vue_vue_type_script_lang.js +55 -0
- package/es/space/space.js +27 -0
- package/es/spin/spin.js +35 -0
- package/es/split/split.vue_vue_type_script_lang.js +62 -1
- package/es/statistic/countdown.vue_vue_type_script_lang.js +36 -1
- package/es/statistic/statistic.vue_vue_type_script_lang.js +74 -0
- package/es/steps/step.vue_vue_type_script_lang.js +36 -0
- package/es/steps/steps.vue_vue_type_script_lang.js +47 -0
- package/es/switch/switch.vue_vue_type_script_lang.js +98 -1
- package/es/table/table-column.js +115 -0
- package/es/table/table-operation-td.js +1 -1
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-td.js +1 -1
- package/es/table/table-th.js +1 -1
- package/es/table/table.js +442 -3
- package/es/table/utils.js +1 -1
- package/es/tabs/tab-pane.vue_vue_type_script_lang.js +23 -1
- package/es/tabs/tabs.js +104 -0
- package/es/tag/index.d.ts +29237 -74
- package/es/tag/interface.d.ts +9 -1
- package/es/tag/style/index.css +13 -6
- package/es/tag/style/index.scss +16 -4
- package/es/tag/tag.js +26 -5
- package/es/tag/tag.vue.d.ts +11688 -7
- package/es/tag/tag.vue_vue_type_script_lang.js +139 -3
- package/es/tag-group/index.d.ts +64 -0
- package/es/tag-group/index.js +10 -0
- package/es/tag-group/interface.d.ts +18 -0
- package/es/tag-group/style/css.js +2 -0
- package/es/tag-group/style/index.css +92 -0
- package/es/tag-group/style/index.d.ts +2 -0
- package/es/tag-group/style/index.js +2 -0
- package/es/tag-group/style/index.scss +108 -0
- package/es/tag-group/style/token.scss +6 -0
- package/es/tag-group/tag-group.js +5 -0
- package/es/tag-group/tag-group.vue.d.ts +46 -0
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +360 -0
- package/es/textarea/textarea.vue_vue_type_script_lang.js +90 -1
- package/es/time-picker/range-panel.js +1 -1
- package/es/time-picker/time-picker.js +1 -1
- package/es/time-picker/time-picker.vue_vue_type_script_lang.js +132 -0
- package/es/timeline/item.vue_vue_type_script_lang.js +38 -1
- package/es/timeline/timeline.js +28 -0
- package/es/tooltip/tooltip.vue_vue_type_script_lang.js +61 -1
- package/es/transfer/transfer.vue_vue_type_script_lang.js +136 -0
- package/es/tree/base-node.vue_vue_type_script_lang.js +7 -0
- package/es/tree/node.js +1 -1
- package/es/tree/tree.vue_vue_type_script_lang.js +287 -2
- package/es/tree/utils/tree-data.js +1 -1
- package/es/tree-select/hooks/use-selected-state.js +1 -1
- package/es/tree-select/panel.js +1 -1
- package/es/tree-select/tree-select.js +1 -1
- package/es/tree-select/tree-select.vue_vue_type_script_lang.js +281 -8
- package/es/trigger/trigger.js +161 -1
- package/es/trigger/utils.js +1 -1
- package/es/typography/base.d.ts +7 -0
- package/es/typography/base.js +127 -3
- package/es/typography/interface.d.ts +2 -0
- package/es/typography/operations.js +30 -0
- package/es/typography/paragraph.js +8 -0
- package/es/typography/title.js +6 -1
- package/es/upload/upload.js +279 -2
- package/es/verification-code/verification-code.js +59 -0
- package/es/watermark/hooks/use-mutation-observer.js +1 -1
- package/es/watermark/watermark.js +58 -1
- package/es/web-vue.css +24 -24
- package/json/vetur-attributes.json +134 -218
- package/json/vetur-tags.json +58 -67
- package/json/web-types.json +304 -493
- package/package.json +9 -7
- package/es/_utils/clipboard.d.ts +0 -1
- package/es/_utils/clipboard.js +0 -35
- package/es/link/link.vue_vue_type_script_lang.js +0 -56
package/es/table/table.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isArray, isFunction, isNull, isNumber, isObject, isString, isUndefined } from "../_utils/is.js";
|
|
5
|
-
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.
|
|
5
|
+
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
|
|
6
6
|
import virtual_list_default from "../_components/virtual-list/index.js";
|
|
7
7
|
import { omit } from "../_utils/omit.js";
|
|
8
8
|
import { useComponentRef } from "../_hooks/use-component-ref.js";
|
|
@@ -10,7 +10,7 @@ import { useScrollbar } from "../_hooks/use-scrollbar.js";
|
|
|
10
10
|
import Empty from "../empty/index.js";
|
|
11
11
|
import Scrollbar from "../scrollbar/index.js";
|
|
12
12
|
import Spin from "../spin/index.js";
|
|
13
|
-
import { _objectWithoutProperties } from "../_virtual/_@oxc-project_runtime@0.
|
|
13
|
+
import { _objectWithoutProperties } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectWithoutProperties.js";
|
|
14
14
|
import { debounce } from "../_utils/debounce.js";
|
|
15
15
|
import { useChildrenComponents } from "../_hooks/use-children-components.js";
|
|
16
16
|
import IconMinus from "../icon/icon-minus/index.js";
|
|
@@ -63,26 +63,52 @@ var DEFAULT_BORDERED = {
|
|
|
63
63
|
var table_default = /* @__PURE__ */ defineComponent({
|
|
64
64
|
name: "Table",
|
|
65
65
|
props: {
|
|
66
|
+
/**
|
|
67
|
+
* @zh 表格的列描述信息
|
|
68
|
+
* @en Column info of the table
|
|
69
|
+
*/
|
|
66
70
|
columns: {
|
|
67
71
|
type: Array,
|
|
68
72
|
default: () => []
|
|
69
73
|
},
|
|
74
|
+
/**
|
|
75
|
+
* @zh 表格的数据
|
|
76
|
+
* @en Table data
|
|
77
|
+
*/
|
|
70
78
|
data: {
|
|
71
79
|
type: Array,
|
|
72
80
|
default: () => []
|
|
73
81
|
},
|
|
82
|
+
/**
|
|
83
|
+
* @zh 是否显示边框
|
|
84
|
+
* @en Whether to show the border
|
|
85
|
+
*/
|
|
74
86
|
bordered: {
|
|
75
87
|
type: [Boolean, Object],
|
|
76
88
|
default: true
|
|
77
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* @zh 是否显示选中效果
|
|
92
|
+
* @en Whether to show the hover effect
|
|
93
|
+
*/
|
|
78
94
|
hoverable: {
|
|
79
95
|
type: Boolean,
|
|
80
96
|
default: true
|
|
81
97
|
},
|
|
98
|
+
/**
|
|
99
|
+
* @zh 是否开启斑马纹效果
|
|
100
|
+
* @en Whether to enable the stripe effect
|
|
101
|
+
*/
|
|
82
102
|
stripe: {
|
|
83
103
|
type: Boolean,
|
|
84
104
|
default: false
|
|
85
105
|
},
|
|
106
|
+
/**
|
|
107
|
+
* @zh 表格的大小
|
|
108
|
+
* @en The size of the table
|
|
109
|
+
* @values 'mini','small','medium','large'
|
|
110
|
+
* @defaultValue 'large'
|
|
111
|
+
*/
|
|
86
112
|
size: {
|
|
87
113
|
type: String,
|
|
88
114
|
default: () => {
|
|
@@ -90,76 +116,208 @@ var table_default = /* @__PURE__ */ defineComponent({
|
|
|
90
116
|
return (_inject$size = (_inject = inject(configProviderInjectionKey, void 0)) === null || _inject === void 0 ? void 0 : _inject.size) !== null && _inject$size !== void 0 ? _inject$size : "large";
|
|
91
117
|
}
|
|
92
118
|
},
|
|
119
|
+
/**
|
|
120
|
+
* @zh 是否为加载中状态
|
|
121
|
+
* @en Whether it is loading state
|
|
122
|
+
*/
|
|
93
123
|
loading: {
|
|
94
124
|
type: [Boolean, Object],
|
|
95
125
|
default: false
|
|
96
126
|
},
|
|
127
|
+
/**
|
|
128
|
+
* @zh 表格的行选择器配置
|
|
129
|
+
* @en Table row selector configuration
|
|
130
|
+
*/
|
|
97
131
|
rowSelection: { type: Object },
|
|
132
|
+
/**
|
|
133
|
+
* @zh 表格的展开行配置
|
|
134
|
+
* @en Expand row configuration of the table
|
|
135
|
+
*/
|
|
98
136
|
expandable: { type: Object },
|
|
137
|
+
/**
|
|
138
|
+
* @zh 表格的滚动属性配置。`2.13.0` 版本增加字符型值的支持。`2.20.0` 版本增加 `minWidth`,`maxHeight` 的支持。
|
|
139
|
+
* @en Scrolling attribute configuration of the table. The `2.13.0` version adds support for character values. `2.20.0` version adds support for `minWidth`, `maxHeight`.
|
|
140
|
+
*/
|
|
99
141
|
scroll: { type: Object },
|
|
142
|
+
/**
|
|
143
|
+
* @zh 分页的属性配置
|
|
144
|
+
* @en Pagination properties configuration
|
|
145
|
+
*/
|
|
100
146
|
pagination: {
|
|
101
147
|
type: [Boolean, Object],
|
|
102
148
|
default: true
|
|
103
149
|
},
|
|
150
|
+
/**
|
|
151
|
+
* @zh 分页选择器的位置
|
|
152
|
+
* @en The position of the page selector
|
|
153
|
+
* @values 'tl','top',tr','bl','bottom','br'
|
|
154
|
+
*/
|
|
104
155
|
pagePosition: {
|
|
105
156
|
type: String,
|
|
106
157
|
default: "br"
|
|
107
158
|
},
|
|
159
|
+
/**
|
|
160
|
+
* @zh 树形表格的缩进距离
|
|
161
|
+
* @en The indentation distance of the tree table
|
|
162
|
+
*/
|
|
108
163
|
indentSize: {
|
|
109
164
|
type: Number,
|
|
110
165
|
default: 16
|
|
111
166
|
},
|
|
167
|
+
/**
|
|
168
|
+
* @zh 表格行 `key` 的取值字段
|
|
169
|
+
* @en Value field of table row `key`
|
|
170
|
+
*/
|
|
112
171
|
rowKey: {
|
|
113
172
|
type: [String, Function],
|
|
114
173
|
default: "key"
|
|
115
174
|
},
|
|
175
|
+
/**
|
|
176
|
+
* @zh 是否显示表头
|
|
177
|
+
* @en Whether to show the header
|
|
178
|
+
*/
|
|
116
179
|
showHeader: {
|
|
117
180
|
type: Boolean,
|
|
118
181
|
default: true
|
|
119
182
|
},
|
|
183
|
+
/**
|
|
184
|
+
* @zh 传递虚拟列表属性,传入此参数以开启虚拟滚动 [VirtualListProps](#VirtualListProps)
|
|
185
|
+
* @en Pass the virtual list attribute, pass in this parameter to turn on virtual scrolling [VirtualListProps](#VirtualListProps)
|
|
186
|
+
* @type VirtualListProps
|
|
187
|
+
*/
|
|
120
188
|
virtualListProps: { type: Object },
|
|
189
|
+
/**
|
|
190
|
+
* @zh 单元格合并方法(索引从数据项开始计数)
|
|
191
|
+
* @en Cell merge method (The index starts counting from the data item)
|
|
192
|
+
* @version 2.10.0
|
|
193
|
+
*/
|
|
121
194
|
spanMethod: { type: Function },
|
|
195
|
+
/**
|
|
196
|
+
* @zh 是否让合并方法的索引包含所有
|
|
197
|
+
* @en Whether to make the index of the span method contain all
|
|
198
|
+
* @version 2.18.0
|
|
199
|
+
*/
|
|
122
200
|
spanAll: {
|
|
123
201
|
type: Boolean,
|
|
124
202
|
default: false
|
|
125
203
|
},
|
|
126
204
|
components: { type: Object },
|
|
205
|
+
/**
|
|
206
|
+
* @zh 数据懒加载函数,传入时开启懒加载功能
|
|
207
|
+
* @en Data lazy loading function, open the lazy loading function when it is passed in
|
|
208
|
+
* @version 2.13.0
|
|
209
|
+
*/
|
|
127
210
|
loadMore: { type: Function },
|
|
211
|
+
/**
|
|
212
|
+
* @zh 筛选图标是否左对齐
|
|
213
|
+
* @en Whether the filter icon is aligned to the left
|
|
214
|
+
* @version 2.13.0
|
|
215
|
+
*/
|
|
128
216
|
filterIconAlignLeft: {
|
|
129
217
|
type: Boolean,
|
|
130
218
|
default: false
|
|
131
219
|
},
|
|
220
|
+
/**
|
|
221
|
+
* @zh 是否在子树为空时隐藏展开按钮
|
|
222
|
+
* @en Whether to hide expand button when subtree is empty
|
|
223
|
+
* @version 2.14.0
|
|
224
|
+
*/
|
|
132
225
|
hideExpandButtonOnEmpty: {
|
|
133
226
|
type: Boolean,
|
|
134
227
|
default: false
|
|
135
228
|
},
|
|
229
|
+
/**
|
|
230
|
+
* @zh 表格行元素的类名。`2.34.0` 版本增加函数值支持
|
|
231
|
+
* @en The class name of the table row element. The `2.34.0` version adds support for function values.
|
|
232
|
+
* @version 2.16.0
|
|
233
|
+
*/
|
|
136
234
|
rowClass: { type: [
|
|
137
235
|
String,
|
|
138
236
|
Array,
|
|
139
237
|
Object,
|
|
140
238
|
Function
|
|
141
239
|
] },
|
|
240
|
+
/**
|
|
241
|
+
* @zh 表格拖拽排序的配置
|
|
242
|
+
* @en Table drag and drop sorting configuration
|
|
243
|
+
* @version 2.16.0
|
|
244
|
+
*/
|
|
142
245
|
draggable: { type: Object },
|
|
143
246
|
rowNumber: { type: [Boolean, Object] },
|
|
247
|
+
/**
|
|
248
|
+
* @zh 是否允许调整列宽
|
|
249
|
+
* @en Whether to allow the column width to be adjusted
|
|
250
|
+
* @version 2.16.0
|
|
251
|
+
*/
|
|
144
252
|
columnResizable: { type: Boolean },
|
|
253
|
+
/**
|
|
254
|
+
* @zh 显示表尾总结行
|
|
255
|
+
* @en Show footer summary row
|
|
256
|
+
* @version 2.21.0
|
|
257
|
+
*/
|
|
145
258
|
summary: { type: [Boolean, Function] },
|
|
259
|
+
/**
|
|
260
|
+
* @zh 总结行的首列文字
|
|
261
|
+
* @en The first column of text in the summary line
|
|
262
|
+
* @version 2.21.0
|
|
263
|
+
*/
|
|
146
264
|
summaryText: {
|
|
147
265
|
type: String,
|
|
148
266
|
default: "Summary"
|
|
149
267
|
},
|
|
268
|
+
/**
|
|
269
|
+
* @zh 总结行的单元格合并方法
|
|
270
|
+
* @en Cell Merge Method for Summarizing Rows
|
|
271
|
+
* @version 2.21.0
|
|
272
|
+
*/
|
|
150
273
|
summarySpanMethod: { type: Function },
|
|
274
|
+
/**
|
|
275
|
+
* @zh 已选择的行(受控模式)优先于 `rowSelection`
|
|
276
|
+
* @en Selected row (controlled mode) takes precedence over `rowSelection`
|
|
277
|
+
* @version 2.25.0
|
|
278
|
+
*/
|
|
151
279
|
selectedKeys: { type: Array },
|
|
280
|
+
/**
|
|
281
|
+
* @zh 默认已选择的行(非受控模式)优先于 `rowSelection`
|
|
282
|
+
* @en The selected row by default (uncontrolled mode) takes precedence over `rowSelection`
|
|
283
|
+
* @version 2.25.0
|
|
284
|
+
*/
|
|
152
285
|
defaultSelectedKeys: { type: Array },
|
|
286
|
+
/**
|
|
287
|
+
* @zh 显示的展开行、子树(受控模式)优先于 `expandable`
|
|
288
|
+
* @en Displayed Expanded Row, Subtree (Controlled Mode) takes precedence over `expandable`
|
|
289
|
+
* @version 2.25.0
|
|
290
|
+
*/
|
|
153
291
|
expandedKeys: { type: Array },
|
|
292
|
+
/**
|
|
293
|
+
* @zh 默认显示的展开行、子树(非受控模式)优先于 `expandable`
|
|
294
|
+
* @en Expand row, Subtree displayed by default (Uncontrolled mode) takes precedence over `expandable`
|
|
295
|
+
* @version 2.25.0
|
|
296
|
+
*/
|
|
154
297
|
defaultExpandedKeys: { type: Array },
|
|
298
|
+
/**
|
|
299
|
+
* @zh 是否默认展开所有的行
|
|
300
|
+
* @en Whether to expand all rows by default
|
|
301
|
+
* @version 2.25.0
|
|
302
|
+
*/
|
|
155
303
|
defaultExpandAllRows: {
|
|
156
304
|
type: Boolean,
|
|
157
305
|
default: false
|
|
158
306
|
},
|
|
307
|
+
/**
|
|
308
|
+
* @zh 是否开启表头吸顶
|
|
309
|
+
* @en Whether to open the sticky header
|
|
310
|
+
* @version 2.30.0
|
|
311
|
+
*/
|
|
159
312
|
stickyHeader: {
|
|
160
313
|
type: [Boolean, Number],
|
|
161
314
|
default: false
|
|
162
315
|
},
|
|
316
|
+
/**
|
|
317
|
+
* @zh 是否开启虚拟滚动条
|
|
318
|
+
* @en Whether to enable virtual scroll bar
|
|
319
|
+
* @version 2.38.0
|
|
320
|
+
*/
|
|
163
321
|
scrollbar: {
|
|
164
322
|
type: [Object, Boolean],
|
|
165
323
|
default: true
|
|
@@ -168,6 +326,11 @@ var table_default = /* @__PURE__ */ defineComponent({
|
|
|
168
326
|
type: Boolean,
|
|
169
327
|
default: false
|
|
170
328
|
},
|
|
329
|
+
/**
|
|
330
|
+
* @zh 是否展示空子树
|
|
331
|
+
* @en Whether to display empty subtrees
|
|
332
|
+
* @version 2.51.0
|
|
333
|
+
*/
|
|
171
334
|
showEmptyTree: {
|
|
172
335
|
type: Boolean,
|
|
173
336
|
default: false
|
|
@@ -176,27 +339,247 @@ var table_default = /* @__PURE__ */ defineComponent({
|
|
|
176
339
|
emits: {
|
|
177
340
|
"update:selectedKeys": (_rowKeys) => true,
|
|
178
341
|
"update:expandedKeys": (_rowKeys) => true,
|
|
342
|
+
/**
|
|
343
|
+
* @zh 点击展开行时触发
|
|
344
|
+
* @en Triggered when a row is clicked to expand
|
|
345
|
+
* @param {string | number} rowKey
|
|
346
|
+
* @param {TableData} record
|
|
347
|
+
*/
|
|
179
348
|
"expand": (_rowKey, _record) => true,
|
|
349
|
+
/**
|
|
350
|
+
* @zh 已展开的数据行发生改变时触发
|
|
351
|
+
* @en Triggered when the expanded data row changes
|
|
352
|
+
* @param {(string | number)[]} rowKeys
|
|
353
|
+
*/
|
|
180
354
|
"expandedChange": (_rowKeys) => true,
|
|
355
|
+
/**
|
|
356
|
+
* @zh 点击行选择器时触发
|
|
357
|
+
* @en Triggered when the row selector is clicked
|
|
358
|
+
* @param {string | number[]} rowKeys
|
|
359
|
+
* @param {string | number} rowKey
|
|
360
|
+
* @param {TableData} record
|
|
361
|
+
*/
|
|
181
362
|
"select": (_rowKeys, _rowKey, _record) => true,
|
|
363
|
+
/**
|
|
364
|
+
* @zh 点击全选选择器时触发
|
|
365
|
+
* @en Triggered when the select all selector is clicked
|
|
366
|
+
* @param {boolean} checked
|
|
367
|
+
*/
|
|
182
368
|
"selectAll": (_checked) => true,
|
|
369
|
+
/**
|
|
370
|
+
* @zh 已选择的数据行发生改变时触发
|
|
371
|
+
* @en Triggered when the selected data row changes
|
|
372
|
+
* @param {(string | number)[]} rowKeys
|
|
373
|
+
*/
|
|
183
374
|
"selectionChange": (_rowKeys) => true,
|
|
375
|
+
/**
|
|
376
|
+
* @zh 排序规则发生改变时触发
|
|
377
|
+
* @en Triggered when the collation changes
|
|
378
|
+
* @param {string} dataIndex
|
|
379
|
+
* @param {string} direction
|
|
380
|
+
*/
|
|
184
381
|
"sorterChange": (_dataIndex, _direction) => true,
|
|
382
|
+
/**
|
|
383
|
+
* @zh 过滤选项发生改变时触发
|
|
384
|
+
* @en Triggered when the filter options are changed
|
|
385
|
+
* @param {string} dataIndex
|
|
386
|
+
* @param {string[]} filteredValues
|
|
387
|
+
*/
|
|
185
388
|
"filterChange": (_dataIndex, _filteredValues) => true,
|
|
389
|
+
/**
|
|
390
|
+
* @zh 表格分页发生改变时触发
|
|
391
|
+
* @en Triggered when the table pagination changes
|
|
392
|
+
* @param {number} page
|
|
393
|
+
*/
|
|
186
394
|
"pageChange": (_page) => true,
|
|
395
|
+
/**
|
|
396
|
+
* @zh 表格每页数据数量发生改变时触发
|
|
397
|
+
* @en Triggered when the number of data per page of the table changes
|
|
398
|
+
* @param {number} pageSize
|
|
399
|
+
*/
|
|
187
400
|
"pageSizeChange": (_pageSize) => true,
|
|
401
|
+
/**
|
|
402
|
+
* @zh 表格数据发生变化时触发
|
|
403
|
+
* @en Triggered when table data changes
|
|
404
|
+
* @param {TableData[]} data
|
|
405
|
+
* @param {TableChangeExtra} extra
|
|
406
|
+
* @param {TableData[]} currentData
|
|
407
|
+
* @version 2.40.0 增加 currentData
|
|
408
|
+
*/
|
|
188
409
|
"change": (_data, _extra, _currentData) => true,
|
|
410
|
+
/**
|
|
411
|
+
* @zh 单元格 hover 进入时触发
|
|
412
|
+
* @en Triggered when hovering into a cell
|
|
413
|
+
* @param {TableData} record
|
|
414
|
+
* @param {TableColumnData} column
|
|
415
|
+
* @param {Event} ev
|
|
416
|
+
*/
|
|
189
417
|
"cellMouseEnter": (_record, _column, _ev) => true,
|
|
418
|
+
/**
|
|
419
|
+
* @zh 单元格 hover 退出时触发
|
|
420
|
+
* @en Triggered when hovering out of a cell
|
|
421
|
+
* @param {TableData} record
|
|
422
|
+
* @param {TableColumnData} column
|
|
423
|
+
* @param {Event} ev
|
|
424
|
+
*/
|
|
190
425
|
"cellMouseLeave": (_record, _column, _ev) => true,
|
|
426
|
+
/**
|
|
427
|
+
* @zh 点击单元格时触发
|
|
428
|
+
* @en Triggered when a cell is clicked
|
|
429
|
+
* @param {TableData} record
|
|
430
|
+
* @param {TableColumnData} column
|
|
431
|
+
* @param {Event} ev
|
|
432
|
+
*/
|
|
191
433
|
"cellClick": (_record, _column, _ev) => true,
|
|
434
|
+
/**
|
|
435
|
+
* @zh 点击行数据时触发
|
|
436
|
+
* @en Triggered when row data is clicked
|
|
437
|
+
* @param {TableData} record
|
|
438
|
+
* @param {Event} ev
|
|
439
|
+
*/
|
|
192
440
|
"rowClick": (_record, _ev) => true,
|
|
441
|
+
/**
|
|
442
|
+
* @zh 点击表头数据时触发
|
|
443
|
+
* @en Triggered when the header data is clicked
|
|
444
|
+
* @param {TableColumnData} column
|
|
445
|
+
* @param {Event} ev
|
|
446
|
+
*/
|
|
193
447
|
"headerClick": (_column, _ev) => true,
|
|
448
|
+
/**
|
|
449
|
+
* @zh 调整列宽时触发
|
|
450
|
+
* @en Triggered when column width is adjusted
|
|
451
|
+
* @param {string} dataIndex
|
|
452
|
+
* @param {number} width
|
|
453
|
+
* @version 2.28.0
|
|
454
|
+
*/
|
|
194
455
|
"columnResize": (_dataIndex, _width) => true,
|
|
456
|
+
/**
|
|
457
|
+
* @zh 双击行数据时触发
|
|
458
|
+
* @en Triggered when row data is double clicked
|
|
459
|
+
* @param {TableData} record
|
|
460
|
+
* @param {Event} ev
|
|
461
|
+
*/
|
|
195
462
|
"rowDblclick": (_record, _ev) => true,
|
|
463
|
+
/**
|
|
464
|
+
* @zh 双击单元格时触发
|
|
465
|
+
* @en Triggered when a cell is double clicked
|
|
466
|
+
* @param {TableData} record
|
|
467
|
+
* @param {TableColumnData} column
|
|
468
|
+
* @param {Event} ev
|
|
469
|
+
*/
|
|
196
470
|
"cellDblclick": (_record, _column, _ev) => true,
|
|
471
|
+
/**
|
|
472
|
+
* @zh 右击行数据时触发
|
|
473
|
+
* @en Triggered when row data is right clicked
|
|
474
|
+
* @param {TableData} record
|
|
475
|
+
* @param {Event} ev
|
|
476
|
+
*/
|
|
197
477
|
"rowContextmenu": (_record, _ev) => true,
|
|
478
|
+
/**
|
|
479
|
+
* @zh 右击单元格时触发
|
|
480
|
+
* @en Triggered when a cell is right clicked
|
|
481
|
+
* @param {TableData} record
|
|
482
|
+
* @param {TableColumnData} column
|
|
483
|
+
* @param {Event} ev
|
|
484
|
+
*/
|
|
198
485
|
"cellContextmenu": (_record, _column, _ev) => true
|
|
199
486
|
},
|
|
487
|
+
/**
|
|
488
|
+
* @zh 表格列定义。启用时会屏蔽 columns 属性
|
|
489
|
+
* @en Table column definitions. When enabled, the columns attribute is masked
|
|
490
|
+
* @slot columns
|
|
491
|
+
*/
|
|
492
|
+
/**
|
|
493
|
+
* @zh 展开行图标
|
|
494
|
+
* @en Expand row icon
|
|
495
|
+
* @slot expand-icon
|
|
496
|
+
* @binding {boolean} expanded
|
|
497
|
+
* @binding {TableData} record
|
|
498
|
+
*/
|
|
499
|
+
/**
|
|
500
|
+
* @zh 展开行内容
|
|
501
|
+
* @en Expand row content
|
|
502
|
+
* @slot expand-row
|
|
503
|
+
* @binding {TableData} record
|
|
504
|
+
*/
|
|
505
|
+
/**
|
|
506
|
+
* @zh 表格底部
|
|
507
|
+
* @en Table Footer
|
|
508
|
+
* @slot footer
|
|
509
|
+
*/
|
|
510
|
+
/**
|
|
511
|
+
* @zh 拖拽锚点图标
|
|
512
|
+
* @en Drag handle icon
|
|
513
|
+
* @slot drag-handle-icon
|
|
514
|
+
* @version 2.16.0
|
|
515
|
+
*/
|
|
516
|
+
/**
|
|
517
|
+
* @zh 自定义 tbody 元素
|
|
518
|
+
* @en Custom tbody element
|
|
519
|
+
* @slot tbody
|
|
520
|
+
* @version 2.16.0
|
|
521
|
+
*/
|
|
522
|
+
/**
|
|
523
|
+
* @zh 自定义 tr 元素
|
|
524
|
+
* @en Custom tr element
|
|
525
|
+
* @slot tr
|
|
526
|
+
* @binding {TableData} record
|
|
527
|
+
* @binding {number} rowIndex
|
|
528
|
+
* @version 2.16.0
|
|
529
|
+
*/
|
|
530
|
+
/**
|
|
531
|
+
* @zh 自定义 td 元素
|
|
532
|
+
* @en Custom td element
|
|
533
|
+
* @slot td
|
|
534
|
+
* @binding {TableColumnData} column
|
|
535
|
+
* @binding {TableData} record
|
|
536
|
+
* @binding {number} rowIndex
|
|
537
|
+
* @version 2.16.0
|
|
538
|
+
*/
|
|
539
|
+
/**
|
|
540
|
+
* @zh 分页器左侧内容
|
|
541
|
+
* @en Content on the left side of the pagination
|
|
542
|
+
* @slot pagination-left
|
|
543
|
+
* @version 2.18.0
|
|
544
|
+
*/
|
|
545
|
+
/**
|
|
546
|
+
* @zh 分页器右侧内容
|
|
547
|
+
* @en Content on the right side of the pagination
|
|
548
|
+
* @slot pagination-right
|
|
549
|
+
* @version 2.18.0
|
|
550
|
+
*/
|
|
551
|
+
/**
|
|
552
|
+
* @zh 总结行
|
|
553
|
+
* @en Content on the right side of the pagination
|
|
554
|
+
* @slot summary-cell
|
|
555
|
+
* @binding {TableColumnData} column
|
|
556
|
+
* @binding {TableData} record
|
|
557
|
+
* @binding {number} rowIndex
|
|
558
|
+
* @version 2.23.0
|
|
559
|
+
*/
|
|
560
|
+
/**
|
|
561
|
+
* @zh 空白展示
|
|
562
|
+
* @en Empty
|
|
563
|
+
* @slot empty
|
|
564
|
+
*/
|
|
565
|
+
/**
|
|
566
|
+
* @zh 插入至表格最后一行之后的内容
|
|
567
|
+
* @en Content inserted after the last table row
|
|
568
|
+
* @slot append
|
|
569
|
+
*/
|
|
570
|
+
/**
|
|
571
|
+
* @zh 自定义 thead 元素
|
|
572
|
+
* @en Custom thead element
|
|
573
|
+
* @slot thead
|
|
574
|
+
* @version 2.26.0
|
|
575
|
+
*/
|
|
576
|
+
/**
|
|
577
|
+
* @zh 自定义 th 元素
|
|
578
|
+
* @en Custom th element
|
|
579
|
+
* @slot th
|
|
580
|
+
* @binding {TableColumnData} column
|
|
581
|
+
* @version 2.26.0
|
|
582
|
+
*/
|
|
200
583
|
setup(props, { emit, slots }) {
|
|
201
584
|
const { columns, rowKey, rowSelection, expandable, loadMore, filterIconAlignLeft, selectedKeys, defaultSelectedKeys, expandedKeys, defaultExpandedKeys, defaultExpandAllRows, spanMethod, draggable, summarySpanMethod, scrollbar, showEmptyTree } = toRefs(props);
|
|
202
585
|
const prefixCls = getPrefixCls("table");
|
|
@@ -1346,27 +1729,83 @@ var table_default = /* @__PURE__ */ defineComponent({
|
|
|
1346
1729
|
};
|
|
1347
1730
|
},
|
|
1348
1731
|
methods: {
|
|
1732
|
+
/**
|
|
1733
|
+
* @zh 设置全选状态
|
|
1734
|
+
* @en Set select all state
|
|
1735
|
+
* @param { boolean } checked
|
|
1736
|
+
* @public
|
|
1737
|
+
* @version 2.22.0
|
|
1738
|
+
*/
|
|
1349
1739
|
selectAll(checked) {
|
|
1350
1740
|
return this.selfSelectAll(checked);
|
|
1351
1741
|
},
|
|
1742
|
+
/**
|
|
1743
|
+
* @zh 设置行选择器状态
|
|
1744
|
+
* @en Set row selector state
|
|
1745
|
+
* @param { string | number | (string | number)[] } rowKey
|
|
1746
|
+
* @param { boolean } checked
|
|
1747
|
+
* @public
|
|
1748
|
+
* @version 2.31.0
|
|
1749
|
+
*/
|
|
1352
1750
|
select(rowKey, checked) {
|
|
1353
1751
|
return this.selfSelect(rowKey, checked);
|
|
1354
1752
|
},
|
|
1753
|
+
/**
|
|
1754
|
+
* @zh 设置全部展开状态
|
|
1755
|
+
* @en Set all expanded state
|
|
1756
|
+
* @param { boolean } checked
|
|
1757
|
+
* @public
|
|
1758
|
+
* @version 2.31.0
|
|
1759
|
+
*/
|
|
1355
1760
|
expandAll(checked) {
|
|
1356
1761
|
return this.selfExpandAll(checked);
|
|
1357
1762
|
},
|
|
1763
|
+
/**
|
|
1764
|
+
* @zh 设置展开状态
|
|
1765
|
+
* @en Set select all state
|
|
1766
|
+
* @param { string | number | (string | number)[] } rowKey
|
|
1767
|
+
* @param { boolean } checked
|
|
1768
|
+
* @public
|
|
1769
|
+
* @version 2.31.0
|
|
1770
|
+
*/
|
|
1358
1771
|
expand(rowKey, checked) {
|
|
1359
1772
|
return this.selfExpand(rowKey, checked);
|
|
1360
1773
|
},
|
|
1774
|
+
/**
|
|
1775
|
+
* @zh 重置列的筛选器
|
|
1776
|
+
* @en Reset the filter for columns
|
|
1777
|
+
* @param { string | string[] } dataIndex
|
|
1778
|
+
* @public
|
|
1779
|
+
* @version 2.31.0
|
|
1780
|
+
*/
|
|
1361
1781
|
resetFilters(dataIndex) {
|
|
1362
1782
|
return this.selfResetFilters(dataIndex);
|
|
1363
1783
|
},
|
|
1784
|
+
/**
|
|
1785
|
+
* @zh 清空列的筛选器
|
|
1786
|
+
* @en Clear the filter for columns
|
|
1787
|
+
* @param { string | string[] } dataIndex
|
|
1788
|
+
* @public
|
|
1789
|
+
* @version 2.31.0
|
|
1790
|
+
*/
|
|
1364
1791
|
clearFilters(dataIndex) {
|
|
1365
1792
|
return this.selfClearFilters(dataIndex);
|
|
1366
1793
|
},
|
|
1794
|
+
/**
|
|
1795
|
+
* @zh 重置列的排序
|
|
1796
|
+
* @en Reset the order of columns
|
|
1797
|
+
* @public
|
|
1798
|
+
* @version 2.31.0
|
|
1799
|
+
*/
|
|
1367
1800
|
resetSorters() {
|
|
1368
1801
|
return this.selfResetSorters();
|
|
1369
1802
|
},
|
|
1803
|
+
/**
|
|
1804
|
+
* @zh 清空列的排序
|
|
1805
|
+
* @en Clear the order of columns
|
|
1806
|
+
* @public
|
|
1807
|
+
* @version 2.31.0
|
|
1808
|
+
*/
|
|
1370
1809
|
clearSorters() {
|
|
1371
1810
|
return this.selfClearSorters();
|
|
1372
1811
|
}
|
package/es/table/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
2
2
|
import { isArray, isNull, isUndefined } from "../_utils/is.js";
|
|
3
3
|
//#region components/table/utils.ts
|
|
4
4
|
var getDataColumnsNumber = (columns) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { tabsInjectionKey } from "./context.js";
|
|
4
4
|
import { computed, defineComponent, getCurrentInstance, inject, onBeforeUnmount, onUpdated, reactive, ref, toRefs, watch } from "vue";
|
|
@@ -6,20 +6,42 @@ import { computed, defineComponent, getCurrentInstance, inject, onBeforeUnmount,
|
|
|
6
6
|
var tab_pane_vue_vue_type_script_lang_default = defineComponent({
|
|
7
7
|
name: "TabPane",
|
|
8
8
|
props: {
|
|
9
|
+
/**
|
|
10
|
+
* @zh 选项卡的标题
|
|
11
|
+
* @en Title of the tab
|
|
12
|
+
*/
|
|
9
13
|
title: String,
|
|
14
|
+
/**
|
|
15
|
+
* @zh 是否禁用
|
|
16
|
+
* @en Whether to disable
|
|
17
|
+
*/
|
|
10
18
|
disabled: {
|
|
11
19
|
type: Boolean,
|
|
12
20
|
default: false
|
|
13
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* @zh 是否允许关闭此选项卡(仅在可编辑模式生效)
|
|
24
|
+
* @en Whether to allow this tab to be closed (only effective in editable mode)
|
|
25
|
+
*/
|
|
14
26
|
closable: {
|
|
15
27
|
type: Boolean,
|
|
16
28
|
default: true
|
|
17
29
|
},
|
|
30
|
+
/**
|
|
31
|
+
* @zh 是否在不显示标签时销毁内容
|
|
32
|
+
* @en Whether to destroy the content when the label is not displayed
|
|
33
|
+
* @version 2.27.0
|
|
34
|
+
*/
|
|
18
35
|
destroyOnHide: {
|
|
19
36
|
type: Boolean,
|
|
20
37
|
default: false
|
|
21
38
|
}
|
|
22
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* @zh 选项卡标题
|
|
42
|
+
* @en Tab title
|
|
43
|
+
* @slot title
|
|
44
|
+
*/
|
|
23
45
|
setup(props, { slots }) {
|
|
24
46
|
const { title, disabled, closable } = toRefs(props);
|
|
25
47
|
const instance = getCurrentInstance();
|