zartui 3.1.9 → 3.1.10
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 +23 -23
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +1 -0
- package/es/action-sheet/types.d.ts +14 -0
- package/es/action-sheet/types.mjs +0 -0
- package/es/avatar/index.css +1 -1
- package/es/avatar/index.d.ts +1 -1
- package/es/avatar/types.d.ts +10 -0
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +1 -0
- package/es/badge/types.d.ts +15 -0
- package/es/badge/types.mjs +0 -0
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +1 -1
- package/es/button/types.d.ts +35 -0
- package/es/calendar/CalendarDay.mjs +8 -1
- package/es/calendar/CalendarHeader.mjs +2 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/calendar/types.d.ts +25 -0
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/types.d.ts +21 -0
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell/types.d.ts +24 -0
- package/es/cell-group/index.css +1 -1
- package/es/checkbox/Checker.mjs +6 -0
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox/types.d.ts +19 -0
- package/es/checkbox-group/index.css +1 -1
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/collapse-item/types.d.ts +8 -0
- package/es/config-provider/index.d.ts +2 -1
- package/es/config-provider/types.d.ts +138 -0
- package/es/config-provider/types.mjs +0 -0
- package/es/date-time-picker/DateTimePicker.d.ts +2 -2
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
- package/es/date-time-picker/index.css +1 -1
- package/es/date-time-picker/index.d.ts +2 -2
- package/es/date-time-picker/utils.d.ts +1 -1
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +2 -2
- package/es/dialog/types.d.ts +18 -0
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +1 -0
- package/es/divider/types.d.ts +8 -0
- package/es/divider/types.mjs +0 -0
- package/es/dropdown-item/DropdownItem.mjs +1 -0
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/dropdown-item/types.d.ts +3 -0
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/dropdown-menu/types.d.ts +12 -0
- package/es/empty/Empty.mjs +5 -3
- package/es/empty/Images.d.ts +20 -9
- package/es/empty/Images.mjs +755 -563
- package/es/empty/index.css +1 -1
- package/es/empty/index.d.ts +1 -0
- package/es/empty/types.d.ts +8 -0
- package/es/empty/types.mjs +0 -0
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +1 -1
- package/es/field/types.d.ts +22 -0
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.d.ts +1 -0
- package/es/grid-item/types.d.ts +7 -0
- package/es/grid-item/types.mjs +0 -0
- package/es/hierarchy-select/Breadcrumb.mjs +1 -1
- package/es/hierarchy-select/HierarchySelect.d.ts +13 -0
- package/es/hierarchy-select/HierarchySelect.mjs +132 -21
- package/es/hierarchy-select/index.css +1 -1
- package/es/hierarchy-select/index.d.ts +10 -1
- package/es/hierarchy-select/svg/SubIcon.d.ts +2 -1
- package/es/hierarchy-select/svg/SubIcon.mjs +10 -29
- package/es/hierarchy-select/types.d.ts +21 -0
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +1 -0
- package/es/image/types.d.ts +5 -0
- package/es/image/types.mjs +0 -0
- package/es/image-preview/ImagePreview.d.ts +1 -1
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.d.ts +2 -2
- package/es/image-preview/types.d.ts +10 -0
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/types.d.ts +1 -3
- package/es/index-bar/IndexBar.d.ts +26 -0
- package/es/index-bar/IndexBar.mjs +184 -50
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +18 -0
- package/es/index-bar/types.d.ts +4 -3
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/list/types.d.ts +5 -0
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +1 -0
- package/es/loading/types.d.ts +6 -0
- package/es/loading/types.mjs +0 -0
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/index.d.ts +1 -1
- package/es/media-picker/type.d.ts +12 -0
- package/es/media-player/index.css +1 -1
- package/es/multiple-picker/MultiplePicker.d.ts +3 -3
- package/es/multiple-picker/index.css +1 -1
- package/es/multiple-picker/index.d.ts +4 -3
- package/es/multiple-picker/types.d.ts +17 -0
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +1 -0
- package/es/nav-bar/types.d.ts +16 -0
- package/es/nav-bar/types.mjs +0 -0
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notice-bar/types.d.ts +10 -0
- package/es/notify/index.css +1 -1
- package/es/notify/index.d.ts +1 -1
- package/es/notify/types.d.ts +8 -0
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +1 -0
- package/es/number-keyboard/types.d.ts +14 -0
- package/es/number-keyboard/types.mjs +0 -0
- package/es/overlay/index.d.ts +1 -0
- package/es/overlay/types.d.ts +4 -0
- package/es/overlay/types.mjs +0 -0
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +1 -0
- package/es/password-input/types.d.ts +15 -0
- package/es/password-input/types.mjs +0 -0
- package/es/picker/Picker.d.ts +6 -6
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +7 -7
- package/es/picker/types.d.ts +17 -0
- package/es/popover/Popover.mjs +1 -1
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/types.d.ts +12 -0
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +1 -1
- package/es/popup/types.d.ts +8 -0
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +1 -0
- package/es/pull-refresh/types.d.ts +6 -0
- package/es/pull-refresh/types.mjs +0 -0
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +1 -0
- package/es/radio/types.d.ts +18 -0
- package/es/radio/types.mjs +0 -0
- package/es/radio-group/index.css +1 -1
- package/es/radio-picker/RadioPicker.d.ts +3 -3
- package/es/radio-picker/index.css +1 -1
- package/es/radio-picker/index.d.ts +4 -4
- package/es/radio-picker/types.d.ts +24 -0
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +1 -0
- package/es/rate/types.d.ts +6 -0
- package/es/rate/types.mjs +0 -0
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +1 -1
- package/es/search/types.d.ts +12 -0
- package/es/signature/index.css +1 -1
- package/es/signature/index.d.ts +1 -1
- package/es/signature/types.d.ts +9 -0
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/types.d.ts +9 -0
- package/es/skeleton/types.mjs +0 -0
- package/es/step/Step.mjs +2 -2
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +1 -0
- package/es/step/types.d.ts +6 -0
- package/es/step/types.mjs +0 -0
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +1 -0
- package/es/stepper/types.d.ts +17 -0
- package/es/stepper/types.mjs +0 -0
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +1 -0
- package/es/steps/types.d.ts +5 -0
- package/es/steps/types.mjs +0 -0
- package/es/sticky/index.d.ts +1 -0
- package/es/sticky/types.d.ts +3 -0
- package/es/sticky/types.mjs +0 -0
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +1 -1
- package/es/swipe/types.d.ts +10 -0
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +1 -0
- package/es/switch/types.d.ts +18 -0
- package/es/switch/types.mjs +0 -0
- package/es/tabbar/index.d.ts +1 -0
- package/es/tabbar/types.d.ts +5 -0
- package/es/tabbar/types.mjs +0 -0
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +1 -0
- package/es/tabbar-item/types.d.ts +14 -0
- package/es/tabbar-item/types.mjs +0 -0
- package/es/table/index.css +1 -1
- package/es/table/index.d.ts +1 -0
- package/es/table/types.d.ts +10 -0
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +1 -1
- package/es/tabs/types.d.ts +17 -0
- package/es/tag/Tag.mjs +5 -4
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +1 -0
- package/es/tag/types.d.ts +17 -0
- package/es/tag/types.mjs +0 -0
- package/es/text-ellipsis/types.d.ts +1 -0
- package/es/time-picker/TimePicker.d.ts +2 -2
- package/es/time-picker/index.css +1 -1
- package/es/time-picker/index.d.ts +3 -2
- package/es/time-picker/types.d.ts +23 -0
- package/es/time-picker/types.mjs +0 -0
- package/es/timeline/index.css +1 -1
- package/es/timeline/index.d.ts +1 -0
- package/es/timeline/types.d.ts +9 -0
- package/es/timeline/types.mjs +0 -0
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +1 -1
- package/es/toast/types.d.ts +15 -0
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/uploader/types.d.ts +21 -0
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +1 -0
- package/lib/action-sheet/types.d.ts +14 -0
- package/lib/action-sheet/types.js +15 -0
- package/lib/avatar/index.css +1 -1
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/types.d.ts +10 -0
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +1 -0
- package/lib/badge/types.d.ts +15 -0
- package/lib/badge/types.js +15 -0
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/button/types.d.ts +35 -0
- package/lib/calendar/CalendarDay.js +8 -1
- package/lib/calendar/CalendarHeader.js +2 -2
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/types.d.ts +25 -0
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/types.d.ts +21 -0
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell/types.d.ts +24 -0
- package/lib/cell-group/index.css +1 -1
- package/lib/checkbox/Checker.js +6 -0
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/types.d.ts +19 -0
- package/lib/checkbox-group/index.css +1 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/collapse-item/types.d.ts +8 -0
- package/lib/config-provider/index.d.ts +2 -1
- package/lib/config-provider/types.d.ts +138 -0
- package/lib/config-provider/types.js +15 -0
- package/lib/date-time-picker/DateTimePicker.d.ts +2 -2
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
- package/lib/date-time-picker/index.css +1 -1
- package/lib/date-time-picker/index.d.ts +2 -2
- package/lib/date-time-picker/utils.d.ts +1 -1
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +2 -2
- package/lib/dialog/types.d.ts +18 -0
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +1 -0
- package/lib/divider/types.d.ts +8 -0
- package/lib/divider/types.js +15 -0
- package/lib/dropdown-item/DropdownItem.js +1 -0
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/dropdown-item/types.d.ts +3 -0
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/types.d.ts +12 -0
- package/lib/empty/Empty.js +4 -2
- package/lib/empty/Images.d.ts +20 -9
- package/lib/empty/Images.js +755 -563
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.d.ts +1 -0
- package/lib/empty/types.d.ts +8 -0
- package/lib/empty/types.js +15 -0
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +1 -1
- package/lib/field/types.d.ts +22 -0
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +1 -0
- package/lib/grid-item/types.d.ts +7 -0
- package/lib/grid-item/types.js +15 -0
- package/lib/hierarchy-select/Breadcrumb.js +1 -1
- package/lib/hierarchy-select/HierarchySelect.d.ts +13 -0
- package/lib/hierarchy-select/HierarchySelect.js +131 -20
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/hierarchy-select/index.d.ts +10 -1
- package/lib/hierarchy-select/svg/SubIcon.d.ts +2 -1
- package/lib/hierarchy-select/svg/SubIcon.js +9 -28
- package/lib/hierarchy-select/types.d.ts +21 -0
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +1 -0
- package/lib/image/types.d.ts +5 -0
- package/lib/image/types.js +15 -0
- package/lib/image-preview/ImagePreview.d.ts +1 -1
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.d.ts +2 -2
- package/lib/image-preview/types.d.ts +10 -0
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/types.d.ts +1 -3
- package/lib/index-bar/IndexBar.d.ts +26 -0
- package/lib/index-bar/IndexBar.js +183 -49
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +18 -0
- package/lib/index-bar/types.d.ts +4 -3
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/list/types.d.ts +5 -0
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +1 -0
- package/lib/loading/types.d.ts +6 -0
- package/lib/loading/types.js +15 -0
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.d.ts +1 -1
- package/lib/media-picker/type.d.ts +12 -0
- package/lib/media-player/index.css +1 -1
- package/lib/multiple-picker/MultiplePicker.d.ts +3 -3
- package/lib/multiple-picker/index.css +1 -1
- package/lib/multiple-picker/index.d.ts +4 -3
- package/lib/multiple-picker/types.d.ts +17 -0
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +1 -0
- package/lib/nav-bar/types.d.ts +16 -0
- package/lib/nav-bar/types.js +15 -0
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notice-bar/types.d.ts +10 -0
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.d.ts +1 -1
- package/lib/notify/types.d.ts +8 -0
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +1 -0
- package/lib/number-keyboard/types.d.ts +14 -0
- package/lib/number-keyboard/types.js +15 -0
- package/lib/overlay/index.d.ts +1 -0
- package/lib/overlay/types.d.ts +4 -0
- package/lib/overlay/types.js +15 -0
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +1 -0
- package/lib/password-input/types.d.ts +15 -0
- package/lib/password-input/types.js +15 -0
- package/lib/picker/Picker.d.ts +6 -6
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +7 -7
- package/lib/picker/types.d.ts +17 -0
- package/lib/popover/Popover.js +1 -1
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/types.d.ts +12 -0
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/types.d.ts +8 -0
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +1 -0
- package/lib/pull-refresh/types.d.ts +6 -0
- package/lib/pull-refresh/types.js +15 -0
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/types.d.ts +18 -0
- package/lib/radio/types.js +15 -0
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-picker/RadioPicker.d.ts +3 -3
- package/lib/radio-picker/index.css +1 -1
- package/lib/radio-picker/index.d.ts +4 -4
- package/lib/radio-picker/types.d.ts +24 -0
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +1 -0
- package/lib/rate/types.d.ts +6 -0
- package/lib/rate/types.js +15 -0
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +1 -1
- package/lib/search/types.d.ts +12 -0
- package/lib/signature/index.css +1 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/signature/types.d.ts +9 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/types.d.ts +9 -0
- package/lib/skeleton/types.js +15 -0
- package/lib/step/Step.js +2 -2
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +1 -0
- package/lib/step/types.d.ts +6 -0
- package/lib/step/types.js +15 -0
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +1 -0
- package/lib/stepper/types.d.ts +17 -0
- package/lib/stepper/types.js +15 -0
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +1 -0
- package/lib/steps/types.d.ts +5 -0
- package/lib/steps/types.js +15 -0
- package/lib/sticky/index.d.ts +1 -0
- package/lib/sticky/types.d.ts +3 -0
- package/lib/sticky/types.js +15 -0
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +1 -1
- package/lib/swipe/types.d.ts +10 -0
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/types.d.ts +18 -0
- package/lib/switch/types.js +15 -0
- package/lib/tabbar/index.d.ts +1 -0
- package/lib/tabbar/types.d.ts +5 -0
- package/lib/tabbar/types.js +15 -0
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +1 -0
- package/lib/tabbar-item/types.d.ts +14 -0
- package/lib/tabbar-item/types.js +15 -0
- package/lib/table/index.css +1 -1
- package/lib/table/index.d.ts +1 -0
- package/lib/table/types.d.ts +10 -0
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/types.d.ts +17 -0
- package/lib/tag/Tag.js +5 -4
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/types.d.ts +17 -0
- package/lib/tag/types.js +15 -0
- package/lib/text-ellipsis/types.d.ts +1 -0
- package/lib/time-picker/TimePicker.d.ts +2 -2
- package/lib/time-picker/index.css +1 -1
- package/lib/time-picker/index.d.ts +3 -2
- package/lib/time-picker/types.d.ts +23 -0
- package/lib/time-picker/types.js +15 -0
- package/lib/timeline/index.css +1 -1
- package/lib/timeline/index.d.ts +1 -0
- package/lib/timeline/types.d.ts +9 -0
- package/lib/timeline/types.js +15 -0
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +1 -1
- package/lib/toast/types.d.ts +15 -0
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/uploader/types.d.ts +21 -0
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +23 -23
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +1118 -688
- package/lib/zartui.es.js +1118 -688
- package/lib/zartui.js +1118 -688
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export type BaseThemeVars = {
|
|
2
|
+
greenR?: string;
|
|
3
|
+
greenG?: string;
|
|
4
|
+
greenB?: string;
|
|
5
|
+
greenRgb?: string;
|
|
6
|
+
deepGreenR?: string;
|
|
7
|
+
deepGreenG?: string;
|
|
8
|
+
deepGreenB?: string;
|
|
9
|
+
deepGreenRgb?: string;
|
|
10
|
+
orangeR?: string;
|
|
11
|
+
orangeG?: string;
|
|
12
|
+
orangeB?: string;
|
|
13
|
+
orangeRgb?: string;
|
|
14
|
+
yellowR?: string;
|
|
15
|
+
yellowG?: string;
|
|
16
|
+
yellowB?: string;
|
|
17
|
+
yellowRgb?: string;
|
|
18
|
+
blueR?: string;
|
|
19
|
+
blueG?: string;
|
|
20
|
+
blueB?: string;
|
|
21
|
+
blueRgb?: string;
|
|
22
|
+
grayR?: string;
|
|
23
|
+
grayG?: string;
|
|
24
|
+
grayB?: string;
|
|
25
|
+
grayRgb?: string;
|
|
26
|
+
redR?: string;
|
|
27
|
+
redG?: string;
|
|
28
|
+
redB?: string;
|
|
29
|
+
redRgb?: string;
|
|
30
|
+
primaryColorR?: string;
|
|
31
|
+
primaryColorG?: string;
|
|
32
|
+
primaryColorB?: string;
|
|
33
|
+
primaryColorRgb?: string;
|
|
34
|
+
black?: string;
|
|
35
|
+
white?: string;
|
|
36
|
+
gray?: string;
|
|
37
|
+
grayA04?: string;
|
|
38
|
+
grayA06?: string;
|
|
39
|
+
grayA08?: string;
|
|
40
|
+
grayA1?: string;
|
|
41
|
+
grayA2?: string;
|
|
42
|
+
grayA4?: string;
|
|
43
|
+
grayA6?: string;
|
|
44
|
+
grayA8?: string;
|
|
45
|
+
red?: string;
|
|
46
|
+
blue?: string;
|
|
47
|
+
orange?: string;
|
|
48
|
+
orange2?: string;
|
|
49
|
+
green?: string;
|
|
50
|
+
yellow?: string;
|
|
51
|
+
textColorRgb?: string;
|
|
52
|
+
primaryColor?: string;
|
|
53
|
+
primaryColorLight?: string;
|
|
54
|
+
primaryColorA1?: string;
|
|
55
|
+
primaryColorA2?: string;
|
|
56
|
+
primaryColorA6?: string;
|
|
57
|
+
successColor?: string;
|
|
58
|
+
dangerColor?: string;
|
|
59
|
+
warningColor?: string;
|
|
60
|
+
textColor?: string;
|
|
61
|
+
textColor2?: string;
|
|
62
|
+
textColor3?: string;
|
|
63
|
+
placeholderColor?: string;
|
|
64
|
+
activeColor?: string;
|
|
65
|
+
activeOpacity?: number;
|
|
66
|
+
disabledOpacity?: number;
|
|
67
|
+
background?: string;
|
|
68
|
+
background2?: string;
|
|
69
|
+
background3?: string;
|
|
70
|
+
background4?: string;
|
|
71
|
+
background5?: string;
|
|
72
|
+
backgroundCard?: string;
|
|
73
|
+
paddingXxs?: string;
|
|
74
|
+
paddingBase?: string;
|
|
75
|
+
paddingXs?: string;
|
|
76
|
+
paddingSm?: string;
|
|
77
|
+
paddingMd?: string;
|
|
78
|
+
paddingLg?: string;
|
|
79
|
+
paddingXl?: string;
|
|
80
|
+
fontBold?: number;
|
|
81
|
+
fontSizeXs?: string;
|
|
82
|
+
fontSizeSm?: string;
|
|
83
|
+
fontSizeMd?: string;
|
|
84
|
+
fontSizeLg?: string;
|
|
85
|
+
fontSizeGt?: string;
|
|
86
|
+
fontSize1?: string;
|
|
87
|
+
fontSize2?: string;
|
|
88
|
+
fontSize3?: string;
|
|
89
|
+
fontSize4?: string;
|
|
90
|
+
fontSize5?: string;
|
|
91
|
+
fontSize6?: string;
|
|
92
|
+
fontSize7?: string;
|
|
93
|
+
fontSize8?: string;
|
|
94
|
+
fontSize9?: string;
|
|
95
|
+
fontSize10?: string;
|
|
96
|
+
fontSize11?: string;
|
|
97
|
+
fontSize12?: string;
|
|
98
|
+
fontSize13?: string;
|
|
99
|
+
fontSize14?: string;
|
|
100
|
+
fontSize15?: string;
|
|
101
|
+
lineHeightXs?: string;
|
|
102
|
+
lineHeightSm?: string;
|
|
103
|
+
lineHeightMd?: string;
|
|
104
|
+
lineHeightLg?: string;
|
|
105
|
+
lineHeight1?: string;
|
|
106
|
+
lineHeight2?: string;
|
|
107
|
+
lineHeight3?: string;
|
|
108
|
+
lineHeight4?: string;
|
|
109
|
+
lineHeight5?: string;
|
|
110
|
+
lineHeight6?: string;
|
|
111
|
+
lineHeight7?: string;
|
|
112
|
+
lineHeight8?: string;
|
|
113
|
+
lineHeight9?: string;
|
|
114
|
+
lineHeight10?: string;
|
|
115
|
+
lineHeight11?: string;
|
|
116
|
+
lineHeight12?: string;
|
|
117
|
+
lineHeight13?: string;
|
|
118
|
+
lineHeight14?: string;
|
|
119
|
+
lineHeight15?: string;
|
|
120
|
+
lineHeight16?: string;
|
|
121
|
+
lineHeight17?: string;
|
|
122
|
+
lineHeight18?: string;
|
|
123
|
+
lineHeight19?: string;
|
|
124
|
+
baseFont?: string;
|
|
125
|
+
priceFont?: string;
|
|
126
|
+
durationBase?: string;
|
|
127
|
+
durationFast?: string;
|
|
128
|
+
easeOut?: string;
|
|
129
|
+
easeIn?: string;
|
|
130
|
+
borderColor?: string;
|
|
131
|
+
borderWidth?: string;
|
|
132
|
+
radiusSm?: string;
|
|
133
|
+
radiusMd?: string;
|
|
134
|
+
radiusLg?: string;
|
|
135
|
+
radiusGt?: string;
|
|
136
|
+
radiusMax?: string;
|
|
137
|
+
};
|
|
138
|
+
export type ConfigProviderThemeVars = BaseThemeVars & import('../action-sheet').ActionSheetThemeVars & import('../avatar').AvatarThemeVars & import('../badge').BadgeThemeVars & import('../button').ButtonThemeVars & import('../calendar').CalendarThemeVars & import('../cascader').CascaderThemeVars & import('../cell').CellThemeVars & import('../checkbox').CheckboxThemeVars & import('../collapse-item').CollapseItemThemeVars & import('../dialog').DialogThemeVars & import('../divider').DividerThemeVars & import('../dropdown-item').DropdownItemThemeVars & import('../dropdown-menu').DropdownMenuThemeVars & import('../empty').EmptyThemeVars & import('../field').FieldThemeVars & import('../grid-item').GridItemThemeVars & import('../hierarchy-select').HierarchySelectThemeVars & import('../image').ImageThemeVars & import('../image-preview').ImagePreviewThemeVars & import('../index-anchor').IndexAnchorThemeVars & import('../index-bar').IndexBarThemeVars & import('../list').ListThemeVars & import('../loading').LoadingThemeVars & import('../media-picker').MediaPickerThemeVars & import('../multiple-picker').MultiplePickerThemeVars & import('../nav-bar').NavBarThemeVars & import('../notice-bar').NoticeBarThemeVars & import('../notify').NotifyThemeVars & import('../number-keyboard').NumberKeyboardThemeVars & import('../overlay').OverlayThemeVars & import('../password-input').PasswordInputThemeVars & import('../picker').PickerThemeVars & import('../popover').PopoverThemeVars & import('../popup').PopupThemeVars & import('../pull-refresh').PullRefreshThemeVars & import('../radio').RadioThemeVars & import('../radio-picker').RadioPickerThemeVars & import('../rate').RateThemeVars & import('../search').SearchThemeVars & import('../signature').SignatureThemeVars & import('../skeleton').SkeletonThemeVars & import('../step').StepThemeVars & import('../stepper').StepperThemeVars & import('../steps').StepsThemeVars & import('../sticky').StickyThemeVars & import('../swipe').SwipeThemeVars & import('../switch').SwitchThemeVars & import('../tabbar').TabbarThemeVars & import('../tabbar-item').TabbarItemThemeVars & import('../table').TableThemeVars & import('../tabs').TabsThemeVars & import('../tag').TagThemeVars & import('../text-ellipsis').TextEllipsisThemeVars & import('../time-picker').TimePickerThemeVars & import('../timeline').TimelineThemeVars & import('../toast').ToastThemeVars & import('../uploader').UploaderThemeVars;
|
|
File without changes
|
|
@@ -230,9 +230,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
230
230
|
minDate: Date;
|
|
231
231
|
maxDate: Date;
|
|
232
232
|
allowHtml: boolean;
|
|
233
|
-
optionHeight: string | number;
|
|
234
|
-
showToolbar: boolean;
|
|
235
233
|
swipeDuration: string | number;
|
|
234
|
+
showToolbar: boolean;
|
|
235
|
+
optionHeight: string | number;
|
|
236
236
|
visibleOptionNum: string | number;
|
|
237
237
|
columnsUnit: string[];
|
|
238
238
|
columnsType: DateTimePickerColumnType[];
|
|
@@ -322,9 +322,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
322
322
|
minDate: Date;
|
|
323
323
|
maxDate: Date;
|
|
324
324
|
allowHtml: boolean;
|
|
325
|
-
optionHeight: string | number;
|
|
326
|
-
showToolbar: boolean;
|
|
327
325
|
swipeDuration: string | number;
|
|
326
|
+
showToolbar: boolean;
|
|
327
|
+
optionHeight: string | number;
|
|
328
328
|
visibleOptionNum: string | number;
|
|
329
329
|
columnsUnit: string[];
|
|
330
330
|
columnsType: DateTimePickerColumnType[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-date-time-picker__title-bar{display:flex;flex-direction:column;align-items:center;padding:12px;flex:1;color:var(--zt-text-color)}.zt-date-time-picker__title-bar--unselected{color:var(--zt-gray-a4)}.zt-date-time-picker__title{font-weight:700;font-size:
|
|
1
|
+
.zt-date-time-picker__title-bar{display:flex;flex-direction:column;align-items:center;padding:12px;flex:1;color:var(--zt-text-color)}.zt-date-time-picker__title-bar--unselected{color:var(--zt-gray-a4)}.zt-date-time-picker__title{font-weight:700;font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);height:var(--zt-line-height-md)}.zt-date-time-picker__title--selected{color:var(--zt-primary-color)}.zt-date-time-picker__title--unselected{font-weight:400}.zt-date-time-picker__value{font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);height:var(--zt-line-height-md);margin-top:4px}.zt-date-time-picker__title-tab-bar{display:flex;align-items:center}.zt-date-time-picker__title-separator{width:1px;height:40px;background-color:var(--zt-gray-a1)}
|
|
@@ -227,9 +227,9 @@ export declare const DateTimePicker: import("../utils").WithInstall<import("vue"
|
|
|
227
227
|
minDate: Date;
|
|
228
228
|
maxDate: Date;
|
|
229
229
|
allowHtml: boolean;
|
|
230
|
-
optionHeight: string | number;
|
|
231
|
-
showToolbar: boolean;
|
|
232
230
|
swipeDuration: string | number;
|
|
231
|
+
showToolbar: boolean;
|
|
232
|
+
optionHeight: string | number;
|
|
233
233
|
visibleOptionNum: string | number;
|
|
234
234
|
columnsUnit: string[];
|
|
235
235
|
columnsType: import("./DateTimePicker").DateTimePickerColumnType[];
|
|
@@ -46,7 +46,7 @@ export declare const sharedProps: {
|
|
|
46
46
|
default: (type: string, option: PickerOption) => PickerOption;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
export declare const pickerInheritKeys: ("title" | "readonly" | "loading" | "showTitle" | "allowHtml" | "
|
|
49
|
+
export declare const pickerInheritKeys: ("title" | "readonly" | "loading" | "showTitle" | "allowHtml" | "cancelButtonText" | "confirmButtonText" | "swipeDuration" | "showToolbar" | "optionHeight" | "visibleOptionNum")[];
|
|
50
50
|
export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
|
|
51
51
|
export declare const getMonthEndDay: (year: number, month: number) => number;
|
|
52
52
|
export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter?: Filter) => PickerOption[];
|
package/es/dialog/Dialog.d.ts
CHANGED
|
@@ -181,8 +181,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
181
181
|
closeOnClickOverlay: boolean;
|
|
182
182
|
transition: string;
|
|
183
183
|
closeOnPopstate: boolean;
|
|
184
|
-
allowHtml: boolean;
|
|
185
184
|
primaryHeader: boolean;
|
|
185
|
+
allowHtml: boolean;
|
|
186
186
|
showCancelButton: boolean;
|
|
187
187
|
cancelButtonDisabled: boolean;
|
|
188
188
|
confirmButtonDisabled: boolean;
|
package/es/dialog/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-dialog-width: 350px;--zt-dialog-max-width: 90%;--zt-dialog-
|
|
1
|
+
:root{--zt-dialog-width: 350px;--zt-dialog-max-width: 90%;--zt-dialog-transition: var(--zt-duration-base);--zt-dialog-radius: 12px;--zt-dialog-background: var(--zt-background-2);--zt-dialog-header-font-weight: var(--zt-font-bold);--zt-dialog-header-padding-top: 24px;--zt-dialog-header-isolated-padding: var(--zt-padding-lg) 0;--zt-dialog-header-primary-padding: 10px;--zt-dialog-message-padding: var(--zt-padding-lg) var(--zt-padding-md);--zt-dialog-message-max-height: 60vh;--zt-dialog-has-title-message-text-color: var(--zt-gray-a6);--zt-dialog-has-title-message-padding-top: var(--zt-padding-xs);--zt-dialog-has-title-message-primary-header: var(--zt-padding-lg);--zt-dialog-confirm-button-text-color: var(--zt-white);--zt-dialog-cancel-button-background-color: var(--zt-white)}.zt-dialog{top:45%;width:var(--zt-dialog-width);max-width:var(--zt-dialog-max-width);overflow:hidden;font-size:var(--zt-font-size-lg);background:var(--zt-dialog-background);border-radius:var(--zt-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--zt-dialog-transition);transition-property:transform,opacity}.zt-dialog__header{color:var(--zt-text-color);padding-top:var(--zt-dialog-header-padding-top);font-weight:var(--zt-dialog-header-font-weight);line-height:var(--zt-line-height-xl);text-align:center}.zt-dialog__header--isolated{padding:var(--zt-dialog-header-isolated-padding)}.zt-dialog__header--custom-title{padding-left:0;padding-right:0;padding-top:0}.zt-dialog__header--primary{padding:var(--zt-dialog-header-primary-padding);background:var(--zt-primary-color);color:var(--zt-white)}.zt-dialog__content{text-align:center;font-size:0}.zt-dialog__message{display:inline-block;color:var(--zt-gray-a8);max-height:var(--zt-dialog-message-max-height);padding:var(--zt-dialog-message-padding);overflow-y:auto;font-size:var(--zt-font-size-lg);line-height:var(--zt-line-height-md);white-space:pre-wrap;text-align:left;word-wrap:break-word;-webkit-overflow-scrolling:touch}.zt-dialog__message--has-title{padding-top:var(--zt-dialog-has-title-message-padding-top);color:var(--zt-dialog-has-title-message-text-color);font-size:var(--zt-font-size-md)}.zt-dialog__message--primary-header{padding-top:var(--zt-dialog-has-title-message-primary-header)}.zt-dialog__message--left{text-align:left}.zt-dialog__message--right{text-align:right}.zt-dialog__message--justify{text-align:justify}.zt-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none;margin:0 var(--zt-padding-xl) var(--zt-padding-lg)}.zt-dialog__confirm,.zt-dialog__cancel{flex:1;margin:0;background-color:var(--zt-dialog-cancel-button-background-color)}.zt-dialog__confirm,.zt-dialog__confirm:active{color:var(--zt-dialog-confirm-button-text-color)}.zt-dialog__confirm--with-cancel{margin-left:8px}.zt-dialog--round-button .zt-dialog__footer{position:relative;height:auto;padding:var(--zt-padding-xs) var(--zt-padding-lg) var(--zt-padding-md)}.zt-dialog--round-button .zt-dialog__message{padding-bottom:var(--zt-padding-md);color:var(--zt-text-color)}.zt-dialog--round-button .zt-dialog__confirm,.zt-dialog--round-button .zt-dialog__cancel{height:var(--zt-dialog-round-button-height)}.zt-dialog--round-button .zt-dialog__confirm{color:var(--zt-white)}.zt-dialog-bounce-enter-from{transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.zt-dialog-bounce-leave-active{transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}.zt-theme-dark{--zt-dialog-cancel-button-background-color: rbga(255, 255, 255, .2)}
|
package/es/dialog/index.d.ts
CHANGED
|
@@ -122,8 +122,8 @@ export declare const Dialog: import("../utils").WithInstall<import("vue").Define
|
|
|
122
122
|
closeOnClickOverlay: boolean;
|
|
123
123
|
transition: string;
|
|
124
124
|
closeOnPopstate: boolean;
|
|
125
|
-
allowHtml: boolean;
|
|
126
125
|
primaryHeader: boolean;
|
|
126
|
+
allowHtml: boolean;
|
|
127
127
|
showCancelButton: boolean;
|
|
128
128
|
cancelButtonDisabled: boolean;
|
|
129
129
|
confirmButtonDisabled: boolean;
|
|
@@ -133,7 +133,7 @@ export default Dialog;
|
|
|
133
133
|
export { dialogProps } from './Dialog';
|
|
134
134
|
export { showDialog, closeDialog, showConfirmDialog, setDialogDefaultOptions, resetDialogDefaultOptions, } from './function-call';
|
|
135
135
|
export type { DialogProps } from './Dialog';
|
|
136
|
-
export type { DialogTheme, DialogMessage, DialogOptions, DialogMessageAlign, } from './types';
|
|
136
|
+
export type { DialogTheme, DialogMessage, DialogOptions, DialogMessageAlign, DialogThemeVars, } from './types';
|
|
137
137
|
declare module 'vue' {
|
|
138
138
|
interface GlobalComponents {
|
|
139
139
|
ZtDialog: typeof Dialog;
|
package/es/dialog/types.d.ts
CHANGED
|
@@ -31,3 +31,21 @@ export type DialogOptions = {
|
|
|
31
31
|
confirmButtonDisabled?: boolean;
|
|
32
32
|
closeOnClickOverlay?: boolean;
|
|
33
33
|
};
|
|
34
|
+
export type DialogThemeVars = {
|
|
35
|
+
dialogWidth?: string;
|
|
36
|
+
dialogMaxWidth?: string;
|
|
37
|
+
dialogTransition?: string;
|
|
38
|
+
dialogRadius?: string;
|
|
39
|
+
dialogBackground?: string;
|
|
40
|
+
dialogHeaderFontWeight?: string;
|
|
41
|
+
dialogHeaderPaddingTop?: string;
|
|
42
|
+
dialogHeaderIsolatedPadding?: string;
|
|
43
|
+
dialogHeaderPrimaryPadding?: string;
|
|
44
|
+
dialogMessagePadding?: string;
|
|
45
|
+
dialogMessageMaxHeight?: string;
|
|
46
|
+
dialogHasTitleMessageTextColor?: string;
|
|
47
|
+
dialogHasTitleMessagePaddingTop?: string;
|
|
48
|
+
dialogHasTitleMessagePrimaryHeader?: string;
|
|
49
|
+
dialogConfirmButtonTextColor?: string;
|
|
50
|
+
dialogCancelButtonBackgroundColor?: string;
|
|
51
|
+
};
|
package/es/divider/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-divider-margin: var(--zt-padding-md) 0;--zt-divider-text-color: var(--zt-gray-a4);--zt-divider-
|
|
1
|
+
:root{--zt-divider-margin: var(--zt-padding-md) 0;--zt-divider-text-color: var(--zt-gray-a4);--zt-divider-border-color: var(--zt-border-color);--zt-divider-content-padding: var(--zt-padding-md);--zt-divider-content-left-width: 10%;--zt-divider-content-right-width: 10%}.zt-divider{display:flex;align-items:center;margin:var(--zt-divider-margin);color:var(--zt-divider-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-xl);border-color:var(--zt-divider-border-color);border-style:solid;border-width:0}.zt-divider:before,.zt-divider:after{display:block;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:var(--zt-border-width) 0 0}.zt-divider:before{content:""}.zt-divider--hairline:before,.zt-divider--hairline:after{transform:scaleY(.5)}.zt-divider--dashed{border-style:dashed}.zt-divider--content-center:before,.zt-divider--content-left:before,.zt-divider--content-right:before{margin-right:var(--zt-divider-content-padding)}.zt-divider--content-center:after,.zt-divider--content-left:after,.zt-divider--content-right:after{margin-left:var(--zt-divider-content-padding);content:""}.zt-divider--content-left:before{max-width:var(--zt-divider-content-left-width)}.zt-divider--content-right:after{max-width:var(--zt-divider-content-right-width)}
|
package/es/divider/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const Divider: import("../utils").WithInstall<import("vue").Defin
|
|
|
25
25
|
}, {}>>;
|
|
26
26
|
export default Divider;
|
|
27
27
|
export type { DividerProps, DividerContentPosition } from './Divider';
|
|
28
|
+
export type { DividerThemeVars } from './types';
|
|
28
29
|
declare module 'vue' {
|
|
29
30
|
interface GlobalComponents {
|
|
30
31
|
ZtDivider: typeof Divider;
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-dropdown-item-z-index: 10}.zt-dropdown-item{position:fixed;right:0;left:0;z-index:var(--zt-dropdown-item-z-index);overflow:hidden}.zt-dropdown-item__icon{display:block;line-height:inherit}.zt-dropdown-item__option{text-align:left}.zt-dropdown-item__option--active,.zt-dropdown-item__option--active .zt-dropdown-item__icon{color:var(--zt-dropdown-menu-option-active-color)}.zt-dropdown-item--up{top:0}.zt-dropdown-item--down{bottom:0}.zt-dropdown-item__content{position:absolute;max-height:var(--zt-dropdown-menu-content-max-height)}.zt-dropdown-item__options{position:absolute;top:0;width:100%;overflow-y:scroll}.zt-dropdown-item__button{position:absolute;overflow-y:hidden;z-index:1;width:100%;display:flex;height:68px;border-top:1px solid rgba(0,0,0,.05);border-radius:0 0 16px 16px}.zt-dropdown-item__button-reset{margin-top:12px;margin-left:16px;margin-right:4px;border-color
|
|
1
|
+
:root{--zt-dropdown-item-z-index: 10}.zt-dropdown-item{position:fixed;right:0;left:0;z-index:var(--zt-dropdown-item-z-index);overflow:hidden}.zt-dropdown-item__icon{display:block;line-height:inherit}.zt-dropdown-item__option{text-align:left}.zt-dropdown-item__option--active,.zt-dropdown-item__option--active .zt-dropdown-item__icon{color:var(--zt-dropdown-menu-option-active-color)}.zt-dropdown-item--up{top:0}.zt-dropdown-item--down{bottom:0}.zt-dropdown-item__content{position:absolute;max-height:var(--zt-dropdown-menu-content-max-height)}.zt-dropdown-item__options{position:absolute;top:0;width:100%;overflow-y:scroll}.zt-dropdown-item__button{position:absolute;overflow-y:hidden;z-index:1;width:100%;display:flex;height:68px;border-top:1px solid rgba(0,0,0,.05);border-radius:0 0 16px 16px}.zt-dropdown-item__button-reset{margin-top:12px;margin-left:16px;margin-right:4px;border-color:var(--zt-orange);color:var(--zt-orange);background:#ffffff;width:50%}.zt-dropdown-item__button-confirm{margin-top:12px;margin-left:4px;margin-right:16px;width:50%}
|
|
@@ -56,7 +56,7 @@ export declare const DropdownItem: import("../utils").WithInstall<import("vue").
|
|
|
56
56
|
export default DropdownItem;
|
|
57
57
|
export { dropdownItemProps } from './DropdownItem';
|
|
58
58
|
export type { DropdownItemProps };
|
|
59
|
-
export type { DropdownItemInstance, DropdownItemOption } from './types';
|
|
59
|
+
export type { DropdownItemInstance, DropdownItemOption, DropdownItemThemeVars, } from './types';
|
|
60
60
|
declare module 'vue' {
|
|
61
61
|
interface GlobalComponents {
|
|
62
62
|
ZtDropdownItem: typeof DropdownItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-dropdown-menu-
|
|
1
|
+
:root{--zt-dropdown-menu-background: var(--zt-background-2);--zt-dropdown-menu-bar-padding: 0 12px;--zt-dropdown-menu-item-margin: 12px 4px;--zt-dropdown-menu-item-height: 36px;--zt-dropdown-menu-item-padding: 0 12px;--zt-dropdown-menu-title-text-color: var(--zt-text-color);--zt-dropdown-menu-title-active-text-color: var(--zt-primary-color);--zt-dropdown-menu-title-disabled-text-color: var(--zt-text-color-2);--zt-dropdown-menu-option-active-color: var(--zt-primary-color);--zt-dropdown-menu-content-max-height: 80%}:root[zt-theme-size=large]{--zt-dropdown-menu-item-height: 48px}.zt-dropdown-menu{-webkit-user-select:none;user-select:none}.zt-dropdown-menu__bar{position:relative;display:flex;padding:var(--zt-dropdown-menu-bar-padding);align-items:center}.zt-dropdown-menu__bar--opened{z-index:calc(var(--zt-dropdown-item-z-index) + 1)}.zt-dropdown-menu__item{display:flex;flex:1;align-items:center;justify-content:center;background:var(--zt-dropdown-menu-background);min-width:0;margin:var(--zt-dropdown-menu-item-margin);height:var(--zt-dropdown-menu-item-height);border-radius:calc(var(--zt-dropdown-menu-item-height) / 2);padding:var(--zt-dropdown-menu-item-padding);line-height:var(--zt-line-height-xs);cursor:pointer}.zt-dropdown-menu__item:last-child{margin-right:0}.zt-dropdown-menu__item:active{opacity:.7}.zt-dropdown-menu__item--disabled:active{opacity:1}.zt-dropdown-menu__item--disabled .zt-dropdown-menu__title{color:var(--zt-dropdown-menu-title-disabled-text-color)}.zt-dropdown-menu__title{position:relative;box-sizing:border-box;width:100%;color:var(--zt-dropdown-menu-title-text-color);font-size:var(--zt-font-size-md)}.zt-dropdown-menu__title .zt-icon{position:absolute;right:0;margin-top:1px;color:var(--zt-gray-4)}.zt-dropdown-menu__title--active{color:var(--zt-dropdown-menu-title-active-text-color)}.zt-dropdown-menu__title--active .zt-icon{color:currentColor}.zt-dropdown-menu__title--active .zt-dropdown-menu__icon{transform:rotate(180deg)}.zt-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}
|
|
@@ -55,7 +55,7 @@ export declare const DropdownMenu: import("../utils").WithInstall<import("vue").
|
|
|
55
55
|
export default DropdownMenu;
|
|
56
56
|
export { dropdownMenuProps } from './DropdownMenu';
|
|
57
57
|
export type { DropdownMenuProps };
|
|
58
|
-
export type { DropdownMenuDirection } from './types';
|
|
58
|
+
export type { DropdownMenuDirection, DropdownMenuThemeVars } from './types';
|
|
59
59
|
declare module 'vue' {
|
|
60
60
|
interface GlobalComponents {
|
|
61
61
|
ZtDropdownMenu: typeof DropdownMenu;
|
|
@@ -7,3 +7,15 @@ export type DropdownMenuProvide = {
|
|
|
7
7
|
offset: Ref<number>;
|
|
8
8
|
updateOffset: () => void;
|
|
9
9
|
};
|
|
10
|
+
export type DropdownMenuThemeVars = {
|
|
11
|
+
dropdownMenuBackground?: string;
|
|
12
|
+
dropdownMenuBarPadding?: string;
|
|
13
|
+
dropdownMenuItemMargin?: string;
|
|
14
|
+
dropdownMenuItemPadding?: string;
|
|
15
|
+
dropdownMenuTitleTextColor?: string;
|
|
16
|
+
dropdownMenuTitleActiveTextColor?: string;
|
|
17
|
+
dropdownMenuTitleDisabledTextColor?: string;
|
|
18
|
+
dropdownMenuOptionActiveColor?: string;
|
|
19
|
+
dropdownMenuContentMaxHeight?: string;
|
|
20
|
+
dropdownMenuItemHeight?: string;
|
|
21
|
+
};
|
package/es/empty/Empty.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
|
2
2
|
import { defineComponent } from "vue";
|
|
3
3
|
import { getSizeStyle, makeStringProp, createNamespace } from "../utils/index.mjs";
|
|
4
|
-
import { renderNotFound, renderServerError, renderAccessRestricted, renderDeveloping, renderNetworkError, renderEmptyResult, renderFindNull, renderEmptyInterface, renderReportSuccess } from "./Images.mjs";
|
|
4
|
+
import { renderNotFound, renderServerError, renderAccessRestricted, renderDeveloping, renderNetworkError, renderEmptyResult, renderFindNull, renderEmptyInterface, renderReportSuccess, renderReportError, renderNoCollect } from "./Images.mjs";
|
|
5
5
|
const [name, bem] = createNamespace("empty");
|
|
6
6
|
const PRESET_IMAGES = {
|
|
7
7
|
default: renderNotFound,
|
|
@@ -13,7 +13,9 @@ const PRESET_IMAGES = {
|
|
|
13
13
|
"access-restricted": renderAccessRestricted,
|
|
14
14
|
"network-error": renderNetworkError,
|
|
15
15
|
"empty-interface": renderEmptyInterface,
|
|
16
|
-
"report-success": renderReportSuccess
|
|
16
|
+
"report-success": renderReportSuccess,
|
|
17
|
+
"report-error": renderReportError,
|
|
18
|
+
"no-collect": renderNoCollect
|
|
17
19
|
};
|
|
18
20
|
const emptyProps = {
|
|
19
21
|
image: makeStringProp("default"),
|
|
@@ -31,7 +33,7 @@ var stdin_default = defineComponent({
|
|
|
31
33
|
if (slots.image) {
|
|
32
34
|
return slots.image();
|
|
33
35
|
}
|
|
34
|
-
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES)) || _createVNode("img", {
|
|
36
|
+
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES, bem)) || _createVNode("img", {
|
|
35
37
|
"src": props.image
|
|
36
38
|
}, null);
|
|
37
39
|
};
|
package/es/empty/Images.d.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
/**
|
|
2
|
+
* 特别注意对于empty组件svg的颜色转换。后续如果要添加新的svg图标的话,需要下载压缩后的svg图标,
|
|
3
|
+
* 并同步修改此svg内部所有使用到非纯色的stop-color、fill、feColorMatrix、feOffset属性。
|
|
4
|
+
* stop-color根据原有css颜色值修改为class={bem('svg-defs-stop-color-gradient')}或class={bem('svg-defs-stop-color')};
|
|
5
|
+
* fill修改为class={bem('svg-defs-path-fill')};
|
|
6
|
+
* feColorMatrix需要调整内部value矩阵值,feOffset需要调整内部的in的值为SourceGraphic,具体可参考empty组件已有的svg元素。
|
|
7
|
+
* 经过这些操作,svg图标就会随主色变换颜色
|
|
8
|
+
*/
|
|
9
|
+
import { BEM } from '../utils';
|
|
10
|
+
export declare const renderNotFound: (bem: BEM) => JSX.Element;
|
|
11
|
+
export declare const renderServerError: (bem: BEM) => JSX.Element;
|
|
12
|
+
export declare const renderAccessRestricted: (bem: BEM) => JSX.Element;
|
|
13
|
+
export declare const renderDeveloping: (bem: BEM) => JSX.Element;
|
|
14
|
+
export declare const renderNetworkError: (bem: BEM) => JSX.Element;
|
|
15
|
+
export declare const renderEmptyResult: (bem: BEM) => JSX.Element;
|
|
16
|
+
export declare const renderFindNull: (bem: BEM) => JSX.Element;
|
|
17
|
+
export declare const renderEmptyInterface: (bem: BEM) => JSX.Element;
|
|
18
|
+
export declare const renderReportSuccess: (bem: BEM) => JSX.Element;
|
|
19
|
+
export declare const renderReportError: (bem: BEM) => JSX.Element;
|
|
20
|
+
export declare const renderNoCollect: (bem: BEM) => JSX.Element;
|