naive-ui 2.25.4 → 2.25.7
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/scrollbar/src/ScrollBar.d.ts +1 -0
- package/es/_internal/select-menu/src/SelectMenu.d.ts +1 -0
- package/es/_mixins/use-css-vars-class.js +2 -1
- package/es/button/src/styles/button-rtl.cssr.js +2 -2
- package/es/cascader/src/Cascader.d.ts +10 -0
- package/es/cascader/src/CascaderMenu.d.ts +1 -0
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/es/cascader/styles/light.d.ts +1 -0
- package/es/checkbox/src/Checkbox.d.ts +12 -0
- package/es/checkbox/src/Checkbox.js +14 -7
- package/es/checkbox/src/styles/index.cssr.js +16 -8
- package/es/checkbox/src/styles/rtl.cssr.d.ts +2 -0
- package/es/checkbox/src/styles/rtl.cssr.js +4 -0
- package/es/checkbox/styles/index.d.ts +1 -0
- package/es/checkbox/styles/index.js +1 -0
- package/es/checkbox/styles/light.d.ts +1 -0
- package/es/checkbox/styles/light.js +2 -2
- package/es/checkbox/styles/rtl.d.ts +2 -0
- package/es/checkbox/styles/rtl.js +5 -0
- package/es/code/src/Code.js +3 -1
- package/es/collapse/src/Collapse.d.ts +1 -0
- package/es/collapse/src/Collapse.js +9 -2
- package/es/collapse/src/CollapseItem.d.ts +1 -0
- package/es/collapse/src/CollapseItem.js +8 -3
- package/es/collapse/src/styles/rtl.cssr.d.ts +2 -0
- package/es/collapse/src/styles/rtl.cssr.js +15 -0
- package/es/collapse/styles/index.d.ts +1 -0
- package/es/collapse/styles/index.js +1 -0
- package/es/collapse/styles/rtl.d.ts +2 -0
- package/es/collapse/styles/rtl.js +5 -0
- package/es/collapse-transition/src/CollapseTransition.d.ts +3 -1
- package/es/collapse-transition/src/CollapseTransition.js +27 -14
- package/es/config-provider/src/ConfigProvider.js +6 -0
- package/es/config-provider/src/internal-interface.d.ts +1 -0
- package/es/data-table/src/DataTable.d.ts +20 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +3 -0
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/styles/light.d.ts +2 -0
- package/es/date-picker/src/DatePicker.d.ts +7 -2
- package/es/date-picker/src/DatePicker.js +80 -68
- package/es/date-picker/src/panel/date.d.ts +6 -0
- package/es/date-picker/src/panel/date.js +7 -2
- package/es/date-picker/src/panel/daterange.d.ts +4 -0
- package/es/date-picker/src/panel/daterange.js +7 -2
- package/es/date-picker/src/panel/datetime.d.ts +6 -0
- package/es/date-picker/src/panel/datetime.js +7 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -0
- package/es/date-picker/src/panel/datetimerange.js +7 -2
- package/es/date-picker/src/panel/month.d.ts +6 -0
- package/es/date-picker/src/panel/month.js +4 -2
- package/es/date-picker/src/panel/panelHeader.d.ts +10 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/es/date-picker/src/panel/use-panel-common.js +3 -1
- package/es/drawer/src/Drawer.d.ts +3 -1
- package/es/drawer/src/Drawer.js +39 -27
- package/es/dropdown/src/Dropdown.d.ts +7 -5
- package/es/dropdown/src/Dropdown.js +59 -52
- package/es/form/src/FormItem.d.ts +3 -1
- package/es/form/src/FormItem.js +40 -33
- package/es/form/src/FormItemRow.js +1 -1
- package/es/gradient-text/src/GradientText.d.ts +3 -1
- package/es/gradient-text/src/GradientText.js +23 -15
- package/es/icon/src/Icon.d.ts +3 -5
- package/es/icon/src/Icon.js +29 -19
- package/es/image/src/ImagePreview.d.ts +3 -1
- package/es/image/src/ImagePreview.js +28 -15
- package/es/input/src/Input.d.ts +4 -1
- package/es/input/src/Input.js +27 -6
- package/es/input/src/InputGroupLabel.d.ts +3 -1
- package/es/input/src/InputGroupLabel.js +26 -19
- package/es/input/src/styles/input.cssr.js +1 -0
- package/es/input/src/styles/rtl.cssr.d.ts +2 -0
- package/es/input/src/styles/rtl.cssr.js +16 -0
- package/es/input/styles/index.d.ts +1 -0
- package/es/input/styles/index.js +1 -0
- package/es/input/styles/rtl.d.ts +2 -0
- package/es/input/styles/rtl.js +5 -0
- package/es/input-number/src/InputNumber.d.ts +1 -0
- package/es/input-number/src/InputNumber.js +8 -3
- package/es/input-number/src/styles/rtl.cssr.d.ts +2 -0
- package/es/input-number/src/styles/rtl.cssr.js +4 -0
- package/es/input-number/styles/index.d.ts +1 -0
- package/es/input-number/styles/index.js +1 -0
- package/es/input-number/styles/rtl.d.ts +2 -0
- package/es/input-number/styles/rtl.js +8 -0
- package/es/layout/src/Layout.d.ts +2 -0
- package/es/layout/src/LayoutContent.d.ts +1 -0
- package/es/layout/src/LayoutSider.d.ts +1 -0
- package/es/list/src/List.d.ts +3 -1
- package/es/list/src/List.js +27 -19
- package/es/loading-bar/src/LoadingBar.d.ts +3 -1
- package/es/loading-bar/src/LoadingBar.js +29 -15
- package/es/log/src/Log.d.ts +1 -0
- package/es/mention/src/Mention.js +6 -4
- package/es/message/src/Message.d.ts +12 -24
- package/es/message/src/Message.js +57 -40
- package/es/message/src/MessageEnvironment.d.ts +9 -0
- package/es/message/src/MessageEnvironment.js +1 -1
- package/es/message/src/MessageProvider.d.ts +67 -0
- package/es/message/src/MessageProvider.js +3 -0
- package/es/message/src/message-props.d.ts +4 -0
- package/es/message/src/message-props.js +4 -0
- package/es/message/src/styles/index.cssr.js +2 -1
- package/es/message/src/types.d.ts +3 -1
- package/es/message/styles/light.d.ts +7 -0
- package/es/message/styles/light.js +1 -1
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/notification/src/Notification.d.ts +3 -1
- package/es/notification/src/Notification.js +44 -32
- package/es/notification/src/NotificationProvider.d.ts +1 -0
- package/es/notification/src/NotificationProvider.js +1 -0
- package/es/popconfirm/src/Popconfirm.d.ts +3 -2
- package/es/popconfirm/src/Popconfirm.js +2 -1
- package/es/popconfirm/src/PopconfirmPanel.d.ts +3 -1
- package/es/popconfirm/src/PopconfirmPanel.js +32 -25
- package/es/popconfirm/src/interface.d.ts +2 -0
- package/es/popover/src/PopoverBody.d.ts +4 -0
- package/es/popover/src/PopoverBody.js +3 -2
- package/es/popover/src/styles/index.cssr.js +49 -29
- package/es/radio/src/Radio.d.ts +7 -0
- package/es/radio/src/Radio.js +14 -7
- package/es/radio/src/RadioGroup.d.ts +9 -0
- package/es/radio/src/styles/radio.cssr.js +16 -9
- package/es/radio/styles/dark.js +2 -2
- package/es/radio/styles/light.d.ts +1 -0
- package/es/radio/styles/light.js +2 -2
- package/es/scrollbar/src/ScrollBar.d.ts +1 -0
- package/es/select/src/Select.d.ts +3 -1
- package/es/select/src/Select.js +31 -23
- package/es/slider/src/Slider.d.ts +6 -2
- package/es/slider/src/Slider.js +74 -51
- package/es/steps/src/Step.d.ts +3 -1
- package/es/steps/src/Step.js +32 -20
- package/es/styles.d.ts +4 -4
- package/es/styles.js +4 -4
- package/es/time-picker/src/Panel.js +4 -4
- package/es/time-picker/src/TimePicker.d.ts +12 -4
- package/es/time-picker/src/TimePicker.js +90 -35
- package/es/timeline/src/Timeline.d.ts +9 -9
- package/es/timeline/src/TimelineItem.d.ts +4 -2
- package/es/timeline/src/TimelineItem.js +34 -20
- package/es/timeline/styles/_common.d.ts +1 -1
- package/es/timeline/styles/_common.js +1 -1
- package/es/timeline/styles/light.d.ts +1 -1
- package/es/transfer/src/Transfer.d.ts +10 -0
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +2 -0
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/transfer/styles/light.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +16 -3
- package/es/tree/src/Tree.js +50 -28
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree/styles/light.d.ts +1 -0
- package/es/tree-select/src/TreeSelect.d.ts +23 -10
- package/es/tree-select/src/TreeSelect.js +26 -17
- package/es/tree-select/styles/light.d.ts +1 -0
- package/es/upload/src/Upload.d.ts +3 -1
- package/es/upload/src/Upload.js +23 -13
- package/es/upload/src/UploadFileList.js +8 -3
- package/es/upload/src/interface.d.ts +3 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +1 -0
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +1 -0
- package/lib/_mixins/use-css-vars-class.js +2 -1
- package/lib/button/src/styles/button-rtl.cssr.js +2 -2
- package/lib/cascader/src/Cascader.d.ts +10 -0
- package/lib/cascader/src/CascaderMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/lib/cascader/styles/light.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.d.ts +12 -0
- package/lib/checkbox/src/Checkbox.js +14 -7
- package/lib/checkbox/src/styles/index.cssr.js +16 -8
- package/lib/checkbox/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/checkbox/src/styles/rtl.cssr.js +11 -0
- package/lib/checkbox/styles/index.d.ts +1 -0
- package/lib/checkbox/styles/index.js +3 -1
- package/lib/checkbox/styles/light.d.ts +1 -0
- package/lib/checkbox/styles/light.js +2 -2
- package/lib/checkbox/styles/rtl.d.ts +2 -0
- package/lib/checkbox/styles/rtl.js +11 -0
- package/lib/code/src/Code.js +3 -1
- package/lib/collapse/src/Collapse.d.ts +1 -0
- package/lib/collapse/src/Collapse.js +9 -2
- package/lib/collapse/src/CollapseItem.d.ts +1 -0
- package/lib/collapse/src/CollapseItem.js +7 -2
- package/lib/collapse/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/collapse/src/styles/rtl.cssr.js +22 -0
- package/lib/collapse/styles/index.d.ts +1 -0
- package/lib/collapse/styles/index.js +3 -1
- package/lib/collapse/styles/rtl.d.ts +2 -0
- package/lib/collapse/styles/rtl.js +11 -0
- package/lib/collapse-transition/src/CollapseTransition.d.ts +3 -1
- package/lib/collapse-transition/src/CollapseTransition.js +26 -13
- package/lib/config-provider/src/ConfigProvider.js +6 -0
- package/lib/config-provider/src/internal-interface.d.ts +1 -0
- package/lib/data-table/src/DataTable.d.ts +20 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +3 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/styles/light.d.ts +2 -0
- package/lib/date-picker/src/DatePicker.d.ts +7 -2
- package/lib/date-picker/src/DatePicker.js +79 -67
- package/lib/date-picker/src/panel/date.d.ts +6 -0
- package/lib/date-picker/src/panel/date.js +7 -2
- package/lib/date-picker/src/panel/daterange.d.ts +4 -0
- package/lib/date-picker/src/panel/daterange.js +7 -2
- package/lib/date-picker/src/panel/datetime.d.ts +6 -0
- package/lib/date-picker/src/panel/datetime.js +7 -2
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -0
- package/lib/date-picker/src/panel/datetimerange.js +7 -2
- package/lib/date-picker/src/panel/month.d.ts +6 -0
- package/lib/date-picker/src/panel/month.js +4 -2
- package/lib/date-picker/src/panel/panelHeader.d.ts +10 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/lib/date-picker/src/panel/use-panel-common.js +3 -1
- package/lib/drawer/src/Drawer.d.ts +4 -1
- package/lib/drawer/src/Drawer.js +38 -26
- package/lib/dropdown/src/Dropdown.d.ts +7 -5
- package/lib/dropdown/src/Dropdown.js +58 -51
- package/lib/form/src/FormItem.d.ts +3 -1
- package/lib/form/src/FormItem.js +39 -32
- package/lib/form/src/FormItemRow.js +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +3 -1
- package/lib/gradient-text/src/GradientText.js +22 -14
- package/lib/icon/src/Icon.d.ts +3 -5
- package/lib/icon/src/Icon.js +28 -18
- package/lib/image/src/ImagePreview.d.ts +3 -1
- package/lib/image/src/ImagePreview.js +27 -14
- package/lib/input/src/Input.d.ts +4 -1
- package/lib/input/src/Input.js +27 -6
- package/lib/input/src/InputGroupLabel.d.ts +3 -1
- package/lib/input/src/InputGroupLabel.js +25 -18
- package/lib/input/src/styles/input.cssr.js +1 -0
- package/lib/input/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/input/src/styles/rtl.cssr.js +23 -0
- package/lib/input/styles/index.d.ts +1 -0
- package/lib/input/styles/index.js +3 -1
- package/lib/input/styles/rtl.d.ts +2 -0
- package/lib/input/styles/rtl.js +11 -0
- package/lib/input-number/src/InputNumber.d.ts +1 -0
- package/lib/input-number/src/InputNumber.js +8 -3
- package/lib/input-number/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/input-number/src/styles/rtl.cssr.js +11 -0
- package/lib/input-number/styles/index.d.ts +1 -0
- package/lib/input-number/styles/index.js +3 -1
- package/lib/input-number/styles/rtl.d.ts +2 -0
- package/lib/input-number/styles/rtl.js +14 -0
- package/lib/layout/src/Layout.d.ts +2 -0
- package/lib/layout/src/LayoutContent.d.ts +1 -0
- package/lib/layout/src/LayoutSider.d.ts +1 -0
- package/lib/list/src/List.d.ts +3 -1
- package/lib/list/src/List.js +26 -18
- package/lib/loading-bar/src/LoadingBar.d.ts +3 -1
- package/lib/loading-bar/src/LoadingBar.js +28 -14
- package/lib/log/src/Log.d.ts +1 -0
- package/lib/mention/src/Mention.js +6 -4
- package/lib/message/src/Message.d.ts +12 -24
- package/lib/message/src/Message.js +56 -39
- package/lib/message/src/MessageEnvironment.d.ts +9 -0
- package/lib/message/src/MessageEnvironment.js +1 -1
- package/lib/message/src/MessageProvider.d.ts +67 -0
- package/lib/message/src/MessageProvider.js +3 -0
- package/lib/message/src/message-props.d.ts +4 -0
- package/lib/message/src/message-props.js +4 -0
- package/lib/message/src/styles/index.cssr.js +2 -1
- package/lib/message/src/types.d.ts +3 -1
- package/lib/message/styles/light.d.ts +7 -0
- package/lib/message/styles/light.js +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/notification/src/Notification.d.ts +3 -1
- package/lib/notification/src/Notification.js +44 -32
- package/lib/notification/src/NotificationProvider.d.ts +1 -0
- package/lib/notification/src/NotificationProvider.js +1 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +3 -2
- package/lib/popconfirm/src/Popconfirm.js +2 -1
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +3 -1
- package/lib/popconfirm/src/PopconfirmPanel.js +30 -23
- package/lib/popconfirm/src/interface.d.ts +2 -0
- package/lib/popover/src/PopoverBody.d.ts +4 -0
- package/lib/popover/src/PopoverBody.js +3 -2
- package/lib/popover/src/styles/index.cssr.js +50 -29
- package/lib/radio/src/Radio.d.ts +7 -0
- package/lib/radio/src/Radio.js +13 -6
- package/lib/radio/src/RadioGroup.d.ts +9 -0
- package/lib/radio/src/styles/radio.cssr.js +16 -9
- package/lib/radio/styles/dark.js +2 -2
- package/lib/radio/styles/light.d.ts +1 -0
- package/lib/radio/styles/light.js +2 -2
- package/lib/scrollbar/src/ScrollBar.d.ts +1 -0
- package/lib/select/src/Select.d.ts +3 -1
- package/lib/select/src/Select.js +30 -22
- package/lib/slider/src/Slider.d.ts +6 -2
- package/lib/slider/src/Slider.js +73 -50
- package/lib/steps/src/Step.d.ts +3 -1
- package/lib/steps/src/Step.js +32 -20
- package/lib/styles.d.ts +4 -4
- package/lib/styles.js +6 -2
- package/lib/time-picker/src/Panel.js +4 -4
- package/lib/time-picker/src/TimePicker.d.ts +12 -4
- package/lib/time-picker/src/TimePicker.js +89 -34
- package/lib/timeline/src/Timeline.d.ts +9 -9
- package/lib/timeline/src/TimelineItem.d.ts +4 -2
- package/lib/timeline/src/TimelineItem.js +34 -20
- package/lib/timeline/styles/_common.d.ts +1 -1
- package/lib/timeline/styles/_common.js +1 -1
- package/lib/timeline/styles/light.d.ts +1 -1
- package/lib/transfer/src/Transfer.d.ts +10 -0
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +2 -0
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/transfer/styles/light.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +16 -3
- package/lib/tree/src/Tree.js +49 -27
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree/styles/light.d.ts +1 -0
- package/lib/tree-select/src/TreeSelect.d.ts +23 -10
- package/lib/tree-select/src/TreeSelect.js +25 -16
- package/lib/tree-select/styles/light.d.ts +1 -0
- package/lib/upload/src/Upload.d.ts +3 -1
- package/lib/upload/src/Upload.js +22 -12
- package/lib/upload/src/UploadFileList.js +8 -3
- package/lib/upload/src/interface.d.ts +3 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -30,7 +30,7 @@ declare const timelineProps: {
|
|
|
30
30
|
contentTextColor: string;
|
|
31
31
|
metaTextColor: string;
|
|
32
32
|
lineColor: string;
|
|
33
|
-
titleMarginMedium:
|
|
33
|
+
titleMarginMedium: string;
|
|
34
34
|
titleMarginLarge: string;
|
|
35
35
|
titleFontSizeMedium: string;
|
|
36
36
|
titleFontSizeLarge: string;
|
|
@@ -54,7 +54,7 @@ declare const timelineProps: {
|
|
|
54
54
|
contentTextColor: string;
|
|
55
55
|
metaTextColor: string;
|
|
56
56
|
lineColor: string;
|
|
57
|
-
titleMarginMedium:
|
|
57
|
+
titleMarginMedium: string;
|
|
58
58
|
titleMarginLarge: string;
|
|
59
59
|
titleFontSizeMedium: string;
|
|
60
60
|
titleFontSizeLarge: string;
|
|
@@ -78,7 +78,7 @@ declare const timelineProps: {
|
|
|
78
78
|
contentTextColor: string;
|
|
79
79
|
metaTextColor: string;
|
|
80
80
|
lineColor: string;
|
|
81
|
-
titleMarginMedium:
|
|
81
|
+
titleMarginMedium: string;
|
|
82
82
|
titleMarginLarge: string;
|
|
83
83
|
titleFontSizeMedium: string;
|
|
84
84
|
titleFontSizeLarge: string;
|
|
@@ -121,7 +121,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
121
121
|
contentTextColor: string;
|
|
122
122
|
metaTextColor: string;
|
|
123
123
|
lineColor: string;
|
|
124
|
-
titleMarginMedium:
|
|
124
|
+
titleMarginMedium: string;
|
|
125
125
|
titleMarginLarge: string;
|
|
126
126
|
titleFontSizeMedium: string;
|
|
127
127
|
titleFontSizeLarge: string;
|
|
@@ -145,7 +145,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
145
145
|
contentTextColor: string;
|
|
146
146
|
metaTextColor: string;
|
|
147
147
|
lineColor: string;
|
|
148
|
-
titleMarginMedium:
|
|
148
|
+
titleMarginMedium: string;
|
|
149
149
|
titleMarginLarge: string;
|
|
150
150
|
titleFontSizeMedium: string;
|
|
151
151
|
titleFontSizeLarge: string;
|
|
@@ -169,7 +169,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
169
169
|
contentTextColor: string;
|
|
170
170
|
metaTextColor: string;
|
|
171
171
|
lineColor: string;
|
|
172
|
-
titleMarginMedium:
|
|
172
|
+
titleMarginMedium: string;
|
|
173
173
|
titleMarginLarge: string;
|
|
174
174
|
titleFontSizeMedium: string;
|
|
175
175
|
titleFontSizeLarge: string;
|
|
@@ -204,7 +204,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
204
|
contentTextColor: string;
|
|
205
205
|
metaTextColor: string;
|
|
206
206
|
lineColor: string;
|
|
207
|
-
titleMarginMedium:
|
|
207
|
+
titleMarginMedium: string;
|
|
208
208
|
titleMarginLarge: string;
|
|
209
209
|
titleFontSizeMedium: string;
|
|
210
210
|
titleFontSizeLarge: string;
|
|
@@ -228,7 +228,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
228
228
|
contentTextColor: string;
|
|
229
229
|
metaTextColor: string;
|
|
230
230
|
lineColor: string;
|
|
231
|
-
titleMarginMedium:
|
|
231
|
+
titleMarginMedium: string;
|
|
232
232
|
titleMarginLarge: string;
|
|
233
233
|
titleFontSizeMedium: string;
|
|
234
234
|
titleFontSizeLarge: string;
|
|
@@ -252,7 +252,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
252
252
|
contentTextColor: string;
|
|
253
253
|
metaTextColor: string;
|
|
254
254
|
lineColor: string;
|
|
255
|
-
titleMarginMedium:
|
|
255
|
+
titleMarginMedium: string;
|
|
256
256
|
titleMarginLarge: string;
|
|
257
257
|
titleFontSizeMedium: string;
|
|
258
258
|
titleFontSizeLarge: string;
|
|
@@ -32,10 +32,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
'--n-meta-text-color': string;
|
|
33
33
|
'--n-title-font-size': string;
|
|
34
34
|
'--n-title-font-weight': string;
|
|
35
|
-
'--n-title-margin': string
|
|
35
|
+
'--n-title-margin': string;
|
|
36
36
|
'--n-title-text-color': string;
|
|
37
37
|
'--n-icon-size': string;
|
|
38
|
-
}
|
|
38
|
+
}> | undefined;
|
|
39
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
40
|
+
onRender: (() => void) | undefined;
|
|
39
41
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
42
|
time: PropType<string | number>;
|
|
41
43
|
title: StringConstructor;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
4
|
const _utils_1 = require("../../_utils");
|
|
5
5
|
const Timeline_1 = require("./Timeline");
|
|
6
|
+
const _mixins_1 = require("../../_mixins");
|
|
6
7
|
const timelineItemProps = {
|
|
7
8
|
time: [String, Number],
|
|
8
9
|
title: String,
|
|
@@ -21,33 +22,46 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
21
22
|
if (!NTimeline) {
|
|
22
23
|
(0, _utils_1.throwError)('timeline-item', '`n-timeline-item` must be placed inside `n-timeline`.');
|
|
23
24
|
}
|
|
25
|
+
const { inlineThemeDisabled } = (0, _mixins_1.useConfig)();
|
|
26
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
27
|
+
const { props: { size, iconSize: iconSizeProp }, mergedThemeRef } = NTimeline;
|
|
28
|
+
const { type } = props;
|
|
29
|
+
const { self: { titleTextColor, contentTextColor, metaTextColor, lineColor, titleFontWeight, contentFontSize, [(0, _utils_1.createKey)('iconSize', size)]: iconSize, [(0, _utils_1.createKey)('titleMargin', size)]: titleMargin, [(0, _utils_1.createKey)('titleFontSize', size)]: titleFontSize, [(0, _utils_1.createKey)('circleBorder', type)]: circleBorder, [(0, _utils_1.createKey)('iconColor', type)]: iconColor }, common: { cubicBezierEaseInOut } } = mergedThemeRef.value;
|
|
30
|
+
return {
|
|
31
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
32
|
+
'--n-circle-border': circleBorder,
|
|
33
|
+
'--n-icon-color': iconColor,
|
|
34
|
+
'--n-content-font-size': contentFontSize,
|
|
35
|
+
'--n-content-text-color': contentTextColor,
|
|
36
|
+
'--n-line-color': lineColor,
|
|
37
|
+
'--n-meta-text-color': metaTextColor,
|
|
38
|
+
'--n-title-font-size': titleFontSize,
|
|
39
|
+
'--n-title-font-weight': titleFontWeight,
|
|
40
|
+
'--n-title-margin': titleMargin,
|
|
41
|
+
'--n-title-text-color': titleTextColor,
|
|
42
|
+
'--n-icon-size': (0, _utils_1.formatLength)(iconSizeProp) || iconSize
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
const themeClassHandle = inlineThemeDisabled
|
|
46
|
+
? (0, _mixins_1.useThemeClass)('timeline-item', (0, vue_1.computed)(() => {
|
|
47
|
+
const { props: { size, iconSize: iconSizeProp } } = NTimeline;
|
|
48
|
+
const { type } = props;
|
|
49
|
+
return `${size[0]}${iconSizeProp || 'a'}${type[0]}`;
|
|
50
|
+
}), cssVarsRef, NTimeline.props)
|
|
51
|
+
: undefined;
|
|
24
52
|
return {
|
|
25
53
|
mergedClsPrefix: NTimeline.mergedClsPrefixRef,
|
|
26
|
-
cssVars:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const { self: { titleTextColor, contentTextColor, metaTextColor, lineColor, titleFontWeight, contentFontSize, [(0, _utils_1.createKey)('iconSize', size)]: iconSize, [(0, _utils_1.createKey)('titleMargin', size)]: titleMargin, [(0, _utils_1.createKey)('titleFontSize', size)]: titleFontSize, [(0, _utils_1.createKey)('circleBorder', type)]: circleBorder, [(0, _utils_1.createKey)('iconColor', type)]: iconColor }, common: { cubicBezierEaseInOut } } = mergedThemeRef.value;
|
|
30
|
-
return {
|
|
31
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
32
|
-
'--n-circle-border': circleBorder,
|
|
33
|
-
'--n-icon-color': iconColor,
|
|
34
|
-
'--n-content-font-size': contentFontSize,
|
|
35
|
-
'--n-content-text-color': contentTextColor,
|
|
36
|
-
'--n-line-color': lineColor,
|
|
37
|
-
'--n-meta-text-color': metaTextColor,
|
|
38
|
-
'--n-title-font-size': titleFontSize,
|
|
39
|
-
'--n-title-font-weight': titleFontWeight,
|
|
40
|
-
'--n-title-margin': titleMargin,
|
|
41
|
-
'--n-title-text-color': titleTextColor,
|
|
42
|
-
'--n-icon-size': (0, _utils_1.formatLength)(iconSizeProp) || iconSize
|
|
43
|
-
};
|
|
44
|
-
})
|
|
54
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
55
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
56
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
45
57
|
};
|
|
46
58
|
},
|
|
47
59
|
render() {
|
|
48
|
-
const { mergedClsPrefix, color, $slots } = this;
|
|
60
|
+
const { mergedClsPrefix, color, onRender, $slots } = this;
|
|
61
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
49
62
|
return ((0, vue_1.h)("div", { class: [
|
|
50
63
|
`${mergedClsPrefix}-timeline-item`,
|
|
64
|
+
this.themeClass,
|
|
51
65
|
`${mergedClsPrefix}-timeline-item--${this.type}-type`
|
|
52
66
|
], style: this.cssVars },
|
|
53
67
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-timeline-item-timeline` },
|
|
@@ -17,7 +17,7 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
17
17
|
contentTextColor: string;
|
|
18
18
|
metaTextColor: string;
|
|
19
19
|
lineColor: string;
|
|
20
|
-
titleMarginMedium:
|
|
20
|
+
titleMarginMedium: string;
|
|
21
21
|
titleMarginLarge: string;
|
|
22
22
|
titleFontSizeMedium: string;
|
|
23
23
|
titleFontSizeLarge: string;
|
|
@@ -59,6 +59,7 @@ declare const transferProps: {
|
|
|
59
59
|
width: string;
|
|
60
60
|
}, {
|
|
61
61
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
62
|
+
labelLineHeight: string;
|
|
62
63
|
fontSizeSmall: string;
|
|
63
64
|
fontSizeMedium: string;
|
|
64
65
|
fontSizeLarge: string;
|
|
@@ -393,6 +394,7 @@ declare const transferProps: {
|
|
|
393
394
|
width: string;
|
|
394
395
|
}, {
|
|
395
396
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
397
|
+
labelLineHeight: string;
|
|
396
398
|
fontSizeSmall: string;
|
|
397
399
|
fontSizeMedium: string;
|
|
398
400
|
fontSizeLarge: string;
|
|
@@ -727,6 +729,7 @@ declare const transferProps: {
|
|
|
727
729
|
width: string;
|
|
728
730
|
}, {
|
|
729
731
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
732
|
+
labelLineHeight: string;
|
|
730
733
|
fontSizeSmall: string;
|
|
731
734
|
fontSizeMedium: string;
|
|
732
735
|
fontSizeLarge: string;
|
|
@@ -1095,6 +1098,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1095
1098
|
width: string;
|
|
1096
1099
|
}, {
|
|
1097
1100
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
1101
|
+
labelLineHeight: string;
|
|
1098
1102
|
fontSizeSmall: string;
|
|
1099
1103
|
fontSizeMedium: string;
|
|
1100
1104
|
fontSizeLarge: string;
|
|
@@ -1429,6 +1433,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1429
1433
|
width: string;
|
|
1430
1434
|
}, {
|
|
1431
1435
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
1436
|
+
labelLineHeight: string;
|
|
1432
1437
|
fontSizeSmall: string;
|
|
1433
1438
|
fontSizeMedium: string;
|
|
1434
1439
|
fontSizeLarge: string;
|
|
@@ -1763,6 +1768,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1763
1768
|
width: string;
|
|
1764
1769
|
}, {
|
|
1765
1770
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
1771
|
+
labelLineHeight: string;
|
|
1766
1772
|
fontSizeSmall: string;
|
|
1767
1773
|
fontSizeMedium: string;
|
|
1768
1774
|
fontSizeLarge: string;
|
|
@@ -2212,6 +2218,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2212
2218
|
};
|
|
2213
2219
|
peers: {
|
|
2214
2220
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
2221
|
+
labelLineHeight: string;
|
|
2215
2222
|
fontSizeSmall: string;
|
|
2216
2223
|
fontSizeMedium: string;
|
|
2217
2224
|
fontSizeLarge: string;
|
|
@@ -2643,6 +2650,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2643
2650
|
width: string;
|
|
2644
2651
|
}, {
|
|
2645
2652
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
2653
|
+
labelLineHeight: string;
|
|
2646
2654
|
fontSizeSmall: string;
|
|
2647
2655
|
fontSizeMedium: string;
|
|
2648
2656
|
fontSizeLarge: string;
|
|
@@ -2977,6 +2985,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2977
2985
|
width: string;
|
|
2978
2986
|
}, {
|
|
2979
2987
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
2988
|
+
labelLineHeight: string;
|
|
2980
2989
|
fontSizeSmall: string;
|
|
2981
2990
|
fontSizeMedium: string;
|
|
2982
2991
|
fontSizeLarge: string;
|
|
@@ -3311,6 +3320,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3311
3320
|
width: string;
|
|
3312
3321
|
}, {
|
|
3313
3322
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
3323
|
+
labelLineHeight: string;
|
|
3314
3324
|
fontSizeSmall: string;
|
|
3315
3325
|
fontSizeMedium: string;
|
|
3316
3326
|
fontSizeLarge: string;
|
|
@@ -160,6 +160,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
160
160
|
};
|
|
161
161
|
peers: {
|
|
162
162
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
163
|
+
labelLineHeight: string;
|
|
163
164
|
fontSizeSmall: string;
|
|
164
165
|
fontSizeMedium: string;
|
|
165
166
|
fontSizeLarge: string;
|
|
@@ -499,6 +500,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
499
500
|
}>;
|
|
500
501
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
501
502
|
scrollerInstRef: import("vue").Ref<{
|
|
503
|
+
$el: HTMLElement;
|
|
502
504
|
containerRef: HTMLElement | null;
|
|
503
505
|
contentRef: HTMLElement | null;
|
|
504
506
|
containerScrollTop: number;
|
|
@@ -49,6 +49,7 @@ declare const transferLight: import("../../_mixins").Theme<"Transfer", {
|
|
|
49
49
|
width: string;
|
|
50
50
|
}, {
|
|
51
51
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
52
|
+
labelLineHeight: string;
|
|
52
53
|
fontSizeSmall: string;
|
|
53
54
|
fontSizeMedium: string;
|
|
54
55
|
fontSizeLarge: string;
|
package/lib/tree/src/Tree.d.ts
CHANGED
|
@@ -159,6 +159,7 @@ declare const treeProps: {
|
|
|
159
159
|
dropMarkColor: string;
|
|
160
160
|
}, {
|
|
161
161
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
162
|
+
labelLineHeight: string;
|
|
162
163
|
fontSizeSmall: string;
|
|
163
164
|
fontSizeMedium: string;
|
|
164
165
|
fontSizeLarge: string;
|
|
@@ -204,6 +205,7 @@ declare const treeProps: {
|
|
|
204
205
|
dropMarkColor: string;
|
|
205
206
|
}, {
|
|
206
207
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
208
|
+
labelLineHeight: string;
|
|
207
209
|
fontSizeSmall: string;
|
|
208
210
|
fontSizeMedium: string;
|
|
209
211
|
fontSizeLarge: string;
|
|
@@ -249,6 +251,7 @@ declare const treeProps: {
|
|
|
249
251
|
dropMarkColor: string;
|
|
250
252
|
}, {
|
|
251
253
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
254
|
+
labelLineHeight: string;
|
|
252
255
|
fontSizeSmall: string;
|
|
253
256
|
fontSizeMedium: string;
|
|
254
257
|
fontSizeLarge: string;
|
|
@@ -409,6 +412,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
409
412
|
dropMarkColor: string;
|
|
410
413
|
}, {
|
|
411
414
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
415
|
+
labelLineHeight: string;
|
|
412
416
|
fontSizeSmall: string;
|
|
413
417
|
fontSizeMedium: string;
|
|
414
418
|
fontSizeLarge: string;
|
|
@@ -454,6 +458,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
454
458
|
dropMarkColor: string;
|
|
455
459
|
}, {
|
|
456
460
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
461
|
+
labelLineHeight: string;
|
|
457
462
|
fontSizeSmall: string;
|
|
458
463
|
fontSizeMedium: string;
|
|
459
464
|
fontSizeLarge: string;
|
|
@@ -499,6 +504,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
499
504
|
dropMarkColor: string;
|
|
500
505
|
}, {
|
|
501
506
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
507
|
+
labelLineHeight: string;
|
|
502
508
|
fontSizeSmall: string;
|
|
503
509
|
fontSizeMedium: string;
|
|
504
510
|
fontSizeLarge: string;
|
|
@@ -532,8 +538,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
532
538
|
}, any>;
|
|
533
539
|
}>>>;
|
|
534
540
|
}, {
|
|
535
|
-
handleKeyup: (e: KeyboardEvent) => void;
|
|
536
|
-
handleKeydown: (e: KeyboardEvent) => void;
|
|
537
541
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
538
542
|
mergedTheme: import("vue").ComputedRef<{
|
|
539
543
|
common: {
|
|
@@ -653,6 +657,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
653
657
|
};
|
|
654
658
|
peers: {
|
|
655
659
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
660
|
+
labelLineHeight: string;
|
|
656
661
|
fontSizeSmall: string;
|
|
657
662
|
fontSizeMedium: string;
|
|
658
663
|
fontSizeLarge: string;
|
|
@@ -952,6 +957,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
952
957
|
scrollTo: import("vueuc/lib/virtual-list/src/VirtualList").ScrollTo;
|
|
953
958
|
} | null>;
|
|
954
959
|
scrollbarInstRef: import("vue").Ref<{
|
|
960
|
+
$el: HTMLElement;
|
|
955
961
|
containerRef: HTMLElement | null;
|
|
956
962
|
contentRef: HTMLElement | null;
|
|
957
963
|
containerScrollTop: number;
|
|
@@ -969,6 +975,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
969
975
|
getScrollContent: () => HTMLElement | null | undefined;
|
|
970
976
|
handleAfterEnter: () => void;
|
|
971
977
|
handleResize: () => void;
|
|
978
|
+
handleKeydown: (e: KeyboardEvent) => void;
|
|
979
|
+
handleKeyup: (e: KeyboardEvent) => void;
|
|
972
980
|
cssVars: import("vue").ComputedRef<{
|
|
973
981
|
'--n-arrow-color': string;
|
|
974
982
|
'--n-loading-color': string;
|
|
@@ -981,7 +989,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
981
989
|
'--n-node-text-color': string;
|
|
982
990
|
'--n-node-text-color-disabled': string;
|
|
983
991
|
'--n-drop-mark-color': string;
|
|
984
|
-
}
|
|
992
|
+
}> | undefined;
|
|
993
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
994
|
+
onRender: (() => void) | undefined;
|
|
985
995
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
986
996
|
readonly internalScrollable: BooleanConstructor;
|
|
987
997
|
readonly internalScrollablePadding: StringConstructor;
|
|
@@ -1108,6 +1118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1108
1118
|
dropMarkColor: string;
|
|
1109
1119
|
}, {
|
|
1110
1120
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
1121
|
+
labelLineHeight: string;
|
|
1111
1122
|
fontSizeSmall: string;
|
|
1112
1123
|
fontSizeMedium: string;
|
|
1113
1124
|
fontSizeLarge: string;
|
|
@@ -1153,6 +1164,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1153
1164
|
dropMarkColor: string;
|
|
1154
1165
|
}, {
|
|
1155
1166
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
1167
|
+
labelLineHeight: string;
|
|
1156
1168
|
fontSizeSmall: string;
|
|
1157
1169
|
fontSizeMedium: string;
|
|
1158
1170
|
fontSizeLarge: string;
|
|
@@ -1198,6 +1210,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1198
1210
|
dropMarkColor: string;
|
|
1199
1211
|
}, {
|
|
1200
1212
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
1213
|
+
labelLineHeight: string;
|
|
1201
1214
|
fontSizeSmall: string;
|
|
1202
1215
|
fontSizeMedium: string;
|
|
1203
1216
|
fontSizeLarge: string;
|
package/lib/tree/src/Tree.js
CHANGED
|
@@ -125,7 +125,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
125
125
|
name: 'Tree',
|
|
126
126
|
props: treeProps,
|
|
127
127
|
setup(props) {
|
|
128
|
-
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
128
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
129
129
|
const themeRef = (0, _mixins_1.useTheme)('Tree', '-tree', index_cssr_1.default, styles_1.treeLight, props, mergedClsPrefixRef);
|
|
130
130
|
const selfElRef = (0, vue_1.ref)(null);
|
|
131
131
|
const scrollbarInstRef = (0, vue_1.ref)(null);
|
|
@@ -988,7 +988,31 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
988
988
|
handleKeydown,
|
|
989
989
|
handleKeyup
|
|
990
990
|
};
|
|
991
|
-
|
|
991
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
992
|
+
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor } } = themeRef.value;
|
|
993
|
+
return {
|
|
994
|
+
'--n-arrow-color': arrowColor,
|
|
995
|
+
'--n-loading-color': loadingColor,
|
|
996
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
997
|
+
'--n-font-size': fontSize,
|
|
998
|
+
'--n-node-border-radius': nodeBorderRadius,
|
|
999
|
+
'--n-node-color-active': nodeColorActive,
|
|
1000
|
+
'--n-node-color-hover': nodeColorHover,
|
|
1001
|
+
'--n-node-color-pressed': nodeColorPressed,
|
|
1002
|
+
'--n-node-text-color': nodeTextColor,
|
|
1003
|
+
'--n-node-text-color-disabled': nodeTextColorDisabled,
|
|
1004
|
+
'--n-drop-mark-color': dropMarkColor
|
|
1005
|
+
};
|
|
1006
|
+
});
|
|
1007
|
+
const themeClassHandle = inlineThemeDisabled
|
|
1008
|
+
? (0, _mixins_1.useThemeClass)('tree', undefined, cssVarsRef, props)
|
|
1009
|
+
: undefined;
|
|
1010
|
+
return {
|
|
1011
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
1012
|
+
mergedTheme: themeRef,
|
|
1013
|
+
fNodes: mergedFNodesRef,
|
|
1014
|
+
aip: aipRef,
|
|
1015
|
+
selfElRef,
|
|
992
1016
|
virtualListInstRef,
|
|
993
1017
|
scrollbarInstRef,
|
|
994
1018
|
handleFocusout,
|
|
@@ -997,24 +1021,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
997
1021
|
getScrollContainer,
|
|
998
1022
|
getScrollContent,
|
|
999
1023
|
handleAfterEnter,
|
|
1000
|
-
handleResize,
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
'--n-node-border-radius': nodeBorderRadius,
|
|
1008
|
-
'--n-node-color-active': nodeColorActive,
|
|
1009
|
-
'--n-node-color-hover': nodeColorHover,
|
|
1010
|
-
'--n-node-color-pressed': nodeColorPressed,
|
|
1011
|
-
'--n-node-text-color': nodeTextColor,
|
|
1012
|
-
'--n-node-text-color-disabled': nodeTextColorDisabled,
|
|
1013
|
-
'--n-drop-mark-color': dropMarkColor
|
|
1014
|
-
};
|
|
1015
|
-
}) }, exposedMethods);
|
|
1024
|
+
handleResize,
|
|
1025
|
+
handleKeydown: exposedMethods.handleKeydown,
|
|
1026
|
+
handleKeyup: exposedMethods.handleKeyup,
|
|
1027
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
1028
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
1029
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
1030
|
+
};
|
|
1016
1031
|
},
|
|
1017
1032
|
render() {
|
|
1033
|
+
var _a;
|
|
1018
1034
|
const { mergedClsPrefix, blockNode, blockLine, draggable, disabled, internalFocusable, checkable, handleKeyup, handleKeydown, handleFocusout } = this;
|
|
1019
1035
|
const mergedFocusable = internalFocusable && !disabled;
|
|
1020
1036
|
const tabindex = mergedFocusable ? '0' : undefined;
|
|
@@ -1031,18 +1047,24 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1031
1047
|
const { mergedTheme, internalScrollablePadding } = this;
|
|
1032
1048
|
const padding = (0, seemly_1.getPadding)(internalScrollablePadding || '0');
|
|
1033
1049
|
return ((0, vue_1.h)(_internal_1.NxScrollbar, { ref: "scrollbarInstRef", onDragleave: draggable ? this.handleDragLeaveTree : undefined, container: this.getScrollContainer, content: this.getScrollContent, class: treeClass, theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar, tabindex: tabindex, onKeyup: mergedFocusable ? handleKeyup : undefined, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined }, {
|
|
1034
|
-
default: () =>
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1050
|
+
default: () => {
|
|
1051
|
+
var _a;
|
|
1052
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1053
|
+
return ((0, vue_1.h)(vueuc_1.VVirtualList, { ref: "virtualListInstRef", items: this.fNodes, itemSize: ITEM_SIZE, ignoreItemResize: this.aip, paddingTop: padding.top, paddingBottom: padding.bottom, class: this.themeClass, style: [
|
|
1054
|
+
this.cssVars,
|
|
1055
|
+
{
|
|
1056
|
+
paddingLeft: padding.left,
|
|
1057
|
+
paddingRight: padding.right
|
|
1058
|
+
}
|
|
1059
|
+
], onScroll: this.handleScroll, onResize: this.handleResize, showScrollbar: false, itemResizable: true }, {
|
|
1060
|
+
default: ({ item }) => createNode(item)
|
|
1061
|
+
}));
|
|
1062
|
+
}
|
|
1043
1063
|
}));
|
|
1044
1064
|
}
|
|
1045
1065
|
const { internalScrollable } = this;
|
|
1066
|
+
treeClass.push(this.themeClass);
|
|
1067
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1046
1068
|
if (internalScrollable) {
|
|
1047
1069
|
return ((0, vue_1.h)(_internal_1.NxScrollbar, { class: treeClass, tabindex: tabindex, onKeyup: mergedFocusable ? handleKeyup : undefined, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, style: this.cssVars, contentStyle: { padding: this.internalScrollablePadding } }, {
|
|
1048
1070
|
default: () => ((0, vue_1.h)("div", { onDragleave: draggable ? this.handleDragLeaveTree : undefined, ref: "selfElRef" }, this.fNodes.map(createNode)))
|
|
@@ -25,6 +25,7 @@ declare const treeLight: import("../../_mixins/use-theme").Theme<"Tree", {
|
|
|
25
25
|
dropMarkColor: string;
|
|
26
26
|
}, {
|
|
27
27
|
Checkbox: import("../../_mixins/use-theme").Theme<"Checkbox", {
|
|
28
|
+
labelLineHeight: string;
|
|
28
29
|
fontSizeSmall: string;
|
|
29
30
|
fontSizeMedium: string;
|
|
30
31
|
fontSizeLarge: string;
|