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
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# ZartUI
|
|
2
|
-
|
|
3
|
-
[ZartUI](https://zartui.egova.com.cn) 是数字政通基于 Vue 研发的一款面向政务场景的移动端组件库。
|
|
4
|
-
|
|
5
|
-
Zart(读音 /zɑːt/)的命名,灵感源自数字政通秉承的理念:让城市治理变得更智慧。Zart = zt + smart, zt是政通的首字母缩写,smart代表公司理念中的“智慧”,将smart中间的“ar”字母包裹于zt之间,体现了ZartUI的核心目标:追求极致的用户体验,致力于做灵活智能的组件库。
|
|
6
|
-
|
|
7
|
-
## 特性
|
|
8
|
-
|
|
9
|
-
1)【组件重构】【组件审核】提供50多个高质量组件,覆盖移动端各类场景;
|
|
10
|
-
|
|
11
|
-
2)【UI重构】基于全新的视觉规范;
|
|
12
|
-
|
|
13
|
-
3)【在线网站】完善的文档、示例、演示效果;
|
|
14
|
-
|
|
15
|
-
4)支持主题定制、按需引入;
|
|
16
|
-
|
|
17
|
-
5)支持Vue3.0、TypeScript;
|
|
18
|
-
|
|
19
|
-
6)性能佳,组件平均体积小(min+gzip);
|
|
20
|
-
|
|
21
|
-
## 浏览器支持
|
|
22
|
-
|
|
23
|
-
ZartUI 3 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一致)。
|
|
1
|
+
# ZartUI
|
|
2
|
+
|
|
3
|
+
[ZartUI](https://zartui.egova.com.cn) 是数字政通基于 Vue 研发的一款面向政务场景的移动端组件库。
|
|
4
|
+
|
|
5
|
+
Zart(读音 /zɑːt/)的命名,灵感源自数字政通秉承的理念:让城市治理变得更智慧。Zart = zt + smart, zt是政通的首字母缩写,smart代表公司理念中的“智慧”,将smart中间的“ar”字母包裹于zt之间,体现了ZartUI的核心目标:追求极致的用户体验,致力于做灵活智能的组件库。
|
|
6
|
+
|
|
7
|
+
## 特性
|
|
8
|
+
|
|
9
|
+
1)【组件重构】【组件审核】提供50多个高质量组件,覆盖移动端各类场景;
|
|
10
|
+
|
|
11
|
+
2)【UI重构】基于全新的视觉规范;
|
|
12
|
+
|
|
13
|
+
3)【在线网站】完善的文档、示例、演示效果;
|
|
14
|
+
|
|
15
|
+
4)支持主题定制、按需引入;
|
|
16
|
+
|
|
17
|
+
5)支持Vue3.0、TypeScript;
|
|
18
|
+
|
|
19
|
+
6)性能佳,组件平均体积小(min+gzip);
|
|
20
|
+
|
|
21
|
+
## 浏览器支持
|
|
22
|
+
|
|
23
|
+
ZartUI 3 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一致)。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-action-sheet-max-height: 80%;--zt-action-sheet-header-height: 44px;--zt-action-sheet-
|
|
1
|
+
:root{--zt-action-sheet-max-height: 80%;--zt-action-sheet-header-height: 44px;--zt-action-sheet-description-color: var(--zt-gray-a4);--zt-action-sheet-item-background: var(--zt-background-2);--zt-action-sheet-item-text-color: var(--zt-text-color);--zt-action-sheet-item-disabled-text-color: var(--zt-gray-a2);--zt-action-sheet-subname-color: var(--zt-gray-a6);--zt-action-sheet-close-icon-color: var(--zt-gray-5);--zt-action-sheet-close-icon-padding: 0 var(--zt-padding-md);--zt-action-sheet-cancel-text-color: var(--zt-text-color);--zt-action-sheet-loading-icon-size: 16px;--zt-action-sheet-description-background: var(--zt-background-2)}:root[zt-theme-size=large]{--zt-action-sheet-header-height: 56px}.zt-action-sheet{display:flex;flex-direction:column;max-height:var(--zt-action-sheet-max-height);overflow:hidden;color:var(--zt-action-sheet-item-text-color)}.zt-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.zt-action-sheet__item,.zt-action-sheet__cancel{display:block;width:100%;padding:10px var(--zt-padding-md);font-size:var(--zt-font-size-lg);background:var(--zt-action-sheet-item-background);border:none;cursor:pointer}.zt-action-sheet__item{line-height:var(--zt-line-height-xl)}.zt-action-sheet__item:active{background-color:var(--zt-gray-a04)}.zt-action-sheet__item--loading,.zt-action-sheet__item--disabled{color:var(--zt-action-sheet-item-disabled-text-color)}.zt-action-sheet__item--loading:active,.zt-action-sheet__item--disabled:active{background-color:var(--zt-action-sheet-item-background)}.zt-action-sheet__item--disabled{cursor:not-allowed}.zt-action-sheet__item--loading{cursor:default}.zt-action-sheet__item--with-sub{padding-top:8px;padding-bottom:8px}.zt-action-sheet__cancel{padding:8px 16px;flex-shrink:0;box-sizing:border-box;color:var(--zt-action-sheet-cancel-text-color)}.zt-action-sheet__cancel-btn{width:100%;border:none;cursor:pointer;background-color:var(--zt-gray-a04);border-radius:20px;height:44px;font-size:var(--zt-font-size-lg);color:var(--zt-text-color);line-height:var(--zt-line-height-xl)}.zt-action-sheet__cancel-btn:active{opacity:var(--zt-active-opacity)}.zt-action-sheet__subname{margin-top:var(--zt-padding-xxs);color:var(--zt-action-sheet-subname-color);font-size:var(--zt-font-size-sm);line-height:var(--zt-line-height-xs)}.zt-action-sheet__header{flex-shrink:0;font-weight:var(--zt-font-bold);font-size:var(--zt-font-size-lg);line-height:var(--zt-action-sheet-header-height);text-align:center}.zt-action-sheet__description{background:var(--zt-action-sheet-description-background);position:relative;flex-shrink:0;padding:12px var(--zt-padding-md);color:var(--zt-action-sheet-description-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);text-align:center}.zt-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-action-sheet__description--custom{padding:0}.zt-action-sheet__loading-icon .zt-loading__spinner{width:var(--zt-action-sheet-loading-icon-size);height:var(--zt-action-sheet-loading-icon-size)}.zt-action-sheet__close{position:absolute;top:0;right:0;padding:var(--zt-action-sheet-close-icon-padding);color:var(--zt-action-sheet-close-icon-color);font-size:var(--zt-font-size-xxxl);line-height:inherit}
|
|
@@ -128,6 +128,7 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
|
128
128
|
export default ActionSheet;
|
|
129
129
|
export { actionSheetProps } from './ActionSheet';
|
|
130
130
|
export type { ActionSheetProps, ActionSheetAction } from './ActionSheet';
|
|
131
|
+
export type { ActionSheetThemeVars } from './types';
|
|
131
132
|
declare module 'vue' {
|
|
132
133
|
interface GlobalComponents {
|
|
133
134
|
ZtActionSheet: typeof ActionSheet;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ActionSheetThemeVars = {
|
|
2
|
+
actionSheetMaxHeight?: string;
|
|
3
|
+
actionSheetDescriptionColor?: string;
|
|
4
|
+
actionSheetItemBackground?: string;
|
|
5
|
+
actionSheetItemTextColor?: string;
|
|
6
|
+
actionSheetItemDisaabledTextColor?: string;
|
|
7
|
+
actionSheetSubnameColor?: string;
|
|
8
|
+
actionSheetCloseIconColor?: string;
|
|
9
|
+
actionSheetCloseIconPadding?: string;
|
|
10
|
+
actionSheetCancelTextColor?: string;
|
|
11
|
+
actionSheetLoadingIconSize?: string;
|
|
12
|
+
actionSheetDescriptionBackground?: string;
|
|
13
|
+
actionSheetHeaderHeight?: string;
|
|
14
|
+
};
|
|
File without changes
|
package/es/avatar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-avatar-background: var(--zt-primary-color);--zt-avatar-color: var(--zt-white);--zt-avatar-
|
|
1
|
+
:root{--zt-avatar-background: var(--zt-primary-color);--zt-avatar-color: var(--zt-white);--zt-avatar-square-radius: 4px;--zt-avatar-border-color: var(--zt-background-2);--zt-avatar-border-shadow-color: var(--zt-gray-a2);--zt-avatar-small-size: 32px;--zt-avatar-medium-size: 48px;--zt-avatar-large-size: 60px}:root[zt-theme-size=large]{--zt-avatar-small-size: 44px;--zt-avatar-medium-size: 60px;--zt-avatar-large-size: 72px}.zt-avatar{font-weight:700;display:flex;justify-content:center;align-items:center}.zt-avatar__img{background:var(--zt-avatar-background);color:var(--zt-avatar-color);text-align:center}.zt-avatar__img--small{width:var(--zt-avatar-small-size);height:var(--zt-avatar-small-size);font-size:var(--zt-font-size-sm);line-height:var(--zt-avatar-small-size)}.zt-avatar__img--medium{width:var(--zt-avatar-medium-size);height:var(--zt-avatar-medium-size);font-size:var(--zt-font-size-lg);line-height:var(--zt-avatar-medium-size)}.zt-avatar__img--large{width:var(--zt-avatar-large-size);height:var(--zt-avatar-large-size);font-size:var(--zt-font-size-xxl);line-height:var(--zt-avatar-large-size)}.zt-avatar__img--square{border-radius:var(--zt-avatar-square-radius)}.zt-avatar__img--round{border-radius:var(--zt-radius-max)}.zt-avatar__img.zt-avatar__img--border{box-sizing:border-box;border:1px solid var(--zt-avatar-border-color);box-shadow:0 4px 12px 0 var(--zt-avatar-border-shadow-color)}
|
package/es/avatar/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare const Avatar: import("../utils").WithInstall<import("vue").Define
|
|
|
38
38
|
}, {}>>;
|
|
39
39
|
export default Avatar;
|
|
40
40
|
export type { AvatarProps } from './Avatar';
|
|
41
|
-
export type { AvatarShape, AvatarSize } from './types';
|
|
41
|
+
export type { AvatarShape, AvatarSize, AvatarThemeVars } from './types';
|
|
42
42
|
declare module 'vue' {
|
|
43
43
|
interface GlobalComponents {
|
|
44
44
|
ZtAvatar: typeof Avatar;
|
package/es/avatar/types.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
export type AvatarSize = 'large' | 'medium' | 'small';
|
|
2
2
|
export type AvatarShape = 'square' | 'round';
|
|
3
|
+
export type AvatarThemeVars = {
|
|
4
|
+
avatarBackground?: string;
|
|
5
|
+
avatarColor?: string;
|
|
6
|
+
avatarSquareRadius?: string;
|
|
7
|
+
avatarBorderColor?: string;
|
|
8
|
+
avatarBorderShadowColor?: string;
|
|
9
|
+
avatarSmallSize?: string;
|
|
10
|
+
avatarMediumSize?: string;
|
|
11
|
+
avatarLargeSize?: string;
|
|
12
|
+
};
|
package/es/badge/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-badge-size: 16px;--zt-badge-color: var(--zt-white);--zt-badge-padding: 1px 4px;--zt-badge-
|
|
1
|
+
:root{--zt-badge-size: 16px;--zt-badge-color: var(--zt-white);--zt-badge-padding: 1px 4px;--zt-badge-max-width: 44px;--zt-badge-height: 16px;--zt-badge-font-weight: var(--zt-font-bold);--zt-badge-border-width: var(--zt-border-width);--zt-badge-background: var(--zt-danger-color);--zt-badge-dot-color: var(--zt-danger-color);--zt-badge-dot-size: 8px;--zt-badge-font: -apple-system-font, helvetica neue, arial, sans-serif;--zt-badge-border-left-color: #ffcdcd;--zt-badge-border-right-color: rgba(220, 0, 4, .8)}.zt-badge{display:flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:var(--zt-badge-size);max-width:var(--zt-badge-max-width);padding:var(--zt-badge-padding);color:var(--zt-badge-color);font-weight:var(--zt-badge-font-weight);font-size:var(--zt-font-size-sm);font-family:var(--zt-badge-font);height:var(--zt-badge-height);border-radius:var(--zt-radius-lg);box-shadow:0 2px 4px rgba(255,75,80,.4);letter-spacing:0;background-image:linear-gradient(to right,var(--zt-badge-background),var(--zt-badge-background)),linear-gradient(134deg,var(--zt-badge-border-left-color) 0%,var(--zt-badge-border-right-color) 100%);background-clip:padding-box,border-box;background-origin:padding-box,border-box}.zt-badge--fixed{position:absolute;transform-origin:100%}.zt-badge--top-left{top:0;left:0;transform:translate(-50%,-50%)}.zt-badge--top-right{top:4px;right:0;transform:translate(50%,-50%)}.zt-badge--bottom-left{bottom:0;left:0;transform:translate(-50%,50%)}.zt-badge--bottom-right{bottom:0;right:0;transform:translate(50%,50%)}.zt-badge--dot{width:var(--zt-badge-dot-size);min-width:0;height:var(--zt-badge-dot-size);border-radius:50%;padding:0;border:var(--zt-badge-border-width) solid transparent;background-clip:border-box;background-origin:padding-box,border-box;background-image:linear-gradient(to right,var(--zt-badge-dot-color),var(--zt-badge-dot-color)),linear-gradient(to right,#ffcdcd,#dc0004)}.zt-badge__wrapper{position:relative;display:inline-block}.zt-badge__wrapper--badge-num{white-space:nowrap;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.badge-dot{padding:0}
|
package/es/badge/index.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export declare const Badge: import("../utils").WithInstall<import("vue").DefineC
|
|
|
46
46
|
}, {}>>;
|
|
47
47
|
export default Badge;
|
|
48
48
|
export type { BadgeProps, BadgePosition } from './Badge';
|
|
49
|
+
export type { BadgeThemeVars } from './types';
|
|
49
50
|
declare module 'vue' {
|
|
50
51
|
interface GlobalComponents {
|
|
51
52
|
ZtBadge: typeof Badge;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type BadgeThemeVars = {
|
|
2
|
+
badgeSize?: string;
|
|
3
|
+
badgeColor?: string;
|
|
4
|
+
badgePadding?: string;
|
|
5
|
+
badgeMaxWidth?: string;
|
|
6
|
+
badgeHeight?: string;
|
|
7
|
+
badgeFontWeight?: string;
|
|
8
|
+
badgeBorderWidth?: string;
|
|
9
|
+
badgeBackground?: string;
|
|
10
|
+
badgeDotColor?: string;
|
|
11
|
+
badgeDotSize?: string;
|
|
12
|
+
badgeFont?: string;
|
|
13
|
+
badgeBorderLeftColor?: string;
|
|
14
|
+
badgeBorderRightColor?: string;
|
|
15
|
+
};
|
|
File without changes
|
package/es/button/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-button-mini-height: 24px;--zt-button-mini-padding: 0 var(--zt-padding-sm);--zt-button-
|
|
1
|
+
:root{--zt-button-mini-height: 24px;--zt-button-mini-padding: 0 var(--zt-padding-sm);--zt-button-small-height: 28px;--zt-button-small-padding: 0 var(--zt-padding-sm);--zt-button-medium-height: 36px;--zt-button-medium-padding: 0 var(--zt-padding-md);--zt-button-normal-padding: 0 var(--zt-padding-lg);--zt-button-large-height: 50px;--zt-button-default-height: 44px;--zt-button-default-color: var(--zt-text-color);--zt-button-default-background: var(--zt-button-plain-background);--zt-button-default-border-color: var(--zt-gray-a2);--zt-button-primary-color: var(--zt-white);--zt-button-primary-background: linear-gradient(90deg, var(--zt-primary-color) 0%, var(--zt-primary-color-light) 100%);--zt-button-primary-light-background: var(--zt-primary-color-a1);--zt-button-primary-border-color: var(--zt-primary-color);--zt-button-success-color: var(--zt-white);--zt-button-success-background: var(--zt-success-color);--zt-button-success-border-color: var(--zt-success-color);--zt-button-danger-color: var(--zt-white);--zt-button-danger-background: var(--zt-danger-color);--zt-button-danger-border-color: var(--zt-danger-color);--zt-button-warning-color: var(--zt-white);--zt-button-warning-background: var(--zt-warning-color);--zt-button-warning-border-color: var(--zt-warning-color);--zt-button-border-width: var(--zt-border-width);--zt-button-radius: 22px;--zt-button-round-radius: var(--zt-radius-max);--zt-button-plain-background: transparent;--zt-button-disabled-opacity: var(--zt-disabled-opacity);--zt-button-loading-icon-size: 20px;--zt-button-inner-block-horizontal-margin: 16px;--zt-button-icon-font-size: 24px}:root[zt-theme-size=large]{--zt-button-icon-font-size: 30px}.zt-button{position:relative;display:inline-block;box-sizing:border-box;height:var(--zt-button-default-height);margin:0;padding:0;font-size:var(--zt-font-size-lg);line-height:var(--zt-line-height-xl);text-align:center;border-radius:var(--zt-button-radius);cursor:pointer;transition:opacity var(--zt-duration-fast);-webkit-appearance:none;-webkit-font-smoothing:auto}.zt-button:before{position:absolute;top:50%;left:50%;width:100%;height:100%;background:var(--zt-black);border:inherit;border-color:var(--zt-black);border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" "}.zt-button:active:before{opacity:.1}.zt-button--loading:before,.zt-button--disabled:before{display:none}.zt-button--default{color:var(--zt-button-default-color);background:var(--zt-button-default-background);border:var(--zt-button-border-width) solid var(--zt-button-default-border-color)}.zt-button--primary{color:var(--zt-button-primary-color);background:var(--zt-button-primary-background);border:var(--zt-button-border-width) solid var(--zt-button-primary-border-color)}.zt-button--primary-light{color:var(--zt-primary-color);background:var(--zt-button-primary-light-background);border:none}.zt-button--success{color:var(--zt-button-success-color);background:var(--zt-button-success-background);border:var(--zt-button-border-width) solid var(--zt-button-success-border-color)}.zt-button--danger{color:var(--zt-button-danger-color);background:var(--zt-button-danger-background);border:var(--zt-button-border-width) solid var(--zt-button-danger-border-color)}.zt-button--warning{color:var(--zt-button-warning-color);background:var(--zt-button-warning-background);border:var(--zt-button-border-width) solid var(--zt-button-warning-border-color)}.zt-button--plain{background:var(--zt-button-plain-background)}.zt-button--plain.zt-button--primary{color:var(--zt-primary-color)}.zt-button--plain.zt-button--success{color:var(--zt-button-success-background)}.zt-button--plain.zt-button--danger{color:var(--zt-button-danger-background)}.zt-button--plain.zt-button--warning{color:var(--zt-button-warning-background)}.zt-button--large{width:100%;height:var(--zt-button-large-height)}.zt-button--normal{padding:var(--zt-button-normal-padding);font-size:var(--zt-font-size-lg)}.zt-button--medium{height:var(--zt-button-medium-height);padding:var(--zt-button-medium-padding);font-size:var(--zt-font-size-md)}.zt-button--small{height:var(--zt-button-small-height);padding:var(--zt-button-small-padding);font-size:var(--zt-font-size-md)}.zt-button--mini{height:var(--zt-button-mini-height);padding:var(--zt-button-mini-padding);font-size:var(--zt-font-size-sm)}.zt-button--mini+.zt-button--mini{margin-left:var(--zt-padding-base)}.zt-button__loading{color:inherit;font-size:inherit}.zt-button__loading .zt-loading__spinner{color:currentColor;width:var(--zt-button-loading-icon-size);height:var(--zt-button-loading-icon-size)}.zt-button--block{display:block;width:100%}.zt-button--block-inner{display:block;width:calc(100% - 2 * var(--zt-button-inner-block-horizontal-margin));margin:0 var(--zt-button-inner-block-horizontal-margin)}.zt-button--disabled{cursor:not-allowed;opacity:var(--zt-button-disabled-opacity)}.zt-button--loading{cursor:default}.zt-button--round{border-radius:var(--zt-button-round-radius);padding:0}.zt-button--round.zt-button--mini{width:var(--zt-button-mini-height)}.zt-button--round.zt-button--small{width:var(--zt-button-small-height)}.zt-button--round.zt-button--medium{width:var(--zt-button-medium-height)}.zt-button--round.zt-button--normal{width:var(--zt-button-default-height)}.zt-button--square{border-radius:0}.zt-button__content{display:flex;align-items:center;justify-content:center;height:100%}.zt-button__content:before{content:" "}.zt-button__icon{font-size:var(--zt-button-icon-font-size)}.zt-button__icon--mini{font-size:var(--zt-font-size-lg)}.zt-button__icon--small{font-size:var(--zt-font-size-xxl)}.zt-button__icon--medium{font-size:var(--zt-font-size-xxxl)}.zt-button__icon+.zt-button__text,.zt-button__loading+.zt-button__text,.zt-button__text+.zt-button__icon,.zt-button__text+.zt-button__loading{margin-left:var(--zt-padding-xxs)}.zt-button--hairline{border-width:0}.zt-button--hairline:after{border-color:inherit;border-radius:calc(var(--zt-button-radius) * 2)}.zt-button--hairline.zt-button--round:after{border-radius:var(--zt-button-round-radius)}.zt-button--hairline.zt-button--square:after{border-radius:0}
|
package/es/button/index.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
|
107
107
|
}, {}>>;
|
|
108
108
|
export default Button;
|
|
109
109
|
export type { ButtonProps } from './Button';
|
|
110
|
-
export type { ButtonType, ButtonSize, ButtonNativeType, ButtonIconPosition, } from './types';
|
|
110
|
+
export type { ButtonType, ButtonSize, ButtonNativeType, ButtonIconPosition, ButtonThemeVars, } from './types';
|
|
111
111
|
declare module 'vue' {
|
|
112
112
|
interface GlobalComponents {
|
|
113
113
|
ZtButton: typeof Button;
|
package/es/button/types.d.ts
CHANGED
|
@@ -3,3 +3,38 @@ export type ButtonType = 'default' | 'primary' | 'primary-light' | 'success' | '
|
|
|
3
3
|
export type ButtonSize = 'normal' | 'medium' | 'small' | 'mini';
|
|
4
4
|
export type ButtonNativeType = NonNullable<ButtonHTMLAttributes['type']>;
|
|
5
5
|
export type ButtonIconPosition = 'left' | 'right';
|
|
6
|
+
export type ButtonThemeVars = {
|
|
7
|
+
buttonMiniHeight?: string;
|
|
8
|
+
buttonMiniPadding?: string;
|
|
9
|
+
buttonSmallHeight?: string;
|
|
10
|
+
buttonSmallPadding?: string;
|
|
11
|
+
buttonMediumHeight?: string;
|
|
12
|
+
buttonMediumPadding?: string;
|
|
13
|
+
buttonNormalPadding?: string;
|
|
14
|
+
buttonLargeHeight?: string;
|
|
15
|
+
buttonDefaultHeight?: string;
|
|
16
|
+
buttonDefaultColor?: string;
|
|
17
|
+
buttonDefaultBackground?: string;
|
|
18
|
+
buttonDefaultBorderColor?: string;
|
|
19
|
+
buttonPrimaryColor?: string;
|
|
20
|
+
buttonPrimaryBackground?: string;
|
|
21
|
+
buttonPrimaryLightBackground?: string;
|
|
22
|
+
buttonPrimaryBorderColor?: string;
|
|
23
|
+
buttonSuccessColor?: string;
|
|
24
|
+
buttonSuccessBackground?: string;
|
|
25
|
+
buttonSuccessBorderColor?: string;
|
|
26
|
+
buttonDangerColor?: string;
|
|
27
|
+
buttonDangerBackground?: string;
|
|
28
|
+
buttonDangerBorderColor?: string;
|
|
29
|
+
buttonWarningColor?: string;
|
|
30
|
+
buttonWarningBackground?: string;
|
|
31
|
+
buttonWarningBorderColor?: string;
|
|
32
|
+
buttonBorderWidth?: string;
|
|
33
|
+
buttonRadius?: string;
|
|
34
|
+
buttonRoundRadius?: string;
|
|
35
|
+
buttonPlainBackground?: string;
|
|
36
|
+
buttonDisabledOpacity?: string;
|
|
37
|
+
buttonLoadingIconSize?: string;
|
|
38
|
+
buttonInnerBlockHorizontalMargin?: string;
|
|
39
|
+
buttonIconFontSize?: string;
|
|
40
|
+
};
|
|
@@ -16,6 +16,11 @@ var stdin_default = defineComponent({
|
|
|
16
16
|
setup(props, {
|
|
17
17
|
emit
|
|
18
18
|
}) {
|
|
19
|
+
const getBoxShadowColor = (color) => {
|
|
20
|
+
if (!color)
|
|
21
|
+
return "";
|
|
22
|
+
return `0 0 0 3px ${color}1a`;
|
|
23
|
+
};
|
|
19
24
|
const style = computed(() => {
|
|
20
25
|
var _a;
|
|
21
26
|
const {
|
|
@@ -43,6 +48,7 @@ var stdin_default = defineComponent({
|
|
|
43
48
|
case "multiple-middle":
|
|
44
49
|
case "multiple-selected":
|
|
45
50
|
style2.background = color;
|
|
51
|
+
style2.boxShadow = getBoxShadowColor(color);
|
|
46
52
|
break;
|
|
47
53
|
case "middle":
|
|
48
54
|
style2.color = color;
|
|
@@ -76,7 +82,8 @@ var stdin_default = defineComponent({
|
|
|
76
82
|
"style": {
|
|
77
83
|
width: rowHeight,
|
|
78
84
|
height: rowHeight,
|
|
79
|
-
background: color
|
|
85
|
+
background: color,
|
|
86
|
+
boxShadow: getBoxShadowColor(color)
|
|
80
87
|
}
|
|
81
88
|
}, [Nodes]);
|
|
82
89
|
}
|
|
@@ -57,7 +57,7 @@ var stdin_default = defineComponent({
|
|
|
57
57
|
"fill-rule": "evenodd"
|
|
58
58
|
}, [_createVNode("g", {
|
|
59
59
|
"transform": "translate(-32.000000, -320.000000)",
|
|
60
|
-
"
|
|
60
|
+
"class": bem("svg-defs-path-fill"),
|
|
61
61
|
"fill-rule": "nonzero"
|
|
62
62
|
}, [_createVNode("g", {
|
|
63
63
|
"transform": "translate(0.000000, 70.000000)"
|
|
@@ -95,7 +95,7 @@ var stdin_default = defineComponent({
|
|
|
95
95
|
"fill-rule": "evenodd"
|
|
96
96
|
}, [_createVNode("g", {
|
|
97
97
|
"transform": "translate(-80.000000, -320.000000)",
|
|
98
|
-
"
|
|
98
|
+
"class": bem("svg-defs-path-fill"),
|
|
99
99
|
"fill-rule": "nonzero"
|
|
100
100
|
}, [_createVNode("g", {
|
|
101
101
|
"transform": "translate(0.000000, 70.000000)"
|
package/es/calendar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-calendar-background: var(--zt-background-2);--zt-calendar-popup-height: 80%;--zt-calendar-body-box-shadow: inset 0 4px 8px 0 var(--zt-gray-a1);--zt-calendar-header-title-height: 44px;--zt-calendar-
|
|
1
|
+
:root{--zt-calendar-background: var(--zt-background-2);--zt-calendar-popup-height: 80%;--zt-calendar-body-box-shadow: inset 0 4px 8px 0 var(--zt-gray-a1);--zt-calendar-header-title-height: 44px;--zt-calendar-weekdays-font-color: var(--zt-gray-a8);--zt-calendar-weekdays-background: var(--zt-calendar-background);--zt-calendar-day-height: 14.285vw;--zt-calendar-day-height-half: 7.143vw;--zt-calendar-day-margin-bottom: 4px;--zt-calendar-range-edge-color: var(--zt-white);--zt-calendar-range-edge-background: var(--zt-primary-color);--zt-calendar-range-middle-color: var(--zt-primary-color);--zt-calendar-range-middle-background-opacity: .1;--zt-calendar-selected-day-size: var(--zt-calendar-day-height);--zt-calendar-selected-day-color: var(--zt-white);--zt-calendar-selected-day-background: var(--zt-primary-color);--zt-calendar-day-disabled-color: var(--zt-gray-a2);--zt-calendar-confirm-button-height: 36px;--zt-calendar-confirm-button-margin: 7px 0;--zt-calendar-header-title-color: var(--zt-gray-a4);--zt-calendar-weekday-line-height: 30px;--zt-calendar-header-height: 32px;--zt-calendar-header-subtitle-line-height: 44px}:root[zt-theme-size=large]{--zt-calendar-weekday-line-height: 42px;--zt-calendar-header-height: 44px;--zt-calendar-header-subtitle-line-height: 56px}.zt-calendar{display:flex;flex-direction:column;height:100%;background:var(--zt-calendar-background);color:var(--zt-text-color)}.zt-calendar__popup.zt-popup--top,.zt-calendar__popup.zt-popup--bottom{height:var(--zt-calendar-popup-height)}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__header{flex-shrink:0}.zt-calendar__svg-defs-path-fill{fill:var(--zt-primary-color)}.zt-calendar__month-title,.zt-calendar__header-title,.zt-calendar__header-subtitle{display:flex;padding:0 16px;color:var(--zt-text-color);height:var(--zt-calendar-header-title-height);line-height:var(--zt-calendar-header-subtitle-line-height);text-align:center;align-items:center;justify-content:center}.zt-calendar__month-title--opt,.zt-calendar__header-title--opt,.zt-calendar__header-subtitle--opt{width:32px;height:32px;line-height:var(--zt-calendar-header-height);border-radius:50%;padding:0;margin:0 8px}.zt-calendar__month-title--right,.zt-calendar__header-title--right,.zt-calendar__header-subtitle--right{transform:rotate(180deg)}.zt-calendar__month-title--unenable,.zt-calendar__header-title--unenable,.zt-calendar__header-subtitle--unenable{opacity:.2}.zt-calendar__month-title--enable,.zt-calendar__header-title--enable,.zt-calendar__header-subtitle--enable{opacity:1}.zt-calendar__month-title--enable:active,.zt-calendar__header-title--enable:active,.zt-calendar__header-subtitle--enable:active{border-radius:50%;background-color:var(--zt-gray-a1);opacity:.6}.zt-calendar__month-title-text,.zt-calendar__header-title-text,.zt-calendar__header-subtitle-text{flex-grow:1}.zt-calendar__header-title{font-size:var(--zt-font-size-md);color:var(--zt-calendar-header-title-color);position:relative;display:flex;justify-content:center;align-items:center}.zt-calendar__header-title:after{top:var(--zt-calendar-header-title-height);content:"";position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-calendar__header-subtitle,.zt-calendar__month-title{font-size:var(--zt-font-size-md)}.zt-calendar__weekdays{display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{flex:1;font-size:var(--zt-font-size-sm);line-height:var(--zt-calendar-weekday-line-height);font-weight:var(--zt-font-bold);text-align:center;background:var(--zt-calendar-weekdays-background);color:var(--zt-calendar-weekdays-font-color)}.zt-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:var(--zt-calendar-background);box-shadow:var(--zt-calendar-body-box-shadow)}.zt-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt-calendar__day,.zt-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:var(--zt-calendar-day-height);margin-bottom:var(--zt-calendar-day-margin-bottom);font-size:var(--zt-font-size-lg);cursor:pointer;outline:none}.zt-calendar__day--end,.zt-calendar__day--start,.zt-calendar__day--start-end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected{color:var(--zt-calendar-range-edge-color);background:var(--zt-calendar-range-edge-background);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__day--start{border-radius:var(--zt-calendar-day-height-half) 0 0 var(--zt-calendar-day-height-half);border-right:none}.zt-calendar__day--end{border-radius:0 var(--zt-calendar-day-height-half) var(--zt-calendar-day-height-half) 0;border-left:none}.zt-calendar__day--start-end,.zt-calendar__day--multiple-selected{border-radius:var(--zt-calendar-day-height-half)}.zt-calendar__day--middle{color:var(--zt-calendar-range-middle-color)}.zt-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--zt-calendar-range-middle-background-opacity);content:""}.zt-calendar__day--disabled,.zt-calendar__day--preview{color:var(--zt-calendar-day-disabled-color);cursor:default}.zt-calendar__selected-day{font-weight:var(--zt-font-bold);width:var(--zt-calendar-selected-day-size);height:var(--zt-calendar-selected-day-size);color:var(--zt-calendar-selected-day-color);background:var(--zt-calendar-selected-day-background);border-radius:calc(var(--zt-calendar-selected-day-size) / 2);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__footer{flex-shrink:0;display:flex;padding:8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-theme-dark{--zt-calendar-range-middle-color: var(--zt-white)}
|
package/es/calendar/index.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
211
211
|
export default Calendar;
|
|
212
212
|
export { calendarProps } from './Calendar';
|
|
213
213
|
export type { CalendarProps } from './Calendar';
|
|
214
|
-
export type { CalendarType, CalendarDayItem, CalendarDayType, CalendarInstance, } from './types';
|
|
214
|
+
export type { CalendarType, CalendarDayItem, CalendarDayType, CalendarInstance, CalendarThemeVars, } from './types';
|
|
215
215
|
declare module 'vue' {
|
|
216
216
|
interface GlobalComponents {
|
|
217
217
|
ZtCalendar: typeof Calendar;
|
package/es/calendar/types.d.ts
CHANGED
|
@@ -28,3 +28,28 @@ export type CalendarMonthInstance = ComponentPublicInstance<CalendarMonthProps,
|
|
|
28
28
|
scrollToDate: (body: Element, targetDate: Date) => void;
|
|
29
29
|
disabledDays: Ref<ComputedRef<CalendarDayItem[]>>;
|
|
30
30
|
}>;
|
|
31
|
+
export type CalendarThemeVars = {
|
|
32
|
+
calendarBackground?: string;
|
|
33
|
+
calendarPopupHeight?: string;
|
|
34
|
+
calendarBodyBoxShadow?: string;
|
|
35
|
+
calendarHeaderTitleHeight?: string;
|
|
36
|
+
calendarWeekdaysFontColor?: string;
|
|
37
|
+
calendarWeekdaysBackground?: string;
|
|
38
|
+
calendarDayHeight?: string;
|
|
39
|
+
calendarDayHeightHalf?: string;
|
|
40
|
+
calendarDayMarginBottom?: string;
|
|
41
|
+
calendarRangeEdgeColor?: string;
|
|
42
|
+
calendarRangeEdgeBackground?: string;
|
|
43
|
+
calendarRangeMiddleColor?: string;
|
|
44
|
+
calendarRangeMiddleBackgroundOpacity?: string;
|
|
45
|
+
calendarSelectedDaySize?: string;
|
|
46
|
+
calendarSelectedDayColor?: string;
|
|
47
|
+
calendarSelectedDayBackground?: string;
|
|
48
|
+
calendarDayDisabledColor?: string;
|
|
49
|
+
calendarConfirmButtonHeight?: string;
|
|
50
|
+
calendarConfirmButtonMargin?: string;
|
|
51
|
+
calendarHeaderTitleColor?: string;
|
|
52
|
+
calendarWeekdayLineHeight?: string;
|
|
53
|
+
calendarHeaderHeight?: string;
|
|
54
|
+
calendarHeaderSubtitleLineHeight?: string;
|
|
55
|
+
};
|
package/es/cascader/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-cascader-header-height: 44px;--zt-cascader-header-padding: 0 var(--zt-padding-sm);--zt-cascader-title-
|
|
1
|
+
:root{--zt-cascader-header-height: 44px;--zt-cascader-header-padding: 0 var(--zt-padding-sm);--zt-cascader-title-color: var(--zt-gray-a4);--zt-cascader-close-icon-color: var(--zt-gray-5);--zt-cascader-close-icon-font-size: 24px;--zt-cascader-tabs-height: 44px;--zt-cascader-active-color: var(--zt-primary-color);--zt-cascader-height: 75vh;--zt-cascader-option-disabled-color: var(--zt-text-color-3);--zt-cascader-tab-color: var(--zt-text-color);--zt-cascader-unselected-tab-color: var(--zt-gray-a4);--zt-cascader-tabs-margin: 0 8px;--zt-cascader-tabs-padding: 8px;--zt-cascader-option-disabled-active-color: rgba(0, 0, 0, .04);--zt-cascader-cancel-margin: 8px 16px;--zt-cascader-cancel-background: rgba(45, 75, 115, .04);--zt-cascader-cancel-width:calc(100% - 32px);--zt-cascader-cancel-border-radius: 20.5px;--zt-cascader-title-line-height: 44px}:root[zt-theme-size=large]{--zt-cascader-close-icon-font-size: 30px;--zt-cascader-title-line-height: 56px}.zt-cascader{display:flex;justify-content:space-between;flex-direction:column;height:var(--zt-cascader-height)}.zt-cascader__header{display:flex;align-items:center;justify-content:center;flex-shrink:0;height:var(--zt-cascader-header-height);padding:var(--zt-cascader-header-padding)}.zt-cascader__title{font-size:var(--zt-font-size-md);line-height:var(--zt-cascader-title-line-height);color:var(--zt-cascader-title-color)}.zt-cascader__close-icon{color:var(--zt-cascader-close-icon-color);font-size:var(--zt-cascader-close-icon-font-size)}.zt-cascader__tabs{flex:1;min-height:0}.zt-cascader__tabs .zt-tab{flex:none;margin:var(--zt-cascader-tabs-margin);padding:0}.zt-cascader__tabs .zt-tabs__wrap{position:relative;height:var(--zt-cascader-tabs-height)}.zt-cascader__tabs .zt-tabs__wrap:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-cascader__tabs .zt-tabs__nav--complete{padding-right:var(--zt-cascader-tabs-padding);padding-left:var(--zt-cascader-tabs-padding)}.zt-cascader__tabs .zt-tabs__content{height:calc(100% - var(--zt-cascader-tabs-height))}.zt-cascader__tabs .zt-tab__panel{height:100%}.zt-cascader__tab{color:var(--zt-cascader-tab-color);font-weight:var(--zt-font-bold);line-height:var(--zt-cascader-title-line-height);font-size:var(--zt-font-size-md)}.zt-cascader__tab--unselected{color:var(--zt-cascader-unselected-tab-color);font-weight:400}.zt-cascader__option{display:flex;align-items:center;justify-content:space-between;color:var(--zt-text-color);padding:0 var(--zt-padding-md);font-size:var(--zt-font-size-md);line-height:var(--zt-cascader-title-line-height);cursor:pointer;font-weight:400}.zt-cascader__option:active{background-color:var(--zt-active-color)}.zt-cascader__option--selected{color:var(--zt-cascader-active-color);font-weight:var(--zt-font-bold)}.zt-cascader__option--disabled{color:var(--zt-cascader-option-disabled-color);cursor:not-allowed}.zt-cascader__option--disabled:active{background-color:var(--zt-cascader-option-disabled-active-color)}.zt-cascader__selected-icon{font-size:var(--zt-font-size-xl)}.zt-cascader__options{height:100%;box-sizing:border-box;overflow-y:auto;-webkit-overflow-scrolling:touch}.zt-cascader .zt-tabs__nav{background:var(--zt-background-2)}.zt-cascader__cancel{margin:var(--zt-cascader-cancel-margin);width:var(--zt-cascader-cancel-width);background:var(--zt-cascader-cancel-background);border-radius:var(--zt-cascader-cancel-border-radius);color:var(--zt-text-color);border:0}.zt-theme-dark{--zt-cascader-cancel-background: var(--zt-background-card)}
|
package/es/cascader/index.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
118
118
|
export default Cascader;
|
|
119
119
|
export { cascaderProps } from './Cascader';
|
|
120
120
|
export type { CascaderProps } from './Cascader';
|
|
121
|
-
export type { CascaderOption, CascaderFieldNames } from './types';
|
|
121
|
+
export type { CascaderOption, CascaderFieldNames, CascaderThemeVars, } from './types';
|
|
122
122
|
declare module 'vue' {
|
|
123
123
|
interface GlobalComponents {
|
|
124
124
|
ZtCascader: typeof Cascader;
|
package/es/cascader/types.d.ts
CHANGED
|
@@ -17,3 +17,24 @@ export type CascaderFieldNames = {
|
|
|
17
17
|
value?: string;
|
|
18
18
|
children?: string;
|
|
19
19
|
};
|
|
20
|
+
export type CascaderThemeVars = {
|
|
21
|
+
cascaderHeaderHeight?: string;
|
|
22
|
+
cascaderHeaderPadding?: string;
|
|
23
|
+
cascaderTitleColor?: string;
|
|
24
|
+
cascaderCloseIconColor?: string;
|
|
25
|
+
cascaderTabsHeight?: string;
|
|
26
|
+
cascaderActiveColor?: string;
|
|
27
|
+
cascaderHeight?: string;
|
|
28
|
+
cascaderOptionDisabledColor?: string;
|
|
29
|
+
cascaderTabColor?: string;
|
|
30
|
+
cascaderUnselectedTabColor?: string;
|
|
31
|
+
cascaderTabsMargin?: string;
|
|
32
|
+
cascaderTabsPadding?: string;
|
|
33
|
+
cascaderOptionDisabledActiveColor?: string;
|
|
34
|
+
cascaderCancelMargin?: string;
|
|
35
|
+
cascaderCancelBackground?: string;
|
|
36
|
+
cascaderCancelWidth?: string;
|
|
37
|
+
cascaderCancelBorderRadius?: string;
|
|
38
|
+
cascaderCloseIconFontSize?: string;
|
|
39
|
+
cascaderTitleLineHeight?: string;
|
|
40
|
+
};
|
package/es/cell/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-cell-
|
|
1
|
+
:root{--zt-cell-text-color: var(--zt-text-color);--zt-cell-border-color: var(--zt-border-color);--zt-cell-active-color: var(--zt-active-color);--zt-cell-required-color: var(--zt-danger-color);--zt-cell-label-color: var(--zt-gray-a4);--zt-cell-right-icon-color: var(--zt-gray-a4);--zt-cell-vertical-background: var(--zt-background-card);--zt-cell-horizontal-background: var(--zt-background-card);--zt-cell-background: var(--zt-background);--zt-cell-value-padding: 12px;--zt-cell-value-radius: 4px;--zt-cell-direction: column;--zt-cell-padding: 16px;--zt-cell-row-title-max-width: 100px;--zt-cell-left-icon-font-size: 48px;--zt-cell-left-icon-size: 48px}:root[zt-theme-size=large]{--zt-cell-left-icon-size: 60px;--zt-cell-left-icon-font-size: 54px}.zt-cell{position:relative;display:flex;box-sizing:border-box;width:100%;overflow:hidden;color:var(--zt-cell-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);background:var(--zt-cell-background);flex-direction:var(--zt-cell-direction);padding:var(--zt-cell-padding)}.zt-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:var(--zt-padding-md);border-bottom:1px solid var(--zt-cell-border-color);transform:scaleY(.5)}.zt-cell--borderless:after{display:none}.zt-cell__label{color:var(--zt-cell-label-color);line-height:var(--zt-line-height-md);font-size:var(--zt-font-size-md);flex:1;text-align:right}.zt-cell__value{position:relative;overflow:hidden;vertical-align:middle;word-wrap:break-word;background:var(--zt-cell-background);box-sizing:border-box;display:flex;border-radius:var(--zt-cell-value-radius);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);word-break:break-all}.zt-cell__value--horizontal{padding:0;flex:1;justify-content:flex-end;align-items:center;text-align:right;background:transparent}.zt-cell__value--vertical{padding:var(--zt-cell-value-padding);background:var(--zt-cell-vertical-background)}.zt-cell__value-text{display:inline-block;flex:1}.zt-cell__title{margin-bottom:8px;display:flex;align-items:center}.zt-cell__title--horizontal{padding:0;margin:0;flex:1}.zt-cell__title--with-value{margin-right:8px;max-width:var(--zt-cell-row-title-max-width)}.zt-cell__title-text{font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);word-break:break-all;display:inline-block;overflow:hidden;flex:1}.zt-cell__title-icon,.zt-cell__right-icon{height:var(--zt-line-height-md);font-size:var(--zt-font-size-xxl);line-height:var(--zt-line-height-md)}.zt-cell__left-icon{width:var(--zt-cell-left-icon-size);height:var(--zt-cell-left-icon-size);font-size:var(--zt-cell-left-icon-font-size);line-height:var(--zt-cell-left-icon-size);margin-right:var(--zt-padding-base)}.zt-cell__right-icon{margin-left:var(--zt-padding-base);color:var(--zt-cell-right-icon-color)}.zt-cell__title-icon{margin-right:var(--zt-padding-base)}.zt-cell__with-left{position:relative;display:flex}.zt-cell__with-left:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:var(--zt-padding-md);border-bottom:1px solid var(--zt-cell-border-color);transform:scaleY(.5)}.zt-cell__with-left--borderless:after{display:none}.zt-cell__left-icon{margin:16px 0 16px 16px}.zt-cell--clickable{cursor:pointer}.zt-cell--clickable .zt-cell__value:active,.zt-cell--clickable.zt-cell--horizontal:active{background-color:var(--zt-cell-active-color)}.zt-cell--clickable.zt-cell--horizontal:active .zt-cell__value:active{background-color:transparent}.zt-cell--required{overflow:visible}.zt-cell--required:before{position:absolute;left:var(--zt-padding-xs);color:var(--zt-cell-required-color);font-size:var(--zt-font-size-md);content:"*"}.zt-cell--center .zt-cell__value{align-items:center}.zt-cell--horizontal{flex-direction:row;justify-content:space-between;background:var(--zt-cell-horizontal-background);padding:12px 16px}.zt-cell--horizontal:last-child:after{display:none}
|
package/es/cell/index.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
80
80
|
}, {}>>;
|
|
81
81
|
export default Cell;
|
|
82
82
|
export type { CellProps, CellArrowDirection } from './Cell';
|
|
83
|
-
export type { CellDirection } from './types';
|
|
83
|
+
export type { CellDirection, CellThemeVars } from './types';
|
|
84
84
|
declare module 'vue' {
|
|
85
85
|
interface GlobalComponents {
|
|
86
86
|
ZtCell: typeof Cell;
|
package/es/cell/types.d.ts
CHANGED
|
@@ -1 +1,25 @@
|
|
|
1
1
|
export type CellDirection = 'horizontal' | 'vertical';
|
|
2
|
+
export type CellThemeVars = {
|
|
3
|
+
cellTextColor?: string;
|
|
4
|
+
cellBorderColor?: string;
|
|
5
|
+
cellActiveColor?: string;
|
|
6
|
+
cellRequiredColor?: string;
|
|
7
|
+
cellLabelColor?: string;
|
|
8
|
+
cellRightIconColor?: string;
|
|
9
|
+
cellVerticalBackground?: string;
|
|
10
|
+
cellHorizontalBackground?: string;
|
|
11
|
+
cellBackground?: string;
|
|
12
|
+
cellValuePadding?: string;
|
|
13
|
+
cellValueRadius?: string;
|
|
14
|
+
cellDirection?: string;
|
|
15
|
+
cellPadding?: string;
|
|
16
|
+
cellRowTitleMaxWidth?: string;
|
|
17
|
+
cellGroupBackground?: string;
|
|
18
|
+
cellGroupTitleColor?: string;
|
|
19
|
+
cellGroupTitlePadding?: string;
|
|
20
|
+
cellGroupInsetPadding?: string;
|
|
21
|
+
cellGroupInsetRadius?: string;
|
|
22
|
+
cellGroupInsetTitlePadding?: string;
|
|
23
|
+
cellLeftIconFontSize?: string;
|
|
24
|
+
cellLeftIconSize?: string;
|
|
25
|
+
};
|
package/es/cell-group/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-cell-group-background: var(--zt-background-2);--zt-cell-group-title-color: var(--zt-text-color-2);--zt-cell-group-title-padding: var(--zt-padding-md) var(--zt-padding-md);--zt-cell-group-
|
|
1
|
+
:root{--zt-cell-group-background: var(--zt-background-2);--zt-cell-group-title-color: var(--zt-text-color-2);--zt-cell-group-title-padding: var(--zt-padding-md) var(--zt-padding-md);--zt-cell-group-inset-padding: 0 var(--zt-padding-md);--zt-cell-group-inset-radius: var(--zt-radius-lg);--zt-cell-group-inset-title-padding: var(--zt-padding-md) var(--zt-padding-md)}.zt-cell-group{background:var(--zt-cell-group-background)}.zt-cell-group--inset{margin:var(--zt-cell-group-inset-padding);border-radius:var(--zt-cell-group-inset-radius);overflow:hidden}.zt-cell-group__title{padding:var(--zt-cell-group-title-padding);color:var(--zt-cell-group-title-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-xs)}.zt-cell-group__title--inset{padding:var(--zt-cell-group-inset-title-padding)}
|
package/es/checkbox/Checker.mjs
CHANGED
|
@@ -78,6 +78,12 @@ var stdin_default = defineComponent({
|
|
|
78
78
|
}, [slots.icon ? slots.icon({
|
|
79
79
|
checked,
|
|
80
80
|
disabled: disabled.value
|
|
81
|
+
}) : props.role === "radio" ? _createVNode(Icon, {
|
|
82
|
+
"style": iconStyle.value
|
|
83
|
+
}, {
|
|
84
|
+
default: () => [checked ? _createVNode("div", {
|
|
85
|
+
"class": bem("dot")
|
|
86
|
+
}, null) : ""]
|
|
81
87
|
}) : _createVNode(Icon, {
|
|
82
88
|
"name": indeterminate ? "minus" : "checkbox-select",
|
|
83
89
|
"style": iconStyle.value
|
package/es/checkbox/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-checkbox-
|
|
1
|
+
:root{--zt-checkbox-padding: 12px 0;--zt-checkbox-border-color: var(--zt-gray-a1);--zt-checkbox-duration: var(--zt-duration-fast);--zt-checkbox-round-icon-border: 1px solid var(--zt-gray-a1);--zt-checkbox-round-icon-box-shadow: -1px -1px 2px 0 #ffffff, 0 0 3px 0 var(--zt-gray-a2);--zt-checkbox-round-icon-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%);--zt-checkbox-label-margin: var(--zt-padding-xs);--zt-checkbox-label-color: var(--zt-text-color);--zt-checkbox-checked-icon-color: var(--zt-primary-color);--zt-checkbox-checked-icon-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .2);--zt-checkbox-checked-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-checkbox-disabled-icon-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 var(--zt-gray-a2);--zt-checkbox-disabled-icon-border: 1px solid var(--zt-gray-a08);--zt-checkbox-disabled-label-color: var(--zt-gray-a2);--zt-checkbox-disabled-checked-icon-opacity: var(--zt-disabled-opacity);--zt-checkbox-disabled-icon-background: linear-gradient(134deg, #e1e6eb 0%, #e5edf5 100%)}.zt-checkbox{position:relative;display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:var(--zt-checkbox-padding)}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-right:var(--zt-padding-sm)}.zt-checkbox__icon{font-size:var(--zt-font-size-lg);cursor:pointer;box-sizing:border-box}.zt-checkbox__icon .zt-icon{display:flex;justify-content:center;align-items:center;width:1em;height:1em;color:transparent;text-align:center;border:1px solid var(--zt-checkbox-border-color);transition-duration:var(--zt-checkbox-duration);transition-property:color,border-color,background-color}.zt-checkbox__icon--round .zt-icon{border-radius:100%;border:var(--zt-checkbox-round-icon-border);box-shadow:var(--zt-checkbox-round-icon-box-shadow);background:var(--zt-checkbox-round-icon-background)}.zt-checkbox__icon--indeterminate .zt-icon,.zt-checkbox__icon--checked .zt-icon{color:var(--zt-white);background:var(--zt-checkbox-checked-icon-color);box-shadow:var(--zt-checkbox-checked-icon-shadow);border:var(--zt-checkbox-checked-icon-border)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:var(--zt-checkbox-disabled-icon-border);box-shadow:var(--zt-checkbox-disabled-icon-shadow);background:var(--zt-checkbox-disabled-icon-background)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:var(--zt-checkbox-disabled-checked-icon-opacity);background:var(--zt-checkbox-checked-icon-color);color:var(--zt-white)}.zt-checkbox__label{margin-left:var(--zt-checkbox-label-margin);color:var(--zt-checkbox-label-color);font-size:var(--zt-font-size-md)}.zt-checkbox__label--left{margin:0 var(--zt-checkbox-label-margin) 0 0}.zt-checkbox__label--disabled{color:var(--zt-checkbox-disabled-label-color)}.zt-theme-dark{--zt-checkbox-round-icon-box-shadow: none;--zt-checkbox-disabled-icon-shadow: none;--zt-checkbox-round-icon-background: rgba(255, 255, 255, .04);--zt-checkbox-round-icon-border: 1px solid var(--zt-gray);--zt-checkbox-disabled-icon-background: var(--zt-gray-a2)}
|
package/es/checkbox/index.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
|
52
52
|
}, {}>>;
|
|
53
53
|
export default Checkbox;
|
|
54
54
|
export type { CheckboxProps } from './Checkbox';
|
|
55
|
-
export type { CheckboxShape, CheckboxInstance, CheckboxLabelPosition, } from './types';
|
|
55
|
+
export type { CheckboxShape, CheckboxInstance, CheckboxLabelPosition, CheckboxThemeVars, } from './types';
|
|
56
56
|
declare module 'vue' {
|
|
57
57
|
interface GlobalComponents {
|
|
58
58
|
ZtCheckbox: typeof Checkbox;
|
package/es/checkbox/types.d.ts
CHANGED
|
@@ -11,3 +11,22 @@ export type CheckboxExpose = {
|
|
|
11
11
|
checked: ComputedRef<boolean>;
|
|
12
12
|
};
|
|
13
13
|
export type CheckboxInstance = ComponentPublicInstance<CheckboxProps, CheckboxExpose>;
|
|
14
|
+
export type CheckboxThemeVars = {
|
|
15
|
+
checkboxPadding?: string;
|
|
16
|
+
checkboxBorderColor?: string;
|
|
17
|
+
checkboxDuration?: string;
|
|
18
|
+
checkboxRoundIconBorder?: string;
|
|
19
|
+
checkboxRoundIconBoxShadow?: string;
|
|
20
|
+
checkboxRoundIconBackground?: string;
|
|
21
|
+
checkboxLabelMargin?: string;
|
|
22
|
+
checkboxLabelColor?: string;
|
|
23
|
+
checkboxCheckedIconColor?: string;
|
|
24
|
+
checkboxCheckedIconShadow?: string;
|
|
25
|
+
checkboxCheckedIconBorder?: string;
|
|
26
|
+
checkboxDisabledIconShadow?: string;
|
|
27
|
+
checkboxDisabledIconBorder?: string;
|
|
28
|
+
checkboxDisabledIconColor?: string;
|
|
29
|
+
checkboxDisabledLabelColor?: string;
|
|
30
|
+
checkboxDisabledCheckedIconOpacity?: string;
|
|
31
|
+
checkboxDisabledIconBackground?: string;
|
|
32
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-checkbox-group--horizontal{display:flex;flex-wrap:wrap}.zt-checkbox-group--vertical .zt-checkbox:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:calc(var(--zt-
|
|
1
|
+
.zt-checkbox-group--horizontal{display:flex;flex-wrap:wrap}.zt-checkbox-group--vertical .zt-checkbox:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:calc(var(--zt-font-size-lg) + var(--zt-checkbox-label-margin));border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-checkbox-group--vertical .zt-checkbox:last-child:after{display:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-collapse-item-duration: var(--zt-duration-base);--zt-collapse-item-content-padding: var(--zt-padding-sm) var(--zt-padding-md);--zt-collapse-item-content-
|
|
1
|
+
:root{--zt-collapse-item-duration: var(--zt-duration-base);--zt-collapse-item-content-padding: var(--zt-padding-sm) var(--zt-padding-md);--zt-collapse-item-content-text-color: var(--zt-text-color);--zt-collapse-item-content-background: var(--zt-background);--zt-collapse-item-title-padding: 10px 16px;--zt-collapse-item-icon-font-size: 24px}:root[zt-theme-size=large]{--zt-collapse-item-icon-font-size: 30px}.zt-collapse-item{-webkit-user-select:none;user-select:none}.zt-collapse-item__title{position:relative;display:flex;align-items:center;background-color:var(--zt-background);padding:var(--zt-collapse-item-title-padding)}.zt-collapse-item__bar{position:absolute;left:0;width:4px;height:16px;background:var(--zt-primary-color)}.zt-collapse-item__bar--custom{background:var(--zt-white)}.zt-collapse-item__icon{font-size:var(--zt-collapse-item-icon-font-size);color:var(--zt-gray-a4);transition:transform var(--zt-collapse-item-duration)}.zt-collapse-item__icon--expanded{color:var(--zt-primary-color);transform:rotate(-180deg)}.zt-collapse-item__icon--custom{color:var(--zt-white)}.zt-collapse-item__text{flex:1;font-weight:600;font-size:var(--zt-font-size-lg);color:var(--zt-text-color);line-height:var(--zt-line-height-xl)}.zt-collapse-item__text--custom{color:var(--zt-white)}.zt-collapse-item__text--disabled{cursor:not-allowed}.zt-collapse-item__wrapper{overflow:hidden;transition:height var(--zt-collapse-item-duration) ease-in-out;will-change:height}.zt-collapse-item__content{color:var(--zt-collapse-item-content-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);background:var(--zt-collapse-item-content-background)}
|
|
@@ -22,7 +22,7 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
|
|
|
22
22
|
export default CollapseItem;
|
|
23
23
|
export { collapseItemProps } from './CollapseItem';
|
|
24
24
|
export type { CollapseItemProps } from './CollapseItem';
|
|
25
|
-
export type { CollapseItemInstance } from './types';
|
|
25
|
+
export type { CollapseItemInstance, CollapseItemThemeVars } from './types';
|
|
26
26
|
declare module 'vue' {
|
|
27
27
|
interface GlobalComponents {
|
|
28
28
|
ZtCollapseItem: typeof CollapseItem;
|
|
@@ -4,3 +4,11 @@ export type CollapseItemExpose = {
|
|
|
4
4
|
toggle: (newValue?: boolean) => void;
|
|
5
5
|
};
|
|
6
6
|
export type CollapseItemInstance = ComponentPublicInstance<CollapseItemProps, CollapseItemExpose>;
|
|
7
|
+
export type CollapseItemThemeVars = {
|
|
8
|
+
collapseItemDuration?: string;
|
|
9
|
+
collapseItemContentPadding?: string;
|
|
10
|
+
collapseItemContentTextColor?: string;
|
|
11
|
+
collapseItemContentBackground?: string;
|
|
12
|
+
collapseItemTitlePadding?: string;
|
|
13
|
+
collapseItemIconFontSize?: string;
|
|
14
|
+
};
|
|
@@ -40,7 +40,8 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
|
|
|
40
40
|
themeVarsScope: import("./ConfigProvider").ConfigProviderThemeVarsScope;
|
|
41
41
|
}, {}>>;
|
|
42
42
|
export default ConfigProvider;
|
|
43
|
-
export type { ConfigProviderProps, ConfigProviderTheme, } from './ConfigProvider';
|
|
43
|
+
export type { ConfigProviderProps, ConfigProviderTheme, ConfigProviderThemeVarsScope, } from './ConfigProvider';
|
|
44
|
+
export type { ConfigProviderThemeVars } from './types';
|
|
44
45
|
declare module 'vue' {
|
|
45
46
|
interface GlobalComponents {
|
|
46
47
|
ZtConfigProvider: typeof ConfigProvider;
|