zartui 3.1.9 → 3.1.11
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/Cascader.d.ts +1 -1
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +2 -2
- package/es/cascader/types.d.ts +21 -0
- package/es/cell/Cell.d.ts +24 -1
- package/es/cell/Cell.mjs +30 -5
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +15 -2
- package/es/cell/types.d.ts +24 -0
- package/es/cell-group/index.css +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.mjs +6 -0
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +2 -2
- package/es/checkbox/types.d.ts +19 -0
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/index.css +1 -1
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/index.d.ts +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 +3 -3
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +3 -3
- package/es/date-time-picker/index.css +1 -1
- package/es/date-time-picker/index.d.ts +3 -3
- 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.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.mjs +1 -0
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.d.ts +2 -2
- 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/Field.d.ts +17 -2
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +13 -3
- 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 +133 -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 +192 -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 +5 -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/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +2 -1
- 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/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +2 -1
- 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/RadioGroup.d.ts +1 -1
- package/es/radio-group/index.css +1 -1
- package/es/radio-group/index.d.ts +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/Rate.d.ts +1 -1
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +2 -1
- package/es/rate/types.d.ts +6 -0
- package/es/rate/types.mjs +0 -0
- package/es/search/Search.d.ts +2 -2
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +3 -3
- 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/Stepper.d.ts +1 -1
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +2 -1
- 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/Switch.d.ts +1 -1
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +2 -1
- package/es/switch/types.d.ts +18 -0
- package/es/switch/types.mjs +0 -0
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/index.d.ts +2 -1
- 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 +3 -3
- package/es/time-picker/index.css +1 -1
- package/es/time-picker/index.d.ts +4 -3
- 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/Cascader.d.ts +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +2 -2
- package/lib/cascader/types.d.ts +21 -0
- package/lib/cell/Cell.d.ts +24 -1
- package/lib/cell/Cell.js +28 -3
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +15 -2
- package/lib/cell/types.d.ts +24 -0
- package/lib/cell-group/index.css +1 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checker.js +6 -0
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox/types.d.ts +19 -0
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/index.css +1 -1
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +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 +3 -3
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +3 -3
- package/lib/date-time-picker/index.css +1 -1
- package/lib/date-time-picker/index.d.ts +3 -3
- 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.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.js +1 -0
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +2 -2
- 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/Field.d.ts +17 -2
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +13 -3
- 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 +132 -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 +191 -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 +5 -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/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +2 -1
- 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/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +2 -1
- 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/RadioGroup.d.ts +1 -1
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-group/index.d.ts +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/Rate.d.ts +1 -1
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +2 -1
- package/lib/rate/types.d.ts +6 -0
- package/lib/rate/types.js +15 -0
- package/lib/search/Search.d.ts +2 -2
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +3 -3
- 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/Stepper.d.ts +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +2 -1
- 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/Switch.d.ts +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +2 -1
- package/lib/switch/types.d.ts +18 -0
- package/lib/switch/types.js +15 -0
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/index.d.ts +2 -1
- 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 +3 -3
- package/lib/time-picker/index.css +1 -1
- package/lib/time-picker/index.d.ts +4 -3
- 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 +1156 -693
- package/lib/zartui.es.js +1156 -693
- package/lib/zartui.js +1156 -693
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -4
package/lib/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/lib/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/lib/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
|
+
};
|
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
type: BooleanConstructor;
|
|
100
100
|
default: true;
|
|
101
101
|
};
|
|
102
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
102
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "change" | "update:modelValue" | "update:show" | "clickTab" | "finish")[], "cancel" | "change" | "update:modelValue" | "update:show" | "clickTab" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
103
103
|
title: StringConstructor;
|
|
104
104
|
show: BooleanConstructor;
|
|
105
105
|
round: {
|
package/lib/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/lib/cascader/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
46
46
|
type: BooleanConstructor;
|
|
47
47
|
default: true;
|
|
48
48
|
};
|
|
49
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
49
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "change" | "update:modelValue" | "update:show" | "clickTab" | "finish")[], "cancel" | "change" | "update:modelValue" | "update:show" | "clickTab" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
50
|
title: StringConstructor;
|
|
51
51
|
show: BooleanConstructor;
|
|
52
52
|
round: {
|
|
@@ -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/lib/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/lib/cell/Cell.d.ts
CHANGED
|
@@ -31,6 +31,11 @@ export declare const cellSharedProps: {
|
|
|
31
31
|
type: PropType<boolean | null>;
|
|
32
32
|
default: null;
|
|
33
33
|
};
|
|
34
|
+
clearable: BooleanConstructor;
|
|
35
|
+
clearIcon: {
|
|
36
|
+
type: PropType<string>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
34
39
|
};
|
|
35
40
|
declare const cellProps: {
|
|
36
41
|
leftIcon: StringConstructor;
|
|
@@ -62,6 +67,11 @@ declare const cellProps: {
|
|
|
62
67
|
type: PropType<boolean | null>;
|
|
63
68
|
default: null;
|
|
64
69
|
};
|
|
70
|
+
clearable: BooleanConstructor;
|
|
71
|
+
clearIcon: {
|
|
72
|
+
type: PropType<string>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
65
75
|
} & {
|
|
66
76
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
67
77
|
url: StringConstructor;
|
|
@@ -98,11 +108,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
98
108
|
type: PropType<boolean | null>;
|
|
99
109
|
default: null;
|
|
100
110
|
};
|
|
111
|
+
clearable: BooleanConstructor;
|
|
112
|
+
clearIcon: {
|
|
113
|
+
type: PropType<string>;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
101
116
|
} & {
|
|
102
117
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
103
118
|
url: StringConstructor;
|
|
104
119
|
replace: BooleanConstructor;
|
|
105
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
120
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "click")[], "clear" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
106
121
|
leftIcon: StringConstructor;
|
|
107
122
|
titleIcon: StringConstructor;
|
|
108
123
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -132,12 +147,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
147
|
type: PropType<boolean | null>;
|
|
133
148
|
default: null;
|
|
134
149
|
};
|
|
150
|
+
clearable: BooleanConstructor;
|
|
151
|
+
clearIcon: {
|
|
152
|
+
type: PropType<string>;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
135
155
|
} & {
|
|
136
156
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
137
157
|
url: StringConstructor;
|
|
138
158
|
replace: BooleanConstructor;
|
|
139
159
|
}>> & {
|
|
140
160
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
161
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
141
162
|
}, {
|
|
142
163
|
replace: boolean;
|
|
143
164
|
value: string;
|
|
@@ -147,5 +168,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
147
168
|
isLink: boolean;
|
|
148
169
|
required: boolean;
|
|
149
170
|
clickable: boolean | null;
|
|
171
|
+
clearable: boolean;
|
|
172
|
+
clearIcon: string;
|
|
150
173
|
}, {}>;
|
|
151
174
|
export default _default;
|
package/lib/cell/Cell.js
CHANGED
|
@@ -25,6 +25,7 @@ var import_vue = require("vue");
|
|
|
25
25
|
var import_vue2 = require("vue");
|
|
26
26
|
var import_utils = require("../utils");
|
|
27
27
|
var import_use_route = require("../composables/use-route");
|
|
28
|
+
var import_use = require("@zartui/use");
|
|
28
29
|
var import_icon = require("../icon");
|
|
29
30
|
const [name, bem] = (0, import_utils.createNamespace)("cell");
|
|
30
31
|
const cellSharedProps = {
|
|
@@ -47,18 +48,21 @@ const cellSharedProps = {
|
|
|
47
48
|
clickable: {
|
|
48
49
|
type: Boolean,
|
|
49
50
|
default: null
|
|
50
|
-
}
|
|
51
|
+
},
|
|
52
|
+
clearable: Boolean,
|
|
53
|
+
clearIcon: (0, import_utils.makeStringProp)("clear-r")
|
|
51
54
|
};
|
|
52
55
|
const cellProps = (0, import_utils.extend)({}, cellSharedProps, import_use_route.routeProps);
|
|
53
56
|
var stdin_default = (0, import_vue2.defineComponent)({
|
|
54
57
|
name,
|
|
55
58
|
props: cellProps,
|
|
56
|
-
emits: ["click"],
|
|
59
|
+
emits: ["click", "clear"],
|
|
57
60
|
setup(props, {
|
|
58
61
|
slots,
|
|
59
62
|
emit
|
|
60
63
|
}) {
|
|
61
64
|
const route = (0, import_use_route.useRoute)();
|
|
65
|
+
const clearIconRef = (0, import_vue2.ref)();
|
|
62
66
|
const renderLabel = () => {
|
|
63
67
|
const showLabel = slots.label || (0, import_utils.isDef)(props.label);
|
|
64
68
|
if (showLabel) {
|
|
@@ -117,11 +121,28 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
117
121
|
emit("click");
|
|
118
122
|
}
|
|
119
123
|
};
|
|
124
|
+
const onClear = (event) => {
|
|
125
|
+
(0, import_utils.preventDefault)(event, true);
|
|
126
|
+
emit("clear", event);
|
|
127
|
+
};
|
|
128
|
+
function getClearIconListenerEvent() {
|
|
129
|
+
if ("ontouchstart" in document.documentElement) {
|
|
130
|
+
return "touchstart";
|
|
131
|
+
}
|
|
132
|
+
return "click";
|
|
133
|
+
}
|
|
134
|
+
(0, import_use.useEventListener)(getClearIconListenerEvent(), onClear, {
|
|
135
|
+
target: (0, import_vue2.computed)(() => {
|
|
136
|
+
var _a;
|
|
137
|
+
return (_a = clearIconRef.value) == null ? void 0 : _a.$el;
|
|
138
|
+
})
|
|
139
|
+
});
|
|
120
140
|
const renderValue = () => {
|
|
121
141
|
var _a;
|
|
122
142
|
const slot = slots.value || slots.default;
|
|
123
143
|
const hasValue = slot || (0, import_utils.isDef)(props.value);
|
|
124
144
|
const isHorizontal = props.direction === "horizontal";
|
|
145
|
+
const showClear = props.clearable && (0, import_utils.isDef)(props.value) && props.value !== "";
|
|
125
146
|
if (hasValue) {
|
|
126
147
|
return (0, import_vue.createVNode)("div", {
|
|
127
148
|
"class": [bem("value", {
|
|
@@ -130,7 +151,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
130
151
|
"onClick": () => onClick(isHorizontal)
|
|
131
152
|
}, [slot ? slot() : (0, import_vue.createVNode)("span", {
|
|
132
153
|
"class": bem("value-text")
|
|
133
|
-
}, [props.value]),
|
|
154
|
+
}, [props.value]), showClear && (0, import_vue.createVNode)(import_icon.Icon, {
|
|
155
|
+
"ref": clearIconRef,
|
|
156
|
+
"name": props.clearIcon,
|
|
157
|
+
"class": bem("value-clear")
|
|
158
|
+
}, null), (_a = slots.extra) == null ? void 0 : _a.call(slots), renderRightIcon()]);
|
|
134
159
|
}
|
|
135
160
|
};
|
|
136
161
|
const renderLeftIcon = () => {
|
package/lib/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;--zt-cell-clear-icon-color: var(--zt-gray-a6)}: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;align-items:center;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__value-clear{color:var(--zt-cell-clear-icon-color);font-size:var(--zt-font-size-xxl);margin:0 4px 0 10px;cursor:pointer}.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/lib/cell/index.d.ts
CHANGED
|
@@ -28,11 +28,16 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
28
28
|
type: import("vue").PropType<boolean | null>;
|
|
29
29
|
default: null;
|
|
30
30
|
};
|
|
31
|
+
clearable: BooleanConstructor;
|
|
32
|
+
clearIcon: {
|
|
33
|
+
type: import("vue").PropType<string>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
31
36
|
} & {
|
|
32
37
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
|
33
38
|
url: StringConstructor;
|
|
34
39
|
replace: BooleanConstructor;
|
|
35
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "click")[], "clear" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
41
|
leftIcon: StringConstructor;
|
|
37
42
|
titleIcon: StringConstructor;
|
|
38
43
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -62,12 +67,18 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
62
67
|
type: import("vue").PropType<boolean | null>;
|
|
63
68
|
default: null;
|
|
64
69
|
};
|
|
70
|
+
clearable: BooleanConstructor;
|
|
71
|
+
clearIcon: {
|
|
72
|
+
type: import("vue").PropType<string>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
65
75
|
} & {
|
|
66
76
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
|
67
77
|
url: StringConstructor;
|
|
68
78
|
replace: BooleanConstructor;
|
|
69
79
|
}>> & {
|
|
70
80
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
71
82
|
}, {
|
|
72
83
|
replace: boolean;
|
|
73
84
|
value: string;
|
|
@@ -77,10 +88,12 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
77
88
|
isLink: boolean;
|
|
78
89
|
required: boolean;
|
|
79
90
|
clickable: boolean | null;
|
|
91
|
+
clearable: boolean;
|
|
92
|
+
clearIcon: string;
|
|
80
93
|
}, {}>>;
|
|
81
94
|
export default Cell;
|
|
82
95
|
export type { CellProps, CellArrowDirection } from './Cell';
|
|
83
|
-
export type { CellDirection } from './types';
|
|
96
|
+
export type { CellDirection, CellThemeVars } from './types';
|
|
84
97
|
declare module 'vue' {
|
|
85
98
|
interface GlobalComponents {
|
|
86
99
|
ZtCell: typeof Cell;
|
package/lib/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/lib/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)}
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
type: PropType<boolean | null>;
|
|
45
45
|
default: null;
|
|
46
46
|
};
|
|
47
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
47
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
48
48
|
name: PropType<unknown>;
|
|
49
49
|
shape: {
|
|
50
50
|
type: PropType<import("./Checker").CheckerShape>;
|
package/lib/checkbox/Checker.js
CHANGED
|
@@ -101,6 +101,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
101
101
|
}, [slots.icon ? slots.icon({
|
|
102
102
|
checked,
|
|
103
103
|
disabled: disabled.value
|
|
104
|
+
}) : props.role === "radio" ? (0, import_vue.createVNode)(import_icon.Icon, {
|
|
105
|
+
"style": iconStyle.value
|
|
106
|
+
}, {
|
|
107
|
+
default: () => [checked ? (0, import_vue.createVNode)("div", {
|
|
108
|
+
"class": bem("dot")
|
|
109
|
+
}, null) : ""]
|
|
104
110
|
}) : (0, import_vue.createVNode)(import_icon.Icon, {
|
|
105
111
|
"name": indeterminate ? "minus" : "checkbox-select",
|
|
106
112
|
"style": iconStyle.value
|
package/lib/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/lib/checkbox/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
|
19
19
|
type: import("vue").PropType<boolean | null>;
|
|
20
20
|
default: null;
|
|
21
21
|
};
|
|
22
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
22
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
23
|
name: import("vue").PropType<unknown>;
|
|
24
24
|
shape: {
|
|
25
25
|
type: import("vue").PropType<import("./Checker").CheckerShape>;
|
|
@@ -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/lib/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
|
+
};
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
default: () => unknown[];
|
|
31
31
|
};
|
|
32
32
|
checkedColor: StringConstructor;
|
|
33
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
33
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
34
34
|
max: (NumberConstructor | StringConstructor)[];
|
|
35
35
|
disabled: BooleanConstructor;
|
|
36
36
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
@@ -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}
|
|
@@ -11,7 +11,7 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
|
|
|
11
11
|
default: () => unknown[];
|
|
12
12
|
};
|
|
13
13
|
checkedColor: StringConstructor;
|
|
14
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
max: (NumberConstructor | StringConstructor)[];
|
|
16
16
|
disabled: BooleanConstructor;
|
|
17
17
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
type: PropType<Numeric | Numeric[]>;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
37
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
38
38
|
border: {
|
|
39
39
|
type: BooleanConstructor;
|
|
40
40
|
default: true;
|
package/lib/collapse/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const Collapse: import("../utils").WithInstall<import("vue").Defi
|
|
|
8
8
|
type: import("vue").PropType<import("../utils").Numeric | import("../utils").Numeric[]>;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
border: {
|
|
13
13
|
type: BooleanConstructor;
|
|
14
14
|
default: true;
|
|
@@ -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;
|