naive-ui 2.23.2 → 2.24.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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/es/_internal/icons/Switcher.js +2 -3
- package/es/_internal/selection/src/styles/index.cssr.js +1 -1
- package/es/_internal/selection/styles/_common.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +12 -12
- package/es/auto-complete/src/AutoComplete.js +13 -15
- package/es/back-top/src/BackTop.d.ts +3 -3
- package/es/calendar/src/Calendar.d.ts +5 -1
- package/es/calendar/src/Calendar.js +16 -4
- package/es/calendar/src/interface.d.ts +4 -0
- package/es/carousel/index.d.ts +1 -0
- package/es/carousel/index.js +1 -0
- package/es/carousel/src/Carousel.d.ts +235 -19
- package/es/carousel/src/Carousel.js +683 -229
- package/es/carousel/src/CarouselArrow.d.ts +9 -0
- package/es/carousel/src/CarouselArrow.js +43 -0
- package/es/carousel/src/CarouselDots.d.ts +66 -0
- package/es/carousel/src/CarouselDots.js +118 -0
- package/es/carousel/src/CarouselItem.d.ts +11 -0
- package/es/carousel/src/CarouselItem.js +72 -0
- package/es/carousel/src/interface.d.ts +28 -0
- package/es/carousel/src/interface.js +2 -0
- package/es/carousel/src/styles/index.cssr.js +141 -38
- package/es/carousel/src/utils.d.ts +12 -0
- package/es/carousel/src/utils.js +58 -0
- package/es/carousel/styles/light.d.ts +3 -0
- package/es/carousel/styles/light.js +5 -2
- package/es/cascader/src/Cascader.d.ts +6 -2
- package/es/cascader/src/Cascader.js +2 -1
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderOption.js +7 -4
- package/es/cascader/src/interface.d.ts +2 -1
- package/es/checkbox/src/styles/index.cssr.js +1 -1
- package/es/code/src/Code.d.ts +5 -0
- package/es/code/src/Code.js +6 -3
- package/es/code/src/styles/index.cssr.js +2 -2
- package/es/color-picker/src/ColorInputUnit.js +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +13 -5
- package/es/color-picker/src/ColorPicker.js +19 -10
- package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/es/color-picker/src/ColorPickerTrigger.js +23 -17
- package/es/color-picker/src/interface.d.ts +2 -0
- package/es/color-picker/src/styles/index.cssr.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +27 -0
- package/es/data-table/src/DataTable.d.ts +10 -55
- package/es/data-table/src/DataTable.js +23 -49
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/styles/index.cssr.js +4 -1
- package/es/data-table/src/utils.js +4 -1
- package/es/date-picker/src/DatePicker.d.ts +26 -22
- package/es/date-picker/src/DatePicker.js +99 -49
- package/es/date-picker/src/interface.d.ts +17 -2
- package/es/date-picker/src/panel/use-calendar.js +2 -2
- package/es/drawer/src/Drawer.d.ts +18 -58
- package/es/drawer/src/Drawer.js +32 -49
- package/es/drawer/src/DrawerBodyWrapper.js +21 -13
- package/es/drawer/src/DrawerContent.js +6 -6
- package/es/dropdown/src/Dropdown.d.ts +5 -0
- package/es/form/src/Feedbacks.js +4 -1
- package/es/form/src/Form.d.ts +7 -7
- package/es/form/src/Form.js +17 -8
- package/es/form/src/FormItem.d.ts +12 -7
- package/es/form/src/FormItem.js +24 -12
- package/es/form/src/FormItemCol.d.ts +8 -4
- package/es/form/src/FormItemGridItem.d.ts +8 -4
- package/es/form/src/FormItemRow.d.ts +7 -3
- package/es/form/src/interface.d.ts +6 -2
- package/es/form/src/styles/form-item.cssr.js +2 -0
- package/es/form/src/utils.d.ts +2 -2
- package/es/form/src/utils.js +29 -18
- package/es/image/src/Image.d.ts +279 -10
- package/es/image/src/Image.js +4 -17
- package/es/image/src/ImageGroup.d.ts +272 -2
- package/es/image/src/ImageGroup.js +5 -8
- package/es/image/src/ImagePreview.d.ts +195 -7
- package/es/image/src/ImagePreview.js +50 -31
- package/es/image/src/interface.d.ts +94 -0
- package/es/image/src/interface.js +2 -1
- package/es/image/src/styles/index.cssr.js +8 -4
- package/es/image/styles/dark.js +8 -1
- package/es/image/styles/light.d.ts +32 -3
- package/es/image/styles/light.js +8 -1
- package/es/input-number/src/utils.js +2 -2
- package/es/locales/common/deDE.js +10 -0
- package/es/locales/common/enUS.d.ts +9 -0
- package/es/locales/common/enUS.js +10 -0
- package/es/locales/common/frFR.js +10 -0
- package/es/locales/common/idID.js +10 -0
- package/es/locales/common/jaJP.js +10 -0
- package/es/locales/common/nbNO.js +10 -0
- package/es/locales/common/ruRU.js +10 -0
- package/es/locales/common/ukUA.js +10 -0
- package/es/locales/common/zhCN.js +9 -0
- package/es/locales/common/zhTW.js +10 -0
- package/es/mention/src/utils.js +0 -1
- package/es/message/index.d.ts +2 -1
- package/es/message/src/Message.d.ts +191 -19
- package/es/message/src/Message.js +13 -11
- package/es/message/src/MessageEnvironment.d.ts +3 -3
- package/es/message/src/MessageProvider.d.ts +5 -10
- package/es/message/src/MessageProvider.js +1 -1
- package/es/message/src/message-props.d.ts +5 -2
- package/es/message/src/types.d.ts +15 -0
- package/es/message/src/types.js +1 -0
- package/es/modal/src/Modal.d.ts +5 -0
- package/es/modal/src/Modal.js +2 -1
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +8 -4
- package/es/pagination/src/Pagination.js +66 -19
- package/es/pagination/src/interface.d.ts +10 -1
- package/es/pagination/src/utils.d.ts +2 -2
- package/es/pagination/src/utils.js +2 -4
- package/es/popconfirm/src/Popconfirm.d.ts +5 -0
- package/es/popover/src/Popover.d.ts +7 -0
- package/es/popover/src/Popover.js +24 -1
- package/es/popover/src/PopoverBody.d.ts +5 -0
- package/es/popover/src/PopoverBody.js +28 -46
- package/es/popover/src/styles/index.cssr.js +9 -8
- package/es/popselect/src/Popselect.d.ts +62 -73
- package/es/popselect/src/Popselect.js +2 -2
- package/es/progress/src/Circle.d.ts +7 -0
- package/es/progress/src/Circle.js +8 -1
- package/es/progress/src/Line.d.ts +2 -2
- package/es/progress/src/Line.js +4 -1
- package/es/progress/src/Progress.d.ts +6 -2
- package/es/progress/src/Progress.js +2 -2
- package/es/progress/src/styles/index.cssr.js +16 -16
- package/es/radio/src/styles/radio.cssr.js +4 -1
- package/es/result/src/Result.js +9 -10
- package/es/result/src/styles/index.cssr.js +7 -7
- package/es/select/src/Select.d.ts +8 -27
- package/es/select/src/Select.js +16 -24
- package/es/slider/src/Slider.d.ts +2 -4
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/src/Tabs.d.ts +2 -2
- package/es/tabs/src/Tabs.js +25 -22
- package/es/tabs/src/interface.d.ts +3 -0
- package/es/time-picker/src/TimePicker.d.ts +22 -2
- package/es/time-picker/src/TimePicker.js +59 -29
- package/es/time-picker/src/interface.d.ts +4 -2
- package/es/tooltip/src/Tooltip.d.ts +5 -0
- package/es/tree/src/Tree.d.ts +5 -1
- package/es/tree/src/Tree.js +4 -2
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.js +25 -14
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/styles/index.cssr.js +4 -2
- package/es/upload/src/Upload.d.ts +15 -6
- package/es/upload/src/Upload.js +18 -9
- package/es/upload/src/UploadFile.d.ts +5 -5
- package/es/upload/src/UploadFileList.js +2 -2
- package/es/upload/src/interface.d.ts +11 -4
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/icons/Switcher.js +2 -3
- package/lib/_internal/selection/src/styles/index.cssr.js +1 -1
- package/lib/_internal/selection/styles/_common.js +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +12 -12
- package/lib/auto-complete/src/AutoComplete.js +14 -16
- package/lib/back-top/src/BackTop.d.ts +3 -3
- package/lib/calendar/src/Calendar.d.ts +5 -1
- package/lib/calendar/src/Calendar.js +15 -3
- package/lib/calendar/src/interface.d.ts +4 -0
- package/lib/carousel/index.d.ts +1 -0
- package/lib/carousel/index.js +3 -1
- package/lib/carousel/src/Carousel.d.ts +235 -19
- package/lib/carousel/src/Carousel.js +681 -227
- package/lib/carousel/src/CarouselArrow.d.ts +9 -0
- package/lib/carousel/src/CarouselArrow.js +45 -0
- package/lib/carousel/src/CarouselDots.d.ts +66 -0
- package/lib/carousel/src/CarouselDots.js +120 -0
- package/lib/carousel/src/CarouselItem.d.ts +11 -0
- package/lib/carousel/src/CarouselItem.js +74 -0
- package/lib/carousel/src/interface.d.ts +28 -0
- package/lib/carousel/src/interface.js +6 -0
- package/lib/carousel/src/styles/index.cssr.js +141 -38
- package/lib/carousel/src/utils.d.ts +12 -0
- package/lib/carousel/src/utils.js +69 -0
- package/lib/carousel/styles/light.d.ts +3 -0
- package/lib/carousel/styles/light.js +5 -2
- package/lib/cascader/src/Cascader.d.ts +6 -2
- package/lib/cascader/src/Cascader.js +2 -1
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.js +7 -4
- package/lib/cascader/src/interface.d.ts +2 -1
- package/lib/checkbox/src/styles/index.cssr.js +1 -1
- package/lib/code/src/Code.d.ts +5 -0
- package/lib/code/src/Code.js +6 -3
- package/lib/code/src/styles/index.cssr.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.js +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +13 -5
- package/lib/color-picker/src/ColorPicker.js +19 -10
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerTrigger.js +22 -16
- package/lib/color-picker/src/interface.d.ts +2 -0
- package/lib/color-picker/src/styles/index.cssr.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +27 -0
- package/lib/data-table/src/DataTable.d.ts +10 -55
- package/lib/data-table/src/DataTable.js +21 -47
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/styles/index.cssr.js +4 -1
- package/lib/data-table/src/utils.js +3 -0
- package/lib/date-picker/src/DatePicker.d.ts +26 -22
- package/lib/date-picker/src/DatePicker.js +98 -48
- package/lib/date-picker/src/interface.d.ts +17 -2
- package/lib/date-picker/src/panel/use-calendar.js +2 -2
- package/lib/drawer/src/Drawer.d.ts +18 -58
- package/lib/drawer/src/Drawer.js +30 -47
- package/lib/drawer/src/DrawerBodyWrapper.js +21 -13
- package/lib/drawer/src/DrawerContent.js +6 -6
- package/lib/dropdown/src/Dropdown.d.ts +5 -0
- package/lib/form/src/Feedbacks.js +4 -1
- package/lib/form/src/Form.d.ts +7 -7
- package/lib/form/src/Form.js +16 -7
- package/lib/form/src/FormItem.d.ts +12 -7
- package/lib/form/src/FormItem.js +23 -11
- package/lib/form/src/FormItemCol.d.ts +8 -4
- package/lib/form/src/FormItemGridItem.d.ts +8 -4
- package/lib/form/src/FormItemRow.d.ts +7 -3
- package/lib/form/src/interface.d.ts +6 -2
- package/lib/form/src/styles/form-item.cssr.js +2 -0
- package/lib/form/src/utils.d.ts +2 -2
- package/lib/form/src/utils.js +29 -18
- package/lib/image/src/Image.d.ts +279 -10
- package/lib/image/src/Image.js +4 -17
- package/lib/image/src/ImageGroup.d.ts +272 -2
- package/lib/image/src/ImageGroup.js +4 -7
- package/lib/image/src/ImagePreview.d.ts +195 -7
- package/lib/image/src/ImagePreview.js +49 -30
- package/lib/image/src/interface.d.ts +94 -0
- package/lib/image/src/interface.js +3 -0
- package/lib/image/src/styles/index.cssr.js +8 -4
- package/lib/image/styles/dark.js +8 -1
- package/lib/image/styles/light.d.ts +32 -3
- package/lib/image/styles/light.js +8 -1
- package/lib/input-number/src/utils.js +2 -2
- package/lib/locales/common/deDE.js +10 -0
- package/lib/locales/common/enUS.d.ts +9 -0
- package/lib/locales/common/enUS.js +10 -0
- package/lib/locales/common/frFR.js +10 -0
- package/lib/locales/common/idID.js +10 -0
- package/lib/locales/common/jaJP.js +10 -0
- package/lib/locales/common/nbNO.js +10 -0
- package/lib/locales/common/ruRU.js +10 -0
- package/lib/locales/common/ukUA.js +10 -0
- package/lib/locales/common/zhCN.js +9 -0
- package/lib/locales/common/zhTW.js +10 -0
- package/lib/mention/src/utils.js +0 -1
- package/lib/message/index.d.ts +2 -1
- package/lib/message/src/Message.d.ts +191 -19
- package/lib/message/src/Message.js +13 -11
- package/lib/message/src/MessageEnvironment.d.ts +3 -3
- package/lib/message/src/MessageProvider.d.ts +5 -10
- package/lib/message/src/MessageProvider.js +1 -1
- package/lib/message/src/message-props.d.ts +5 -2
- package/lib/message/src/types.d.ts +15 -0
- package/lib/message/src/types.js +2 -0
- package/lib/modal/src/Modal.d.ts +5 -0
- package/lib/modal/src/Modal.js +2 -1
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +8 -4
- package/lib/pagination/src/Pagination.js +65 -18
- package/lib/pagination/src/interface.d.ts +10 -1
- package/lib/pagination/src/utils.d.ts +2 -2
- package/lib/pagination/src/utils.js +2 -4
- package/lib/popconfirm/src/Popconfirm.d.ts +5 -0
- package/lib/popover/src/Popover.d.ts +7 -0
- package/lib/popover/src/Popover.js +23 -0
- package/lib/popover/src/PopoverBody.d.ts +5 -0
- package/lib/popover/src/PopoverBody.js +27 -45
- package/lib/popover/src/styles/index.cssr.js +9 -8
- package/lib/popselect/src/Popselect.d.ts +62 -73
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/progress/src/Circle.d.ts +7 -0
- package/lib/progress/src/Circle.js +8 -1
- package/lib/progress/src/Line.d.ts +2 -2
- package/lib/progress/src/Line.js +4 -1
- package/lib/progress/src/Progress.d.ts +6 -2
- package/lib/progress/src/Progress.js +2 -2
- package/lib/progress/src/styles/index.cssr.js +16 -16
- package/lib/radio/src/styles/radio.cssr.js +4 -1
- package/lib/result/src/Result.js +8 -9
- package/lib/result/src/styles/index.cssr.js +6 -6
- package/lib/select/src/Select.d.ts +8 -27
- package/lib/select/src/Select.js +14 -22
- package/lib/slider/src/Slider.d.ts +2 -4
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/src/Tabs.d.ts +2 -2
- package/lib/tabs/src/Tabs.js +25 -22
- package/lib/tabs/src/interface.d.ts +3 -0
- package/lib/time-picker/src/TimePicker.d.ts +22 -2
- package/lib/time-picker/src/TimePicker.js +59 -29
- package/lib/time-picker/src/interface.d.ts +4 -2
- package/lib/tooltip/src/Tooltip.d.ts +5 -0
- package/lib/tree/src/Tree.d.ts +5 -1
- package/lib/tree/src/Tree.js +4 -2
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.js +24 -13
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/styles/index.cssr.js +4 -2
- package/lib/upload/src/Upload.d.ts +15 -6
- package/lib/upload/src/Upload.js +18 -9
- package/lib/upload/src/UploadFile.d.ts +5 -5
- package/lib/upload/src/UploadFileList.js +2 -2
- package/lib/upload/src/interface.d.ts +11 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +21 -13
- package/web-types.json +413 -31
|
@@ -97,6 +97,16 @@ const enUS = {
|
|
|
97
97
|
import: 'Import',
|
|
98
98
|
export: 'Export',
|
|
99
99
|
restore: 'Reset to Default'
|
|
100
|
+
},
|
|
101
|
+
// TODO: translation
|
|
102
|
+
Image: {
|
|
103
|
+
tipPrevious: 'Previous picture (←)',
|
|
104
|
+
tipNext: 'Next picture (→)',
|
|
105
|
+
tipCounterclockwise: 'Counterclockwise',
|
|
106
|
+
tipClockwise: 'Clockwise',
|
|
107
|
+
tipZoomOut: 'Zoom out',
|
|
108
|
+
tipZoomIn: 'Zoom in',
|
|
109
|
+
tipClose: 'Close (Esc)'
|
|
100
110
|
}
|
|
101
111
|
};
|
|
102
112
|
exports.default = enUS;
|
|
@@ -97,6 +97,16 @@ const frFR = {
|
|
|
97
97
|
import: 'Importer',
|
|
98
98
|
export: 'Exporter',
|
|
99
99
|
restore: 'Réinitialiser'
|
|
100
|
+
},
|
|
101
|
+
// TODO: translation
|
|
102
|
+
Image: {
|
|
103
|
+
tipPrevious: 'Previous picture (←)',
|
|
104
|
+
tipNext: 'Next picture (→)',
|
|
105
|
+
tipCounterclockwise: 'Counterclockwise',
|
|
106
|
+
tipClockwise: 'Clockwise',
|
|
107
|
+
tipZoomOut: 'Zoom out',
|
|
108
|
+
tipZoomIn: 'Zoom in',
|
|
109
|
+
tipClose: 'Close (Esc)'
|
|
100
110
|
}
|
|
101
111
|
};
|
|
102
112
|
exports.default = frFR;
|
|
@@ -98,6 +98,16 @@ const idID = {
|
|
|
98
98
|
import: 'Impor',
|
|
99
99
|
export: 'Ekspor',
|
|
100
100
|
restore: 'Setel ulang ke awal'
|
|
101
|
+
},
|
|
102
|
+
// TODO: translation
|
|
103
|
+
Image: {
|
|
104
|
+
tipPrevious: 'Previous picture (←)',
|
|
105
|
+
tipNext: 'Next picture (→)',
|
|
106
|
+
tipCounterclockwise: 'Counterclockwise',
|
|
107
|
+
tipClockwise: 'Clockwise',
|
|
108
|
+
tipZoomOut: 'Zoom out',
|
|
109
|
+
tipZoomIn: 'Zoom in',
|
|
110
|
+
tipClose: 'Close (Esc)'
|
|
101
111
|
}
|
|
102
112
|
};
|
|
103
113
|
exports.default = idID;
|
|
@@ -98,6 +98,16 @@ const jaJP = {
|
|
|
98
98
|
import: 'インポート',
|
|
99
99
|
export: 'エクスポート',
|
|
100
100
|
restore: 'デフォルト'
|
|
101
|
+
},
|
|
102
|
+
// TODO: translation
|
|
103
|
+
Image: {
|
|
104
|
+
tipPrevious: 'Previous picture (←)',
|
|
105
|
+
tipNext: 'Next picture (→)',
|
|
106
|
+
tipCounterclockwise: 'Counterclockwise',
|
|
107
|
+
tipClockwise: 'Clockwise',
|
|
108
|
+
tipZoomOut: 'Zoom out',
|
|
109
|
+
tipZoomIn: 'Zoom in',
|
|
110
|
+
tipClose: 'Close (Esc)'
|
|
101
111
|
}
|
|
102
112
|
};
|
|
103
113
|
exports.default = jaJP;
|
|
@@ -98,6 +98,16 @@ const nbNO = {
|
|
|
98
98
|
import: 'Importer',
|
|
99
99
|
export: 'Eksporter',
|
|
100
100
|
restore: 'Nullstill til standardvalg'
|
|
101
|
+
},
|
|
102
|
+
// TODO: translation
|
|
103
|
+
Image: {
|
|
104
|
+
tipPrevious: 'Previous picture (←)',
|
|
105
|
+
tipNext: 'Next picture (→)',
|
|
106
|
+
tipCounterclockwise: 'Counterclockwise',
|
|
107
|
+
tipClockwise: 'Clockwise',
|
|
108
|
+
tipZoomOut: 'Zoom out',
|
|
109
|
+
tipZoomIn: 'Zoom in',
|
|
110
|
+
tipClose: 'Close (Esc)'
|
|
101
111
|
}
|
|
102
112
|
};
|
|
103
113
|
exports.default = nbNO;
|
|
@@ -98,6 +98,16 @@ const ruRu = {
|
|
|
98
98
|
import: 'Импорт',
|
|
99
99
|
export: 'Экспорт',
|
|
100
100
|
restore: 'Сбросить'
|
|
101
|
+
},
|
|
102
|
+
// TODO: translation
|
|
103
|
+
Image: {
|
|
104
|
+
tipPrevious: 'Previous picture (←)',
|
|
105
|
+
tipNext: 'Next picture (→)',
|
|
106
|
+
tipCounterclockwise: 'Counterclockwise',
|
|
107
|
+
tipClockwise: 'Clockwise',
|
|
108
|
+
tipZoomOut: 'Zoom out',
|
|
109
|
+
tipZoomIn: 'Zoom in',
|
|
110
|
+
tipClose: 'Close (Esc)'
|
|
101
111
|
}
|
|
102
112
|
};
|
|
103
113
|
exports.default = ruRu;
|
|
@@ -98,6 +98,16 @@ const ukUA = {
|
|
|
98
98
|
import: 'Імпорт',
|
|
99
99
|
export: 'Експорт',
|
|
100
100
|
restore: 'Скинути'
|
|
101
|
+
},
|
|
102
|
+
// TODO: translation
|
|
103
|
+
Image: {
|
|
104
|
+
tipPrevious: 'Previous picture (←)',
|
|
105
|
+
tipNext: 'Next picture (→)',
|
|
106
|
+
tipCounterclockwise: 'Counterclockwise',
|
|
107
|
+
tipClockwise: 'Clockwise',
|
|
108
|
+
tipZoomOut: 'Zoom out',
|
|
109
|
+
tipZoomIn: 'Zoom in',
|
|
110
|
+
tipClose: 'Close (Esc)'
|
|
101
111
|
}
|
|
102
112
|
};
|
|
103
113
|
exports.default = ukUA;
|
|
@@ -97,6 +97,15 @@ const zhCN = {
|
|
|
97
97
|
import: '导入',
|
|
98
98
|
export: '导出',
|
|
99
99
|
restore: '恢复默认'
|
|
100
|
+
},
|
|
101
|
+
Image: {
|
|
102
|
+
tipPrevious: '上一张(←)',
|
|
103
|
+
tipNext: '下一张(→)',
|
|
104
|
+
tipCounterclockwise: '向左旋转',
|
|
105
|
+
tipClockwise: '向右旋转',
|
|
106
|
+
tipZoomOut: '缩小',
|
|
107
|
+
tipZoomIn: '放大',
|
|
108
|
+
tipClose: '关闭(Esc)'
|
|
100
109
|
}
|
|
101
110
|
};
|
|
102
111
|
exports.default = zhCN;
|
|
@@ -97,6 +97,16 @@ const zhTW = {
|
|
|
97
97
|
import: '導入',
|
|
98
98
|
export: '匯出',
|
|
99
99
|
restore: '恢復默認'
|
|
100
|
+
},
|
|
101
|
+
// TODO: translation
|
|
102
|
+
Image: {
|
|
103
|
+
tipPrevious: '上一张(←)',
|
|
104
|
+
tipNext: '下一张(→)',
|
|
105
|
+
tipCounterclockwise: '向左旋转',
|
|
106
|
+
tipClockwise: '向右旋转',
|
|
107
|
+
tipZoomOut: '缩小',
|
|
108
|
+
tipZoomIn: '放大',
|
|
109
|
+
tipClose: '关闭(Esc)'
|
|
100
110
|
}
|
|
101
111
|
};
|
|
102
112
|
exports.default = zhTW;
|
package/lib/mention/src/utils.js
CHANGED
package/lib/message/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as NMessageProvider } from './src/MessageProvider';
|
|
2
2
|
export { useMessage } from './src/use-message';
|
|
3
|
-
export type { MessageApiInjection as MessageApi, MessageProviderInst, MessageProviderProps,
|
|
3
|
+
export type { MessageApiInjection as MessageApi, MessageProviderInst, MessageProviderProps, MessageReactive } from './src/MessageProvider';
|
|
4
|
+
export type { MessageOptions, MessageRenderMessage, MessageType } from './src/types';
|
|
@@ -1,19 +1,189 @@
|
|
|
1
|
-
import { VNodeChild } from 'vue';
|
|
2
|
-
import { MessageType } from './
|
|
1
|
+
import { VNodeChild, CSSProperties, PropType } from 'vue';
|
|
2
|
+
import type { MessageType } from './types';
|
|
3
|
+
import { MessageRenderMessage } from '..';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
render: PropType<MessageRenderMessage>;
|
|
6
|
+
icon: PropType<() => VNodeChild>;
|
|
7
|
+
type: {
|
|
8
|
+
readonly type: PropType<MessageType>;
|
|
7
9
|
readonly default: "info";
|
|
8
10
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
content: PropType<string | number | (() => VNodeChild)>;
|
|
12
|
+
closable: BooleanConstructor;
|
|
13
|
+
keepAliveOnHover: BooleanConstructor;
|
|
14
|
+
onClose: PropType<() => void>;
|
|
15
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
16
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
15
17
|
}, {
|
|
16
18
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
19
|
+
messageProviderProps: {
|
|
20
|
+
to?: unknown;
|
|
21
|
+
duration?: unknown;
|
|
22
|
+
keepAliveOnHover?: unknown;
|
|
23
|
+
max?: unknown;
|
|
24
|
+
placement?: unknown;
|
|
25
|
+
closable?: unknown;
|
|
26
|
+
containerStyle?: unknown;
|
|
27
|
+
theme?: unknown;
|
|
28
|
+
themeOverrides?: unknown;
|
|
29
|
+
builtinThemeOverrides?: unknown;
|
|
30
|
+
} & {
|
|
31
|
+
duration: number;
|
|
32
|
+
placement: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
33
|
+
closable: boolean;
|
|
34
|
+
keepAliveOnHover: boolean;
|
|
35
|
+
} & {
|
|
36
|
+
max?: number | undefined;
|
|
37
|
+
to?: string | HTMLElement | undefined;
|
|
38
|
+
theme?: import("../../_mixins").Theme<"Message", {
|
|
39
|
+
textColorInfo: string;
|
|
40
|
+
textColorSuccess: string;
|
|
41
|
+
textColorError: string;
|
|
42
|
+
textColorWarning: string;
|
|
43
|
+
textColorLoading: string;
|
|
44
|
+
colorInfo: string;
|
|
45
|
+
colorSuccess: string;
|
|
46
|
+
colorError: string;
|
|
47
|
+
colorWarning: string;
|
|
48
|
+
colorLoading: string;
|
|
49
|
+
boxShadowInfo: string;
|
|
50
|
+
boxShadowSuccess: string;
|
|
51
|
+
boxShadowError: string;
|
|
52
|
+
boxShadowWarning: string;
|
|
53
|
+
boxShadowLoading: string;
|
|
54
|
+
iconColorInfo: string;
|
|
55
|
+
iconColorSuccess: string;
|
|
56
|
+
iconColorWarning: string;
|
|
57
|
+
iconColorError: string;
|
|
58
|
+
iconColorLoading: string;
|
|
59
|
+
closeColorInfo: string;
|
|
60
|
+
closeColorHoverInfo: string;
|
|
61
|
+
closeColorPressedInfo: string;
|
|
62
|
+
closeColorSuccess: string;
|
|
63
|
+
closeColorHoverSuccess: string;
|
|
64
|
+
closeColorPressedSuccess: string;
|
|
65
|
+
closeColorError: string;
|
|
66
|
+
closeColorHoverError: string;
|
|
67
|
+
closeColorPressedError: string;
|
|
68
|
+
closeColorWarning: string;
|
|
69
|
+
closeColorHoverWarning: string;
|
|
70
|
+
closeColorPressedWarning: string;
|
|
71
|
+
closeColorLoading: string;
|
|
72
|
+
closeColorHoverLoading: string;
|
|
73
|
+
closeColorPressedLoading: string;
|
|
74
|
+
loadingColor: string;
|
|
75
|
+
lineHeight: string;
|
|
76
|
+
borderRadius: string;
|
|
77
|
+
margin: string;
|
|
78
|
+
padding: string;
|
|
79
|
+
maxWidth: string;
|
|
80
|
+
minWidth: string;
|
|
81
|
+
iconMargin: string;
|
|
82
|
+
closeMargin: string;
|
|
83
|
+
closeSize: string;
|
|
84
|
+
iconSize: string;
|
|
85
|
+
fontSize: string;
|
|
86
|
+
}, any> | undefined;
|
|
87
|
+
themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Message", {
|
|
88
|
+
textColorInfo: string;
|
|
89
|
+
textColorSuccess: string;
|
|
90
|
+
textColorError: string;
|
|
91
|
+
textColorWarning: string;
|
|
92
|
+
textColorLoading: string;
|
|
93
|
+
colorInfo: string;
|
|
94
|
+
colorSuccess: string;
|
|
95
|
+
colorError: string;
|
|
96
|
+
colorWarning: string;
|
|
97
|
+
colorLoading: string;
|
|
98
|
+
boxShadowInfo: string;
|
|
99
|
+
boxShadowSuccess: string;
|
|
100
|
+
boxShadowError: string;
|
|
101
|
+
boxShadowWarning: string;
|
|
102
|
+
boxShadowLoading: string;
|
|
103
|
+
iconColorInfo: string;
|
|
104
|
+
iconColorSuccess: string;
|
|
105
|
+
iconColorWarning: string;
|
|
106
|
+
iconColorError: string;
|
|
107
|
+
iconColorLoading: string;
|
|
108
|
+
closeColorInfo: string;
|
|
109
|
+
closeColorHoverInfo: string;
|
|
110
|
+
closeColorPressedInfo: string;
|
|
111
|
+
closeColorSuccess: string;
|
|
112
|
+
closeColorHoverSuccess: string;
|
|
113
|
+
closeColorPressedSuccess: string;
|
|
114
|
+
closeColorError: string;
|
|
115
|
+
closeColorHoverError: string;
|
|
116
|
+
closeColorPressedError: string;
|
|
117
|
+
closeColorWarning: string;
|
|
118
|
+
closeColorHoverWarning: string;
|
|
119
|
+
closeColorPressedWarning: string;
|
|
120
|
+
closeColorLoading: string;
|
|
121
|
+
closeColorHoverLoading: string;
|
|
122
|
+
closeColorPressedLoading: string;
|
|
123
|
+
loadingColor: string;
|
|
124
|
+
lineHeight: string;
|
|
125
|
+
borderRadius: string;
|
|
126
|
+
margin: string;
|
|
127
|
+
padding: string;
|
|
128
|
+
maxWidth: string;
|
|
129
|
+
minWidth: string;
|
|
130
|
+
iconMargin: string;
|
|
131
|
+
closeMargin: string;
|
|
132
|
+
closeSize: string;
|
|
133
|
+
iconSize: string;
|
|
134
|
+
fontSize: string;
|
|
135
|
+
}, any>> | undefined;
|
|
136
|
+
builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Message", {
|
|
137
|
+
textColorInfo: string;
|
|
138
|
+
textColorSuccess: string;
|
|
139
|
+
textColorError: string;
|
|
140
|
+
textColorWarning: string;
|
|
141
|
+
textColorLoading: string;
|
|
142
|
+
colorInfo: string;
|
|
143
|
+
colorSuccess: string;
|
|
144
|
+
colorError: string;
|
|
145
|
+
colorWarning: string;
|
|
146
|
+
colorLoading: string;
|
|
147
|
+
boxShadowInfo: string;
|
|
148
|
+
boxShadowSuccess: string;
|
|
149
|
+
boxShadowError: string;
|
|
150
|
+
boxShadowWarning: string;
|
|
151
|
+
boxShadowLoading: string;
|
|
152
|
+
iconColorInfo: string;
|
|
153
|
+
iconColorSuccess: string;
|
|
154
|
+
iconColorWarning: string;
|
|
155
|
+
iconColorError: string;
|
|
156
|
+
iconColorLoading: string;
|
|
157
|
+
closeColorInfo: string;
|
|
158
|
+
closeColorHoverInfo: string;
|
|
159
|
+
closeColorPressedInfo: string;
|
|
160
|
+
closeColorSuccess: string;
|
|
161
|
+
closeColorHoverSuccess: string;
|
|
162
|
+
closeColorPressedSuccess: string;
|
|
163
|
+
closeColorError: string;
|
|
164
|
+
closeColorHoverError: string;
|
|
165
|
+
closeColorPressedError: string;
|
|
166
|
+
closeColorWarning: string;
|
|
167
|
+
closeColorHoverWarning: string;
|
|
168
|
+
closeColorPressedWarning: string;
|
|
169
|
+
closeColorLoading: string;
|
|
170
|
+
closeColorHoverLoading: string;
|
|
171
|
+
closeColorPressedLoading: string;
|
|
172
|
+
loadingColor: string;
|
|
173
|
+
lineHeight: string;
|
|
174
|
+
borderRadius: string;
|
|
175
|
+
margin: string;
|
|
176
|
+
padding: string;
|
|
177
|
+
maxWidth: string;
|
|
178
|
+
minWidth: string;
|
|
179
|
+
iconMargin: string;
|
|
180
|
+
closeMargin: string;
|
|
181
|
+
closeSize: string;
|
|
182
|
+
iconSize: string;
|
|
183
|
+
fontSize: string;
|
|
184
|
+
}, any>> | undefined;
|
|
185
|
+
containerStyle?: string | CSSProperties | undefined;
|
|
186
|
+
};
|
|
17
187
|
handleClose(): void;
|
|
18
188
|
cssVars: import("vue").ComputedRef<{
|
|
19
189
|
'--n-bezier': string;
|
|
@@ -41,20 +211,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
211
|
}>;
|
|
42
212
|
placement: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
43
213
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
214
|
+
render?: unknown;
|
|
215
|
+
icon?: unknown;
|
|
216
|
+
type?: unknown;
|
|
217
|
+
content?: unknown;
|
|
218
|
+
closable?: unknown;
|
|
219
|
+
keepAliveOnHover?: unknown;
|
|
220
|
+
onClose?: unknown;
|
|
221
|
+
onMouseenter?: unknown;
|
|
222
|
+
onMouseleave?: unknown;
|
|
52
223
|
} & {
|
|
53
224
|
type: MessageType;
|
|
54
225
|
closable: boolean;
|
|
55
226
|
keepAliveOnHover: boolean;
|
|
56
227
|
} & {
|
|
57
228
|
content?: string | number | (() => VNodeChild) | undefined;
|
|
229
|
+
render?: MessageRenderMessage | undefined;
|
|
58
230
|
icon?: (() => VNodeChild) | undefined;
|
|
59
231
|
onMouseenter?: ((e: MouseEvent) => void) | undefined;
|
|
60
232
|
onMouseleave?: ((e: MouseEvent) => void) | undefined;
|
|
@@ -20,7 +20,7 @@ const iconMap = {
|
|
|
20
20
|
};
|
|
21
21
|
exports.default = (0, vue_1.defineComponent)({
|
|
22
22
|
name: 'Message',
|
|
23
|
-
props: message_props_1.messageProps,
|
|
23
|
+
props: Object.assign(Object.assign({}, message_props_1.messageProps), { render: Function }),
|
|
24
24
|
setup(props) {
|
|
25
25
|
const { props: messageProviderProps, mergedClsPrefixRef
|
|
26
26
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -28,6 +28,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
28
28
|
const themeRef = (0, _mixins_1.useTheme)('Message', 'Message', index_cssr_1.default, styles_1.messageLight, messageProviderProps, mergedClsPrefixRef);
|
|
29
29
|
return {
|
|
30
30
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
31
|
+
messageProviderProps,
|
|
31
32
|
handleClose() {
|
|
32
33
|
var _a;
|
|
33
34
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
@@ -64,17 +65,18 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
64
65
|
};
|
|
65
66
|
},
|
|
66
67
|
render() {
|
|
67
|
-
const {
|
|
68
|
-
return ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-message-wrapper`, onMouseenter: this.onMouseenter, onMouseleave: this.onMouseleave, style: Object.assign(
|
|
68
|
+
const { render: renderMessage, type, closable, content, mergedClsPrefix, cssVars, icon, handleClose } = this;
|
|
69
|
+
return ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-message-wrapper`, onMouseenter: this.onMouseenter, onMouseleave: this.onMouseleave, style: Object.assign({
|
|
70
|
+
alignItems: this.placement.startsWith('top')
|
|
69
71
|
? 'flex-start'
|
|
70
|
-
: 'flex-end'
|
|
71
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-message ${mergedClsPrefix}-message--${type}-type` },
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
: 'flex-end'
|
|
73
|
+
}, cssVars) }, renderMessage ? (renderMessage(this.$props)) : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-message ${mergedClsPrefix}-message--${type}-type` },
|
|
74
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-message__icon ${mergedClsPrefix}-message__icon--${type}-type` },
|
|
75
|
+
(0, vue_1.h)(_internal_1.NIconSwitchTransition, null, {
|
|
76
|
+
default: () => [createIconVNode(icon, type, mergedClsPrefix)]
|
|
77
|
+
})),
|
|
78
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-message__content` }, (0, _utils_1.render)(content)),
|
|
79
|
+
closable ? ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-message__close`, onClick: handleClose })) : null))));
|
|
78
80
|
}
|
|
79
81
|
});
|
|
80
82
|
function createIconVNode(icon, type, clsPrefix) {
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
onAfterHide: FunctionConstructor;
|
|
16
16
|
icon: PropType<() => import("vue").VNodeChild>;
|
|
17
17
|
type: {
|
|
18
|
-
readonly type: PropType<import("./
|
|
18
|
+
readonly type: PropType<import("./types").MessageType>;
|
|
19
19
|
readonly default: "info";
|
|
20
20
|
};
|
|
21
21
|
content: PropType<string | number | (() => import("vue").VNodeChild)>;
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
49
|
onMouseenter?: unknown;
|
|
50
50
|
onMouseleave?: unknown;
|
|
51
51
|
} & {
|
|
52
|
-
type: import("./
|
|
52
|
+
type: import("./types").MessageType;
|
|
53
53
|
duration: number;
|
|
54
54
|
closable: boolean;
|
|
55
55
|
internalKey: string;
|
|
@@ -66,7 +66,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
66
|
onAfterHide?: Function | undefined;
|
|
67
67
|
onInternalAfterLeave?: ((key: string) => void) | undefined;
|
|
68
68
|
}>, {
|
|
69
|
-
type: import("./
|
|
69
|
+
type: import("./types").MessageType;
|
|
70
70
|
duration: number;
|
|
71
71
|
closable: boolean;
|
|
72
72
|
keepAliveOnHover: boolean;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { VNodeChild, InjectionKey, ExtractPropTypes, Ref, PropType, CSSProperties } from 'vue';
|
|
2
|
-
import { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
-
|
|
4
|
-
duration?: number;
|
|
5
|
-
closable?: boolean;
|
|
6
|
-
keepAliveOnHover?: boolean;
|
|
7
|
-
icon?: () => VNodeChild;
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
onLeave?: () => void;
|
|
10
|
-
onAfterLeave?: () => void;
|
|
11
|
-
}
|
|
2
|
+
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
+
import type { MessageOptions, MessageType } from './types';
|
|
12
4
|
declare type ContentType = string | (() => VNodeChild);
|
|
13
5
|
export interface MessageApiInjection {
|
|
14
6
|
info: (content: ContentType, options?: MessageOptions) => MessageReactive;
|
|
@@ -24,6 +16,7 @@ export interface MessageReactive {
|
|
|
24
16
|
duration?: number;
|
|
25
17
|
closable?: boolean;
|
|
26
18
|
keepAliveOnHover?: boolean;
|
|
19
|
+
type: MessageType;
|
|
27
20
|
icon?: () => VNodeChild;
|
|
28
21
|
onClose?: () => void;
|
|
29
22
|
destroy: () => void;
|
|
@@ -368,6 +361,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
368
361
|
duration?: number | undefined;
|
|
369
362
|
closable?: boolean | undefined;
|
|
370
363
|
keepAliveOnHover?: boolean | undefined;
|
|
364
|
+
type: MessageType;
|
|
371
365
|
icon?: (() => VNodeChild) | undefined;
|
|
372
366
|
onClose?: (() => void) | undefined;
|
|
373
367
|
destroy: () => void;
|
|
@@ -379,6 +373,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
379
373
|
duration?: number | undefined;
|
|
380
374
|
closable?: boolean | undefined;
|
|
381
375
|
keepAliveOnHover?: boolean | undefined;
|
|
376
|
+
type: MessageType;
|
|
382
377
|
icon?: (() => VNodeChild) | undefined;
|
|
383
378
|
onClose?: (() => void) | undefined;
|
|
384
379
|
destroy: () => void;
|
|
@@ -48,7 +48,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
48
48
|
mergedClsPrefixRef
|
|
49
49
|
});
|
|
50
50
|
(0, vue_1.provide)(exports.messageApiInjectionKey, api);
|
|
51
|
-
function create(content, options
|
|
51
|
+
function create(content, options) {
|
|
52
52
|
const key = (0, seemly_1.createId)();
|
|
53
53
|
const messageReactive = (0, vue_1.reactive)(Object.assign(Object.assign({}, options), { content,
|
|
54
54
|
key, destroy: () => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PropType, VNodeChild } from 'vue';
|
|
2
|
-
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
import { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
+
import { MessageType } from './types';
|
|
3
4
|
export declare const messageProps: {
|
|
4
5
|
readonly icon: PropType<() => VNodeChild>;
|
|
5
6
|
readonly type: {
|
|
@@ -13,3 +14,5 @@ export declare const messageProps: {
|
|
|
13
14
|
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
14
15
|
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
15
16
|
};
|
|
17
|
+
export declare type MessageProps = ExtractPublicPropTypes<typeof messageProps>;
|
|
18
|
+
export declare type MessageSetupProps = ExtractPropTypes<typeof messageProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
2
|
+
import { MessageSetupProps } from './message-props';
|
|
3
|
+
export declare type MessageType = 'info' | 'success' | 'warning' | 'error' | 'loading';
|
|
4
|
+
export declare type RenderMessageProps = Pick<MessageSetupProps, 'closable' | 'content' | 'icon' | 'onClose' | 'type'>;
|
|
5
|
+
export declare type MessageRenderMessage = (props: RenderMessageProps) => VNodeChild;
|
|
6
|
+
export interface MessageOptions {
|
|
7
|
+
render?: MessageRenderMessage;
|
|
8
|
+
duration?: number;
|
|
9
|
+
closable?: boolean;
|
|
10
|
+
keepAliveOnHover?: boolean;
|
|
11
|
+
icon?: () => VNodeChild;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
onLeave?: () => void;
|
|
14
|
+
onAfterLeave?: () => void;
|
|
15
|
+
}
|
package/lib/modal/src/Modal.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ declare const modalProps: {
|
|
|
73
73
|
type: PropType<"center" | "mouse">;
|
|
74
74
|
default: string;
|
|
75
75
|
};
|
|
76
|
+
zIndex: NumberConstructor;
|
|
76
77
|
theme: PropType<import("../../_mixins").Theme<"Modal", {
|
|
77
78
|
color: string;
|
|
78
79
|
textColor: string;
|
|
@@ -970,6 +971,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
970
971
|
type: PropType<"center" | "mouse">;
|
|
971
972
|
default: string;
|
|
972
973
|
};
|
|
974
|
+
zIndex: NumberConstructor;
|
|
973
975
|
theme: PropType<import("../../_mixins").Theme<"Modal", {
|
|
974
976
|
color: string;
|
|
975
977
|
textColor: string;
|
|
@@ -1805,6 +1807,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1805
1807
|
show: boolean;
|
|
1806
1808
|
icon: (() => import("vue").VNodeChild) | undefined;
|
|
1807
1809
|
transformOrigin: "center" | "mouse";
|
|
1810
|
+
zIndex: number | undefined;
|
|
1808
1811
|
appear: boolean | undefined;
|
|
1809
1812
|
onAfterEnter: (() => void) | undefined;
|
|
1810
1813
|
onBeforeLeave: (() => void) | undefined;
|
|
@@ -2721,6 +2724,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2721
2724
|
to?: unknown;
|
|
2722
2725
|
displayDirective?: unknown;
|
|
2723
2726
|
transformOrigin?: unknown;
|
|
2727
|
+
zIndex?: unknown;
|
|
2724
2728
|
theme?: unknown;
|
|
2725
2729
|
themeOverrides?: unknown;
|
|
2726
2730
|
builtinThemeOverrides?: unknown;
|
|
@@ -2743,6 +2747,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2743
2747
|
} & {
|
|
2744
2748
|
content?: string | (() => import("vue").VNodeChild) | undefined;
|
|
2745
2749
|
icon?: (() => import("vue").VNodeChild) | undefined;
|
|
2750
|
+
zIndex?: number | undefined;
|
|
2746
2751
|
appear?: boolean | undefined;
|
|
2747
2752
|
onAfterEnter?: (() => void) | undefined;
|
|
2748
2753
|
onBeforeLeave?: (() => void) | undefined;
|
package/lib/modal/src/Modal.js
CHANGED
|
@@ -27,7 +27,7 @@ const modalProps = Object.assign(Object.assign(Object.assign(Object.assign({}, _
|
|
|
27
27
|
}, transformOrigin: {
|
|
28
28
|
type: String,
|
|
29
29
|
default: 'mouse'
|
|
30
|
-
} }), presetProps_1.presetProps), {
|
|
30
|
+
}, zIndex: Number }), presetProps_1.presetProps), {
|
|
31
31
|
// events
|
|
32
32
|
'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onAfterEnter: Function, onBeforeLeave: Function, onAfterLeave: Function, onClose: Function, onPositiveClick: Function, onNegativeClick: Function, onMaskClick: Function,
|
|
33
33
|
// private
|
|
@@ -210,6 +210,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
210
210
|
[
|
|
211
211
|
vdirs_1.zindexable,
|
|
212
212
|
{
|
|
213
|
+
zIndex: this.zIndex,
|
|
213
214
|
enabled: this.show
|
|
214
215
|
}
|
|
215
216
|
]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as NPageHeader } from './src/PageHeader';
|
|
2
|
-
export type {
|
|
2
|
+
export type { PageHeaderProps } from './src/PageHeader';
|
|
@@ -39,7 +39,7 @@ declare const pageHeaderProps: {
|
|
|
39
39
|
backSize: string;
|
|
40
40
|
}, unknown>>>;
|
|
41
41
|
};
|
|
42
|
-
export declare type
|
|
42
|
+
export declare type PageHeaderProps = ExtractPublicPropTypes<typeof pageHeaderProps>;
|
|
43
43
|
declare const _default: import("vue").DefineComponent<{
|
|
44
44
|
title: StringConstructor;
|
|
45
45
|
subtitle: StringConstructor;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as NPagination } from './src/Pagination';
|
|
2
2
|
export type { PaginationProps } from './src/Pagination';
|
|
3
|
-
export type { PaginationInfo, PaginationSizeOption } from './src/interface';
|
|
3
|
+
export type { PaginationInfo, PaginationSizeOption, PaginationRenderLabel } from './src/interface';
|