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
package/lib/modal/src/Modal.d.ts
CHANGED
|
@@ -123,9 +123,9 @@ declare const modalProps: {
|
|
|
123
123
|
fontSizeMedium: string;
|
|
124
124
|
fontSizeLarge: string;
|
|
125
125
|
opacityDisabled: string;
|
|
126
|
-
colorOpacitySecondary:
|
|
127
|
-
colorOpacitySecondaryHover:
|
|
128
|
-
colorOpacitySecondaryPressed:
|
|
126
|
+
colorOpacitySecondary: string;
|
|
127
|
+
colorOpacitySecondaryHover: string;
|
|
128
|
+
colorOpacitySecondaryPressed: string;
|
|
129
129
|
colorSecondary: string;
|
|
130
130
|
colorSecondaryHover: string;
|
|
131
131
|
colorSecondaryPressed: string;
|
|
@@ -397,9 +397,9 @@ declare const modalProps: {
|
|
|
397
397
|
fontSizeMedium: string;
|
|
398
398
|
fontSizeLarge: string;
|
|
399
399
|
opacityDisabled: string;
|
|
400
|
-
colorOpacitySecondary:
|
|
401
|
-
colorOpacitySecondaryHover:
|
|
402
|
-
colorOpacitySecondaryPressed:
|
|
400
|
+
colorOpacitySecondary: string;
|
|
401
|
+
colorOpacitySecondaryHover: string;
|
|
402
|
+
colorOpacitySecondaryPressed: string;
|
|
403
403
|
colorSecondary: string;
|
|
404
404
|
colorSecondaryHover: string;
|
|
405
405
|
colorSecondaryPressed: string;
|
|
@@ -671,9 +671,9 @@ declare const modalProps: {
|
|
|
671
671
|
fontSizeMedium: string;
|
|
672
672
|
fontSizeLarge: string;
|
|
673
673
|
opacityDisabled: string;
|
|
674
|
-
colorOpacitySecondary:
|
|
675
|
-
colorOpacitySecondaryHover:
|
|
676
|
-
colorOpacitySecondaryPressed:
|
|
674
|
+
colorOpacitySecondary: string;
|
|
675
|
+
colorOpacitySecondaryHover: string;
|
|
676
|
+
colorOpacitySecondaryPressed: string;
|
|
677
677
|
colorSecondary: string;
|
|
678
678
|
colorSecondaryHover: string;
|
|
679
679
|
colorSecondaryPressed: string;
|
|
@@ -1019,9 +1019,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1019
1019
|
fontSizeMedium: string;
|
|
1020
1020
|
fontSizeLarge: string;
|
|
1021
1021
|
opacityDisabled: string;
|
|
1022
|
-
colorOpacitySecondary:
|
|
1023
|
-
colorOpacitySecondaryHover:
|
|
1024
|
-
colorOpacitySecondaryPressed:
|
|
1022
|
+
colorOpacitySecondary: string;
|
|
1023
|
+
colorOpacitySecondaryHover: string;
|
|
1024
|
+
colorOpacitySecondaryPressed: string;
|
|
1025
1025
|
colorSecondary: string;
|
|
1026
1026
|
colorSecondaryHover: string;
|
|
1027
1027
|
colorSecondaryPressed: string;
|
|
@@ -1293,9 +1293,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1293
1293
|
fontSizeMedium: string;
|
|
1294
1294
|
fontSizeLarge: string;
|
|
1295
1295
|
opacityDisabled: string;
|
|
1296
|
-
colorOpacitySecondary:
|
|
1297
|
-
colorOpacitySecondaryHover:
|
|
1298
|
-
colorOpacitySecondaryPressed:
|
|
1296
|
+
colorOpacitySecondary: string;
|
|
1297
|
+
colorOpacitySecondaryHover: string;
|
|
1298
|
+
colorOpacitySecondaryPressed: string;
|
|
1299
1299
|
colorSecondary: string;
|
|
1300
1300
|
colorSecondaryHover: string;
|
|
1301
1301
|
colorSecondaryPressed: string;
|
|
@@ -1567,9 +1567,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1567
1567
|
fontSizeMedium: string;
|
|
1568
1568
|
fontSizeLarge: string;
|
|
1569
1569
|
opacityDisabled: string;
|
|
1570
|
-
colorOpacitySecondary:
|
|
1571
|
-
colorOpacitySecondaryHover:
|
|
1572
|
-
colorOpacitySecondaryPressed:
|
|
1570
|
+
colorOpacitySecondary: string;
|
|
1571
|
+
colorOpacitySecondaryHover: string;
|
|
1572
|
+
colorOpacitySecondaryPressed: string;
|
|
1573
1573
|
colorSecondary: string;
|
|
1574
1574
|
colorSecondaryHover: string;
|
|
1575
1575
|
colorSecondaryPressed: string;
|
|
@@ -1862,9 +1862,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1862
1862
|
fontSizeMedium: string;
|
|
1863
1863
|
fontSizeLarge: string;
|
|
1864
1864
|
opacityDisabled: string;
|
|
1865
|
-
colorOpacitySecondary:
|
|
1866
|
-
colorOpacitySecondaryHover:
|
|
1867
|
-
colorOpacitySecondaryPressed:
|
|
1865
|
+
colorOpacitySecondary: string;
|
|
1866
|
+
colorOpacitySecondaryHover: string;
|
|
1867
|
+
colorOpacitySecondaryPressed: string;
|
|
1868
1868
|
colorSecondary: string;
|
|
1869
1869
|
colorSecondaryHover: string;
|
|
1870
1870
|
colorSecondaryPressed: string;
|
|
@@ -2136,9 +2136,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2136
2136
|
fontSizeMedium: string;
|
|
2137
2137
|
fontSizeLarge: string;
|
|
2138
2138
|
opacityDisabled: string;
|
|
2139
|
-
colorOpacitySecondary:
|
|
2140
|
-
colorOpacitySecondaryHover:
|
|
2141
|
-
colorOpacitySecondaryPressed:
|
|
2139
|
+
colorOpacitySecondary: string;
|
|
2140
|
+
colorOpacitySecondaryHover: string;
|
|
2141
|
+
colorOpacitySecondaryPressed: string;
|
|
2142
2142
|
colorSecondary: string;
|
|
2143
2143
|
colorSecondaryHover: string;
|
|
2144
2144
|
colorSecondaryPressed: string;
|
|
@@ -2410,9 +2410,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2410
2410
|
fontSizeMedium: string;
|
|
2411
2411
|
fontSizeLarge: string;
|
|
2412
2412
|
opacityDisabled: string;
|
|
2413
|
-
colorOpacitySecondary:
|
|
2414
|
-
colorOpacitySecondaryHover:
|
|
2415
|
-
colorOpacitySecondaryPressed:
|
|
2413
|
+
colorOpacitySecondary: string;
|
|
2414
|
+
colorOpacitySecondaryHover: string;
|
|
2415
|
+
colorOpacitySecondaryPressed: string;
|
|
2416
2416
|
colorSecondary: string;
|
|
2417
2417
|
colorSecondaryHover: string;
|
|
2418
2418
|
colorSecondaryPressed: string;
|
|
@@ -2796,9 +2796,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2796
2796
|
fontSizeMedium: string;
|
|
2797
2797
|
fontSizeLarge: string;
|
|
2798
2798
|
opacityDisabled: string;
|
|
2799
|
-
colorOpacitySecondary:
|
|
2800
|
-
colorOpacitySecondaryHover:
|
|
2801
|
-
colorOpacitySecondaryPressed:
|
|
2799
|
+
colorOpacitySecondary: string;
|
|
2800
|
+
colorOpacitySecondaryHover: string;
|
|
2801
|
+
colorOpacitySecondaryPressed: string;
|
|
2802
2802
|
colorSecondary: string;
|
|
2803
2803
|
colorSecondaryHover: string;
|
|
2804
2804
|
colorSecondaryPressed: string;
|
|
@@ -3070,9 +3070,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3070
3070
|
fontSizeMedium: string;
|
|
3071
3071
|
fontSizeLarge: string;
|
|
3072
3072
|
opacityDisabled: string;
|
|
3073
|
-
colorOpacitySecondary:
|
|
3074
|
-
colorOpacitySecondaryHover:
|
|
3075
|
-
colorOpacitySecondaryPressed:
|
|
3073
|
+
colorOpacitySecondary: string;
|
|
3074
|
+
colorOpacitySecondaryHover: string;
|
|
3075
|
+
colorOpacitySecondaryPressed: string;
|
|
3076
3076
|
colorSecondary: string;
|
|
3077
3077
|
colorSecondaryHover: string;
|
|
3078
3078
|
colorSecondaryPressed: string;
|
|
@@ -3344,9 +3344,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3344
3344
|
fontSizeMedium: string;
|
|
3345
3345
|
fontSizeLarge: string;
|
|
3346
3346
|
opacityDisabled: string;
|
|
3347
|
-
colorOpacitySecondary:
|
|
3348
|
-
colorOpacitySecondaryHover:
|
|
3349
|
-
colorOpacitySecondaryPressed:
|
|
3347
|
+
colorOpacitySecondary: string;
|
|
3348
|
+
colorOpacitySecondaryHover: string;
|
|
3349
|
+
colorOpacitySecondaryPressed: string;
|
|
3350
3350
|
colorSecondary: string;
|
|
3351
3351
|
colorSecondaryHover: string;
|
|
3352
3352
|
colorSecondaryPressed: string;
|
|
@@ -56,9 +56,9 @@ declare const modalLight: import("../../_mixins").Theme<"Modal", {
|
|
|
56
56
|
fontSizeMedium: string;
|
|
57
57
|
fontSizeLarge: string;
|
|
58
58
|
opacityDisabled: string;
|
|
59
|
-
colorOpacitySecondary:
|
|
60
|
-
colorOpacitySecondaryHover:
|
|
61
|
-
colorOpacitySecondaryPressed:
|
|
59
|
+
colorOpacitySecondary: string;
|
|
60
|
+
colorOpacitySecondaryHover: string;
|
|
61
|
+
colorOpacitySecondaryPressed: string;
|
|
62
62
|
colorSecondary: string;
|
|
63
63
|
colorSecondaryHover: string;
|
|
64
64
|
colorSecondaryPressed: string;
|
|
@@ -50,8 +50,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
50
50
|
`${mergedClsPrefix}-page-header-wrapper`,
|
|
51
51
|
this.rtlEnabled && `${mergedClsPrefix}-page-header-wrapper--rtl`
|
|
52
52
|
] },
|
|
53
|
-
headerSlot ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header-header`, key: "
|
|
54
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header`, key: "header" },
|
|
53
|
+
headerSlot ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header-header`, key: "breadcrumb" }, headerSlot())) : null,
|
|
54
|
+
(showBack || avatarSlot || showTitle || showSubtitle || showExtra) && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header`, key: "header" },
|
|
55
55
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__main`, key: "back" },
|
|
56
56
|
showBack ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__back`, onClick: onBack },
|
|
57
57
|
(0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
@@ -60,7 +60,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
60
60
|
avatarSlot ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__avatar` }, avatarSlot())) : null,
|
|
61
61
|
showTitle ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__title`, key: "title" }, title || titleSlot())) : null,
|
|
62
62
|
showSubtitle ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__subtitle`, key: "subtitle" }, subtitle || subtitleSlot())) : null),
|
|
63
|
-
showExtra ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__extra` }, extra || extraSlot())) : null),
|
|
63
|
+
showExtra ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header__extra` }, extra || extraSlot())) : null)),
|
|
64
64
|
defaultSlot ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header-content`, key: "content" }, defaultSlot())) : null,
|
|
65
65
|
footerSlot ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-page-header-footer`, key: "footer" }, footerSlot())) : null));
|
|
66
66
|
}
|
|
@@ -50,9 +50,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('page-header-header', `
|
|
|
50
50
|
transition: color .3s var(--bezier);
|
|
51
51
|
color: var(--subtitle-text-color);
|
|
52
52
|
`)]), (0, cssr_1.cB)('page-header-content', `
|
|
53
|
-
margin-top: 20px;
|
|
54
53
|
font-size: var(--font-size);
|
|
55
|
-
|
|
56
|
-
margin-top: 20px;
|
|
54
|
+
`, [(0, cssr_1.c)('&:not(:first-child)', 'margin-top: 20px;')]), (0, cssr_1.cB)('page-header-footer', `
|
|
57
55
|
font-size: var(--font-size);
|
|
58
|
-
|
|
56
|
+
`, [(0, cssr_1.c)('&:not(:first-child)', 'margin-top: 20px;')])]);
|
|
@@ -102,9 +102,9 @@ declare const popconfirmProps: {
|
|
|
102
102
|
fontSizeMedium: string;
|
|
103
103
|
fontSizeLarge: string;
|
|
104
104
|
opacityDisabled: string;
|
|
105
|
-
colorOpacitySecondary:
|
|
106
|
-
colorOpacitySecondaryHover:
|
|
107
|
-
colorOpacitySecondaryPressed:
|
|
105
|
+
colorOpacitySecondary: string;
|
|
106
|
+
colorOpacitySecondaryHover: string;
|
|
107
|
+
colorOpacitySecondaryPressed: string;
|
|
108
108
|
colorSecondary: string;
|
|
109
109
|
colorSecondaryHover: string;
|
|
110
110
|
colorSecondaryPressed: string;
|
|
@@ -326,9 +326,9 @@ declare const popconfirmProps: {
|
|
|
326
326
|
fontSizeMedium: string;
|
|
327
327
|
fontSizeLarge: string;
|
|
328
328
|
opacityDisabled: string;
|
|
329
|
-
colorOpacitySecondary:
|
|
330
|
-
colorOpacitySecondaryHover:
|
|
331
|
-
colorOpacitySecondaryPressed:
|
|
329
|
+
colorOpacitySecondary: string;
|
|
330
|
+
colorOpacitySecondaryHover: string;
|
|
331
|
+
colorOpacitySecondaryPressed: string;
|
|
332
332
|
colorSecondary: string;
|
|
333
333
|
colorSecondaryHover: string;
|
|
334
334
|
colorSecondaryPressed: string;
|
|
@@ -550,9 +550,9 @@ declare const popconfirmProps: {
|
|
|
550
550
|
fontSizeMedium: string;
|
|
551
551
|
fontSizeLarge: string;
|
|
552
552
|
opacityDisabled: string;
|
|
553
|
-
colorOpacitySecondary:
|
|
554
|
-
colorOpacitySecondaryHover:
|
|
555
|
-
colorOpacitySecondaryPressed:
|
|
553
|
+
colorOpacitySecondary: string;
|
|
554
|
+
colorOpacitySecondaryHover: string;
|
|
555
|
+
colorOpacitySecondaryPressed: string;
|
|
556
556
|
colorSecondary: string;
|
|
557
557
|
colorSecondaryHover: string;
|
|
558
558
|
colorSecondaryPressed: string;
|
|
@@ -858,9 +858,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
858
858
|
fontSizeMedium: string;
|
|
859
859
|
fontSizeLarge: string;
|
|
860
860
|
opacityDisabled: string;
|
|
861
|
-
colorOpacitySecondary:
|
|
862
|
-
colorOpacitySecondaryHover:
|
|
863
|
-
colorOpacitySecondaryPressed:
|
|
861
|
+
colorOpacitySecondary: string;
|
|
862
|
+
colorOpacitySecondaryHover: string;
|
|
863
|
+
colorOpacitySecondaryPressed: string;
|
|
864
864
|
colorSecondary: string;
|
|
865
865
|
colorSecondaryHover: string;
|
|
866
866
|
colorSecondaryPressed: string;
|
|
@@ -1082,9 +1082,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1082
1082
|
fontSizeMedium: string;
|
|
1083
1083
|
fontSizeLarge: string;
|
|
1084
1084
|
opacityDisabled: string;
|
|
1085
|
-
colorOpacitySecondary:
|
|
1086
|
-
colorOpacitySecondaryHover:
|
|
1087
|
-
colorOpacitySecondaryPressed:
|
|
1085
|
+
colorOpacitySecondary: string;
|
|
1086
|
+
colorOpacitySecondaryHover: string;
|
|
1087
|
+
colorOpacitySecondaryPressed: string;
|
|
1088
1088
|
colorSecondary: string;
|
|
1089
1089
|
colorSecondaryHover: string;
|
|
1090
1090
|
colorSecondaryPressed: string;
|
|
@@ -1306,9 +1306,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1306
1306
|
fontSizeMedium: string;
|
|
1307
1307
|
fontSizeLarge: string;
|
|
1308
1308
|
opacityDisabled: string;
|
|
1309
|
-
colorOpacitySecondary:
|
|
1310
|
-
colorOpacitySecondaryHover:
|
|
1311
|
-
colorOpacitySecondaryPressed:
|
|
1309
|
+
colorOpacitySecondary: string;
|
|
1310
|
+
colorOpacitySecondaryHover: string;
|
|
1311
|
+
colorOpacitySecondaryPressed: string;
|
|
1312
1312
|
colorSecondary: string;
|
|
1313
1313
|
colorSecondaryHover: string;
|
|
1314
1314
|
colorSecondaryPressed: string;
|
|
@@ -1636,9 +1636,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1636
1636
|
fontSizeMedium: string;
|
|
1637
1637
|
fontSizeLarge: string;
|
|
1638
1638
|
opacityDisabled: string;
|
|
1639
|
-
colorOpacitySecondary:
|
|
1640
|
-
colorOpacitySecondaryHover:
|
|
1641
|
-
colorOpacitySecondaryPressed:
|
|
1639
|
+
colorOpacitySecondary: string;
|
|
1640
|
+
colorOpacitySecondaryHover: string;
|
|
1641
|
+
colorOpacitySecondaryPressed: string;
|
|
1642
1642
|
colorSecondary: string;
|
|
1643
1643
|
colorSecondaryHover: string;
|
|
1644
1644
|
colorSecondaryPressed: string;
|
|
@@ -1945,9 +1945,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1945
1945
|
fontSizeMedium: string;
|
|
1946
1946
|
fontSizeLarge: string;
|
|
1947
1947
|
opacityDisabled: string;
|
|
1948
|
-
colorOpacitySecondary:
|
|
1949
|
-
colorOpacitySecondaryHover:
|
|
1950
|
-
colorOpacitySecondaryPressed:
|
|
1948
|
+
colorOpacitySecondary: string;
|
|
1949
|
+
colorOpacitySecondaryHover: string;
|
|
1950
|
+
colorOpacitySecondaryPressed: string;
|
|
1951
1951
|
colorSecondary: string;
|
|
1952
1952
|
colorSecondaryHover: string;
|
|
1953
1953
|
colorSecondaryPressed: string;
|
|
@@ -2169,9 +2169,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2169
2169
|
fontSizeMedium: string;
|
|
2170
2170
|
fontSizeLarge: string;
|
|
2171
2171
|
opacityDisabled: string;
|
|
2172
|
-
colorOpacitySecondary:
|
|
2173
|
-
colorOpacitySecondaryHover:
|
|
2174
|
-
colorOpacitySecondaryPressed:
|
|
2172
|
+
colorOpacitySecondary: string;
|
|
2173
|
+
colorOpacitySecondaryHover: string;
|
|
2174
|
+
colorOpacitySecondaryPressed: string;
|
|
2175
2175
|
colorSecondary: string;
|
|
2176
2176
|
colorSecondaryHover: string;
|
|
2177
2177
|
colorSecondaryPressed: string;
|
|
@@ -2393,9 +2393,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2393
2393
|
fontSizeMedium: string;
|
|
2394
2394
|
fontSizeLarge: string;
|
|
2395
2395
|
opacityDisabled: string;
|
|
2396
|
-
colorOpacitySecondary:
|
|
2397
|
-
colorOpacitySecondaryHover:
|
|
2398
|
-
colorOpacitySecondaryPressed:
|
|
2396
|
+
colorOpacitySecondary: string;
|
|
2397
|
+
colorOpacitySecondaryHover: string;
|
|
2398
|
+
colorOpacitySecondaryPressed: string;
|
|
2399
2399
|
colorSecondary: string;
|
|
2400
2400
|
colorSecondaryHover: string;
|
|
2401
2401
|
colorSecondaryPressed: string;
|
|
@@ -24,9 +24,9 @@ declare const popconfirmLight: import("../../_mixins").Theme<"Popconfirm", {
|
|
|
24
24
|
fontSizeMedium: string;
|
|
25
25
|
fontSizeLarge: string;
|
|
26
26
|
opacityDisabled: string;
|
|
27
|
-
colorOpacitySecondary:
|
|
28
|
-
colorOpacitySecondaryHover:
|
|
29
|
-
colorOpacitySecondaryPressed:
|
|
27
|
+
colorOpacitySecondary: string;
|
|
28
|
+
colorOpacitySecondaryHover: string;
|
|
29
|
+
colorOpacitySecondaryPressed: string;
|
|
30
30
|
colorSecondary: string;
|
|
31
31
|
colorSecondaryHover: string;
|
|
32
32
|
colorSecondaryPressed: string;
|
|
@@ -141,9 +141,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
141
141
|
setup(props) {
|
|
142
142
|
if (process.env.NODE_ENV !== 'production') {
|
|
143
143
|
(0, vue_1.watchEffect)(() => {
|
|
144
|
-
if (props.
|
|
144
|
+
if (props.maxWidth !== undefined) {
|
|
145
145
|
(0, _utils_1.warnOnce)('popover', '`max-width` is deprecated, please use `style` instead.');
|
|
146
146
|
}
|
|
147
|
+
if (props.minWidth !== undefined) {
|
|
148
|
+
(0, _utils_1.warnOnce)('popover', '`min-width` is deprecated, please use `style` instead.');
|
|
149
|
+
}
|
|
147
150
|
if (props.arrow !== undefined) {
|
|
148
151
|
(0, _utils_1.warnOnce)('popover', '`arrow` is deprecated, please use `showArrow` instead.');
|
|
149
152
|
}
|
|
@@ -58,10 +58,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
58
58
|
const styleRef = (0, vue_1.computed)(() => {
|
|
59
59
|
return [
|
|
60
60
|
{
|
|
61
|
-
width: props.width === 'trigger' ? '' : (0, _utils_1.formatLength)(props.width)
|
|
62
|
-
maxWidth: (0, _utils_1.formatLength)(props.maxWidth),
|
|
63
|
-
minWidth: (0, _utils_1.formatLength)(props.minWidth)
|
|
61
|
+
width: props.width === 'trigger' ? '' : (0, _utils_1.formatLength)(props.width)
|
|
64
62
|
},
|
|
63
|
+
props.maxWidth ? { maxWidth: (0, _utils_1.formatLength)(props.maxWidth) } : {},
|
|
64
|
+
props.minWidth ? { minWidth: (0, _utils_1.formatLength)(props.minWidth) } : {},
|
|
65
65
|
cssVarsRef.value
|
|
66
66
|
];
|
|
67
67
|
});
|
|
@@ -23,11 +23,7 @@ declare const popselectProps: {
|
|
|
23
23
|
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
24
24
|
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
25
25
|
renderLabel: PropType<import("../../_internal/select-menu/src/interface").RenderLabel>;
|
|
26
|
-
onChange:
|
|
27
|
-
readonly type: PropType<import("../../_utils").MaybeArray<import("../../select/src/interface").OnUpdateValue> | undefined>;
|
|
28
|
-
readonly validator: () => boolean;
|
|
29
|
-
readonly default: undefined;
|
|
30
|
-
};
|
|
26
|
+
onChange: PropType<import("../../_utils").MaybeArray<import("../../select/src/interface").OnUpdateValue> | undefined>;
|
|
31
27
|
placement: {
|
|
32
28
|
default: string;
|
|
33
29
|
type: PropType<import("vueuc").FollowerPlacement>;
|
|
@@ -322,11 +318,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
322
318
|
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
323
319
|
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
324
320
|
renderLabel: PropType<import("../../_internal/select-menu/src/interface").RenderLabel>;
|
|
325
|
-
onChange:
|
|
326
|
-
readonly type: PropType<import("../../_utils").MaybeArray<import("../../select/src/interface").OnUpdateValue> | undefined>;
|
|
327
|
-
readonly validator: () => boolean;
|
|
328
|
-
readonly default: undefined;
|
|
329
|
-
};
|
|
321
|
+
onChange: PropType<import("../../_utils").MaybeArray<import("../../select/src/interface").OnUpdateValue> | undefined>;
|
|
330
322
|
placement: {
|
|
331
323
|
default: string;
|
|
332
324
|
type: PropType<import("vueuc").FollowerPlacement>;
|
|
@@ -1108,7 +1100,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1108
1100
|
multiple: boolean;
|
|
1109
1101
|
disabled: boolean;
|
|
1110
1102
|
duration: number;
|
|
1111
|
-
onChange: import("../../_utils").MaybeArray<import("../../select/src/interface").OnUpdateValue> | undefined;
|
|
1112
1103
|
to: string | boolean | HTMLElement;
|
|
1113
1104
|
raw: boolean;
|
|
1114
1105
|
placement: import("vueuc").FollowerPlacement;
|
|
@@ -57,7 +57,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
57
57
|
};
|
|
58
58
|
},
|
|
59
59
|
render() {
|
|
60
|
-
const { mergedTheme, $attrs } = this;
|
|
60
|
+
const { mergedTheme, $attrs, $slots } = this;
|
|
61
61
|
const popoverProps = {
|
|
62
62
|
theme: mergedTheme.peers.Popover,
|
|
63
63
|
themeOverrides: mergedTheme.peerOverrides.Popover,
|
|
@@ -69,7 +69,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
69
69
|
return ((0, vue_1.h)(PopselectPanel_1.default, Object.assign({}, (0, vue_1.mergeProps)($attrs, {
|
|
70
70
|
class: className,
|
|
71
71
|
style
|
|
72
|
-
}), (0, _utils_1.keep)(this.$props, PopselectPanel_1.panelPropKeys), { ref: (0, _utils_1.createRefSetter)(ref), onMouseenter: onMouseenter, onMouseleave: onMouseleave })));
|
|
72
|
+
}), (0, _utils_1.keep)(this.$props, PopselectPanel_1.panelPropKeys), { ref: (0, _utils_1.createRefSetter)(ref), onMouseenter: onMouseenter, onMouseleave: onMouseleave }), $slots));
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
return ((0, vue_1.h)(popover_1.NPopover, Object.assign({}, (0, _utils_1.omit)(this.$props, PopselectPanel_1.panelPropKeys), popoverProps), {
|
|
@@ -26,11 +26,7 @@ export declare const panelProps: {
|
|
|
26
26
|
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
27
27
|
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
28
28
|
readonly renderLabel: PropType<RenderLabel>;
|
|
29
|
-
readonly onChange:
|
|
30
|
-
readonly type: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
31
|
-
readonly validator: () => boolean;
|
|
32
|
-
readonly default: undefined;
|
|
33
|
-
};
|
|
29
|
+
readonly onChange: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
34
30
|
};
|
|
35
31
|
export declare const panelPropKeys: ("value" | "size" | "width" | "multiple" | "onChange" | "onMouseenter" | "onMouseleave" | "scrollable" | "renderLabel" | "options" | "onUpdate:value" | "onUpdateValue" | "cancelable")[];
|
|
36
32
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -55,11 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
51
|
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
56
52
|
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
57
53
|
readonly renderLabel: PropType<RenderLabel>;
|
|
58
|
-
readonly onChange:
|
|
59
|
-
readonly type: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
60
|
-
readonly validator: () => boolean;
|
|
61
|
-
readonly default: undefined;
|
|
62
|
-
};
|
|
54
|
+
readonly onChange: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
63
55
|
}, {
|
|
64
56
|
mergedTheme: import("vue").Ref<{
|
|
65
57
|
common: {
|
|
@@ -266,6 +258,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
266
258
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
267
259
|
treeMate: import("vue").ComputedRef<import("treemate").TreeMate<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, SelectGroupOption, SelectIgnoredOption>>;
|
|
268
260
|
handleToggle: (tmNode: TreeNode<SelectBaseOption>) => void;
|
|
261
|
+
handleMenuMousedown: (e: MouseEvent) => void;
|
|
269
262
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
270
263
|
readonly multiple?: unknown;
|
|
271
264
|
readonly value?: unknown;
|
|
@@ -299,7 +292,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
299
292
|
value: Value | null;
|
|
300
293
|
size: PopselectSize;
|
|
301
294
|
multiple: boolean;
|
|
302
|
-
onChange: MaybeArray<OnUpdateValue> | undefined;
|
|
303
295
|
scrollable: boolean;
|
|
304
296
|
options: SelectMixedOption[];
|
|
305
297
|
cancelable: boolean;
|
|
@@ -4,6 +4,7 @@ exports.panelPropKeys = exports.panelProps = void 0;
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
5
5
|
const vue_1 = require("vue");
|
|
6
6
|
const treemate_1 = require("treemate");
|
|
7
|
+
const seemly_1 = require("seemly");
|
|
7
8
|
const utils_1 = require("../../select/src/utils");
|
|
8
9
|
const _mixins_1 = require("../../_mixins");
|
|
9
10
|
const _internal_1 = require("../../_internal");
|
|
@@ -32,20 +33,20 @@ exports.panelProps = {
|
|
|
32
33
|
onMouseleave: Function,
|
|
33
34
|
renderLabel: Function,
|
|
34
35
|
// deprecated
|
|
35
|
-
onChange:
|
|
36
|
-
type: [Function, Array],
|
|
37
|
-
validator: () => {
|
|
38
|
-
(0, _utils_1.warn)('popselect', '`on-change` is deprecated, please use `on-update:value` instead.');
|
|
39
|
-
return true;
|
|
40
|
-
},
|
|
41
|
-
default: undefined
|
|
42
|
-
}
|
|
36
|
+
onChange: [Function, Array]
|
|
43
37
|
};
|
|
44
38
|
exports.panelPropKeys = (0, _utils_1.keysOf)(exports.panelProps);
|
|
45
39
|
exports.default = (0, vue_1.defineComponent)({
|
|
46
40
|
name: 'PopselectPanel',
|
|
47
41
|
props: exports.panelProps,
|
|
48
42
|
setup(props) {
|
|
43
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
44
|
+
(0, vue_1.watchEffect)(() => {
|
|
45
|
+
if (props.onChange !== undefined) {
|
|
46
|
+
(0, _utils_1.warn)('popselect', '`on-change` is deprecated, please use `on-update:value` instead.');
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
49
50
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
50
51
|
const NPopselect = (0, vue_1.inject)(interface_1.popselectInjectionKey);
|
|
51
52
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
@@ -65,6 +66,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
65
66
|
function handleToggle(tmNode) {
|
|
66
67
|
toggle(tmNode.key);
|
|
67
68
|
}
|
|
69
|
+
function handleMenuMousedown(e) {
|
|
70
|
+
if (!(0, seemly_1.happensIn)(e, 'action'))
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
}
|
|
68
73
|
function toggle(value) {
|
|
69
74
|
const { value: { getNode } } = treeMateRef;
|
|
70
75
|
if (props.multiple) {
|
|
@@ -121,10 +126,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
121
126
|
mergedTheme: NPopselect.mergedThemeRef,
|
|
122
127
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
123
128
|
treeMate: treeMateRef,
|
|
124
|
-
handleToggle
|
|
129
|
+
handleToggle,
|
|
130
|
+
handleMenuMousedown
|
|
125
131
|
};
|
|
126
132
|
},
|
|
127
133
|
render() {
|
|
128
|
-
return ((0, vue_1.h)(_internal_1.NInternalSelectMenu, { clsPrefix: this.mergedClsPrefix, theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides.InternalSelectMenu, multiple: this.multiple, treeMate: this.treeMate, size: this.size, value: this.value, width: this.width, virtualScroll: false, scrollable: this.scrollable, renderLabel: this.renderLabel, onToggle: this.handleToggle, onMouseenter: this.onMouseenter, onMouseleave: this.onMouseenter }));
|
|
134
|
+
return ((0, vue_1.h)(_internal_1.NInternalSelectMenu, { clsPrefix: this.mergedClsPrefix, focusable: true, theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides.InternalSelectMenu, multiple: this.multiple, treeMate: this.treeMate, size: this.size, value: this.value, width: this.width, virtualScroll: false, scrollable: this.scrollable, renderLabel: this.renderLabel, onToggle: this.handleToggle, onMouseenter: this.onMouseenter, onMouseleave: this.onMouseenter, onMousedown: this.handleMenuMousedown }, this.$slots));
|
|
129
135
|
}
|
|
130
136
|
});
|
package/lib/radio/src/Radio.js
CHANGED
|
@@ -41,15 +41,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
41
41
|
},
|
|
42
42
|
render() {
|
|
43
43
|
const { $slots, mergedClsPrefix } = this;
|
|
44
|
-
return ((0, vue_1.h)("
|
|
44
|
+
return ((0, vue_1.h)("label", { class: [
|
|
45
45
|
`${mergedClsPrefix}-radio`,
|
|
46
46
|
{
|
|
47
47
|
[`${mergedClsPrefix}-radio--disabled`]: this.mergedDisabled,
|
|
48
48
|
[`${mergedClsPrefix}-radio--checked`]: this.renderSafeChecked,
|
|
49
49
|
[`${mergedClsPrefix}-radio--focus`]: this.focus
|
|
50
50
|
}
|
|
51
|
-
], style: this.cssVars
|
|
52
|
-
(0, vue_1.h)("input", { ref: "inputRef", type: "radio", class: `${mergedClsPrefix}-
|
|
51
|
+
], style: this.cssVars },
|
|
52
|
+
(0, vue_1.h)("input", { ref: "inputRef", type: "radio", class: `${mergedClsPrefix}-radio-input`, value: this.value, name: this.mergedName, checked: this.renderSafeChecked, disabled: this.mergedDisabled, onChange: this.handleRadioInputChange, onFocus: this.handleRadioInputFocus, onBlur: this.handleRadioInputBlur }),
|
|
53
53
|
(0, vue_1.h)("div", { class: [
|
|
54
54
|
`${mergedClsPrefix}-radio__dot`,
|
|
55
55
|
this.renderSafeChecked && `${mergedClsPrefix}-radio__dot--checked`
|
|
@@ -13,16 +13,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
13
13
|
},
|
|
14
14
|
render() {
|
|
15
15
|
const { mergedClsPrefix } = this;
|
|
16
|
-
return ((0, vue_1.h)("
|
|
16
|
+
return ((0, vue_1.h)("label", { class: [
|
|
17
17
|
`${mergedClsPrefix}-radio-button`,
|
|
18
18
|
{
|
|
19
19
|
[`${mergedClsPrefix}-radio-button--disabled`]: this.mergedDisabled,
|
|
20
|
-
[`${mergedClsPrefix}-radio-button--checked`]: this
|
|
21
|
-
.renderSafeChecked,
|
|
20
|
+
[`${mergedClsPrefix}-radio-button--checked`]: this.renderSafeChecked,
|
|
22
21
|
[`${mergedClsPrefix}-radio-button--focus`]: this.focus
|
|
23
22
|
}
|
|
24
|
-
]
|
|
25
|
-
(0, vue_1.h)("input", { ref: "inputRef", type: "radio", class: `${mergedClsPrefix}-radio-
|
|
23
|
+
] },
|
|
24
|
+
(0, vue_1.h)("input", { ref: "inputRef", type: "radio", class: `${mergedClsPrefix}-radio-input`, value: this.value, name: this.mergedName, checked: this.renderSafeChecked, disabled: this.mergedDisabled, onChange: this.handleRadioInputChange, onFocus: this.handleRadioInputFocus, onBlur: this.handleRadioInputBlur }),
|
|
26
25
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-radio-button__state-border` }),
|
|
27
26
|
(0, vue_1.h)("span", { ref: "labelRef" }, this.$slots)));
|
|
28
27
|
}
|
|
@@ -54,12 +54,16 @@ exports.default = (0, cssr_1.cB)('radio-group', `
|
|
|
54
54
|
color: var(--button-text-color);
|
|
55
55
|
border-top: 1px solid var(--button-border-color);
|
|
56
56
|
border-bottom: 1px solid var(--button-border-color);
|
|
57
|
-
`, [(0, cssr_1.
|
|
57
|
+
`, [(0, cssr_1.cB)('radio-input', `
|
|
58
|
+
position: absolute;
|
|
58
59
|
border: 0;
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
border-radius: inherit;
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
63
|
+
top: 0;
|
|
64
|
+
bottom: 0;
|
|
61
65
|
opacity: 0;
|
|
62
|
-
|
|
66
|
+
z-index: 1;
|
|
63
67
|
`), (0, cssr_1.cE)('state-border', `
|
|
64
68
|
pointer-events: none;
|
|
65
69
|
position: absolute;
|
|
@@ -34,12 +34,16 @@ exports.default = (0, cssr_1.cB)('radio', `
|
|
|
34
34
|
`, [(0, cssr_1.cE)('dot', `
|
|
35
35
|
height: var(--radio-size);
|
|
36
36
|
width: var(--radio-size);
|
|
37
|
-
`), (0, cssr_1.
|
|
37
|
+
`), (0, cssr_1.cB)('radio-input', `
|
|
38
|
+
position: absolute;
|
|
38
39
|
border: 0;
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
border-radius: inherit;
|
|
41
|
+
left: 0;
|
|
42
|
+
right: 0;
|
|
43
|
+
top: 0;
|
|
44
|
+
bottom: 0;
|
|
41
45
|
opacity: 0;
|
|
42
|
-
|
|
46
|
+
z-index: 1;
|
|
43
47
|
`), (0, cssr_1.cE)('dot', `
|
|
44
48
|
background: var(--color);
|
|
45
49
|
box-shadow: var(--box-shadow);
|
|
@@ -47,9 +47,6 @@ export interface UseRadio {
|
|
|
47
47
|
handleRadioInputChange: () => void;
|
|
48
48
|
handleRadioInputBlur: () => void;
|
|
49
49
|
handleRadioInputFocus: () => void;
|
|
50
|
-
handleKeyUp: (e: KeyboardEvent) => void;
|
|
51
|
-
handleMouseDown: () => void;
|
|
52
|
-
handleClick: () => void;
|
|
53
50
|
}
|
|
54
51
|
declare function setup(props: ExtractPropTypes<typeof radioProps>): UseRadio;
|
|
55
52
|
declare namespace setup {
|