naive-ui 2.21.2 → 2.22.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/es/_internal/close/src/styles/index.cssr.js +6 -5
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +15 -0
- package/es/_internal/scrollbar/src/ScrollBar.js +13 -7
- package/es/_internal/selection/src/Selection.js +11 -9
- package/es/_internal/selection/src/styles/index.cssr.js +6 -2
- package/es/alert/src/Alert.d.ts +20 -20
- package/es/alert/src/Alert.js +22 -22
- package/es/alert/src/styles/index.cssr.js +45 -45
- package/es/anchor/src/AnchorAdapter.js +12 -12
- package/es/anchor/src/styles/index.cssr.js +41 -41
- package/es/avatar/src/Avatar.d.ts +5 -3
- package/es/avatar/src/Avatar.js +7 -5
- package/es/avatar/src/styles/index.cssr.js +3 -5
- package/es/button/src/Button.d.ts +60 -60
- package/es/button/src/Button.js +107 -106
- package/es/button/src/styles/button.cssr.js +83 -80
- package/es/button/styles/dark.js +3 -3
- package/es/button/styles/light.d.ts +3 -3
- package/es/button/styles/light.js +1 -1
- package/es/calendar/src/Calendar.d.ts +37 -30
- package/es/calendar/styles/light.d.ts +3 -3
- package/es/cascader/src/Cascader.d.ts +135 -0
- package/es/cascader/src/Cascader.js +2 -4
- package/es/cascader/src/CascaderMenu.d.ts +345 -0
- package/es/cascader/src/CascaderMenu.js +6 -5
- package/es/cascader/src/CascaderOption.d.ts +18 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +18 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +18 -0
- package/es/cascader/styles/dark.js +3 -1
- package/es/cascader/styles/light.d.ts +13 -0
- package/es/cascader/styles/light.js +3 -1
- package/es/color-picker/src/ColorInputUnit.d.ts +3 -3
- package/es/color-picker/src/ColorPicker.d.ts +27 -27
- package/es/color-picker/styles/light.d.ts +3 -3
- package/es/config-provider/src/ConfigProvider.d.ts +21 -0
- package/es/data-table/src/DataTable.d.ts +30 -30
- package/es/data-table/src/DataTable.js +7 -14
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +3 -3
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +3 -3
- package/es/data-table/src/MainTable.js +2 -3
- package/es/data-table/src/TableParts/Body.d.ts +18 -7
- package/es/data-table/src/TableParts/Body.js +80 -28
- package/es/data-table/src/TableParts/Cell.d.ts +6 -6
- package/es/data-table/src/TableParts/Header.d.ts +3 -3
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +9 -12
- package/es/data-table/src/use-check.js +6 -2
- package/es/data-table/src/use-scroll.d.ts +2 -0
- package/es/data-table/src/use-scroll.js +34 -4
- package/es/data-table/src/use-table-data.js +4 -1
- package/es/data-table/styles/_common.js +1 -1
- package/es/data-table/styles/light.d.ts +3 -3
- package/es/date-picker/src/DatePicker.d.ts +94 -69
- package/es/date-picker/src/DatePicker.js +47 -20
- package/es/date-picker/src/config.d.ts +1 -9
- package/es/date-picker/src/config.js +0 -8
- package/es/date-picker/src/interface.d.ts +2 -1
- package/es/date-picker/src/panel/date.d.ts +23 -10
- package/es/date-picker/src/panel/date.js +2 -2
- package/es/date-picker/src/panel/daterange.d.ts +21 -9
- package/es/date-picker/src/panel/daterange.js +2 -2
- package/es/date-picker/src/panel/datetime.d.ts +23 -16
- package/es/date-picker/src/panel/datetime.js +2 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +21 -9
- package/es/date-picker/src/panel/datetimerange.js +2 -2
- package/es/date-picker/src/panel/month.d.ts +27 -20
- package/es/date-picker/src/panel/month.js +23 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +25 -43
- package/es/date-picker/src/panel/use-calendar.js +35 -18
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +21 -40
- package/es/date-picker/src/panel/use-dual-calendar.js +23 -8
- package/es/date-picker/src/panel/use-panel-common.d.ts +21 -36
- package/es/date-picker/src/panel/use-panel-common.js +2 -2
- package/es/date-picker/src/utils.d.ts +19 -3
- package/es/date-picker/src/utils.js +40 -5
- package/es/date-picker/styles/_common.d.ts +2 -0
- package/es/date-picker/styles/_common.js +3 -1
- package/es/date-picker/styles/light.d.ts +10 -6
- package/es/dialog/src/Dialog.d.ts +21 -21
- package/es/dialog/src/styles/index.cssr.js +1 -0
- package/es/dialog/styles/light.d.ts +3 -3
- package/es/dynamic-input/src/DynamicInput.d.ts +30 -30
- package/es/dynamic-input/src/InputPreset.d.ts +3 -3
- package/es/dynamic-input/src/PairPreset.d.ts +3 -3
- package/es/dynamic-input/styles/light.d.ts +3 -3
- package/es/dynamic-tags/src/DynamicTags.d.ts +30 -30
- package/es/dynamic-tags/styles/light.d.ts +3 -3
- package/es/element/index.d.ts +1 -0
- package/es/element/index.js +1 -0
- package/es/form/src/interface.d.ts +5 -4
- package/es/image/src/Image.d.ts +25 -16
- package/es/image/src/Image.js +35 -11
- package/es/image/src/ImageGroup.js +2 -2
- package/es/image/src/styles/index.cssr.js +4 -3
- package/es/input/src/Input.js +2 -0
- package/es/input/src/styles/input.cssr.js +2 -1
- package/es/input-number/src/InputNumber.d.ts +30 -30
- package/es/input-number/src/InputNumber.js +10 -5
- package/es/input-number/src/utils.d.ts +1 -0
- package/es/input-number/src/utils.js +4 -0
- package/es/input-number/styles/light.d.ts +3 -3
- package/es/locales/common/deDE.js +8 -0
- package/es/locales/common/enUS.d.ts +7 -0
- package/es/locales/common/enUS.js +8 -1
- package/es/locales/common/frFR.d.ts +3 -0
- package/es/locales/common/frFR.js +101 -0
- package/es/locales/common/idID.d.ts +2 -93
- package/es/locales/common/idID.js +8 -0
- package/es/locales/common/jaJP.js +8 -0
- package/es/locales/common/nbNO.js +8 -0
- package/es/locales/common/ruRU.js +8 -0
- package/es/locales/common/ukUA.js +8 -0
- package/es/locales/common/zhCN.js +7 -0
- package/es/locales/common/zhTW.d.ts +3 -0
- package/es/locales/common/zhTW.js +100 -0
- package/es/locales/date/frFR.d.ts +3 -0
- package/es/locales/date/frFR.js +6 -0
- package/es/locales/date/idID.d.ts +1 -6
- package/es/locales/date/zhTW.d.ts +3 -0
- package/es/locales/date/zhTW.js +6 -0
- package/es/locales/index.d.ts +4 -0
- package/es/locales/index.js +4 -0
- package/es/modal/src/BodyWrapper.d.ts +6 -6
- package/es/modal/src/Modal.d.ts +36 -36
- package/es/modal/styles/light.d.ts +3 -3
- package/es/page-header/src/PageHeader.js +3 -3
- package/es/page-header/src/styles/index.cssr.js +2 -4
- package/es/popconfirm/src/Popconfirm.d.ts +30 -30
- package/es/popconfirm/styles/light.d.ts +3 -3
- package/es/popover/src/Popover.js +4 -1
- package/es/popover/src/PopoverBody.js +3 -3
- package/es/popselect/src/Popselect.d.ts +2 -11
- package/es/popselect/src/Popselect.js +2 -2
- package/es/popselect/src/PopselectPanel.d.ts +3 -11
- package/es/popselect/src/PopselectPanel.js +17 -11
- package/es/radio/src/Radio.js +3 -3
- package/es/radio/src/RadioButton.js +4 -5
- package/es/radio/src/styles/radio-group.cssr.js +8 -4
- package/es/radio/src/styles/radio.cssr.js +8 -4
- package/es/radio/src/use-radio.d.ts +0 -3
- package/es/radio/src/use-radio.js +1 -26
- package/es/switch/src/Switch.d.ts +16 -1
- package/es/switch/src/Switch.js +17 -4
- package/es/switch/src/styles/index.cssr.js +1 -1
- package/es/tabs/src/styles/index.cssr.js +1 -0
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/theme-editor/src/ThemeEditor.js +9 -2
- package/es/time-picker/src/Panel.d.ts +3 -3
- package/es/time-picker/src/TimePicker.d.ts +30 -30
- package/es/time-picker/styles/light.d.ts +3 -3
- package/es/transfer/src/Transfer.d.ts +30 -30
- package/es/transfer/src/TransferFilter.d.ts +3 -3
- package/es/transfer/src/TransferList.d.ts +3 -3
- package/es/transfer/src/TransferListItem.d.ts +3 -3
- package/es/transfer/styles/light.d.ts +3 -3
- package/es/tree/src/Tree.d.ts +8 -4
- package/es/tree/src/Tree.js +32 -6
- package/es/tree-select/src/TreeSelect.d.ts +38 -1
- package/es/tree-select/src/TreeSelect.js +25 -10
- package/es/tree-select/src/styles/index.cssr.js +11 -2
- package/es/tree-select/styles/light.d.ts +6 -0
- package/es/tree-select/styles/light.js +5 -2
- package/es/upload/src/Upload.d.ts +41 -30
- package/es/upload/src/Upload.js +33 -23
- package/es/upload/src/UploadFile.d.ts +4 -4
- package/es/upload/src/UploadFileList.js +4 -2
- package/es/upload/src/UploadProgress.d.ts +3 -3
- package/es/upload/src/interface.d.ts +1 -0
- package/es/upload/src/styles/index.cssr.js +2 -3
- package/es/upload/styles/light.d.ts +3 -3
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/close/src/styles/index.cssr.js +6 -5
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +15 -0
- package/lib/_internal/scrollbar/src/ScrollBar.js +13 -7
- package/lib/_internal/selection/src/Selection.js +11 -9
- package/lib/_internal/selection/src/styles/index.cssr.js +6 -2
- package/lib/alert/src/Alert.d.ts +20 -20
- package/lib/alert/src/Alert.js +22 -22
- package/lib/alert/src/styles/index.cssr.js +45 -45
- package/lib/anchor/src/AnchorAdapter.js +12 -12
- package/lib/anchor/src/styles/index.cssr.js +41 -41
- package/lib/avatar/src/Avatar.d.ts +5 -3
- package/lib/avatar/src/Avatar.js +7 -5
- package/lib/avatar/src/styles/index.cssr.js +3 -5
- package/lib/button/src/Button.d.ts +60 -60
- package/lib/button/src/Button.js +107 -106
- package/lib/button/src/styles/button.cssr.js +83 -80
- package/lib/button/styles/dark.js +3 -3
- package/lib/button/styles/light.d.ts +3 -3
- package/lib/button/styles/light.js +1 -1
- package/lib/calendar/src/Calendar.d.ts +37 -30
- package/lib/calendar/styles/light.d.ts +3 -3
- package/lib/cascader/src/Cascader.d.ts +135 -0
- package/lib/cascader/src/Cascader.js +2 -4
- package/lib/cascader/src/CascaderMenu.d.ts +345 -0
- package/lib/cascader/src/CascaderMenu.js +6 -5
- package/lib/cascader/src/CascaderOption.d.ts +18 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +18 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +18 -0
- package/lib/cascader/styles/dark.js +3 -1
- package/lib/cascader/styles/light.d.ts +13 -0
- package/lib/cascader/styles/light.js +3 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +3 -3
- package/lib/color-picker/src/ColorPicker.d.ts +27 -27
- package/lib/color-picker/styles/light.d.ts +3 -3
- package/lib/config-provider/src/ConfigProvider.d.ts +21 -0
- package/lib/data-table/src/DataTable.d.ts +30 -30
- package/lib/data-table/src/DataTable.js +6 -13
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +3 -3
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +3 -3
- package/lib/data-table/src/MainTable.js +1 -2
- package/lib/data-table/src/TableParts/Body.d.ts +18 -7
- package/lib/data-table/src/TableParts/Body.js +78 -26
- package/lib/data-table/src/TableParts/Cell.d.ts +6 -6
- package/lib/data-table/src/TableParts/Header.d.ts +3 -3
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +9 -12
- package/lib/data-table/src/use-check.js +6 -2
- package/lib/data-table/src/use-scroll.d.ts +2 -0
- package/lib/data-table/src/use-scroll.js +34 -4
- package/lib/data-table/src/use-table-data.js +4 -1
- package/lib/data-table/styles/_common.js +1 -1
- package/lib/data-table/styles/light.d.ts +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +94 -69
- package/lib/date-picker/src/DatePicker.js +46 -19
- package/lib/date-picker/src/config.d.ts +1 -9
- package/lib/date-picker/src/config.js +1 -9
- package/lib/date-picker/src/interface.d.ts +2 -1
- package/lib/date-picker/src/panel/date.d.ts +23 -10
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +21 -9
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +23 -16
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +21 -9
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +27 -20
- package/lib/date-picker/src/panel/month.js +23 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +25 -43
- package/lib/date-picker/src/panel/use-calendar.js +34 -16
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +21 -40
- package/lib/date-picker/src/panel/use-dual-calendar.js +22 -6
- package/lib/date-picker/src/panel/use-panel-common.d.ts +21 -36
- package/lib/date-picker/src/panel/use-panel-common.js +3 -2
- package/lib/date-picker/src/utils.d.ts +19 -3
- package/lib/date-picker/src/utils.js +41 -4
- package/lib/date-picker/styles/_common.d.ts +2 -0
- package/lib/date-picker/styles/_common.js +3 -1
- package/lib/date-picker/styles/light.d.ts +10 -6
- package/lib/dialog/src/Dialog.d.ts +21 -21
- package/lib/dialog/src/styles/index.cssr.js +1 -0
- package/lib/dialog/styles/light.d.ts +3 -3
- package/lib/dynamic-input/src/DynamicInput.d.ts +30 -30
- package/lib/dynamic-input/src/InputPreset.d.ts +3 -3
- package/lib/dynamic-input/src/PairPreset.d.ts +3 -3
- package/lib/dynamic-input/styles/light.d.ts +3 -3
- package/lib/dynamic-tags/src/DynamicTags.d.ts +30 -30
- package/lib/dynamic-tags/styles/light.d.ts +3 -3
- package/lib/element/index.d.ts +1 -0
- package/lib/element/index.js +3 -1
- package/lib/form/src/interface.d.ts +5 -4
- package/lib/image/src/Image.d.ts +25 -16
- package/lib/image/src/Image.js +34 -10
- package/lib/image/src/ImageGroup.js +2 -2
- package/lib/image/src/styles/index.cssr.js +3 -2
- package/lib/input/src/Input.js +2 -0
- package/lib/input/src/styles/input.cssr.js +2 -1
- package/lib/input-number/src/InputNumber.d.ts +30 -30
- package/lib/input-number/src/InputNumber.js +9 -4
- package/lib/input-number/src/utils.d.ts +1 -0
- package/lib/input-number/src/utils.js +6 -1
- package/lib/input-number/styles/light.d.ts +3 -3
- package/lib/locales/common/deDE.js +8 -0
- package/lib/locales/common/enUS.d.ts +7 -0
- package/lib/locales/common/enUS.js +8 -1
- package/lib/locales/common/frFR.d.ts +3 -0
- package/lib/locales/common/frFR.js +103 -0
- package/lib/locales/common/idID.d.ts +2 -93
- package/lib/locales/common/idID.js +8 -0
- package/lib/locales/common/jaJP.js +8 -0
- package/lib/locales/common/nbNO.js +8 -0
- package/lib/locales/common/ruRU.js +8 -0
- package/lib/locales/common/ukUA.js +8 -0
- package/lib/locales/common/zhCN.js +7 -0
- package/lib/locales/common/zhTW.d.ts +3 -0
- package/lib/locales/common/zhTW.js +102 -0
- package/lib/locales/date/frFR.d.ts +3 -0
- package/lib/locales/date/frFR.js +11 -0
- package/lib/locales/date/idID.d.ts +1 -6
- package/lib/locales/date/zhTW.d.ts +3 -0
- package/lib/locales/date/zhTW.js +11 -0
- package/lib/locales/index.d.ts +4 -0
- package/lib/locales/index.js +9 -1
- package/lib/modal/src/BodyWrapper.d.ts +6 -6
- package/lib/modal/src/Modal.d.ts +36 -36
- package/lib/modal/styles/light.d.ts +3 -3
- package/lib/page-header/src/PageHeader.js +3 -3
- package/lib/page-header/src/styles/index.cssr.js +2 -4
- package/lib/popconfirm/src/Popconfirm.d.ts +30 -30
- package/lib/popconfirm/styles/light.d.ts +3 -3
- package/lib/popover/src/Popover.js +4 -1
- package/lib/popover/src/PopoverBody.js +3 -3
- package/lib/popselect/src/Popselect.d.ts +2 -11
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/popselect/src/PopselectPanel.d.ts +3 -11
- package/lib/popselect/src/PopselectPanel.js +16 -10
- package/lib/radio/src/Radio.js +3 -3
- package/lib/radio/src/RadioButton.js +4 -5
- package/lib/radio/src/styles/radio-group.cssr.js +8 -4
- package/lib/radio/src/styles/radio.cssr.js +8 -4
- package/lib/radio/src/use-radio.d.ts +0 -3
- package/lib/radio/src/use-radio.js +1 -26
- package/lib/switch/src/Switch.d.ts +16 -1
- package/lib/switch/src/Switch.js +17 -4
- package/lib/switch/src/styles/index.cssr.js +1 -1
- package/lib/tabs/src/styles/index.cssr.js +1 -0
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/theme-editor/src/ThemeEditor.js +9 -2
- package/lib/time-picker/src/Panel.d.ts +3 -3
- package/lib/time-picker/src/TimePicker.d.ts +30 -30
- package/lib/time-picker/styles/light.d.ts +3 -3
- package/lib/transfer/src/Transfer.d.ts +30 -30
- package/lib/transfer/src/TransferFilter.d.ts +3 -3
- package/lib/transfer/src/TransferList.d.ts +3 -3
- package/lib/transfer/src/TransferListItem.d.ts +3 -3
- package/lib/transfer/styles/light.d.ts +3 -3
- package/lib/tree/src/Tree.d.ts +8 -4
- package/lib/tree/src/Tree.js +32 -6
- package/lib/tree-select/src/TreeSelect.d.ts +38 -1
- package/lib/tree-select/src/TreeSelect.js +24 -9
- package/lib/tree-select/src/styles/index.cssr.js +11 -2
- package/lib/tree-select/styles/light.d.ts +6 -0
- package/lib/tree-select/styles/light.js +5 -2
- package/lib/upload/src/Upload.d.ts +41 -30
- package/lib/upload/src/Upload.js +33 -23
- package/lib/upload/src/UploadFile.d.ts +4 -4
- package/lib/upload/src/UploadFileList.js +4 -2
- package/lib/upload/src/UploadProgress.d.ts +3 -3
- package/lib/upload/src/interface.d.ts +1 -0
- package/lib/upload/src/styles/index.cssr.js +2 -3
- package/lib/upload/styles/light.d.ts +3 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +5 -4
- package/web-types.json +99 -7
|
@@ -130,9 +130,9 @@ export declare const colorPickerPanelProps: {
|
|
|
130
130
|
fontSizeMedium: string;
|
|
131
131
|
fontSizeLarge: string;
|
|
132
132
|
opacityDisabled: string;
|
|
133
|
-
colorOpacitySecondary:
|
|
134
|
-
colorOpacitySecondaryHover:
|
|
135
|
-
colorOpacitySecondaryPressed:
|
|
133
|
+
colorOpacitySecondary: string;
|
|
134
|
+
colorOpacitySecondaryHover: string;
|
|
135
|
+
colorOpacitySecondaryPressed: string;
|
|
136
136
|
colorSecondary: string;
|
|
137
137
|
colorSecondaryHover: string;
|
|
138
138
|
colorSecondaryPressed: string;
|
|
@@ -410,9 +410,9 @@ export declare const colorPickerPanelProps: {
|
|
|
410
410
|
fontSizeMedium: string;
|
|
411
411
|
fontSizeLarge: string;
|
|
412
412
|
opacityDisabled: string;
|
|
413
|
-
colorOpacitySecondary:
|
|
414
|
-
colorOpacitySecondaryHover:
|
|
415
|
-
colorOpacitySecondaryPressed:
|
|
413
|
+
colorOpacitySecondary: string;
|
|
414
|
+
colorOpacitySecondaryHover: string;
|
|
415
|
+
colorOpacitySecondaryPressed: string;
|
|
416
416
|
colorSecondary: string;
|
|
417
417
|
colorSecondaryHover: string;
|
|
418
418
|
colorSecondaryPressed: string;
|
|
@@ -690,9 +690,9 @@ export declare const colorPickerPanelProps: {
|
|
|
690
690
|
fontSizeMedium: string;
|
|
691
691
|
fontSizeLarge: string;
|
|
692
692
|
opacityDisabled: string;
|
|
693
|
-
colorOpacitySecondary:
|
|
694
|
-
colorOpacitySecondaryHover:
|
|
695
|
-
colorOpacitySecondaryPressed:
|
|
693
|
+
colorOpacitySecondary: string;
|
|
694
|
+
colorOpacitySecondaryHover: string;
|
|
695
|
+
colorOpacitySecondaryPressed: string;
|
|
696
696
|
colorSecondary: string;
|
|
697
697
|
colorSecondaryHover: string;
|
|
698
698
|
colorSecondaryPressed: string;
|
|
@@ -1009,9 +1009,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1009
1009
|
fontSizeMedium: string;
|
|
1010
1010
|
fontSizeLarge: string;
|
|
1011
1011
|
opacityDisabled: string;
|
|
1012
|
-
colorOpacitySecondary:
|
|
1013
|
-
colorOpacitySecondaryHover:
|
|
1014
|
-
colorOpacitySecondaryPressed:
|
|
1012
|
+
colorOpacitySecondary: string;
|
|
1013
|
+
colorOpacitySecondaryHover: string;
|
|
1014
|
+
colorOpacitySecondaryPressed: string;
|
|
1015
1015
|
colorSecondary: string;
|
|
1016
1016
|
colorSecondaryHover: string;
|
|
1017
1017
|
colorSecondaryPressed: string;
|
|
@@ -1289,9 +1289,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1289
1289
|
fontSizeMedium: string;
|
|
1290
1290
|
fontSizeLarge: string;
|
|
1291
1291
|
opacityDisabled: string;
|
|
1292
|
-
colorOpacitySecondary:
|
|
1293
|
-
colorOpacitySecondaryHover:
|
|
1294
|
-
colorOpacitySecondaryPressed:
|
|
1292
|
+
colorOpacitySecondary: string;
|
|
1293
|
+
colorOpacitySecondaryHover: string;
|
|
1294
|
+
colorOpacitySecondaryPressed: string;
|
|
1295
1295
|
colorSecondary: string;
|
|
1296
1296
|
colorSecondaryHover: string;
|
|
1297
1297
|
colorSecondaryPressed: string;
|
|
@@ -1569,9 +1569,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1569
1569
|
fontSizeMedium: string;
|
|
1570
1570
|
fontSizeLarge: string;
|
|
1571
1571
|
opacityDisabled: string;
|
|
1572
|
-
colorOpacitySecondary:
|
|
1573
|
-
colorOpacitySecondaryHover:
|
|
1574
|
-
colorOpacitySecondaryPressed:
|
|
1572
|
+
colorOpacitySecondary: string;
|
|
1573
|
+
colorOpacitySecondaryHover: string;
|
|
1574
|
+
colorOpacitySecondaryPressed: string;
|
|
1575
1575
|
colorSecondary: string;
|
|
1576
1576
|
colorSecondaryHover: string;
|
|
1577
1577
|
colorSecondaryPressed: string;
|
|
@@ -1906,9 +1906,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1906
1906
|
fontSizeMedium: string;
|
|
1907
1907
|
fontSizeLarge: string;
|
|
1908
1908
|
opacityDisabled: string;
|
|
1909
|
-
colorOpacitySecondary:
|
|
1910
|
-
colorOpacitySecondaryHover:
|
|
1911
|
-
colorOpacitySecondaryPressed:
|
|
1909
|
+
colorOpacitySecondary: string;
|
|
1910
|
+
colorOpacitySecondaryHover: string;
|
|
1911
|
+
colorOpacitySecondaryPressed: string;
|
|
1912
1912
|
colorSecondary: string;
|
|
1913
1913
|
colorSecondaryHover: string;
|
|
1914
1914
|
colorSecondaryPressed: string;
|
|
@@ -2186,9 +2186,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2186
2186
|
fontSizeMedium: string;
|
|
2187
2187
|
fontSizeLarge: string;
|
|
2188
2188
|
opacityDisabled: string;
|
|
2189
|
-
colorOpacitySecondary:
|
|
2190
|
-
colorOpacitySecondaryHover:
|
|
2191
|
-
colorOpacitySecondaryPressed:
|
|
2189
|
+
colorOpacitySecondary: string;
|
|
2190
|
+
colorOpacitySecondaryHover: string;
|
|
2191
|
+
colorOpacitySecondaryPressed: string;
|
|
2192
2192
|
colorSecondary: string;
|
|
2193
2193
|
colorSecondaryHover: string;
|
|
2194
2194
|
colorSecondaryPressed: string;
|
|
@@ -2466,9 +2466,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2466
2466
|
fontSizeMedium: string;
|
|
2467
2467
|
fontSizeLarge: string;
|
|
2468
2468
|
opacityDisabled: string;
|
|
2469
|
-
colorOpacitySecondary:
|
|
2470
|
-
colorOpacitySecondaryHover:
|
|
2471
|
-
colorOpacitySecondaryPressed:
|
|
2469
|
+
colorOpacitySecondary: string;
|
|
2470
|
+
colorOpacitySecondaryHover: string;
|
|
2471
|
+
colorOpacitySecondaryPressed: string;
|
|
2472
2472
|
colorSecondary: string;
|
|
2473
2473
|
colorSecondaryHover: string;
|
|
2474
2474
|
colorSecondaryPressed: string;
|
|
@@ -104,9 +104,9 @@ declare const colorPickerLight: import("../../_mixins/use-theme").Theme<"ColorPi
|
|
|
104
104
|
fontSizeMedium: string;
|
|
105
105
|
fontSizeLarge: string;
|
|
106
106
|
opacityDisabled: string;
|
|
107
|
-
colorOpacitySecondary:
|
|
108
|
-
colorOpacitySecondaryHover:
|
|
109
|
-
colorOpacitySecondaryPressed:
|
|
107
|
+
colorOpacitySecondary: string;
|
|
108
|
+
colorOpacitySecondaryHover: string;
|
|
109
|
+
colorOpacitySecondaryPressed: string;
|
|
110
110
|
colorSecondary: string;
|
|
111
111
|
colorSecondaryHover: string;
|
|
112
112
|
colorSecondaryPressed: string;
|
|
@@ -36,6 +36,11 @@ export declare const configProviderProps: {
|
|
|
36
36
|
yearFormat: string;
|
|
37
37
|
monthFormat: string;
|
|
38
38
|
dayFormat: string;
|
|
39
|
+
yearTypeFormat: string;
|
|
40
|
+
monthTypeFormat: string;
|
|
41
|
+
dateFormat: string;
|
|
42
|
+
dateTimeFormat: string;
|
|
43
|
+
quarterFormat: string;
|
|
39
44
|
clear: string;
|
|
40
45
|
now: string;
|
|
41
46
|
confirm: string;
|
|
@@ -44,6 +49,8 @@ export declare const configProviderProps: {
|
|
|
44
49
|
datePlaceholder: string;
|
|
45
50
|
datetimePlaceholder: string;
|
|
46
51
|
monthPlaceholder: string;
|
|
52
|
+
yearPlaceholder: string;
|
|
53
|
+
quarterPlaceholder: string;
|
|
47
54
|
startDatePlaceholder: string;
|
|
48
55
|
endDatePlaceholder: string;
|
|
49
56
|
startDatetimePlaceholder: string;
|
|
@@ -155,6 +162,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
162
|
yearFormat: string;
|
|
156
163
|
monthFormat: string;
|
|
157
164
|
dayFormat: string;
|
|
165
|
+
yearTypeFormat: string;
|
|
166
|
+
monthTypeFormat: string;
|
|
167
|
+
dateFormat: string;
|
|
168
|
+
dateTimeFormat: string;
|
|
169
|
+
quarterFormat: string;
|
|
158
170
|
clear: string;
|
|
159
171
|
now: string;
|
|
160
172
|
confirm: string;
|
|
@@ -163,6 +175,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
163
175
|
datePlaceholder: string;
|
|
164
176
|
datetimePlaceholder: string;
|
|
165
177
|
monthPlaceholder: string;
|
|
178
|
+
yearPlaceholder: string;
|
|
179
|
+
quarterPlaceholder: string;
|
|
166
180
|
startDatePlaceholder: string;
|
|
167
181
|
endDatePlaceholder: string;
|
|
168
182
|
startDatetimePlaceholder: string;
|
|
@@ -298,6 +312,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
298
312
|
yearFormat: string;
|
|
299
313
|
monthFormat: string;
|
|
300
314
|
dayFormat: string;
|
|
315
|
+
yearTypeFormat: string;
|
|
316
|
+
monthTypeFormat: string;
|
|
317
|
+
dateFormat: string;
|
|
318
|
+
dateTimeFormat: string;
|
|
319
|
+
quarterFormat: string;
|
|
301
320
|
clear: string;
|
|
302
321
|
now: string;
|
|
303
322
|
confirm: string;
|
|
@@ -306,6 +325,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
306
325
|
datePlaceholder: string;
|
|
307
326
|
datetimePlaceholder: string;
|
|
308
327
|
monthPlaceholder: string;
|
|
328
|
+
yearPlaceholder: string;
|
|
329
|
+
quarterPlaceholder: string;
|
|
309
330
|
startDatePlaceholder: string;
|
|
310
331
|
endDatePlaceholder: string;
|
|
311
332
|
startDatetimePlaceholder: string;
|
|
@@ -170,9 +170,9 @@ export declare const dataTableProps: {
|
|
|
170
170
|
fontSizeMedium: string;
|
|
171
171
|
fontSizeLarge: string;
|
|
172
172
|
opacityDisabled: string;
|
|
173
|
-
colorOpacitySecondary:
|
|
174
|
-
colorOpacitySecondaryHover:
|
|
175
|
-
colorOpacitySecondaryPressed:
|
|
173
|
+
colorOpacitySecondary: string;
|
|
174
|
+
colorOpacitySecondaryHover: string;
|
|
175
|
+
colorOpacitySecondaryPressed: string;
|
|
176
176
|
colorSecondary: string;
|
|
177
177
|
colorSecondaryHover: string;
|
|
178
178
|
colorSecondaryPressed: string;
|
|
@@ -770,9 +770,9 @@ export declare const dataTableProps: {
|
|
|
770
770
|
fontSizeMedium: string;
|
|
771
771
|
fontSizeLarge: string;
|
|
772
772
|
opacityDisabled: string;
|
|
773
|
-
colorOpacitySecondary:
|
|
774
|
-
colorOpacitySecondaryHover:
|
|
775
|
-
colorOpacitySecondaryPressed:
|
|
773
|
+
colorOpacitySecondary: string;
|
|
774
|
+
colorOpacitySecondaryHover: string;
|
|
775
|
+
colorOpacitySecondaryPressed: string;
|
|
776
776
|
colorSecondary: string;
|
|
777
777
|
colorSecondaryHover: string;
|
|
778
778
|
colorSecondaryPressed: string;
|
|
@@ -1370,9 +1370,9 @@ export declare const dataTableProps: {
|
|
|
1370
1370
|
fontSizeMedium: string;
|
|
1371
1371
|
fontSizeLarge: string;
|
|
1372
1372
|
opacityDisabled: string;
|
|
1373
|
-
colorOpacitySecondary:
|
|
1374
|
-
colorOpacitySecondaryHover:
|
|
1375
|
-
colorOpacitySecondaryPressed:
|
|
1373
|
+
colorOpacitySecondary: string;
|
|
1374
|
+
colorOpacitySecondaryHover: string;
|
|
1375
|
+
colorOpacitySecondaryPressed: string;
|
|
1376
1376
|
colorSecondary: string;
|
|
1377
1377
|
colorSecondaryHover: string;
|
|
1378
1378
|
colorSecondaryPressed: string;
|
|
@@ -2078,9 +2078,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2078
2078
|
fontSizeMedium: string;
|
|
2079
2079
|
fontSizeLarge: string;
|
|
2080
2080
|
opacityDisabled: string;
|
|
2081
|
-
colorOpacitySecondary:
|
|
2082
|
-
colorOpacitySecondaryHover:
|
|
2083
|
-
colorOpacitySecondaryPressed:
|
|
2081
|
+
colorOpacitySecondary: string;
|
|
2082
|
+
colorOpacitySecondaryHover: string;
|
|
2083
|
+
colorOpacitySecondaryPressed: string;
|
|
2084
2084
|
colorSecondary: string;
|
|
2085
2085
|
colorSecondaryHover: string;
|
|
2086
2086
|
colorSecondaryPressed: string;
|
|
@@ -2678,9 +2678,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2678
2678
|
fontSizeMedium: string;
|
|
2679
2679
|
fontSizeLarge: string;
|
|
2680
2680
|
opacityDisabled: string;
|
|
2681
|
-
colorOpacitySecondary:
|
|
2682
|
-
colorOpacitySecondaryHover:
|
|
2683
|
-
colorOpacitySecondaryPressed:
|
|
2681
|
+
colorOpacitySecondary: string;
|
|
2682
|
+
colorOpacitySecondaryHover: string;
|
|
2683
|
+
colorOpacitySecondaryPressed: string;
|
|
2684
2684
|
colorSecondary: string;
|
|
2685
2685
|
colorSecondaryHover: string;
|
|
2686
2686
|
colorSecondaryPressed: string;
|
|
@@ -3278,9 +3278,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3278
3278
|
fontSizeMedium: string;
|
|
3279
3279
|
fontSizeLarge: string;
|
|
3280
3280
|
opacityDisabled: string;
|
|
3281
|
-
colorOpacitySecondary:
|
|
3282
|
-
colorOpacitySecondaryHover:
|
|
3283
|
-
colorOpacitySecondaryPressed:
|
|
3281
|
+
colorOpacitySecondary: string;
|
|
3282
|
+
colorOpacitySecondaryHover: string;
|
|
3283
|
+
colorOpacitySecondaryPressed: string;
|
|
3284
3284
|
colorSecondary: string;
|
|
3285
3285
|
colorSecondaryHover: string;
|
|
3286
3286
|
colorSecondaryPressed: string;
|
|
@@ -4037,9 +4037,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4037
4037
|
fontSizeMedium: string;
|
|
4038
4038
|
fontSizeLarge: string;
|
|
4039
4039
|
opacityDisabled: string;
|
|
4040
|
-
colorOpacitySecondary:
|
|
4041
|
-
colorOpacitySecondaryHover:
|
|
4042
|
-
colorOpacitySecondaryPressed:
|
|
4040
|
+
colorOpacitySecondary: string;
|
|
4041
|
+
colorOpacitySecondaryHover: string;
|
|
4042
|
+
colorOpacitySecondaryPressed: string;
|
|
4043
4043
|
colorSecondary: string;
|
|
4044
4044
|
colorSecondaryHover: string;
|
|
4045
4045
|
colorSecondaryPressed: string;
|
|
@@ -4959,9 +4959,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4959
4959
|
fontSizeMedium: string;
|
|
4960
4960
|
fontSizeLarge: string;
|
|
4961
4961
|
opacityDisabled: string;
|
|
4962
|
-
colorOpacitySecondary:
|
|
4963
|
-
colorOpacitySecondaryHover:
|
|
4964
|
-
colorOpacitySecondaryPressed:
|
|
4962
|
+
colorOpacitySecondary: string;
|
|
4963
|
+
colorOpacitySecondaryHover: string;
|
|
4964
|
+
colorOpacitySecondaryPressed: string;
|
|
4965
4965
|
colorSecondary: string;
|
|
4966
4966
|
colorSecondaryHover: string;
|
|
4967
4967
|
colorSecondaryPressed: string;
|
|
@@ -5559,9 +5559,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5559
5559
|
fontSizeMedium: string;
|
|
5560
5560
|
fontSizeLarge: string;
|
|
5561
5561
|
opacityDisabled: string;
|
|
5562
|
-
colorOpacitySecondary:
|
|
5563
|
-
colorOpacitySecondaryHover:
|
|
5564
|
-
colorOpacitySecondaryPressed:
|
|
5562
|
+
colorOpacitySecondary: string;
|
|
5563
|
+
colorOpacitySecondaryHover: string;
|
|
5564
|
+
colorOpacitySecondaryPressed: string;
|
|
5565
5565
|
colorSecondary: string;
|
|
5566
5566
|
colorSecondaryHover: string;
|
|
5567
5567
|
colorSecondaryPressed: string;
|
|
@@ -6159,9 +6159,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6159
6159
|
fontSizeMedium: string;
|
|
6160
6160
|
fontSizeLarge: string;
|
|
6161
6161
|
opacityDisabled: string;
|
|
6162
|
-
colorOpacitySecondary:
|
|
6163
|
-
colorOpacitySecondaryHover:
|
|
6164
|
-
colorOpacitySecondaryPressed:
|
|
6162
|
+
colorOpacitySecondary: string;
|
|
6163
|
+
colorOpacitySecondaryHover: string;
|
|
6164
|
+
colorOpacitySecondaryPressed: string;
|
|
6165
6165
|
colorSecondary: string;
|
|
6166
6166
|
colorSecondaryHover: string;
|
|
6167
6167
|
colorSecondaryPressed: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { h, computed, defineComponent, ref, provide, toRef,
|
|
1
|
+
import { h, computed, defineComponent, ref, provide, toRef, Transition } from 'vue';
|
|
2
2
|
import { createId } from 'seemly';
|
|
3
3
|
import { useConfig, useLocale, useTheme } from '../../_mixins';
|
|
4
4
|
import { NBaseLoading } from '../../_internal';
|
|
5
|
-
import { NEmpty } from '../../empty';
|
|
6
5
|
import { NPagination } from '../../pagination';
|
|
7
6
|
import { warn, createKey } from '../../_utils';
|
|
8
7
|
import { dataTableLight } from '../styles';
|
|
@@ -107,7 +106,7 @@ export default defineComponent({
|
|
|
107
106
|
name: 'DataTable',
|
|
108
107
|
alias: ['AdvancedTable'],
|
|
109
108
|
props: dataTableProps,
|
|
110
|
-
setup(props) {
|
|
109
|
+
setup(props, { slots }) {
|
|
111
110
|
const { mergedBorderedRef, mergedClsPrefixRef } = useConfig(props);
|
|
112
111
|
const mergedBottomBorderedRef = computed(() => {
|
|
113
112
|
const { bottomBordered } = props;
|
|
@@ -131,7 +130,7 @@ export default defineComponent({
|
|
|
131
130
|
paginatedDataRef
|
|
132
131
|
});
|
|
133
132
|
const { mergedExpandedRowKeysRef, renderExpandRef, doUpdateExpandedRowKeys } = useExpand(props);
|
|
134
|
-
const { handleTableBodyScroll, handleTableHeaderScroll, syncScrollState, setHeaderScrollLeft, leftActiveFixedColKeyRef, rightActiveFixedColKeyRef, leftFixedColumnsRef, rightFixedColumnsRef, fixedColumnLeftMapRef, fixedColumnRightMapRef } = useScroll(props, {
|
|
133
|
+
const { handleTableBodyScroll, handleTableHeaderScroll, syncScrollState, setHeaderScrollLeft, leftActiveFixedColKeyRef, leftActiveFixedChildrenColKeysRef, rightActiveFixedColKeyRef, rightActiveFixedChildrenColKeysRef, leftFixedColumnsRef, rightFixedColumnsRef, fixedColumnLeftMapRef, fixedColumnRightMapRef } = useScroll(props, {
|
|
135
134
|
scrollPartRef,
|
|
136
135
|
bodyWidthRef,
|
|
137
136
|
mainTableInstRef,
|
|
@@ -151,6 +150,7 @@ export default defineComponent({
|
|
|
151
150
|
return props.tableLayout;
|
|
152
151
|
});
|
|
153
152
|
provide(dataTableInjectionKey, {
|
|
153
|
+
slots,
|
|
154
154
|
indentRef: toRef(props, 'indent'),
|
|
155
155
|
firstContentfulColIndexRef,
|
|
156
156
|
bodyWidthRef,
|
|
@@ -163,7 +163,9 @@ export default defineComponent({
|
|
|
163
163
|
colsRef,
|
|
164
164
|
paginatedDataRef,
|
|
165
165
|
leftActiveFixedColKeyRef,
|
|
166
|
+
leftActiveFixedChildrenColKeysRef,
|
|
166
167
|
rightActiveFixedColKeyRef,
|
|
168
|
+
rightActiveFixedChildrenColKeysRef,
|
|
167
169
|
leftFixedColumnsRef,
|
|
168
170
|
rightFixedColumnsRef,
|
|
169
171
|
fixedColumnLeftMapRef,
|
|
@@ -289,16 +291,7 @@ export default defineComponent({
|
|
|
289
291
|
}
|
|
290
292
|
], style: this.cssVars },
|
|
291
293
|
h("div", { class: `${mergedClsPrefix}-data-table-wrapper` },
|
|
292
|
-
h(MainTable, { ref: "mainTableInstRef" },
|
|
293
|
-
default: () => this.paginatedData.length === 0 ? (h("div", { class: [
|
|
294
|
-
`${mergedClsPrefix}-data-table-empty`,
|
|
295
|
-
{
|
|
296
|
-
[`${mergedClsPrefix}-data-table-empty--hide`]: this.loading
|
|
297
|
-
}
|
|
298
|
-
] }, renderSlot(this.$slots, 'empty', undefined, () => [
|
|
299
|
-
h(NEmpty, { theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty })
|
|
300
|
-
]))) : null
|
|
301
|
-
})),
|
|
294
|
+
h(MainTable, { ref: "mainTableInstRef" })),
|
|
302
295
|
this.pagination ? (h("div", { class: `${mergedClsPrefix}-data-table__pagination` },
|
|
303
296
|
h(NPagination, Object.assign({ theme: this.mergedTheme.peers.Pagination, themeOverrides: this.mergedTheme.peerOverrides.Pagination, disabled: this.loading }, this.mergedPagination)))) : null,
|
|
304
297
|
h(Transition, { name: "fade-in-scale-up-transition" }, {
|
|
@@ -178,9 +178,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
178
|
fontSizeMedium: string;
|
|
179
179
|
fontSizeLarge: string;
|
|
180
180
|
opacityDisabled: string;
|
|
181
|
-
colorOpacitySecondary:
|
|
182
|
-
colorOpacitySecondaryHover:
|
|
183
|
-
colorOpacitySecondaryPressed:
|
|
181
|
+
colorOpacitySecondary: string;
|
|
182
|
+
colorOpacitySecondaryHover: string;
|
|
183
|
+
colorOpacitySecondaryPressed: string;
|
|
184
184
|
colorSecondary: string;
|
|
185
185
|
colorSecondaryHover: string;
|
|
186
186
|
colorSecondaryPressed: string;
|
|
@@ -203,9 +203,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
203
203
|
fontSizeMedium: string;
|
|
204
204
|
fontSizeLarge: string;
|
|
205
205
|
opacityDisabled: string;
|
|
206
|
-
colorOpacitySecondary:
|
|
207
|
-
colorOpacitySecondaryHover:
|
|
208
|
-
colorOpacitySecondaryPressed:
|
|
206
|
+
colorOpacitySecondary: string;
|
|
207
|
+
colorOpacitySecondaryHover: string;
|
|
208
|
+
colorOpacitySecondaryPressed: string;
|
|
209
209
|
colorSecondary: string;
|
|
210
210
|
colorSecondaryHover: string;
|
|
211
211
|
colorSecondaryPressed: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
|
-
import { h, ref, defineComponent, inject, computed,
|
|
2
|
+
import { h, ref, defineComponent, inject, computed, watchEffect } from 'vue';
|
|
3
3
|
import { formatLength } from '../../_utils';
|
|
4
4
|
import TableHeader from './TableParts/Header';
|
|
5
5
|
import TableBody from './TableParts/Body';
|
|
@@ -67,7 +67,6 @@ export default defineComponent({
|
|
|
67
67
|
const headerInBody = maxHeight === undefined && !flexHeight;
|
|
68
68
|
return (h("div", { class: `${mergedClsPrefix}-data-table-base-table`, ref: "selfElRef" },
|
|
69
69
|
headerInBody ? null : h(TableHeader, { ref: "headerInstRef" }),
|
|
70
|
-
h(TableBody, { ref: "bodyInstRef",
|
|
71
|
-
renderSlot(this.$slots, 'default')));
|
|
70
|
+
h(TableBody, { ref: "bodyInstRef", bodyStyle: this.bodyStyle, showHeader: headerInBody, flexHeight: flexHeight, onResize: this.handleBodyResize })));
|
|
72
71
|
}
|
|
73
72
|
});
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { RowKey, TmNode } from '../interface';
|
|
1
|
+
import { PropType, CSSProperties } from 'vue';
|
|
2
|
+
import { RowKey, ColumnKey, TmNode } from '../interface';
|
|
3
3
|
import type { ColItem } from '../use-group-header';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
6
6
|
showHeader: BooleanConstructor;
|
|
7
7
|
flexHeight: BooleanConstructor;
|
|
8
|
+
bodyStyle: PropType<CSSProperties>;
|
|
8
9
|
}, {
|
|
9
10
|
getScrollContainer: () => HTMLElement | null;
|
|
11
|
+
dataTableSlots: Readonly<{
|
|
12
|
+
[name: string]: import("vue").Slot | undefined;
|
|
13
|
+
}>;
|
|
10
14
|
componentId: string;
|
|
11
15
|
scrollbarInstRef: import("vue").Ref<{
|
|
12
16
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
@@ -20,6 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
24
|
itemsElRef: HTMLElement | null;
|
|
21
25
|
scrollTo: import("vueuc/lib/virtual-list/src/VirtualList").ScrollTo;
|
|
22
26
|
} | null>;
|
|
27
|
+
emptyElRef: import("vue").Ref<HTMLElement | null>;
|
|
23
28
|
summary: import("vue").Ref<import("../interface").CreateSummary<import("../interface").InternalRowData> | undefined>;
|
|
24
29
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
25
30
|
mergedTheme: import("vue").Ref<{
|
|
@@ -190,9 +195,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
190
195
|
fontSizeMedium: string;
|
|
191
196
|
fontSizeLarge: string;
|
|
192
197
|
opacityDisabled: string;
|
|
193
|
-
colorOpacitySecondary:
|
|
194
|
-
colorOpacitySecondaryHover:
|
|
195
|
-
colorOpacitySecondaryPressed:
|
|
198
|
+
colorOpacitySecondary: string;
|
|
199
|
+
colorOpacitySecondaryHover: string;
|
|
200
|
+
colorOpacitySecondaryPressed: string;
|
|
196
201
|
colorSecondary: string;
|
|
197
202
|
colorSecondaryHover: string;
|
|
198
203
|
colorSecondaryPressed: string;
|
|
@@ -976,17 +981,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
976
981
|
}>;
|
|
977
982
|
scrollX: import("vue").Ref<string | number | undefined>;
|
|
978
983
|
cols: import("vue").Ref<ColItem[]>;
|
|
984
|
+
loading: import("vue").Ref<boolean>;
|
|
985
|
+
bodyShowHeaderOnly: import("vue").ComputedRef<boolean>;
|
|
986
|
+
shouldDisplaySomeTablePart: import("vue").ComputedRef<boolean>;
|
|
987
|
+
empty: import("vue").ComputedRef<boolean>;
|
|
979
988
|
paginatedData: import("vue").ComputedRef<{
|
|
980
989
|
tmNode: TmNode;
|
|
981
990
|
key: import("treemate").Key;
|
|
982
991
|
striped: boolean;
|
|
983
992
|
}[]>;
|
|
984
993
|
rawPaginatedData: import("vue").Ref<import("../interface").InternalRowData[]>;
|
|
985
|
-
fixedColumnLeftMap: import("vue").Ref<Record<
|
|
994
|
+
fixedColumnLeftMap: import("vue").Ref<Record<ColumnKey, {
|
|
986
995
|
start: number;
|
|
987
996
|
end: number;
|
|
988
997
|
} | undefined>>;
|
|
989
|
-
fixedColumnRightMap: import("vue").Ref<Record<
|
|
998
|
+
fixedColumnRightMap: import("vue").Ref<Record<ColumnKey, {
|
|
990
999
|
start: number;
|
|
991
1000
|
end: number;
|
|
992
1001
|
} | undefined>>;
|
|
@@ -1019,11 +1028,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1019
1028
|
onResize?: unknown;
|
|
1020
1029
|
showHeader?: unknown;
|
|
1021
1030
|
flexHeight?: unknown;
|
|
1031
|
+
bodyStyle?: unknown;
|
|
1022
1032
|
} & {
|
|
1023
1033
|
flexHeight: boolean;
|
|
1024
1034
|
showHeader: boolean;
|
|
1025
1035
|
} & {
|
|
1026
1036
|
onResize?: ((e: ResizeObserverEntry) => void) | undefined;
|
|
1037
|
+
bodyStyle?: CSSProperties | undefined;
|
|
1027
1038
|
}>, {
|
|
1028
1039
|
flexHeight: boolean;
|
|
1029
1040
|
showHeader: boolean;
|