zartui 3.1.7 → 3.1.9
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 -0
- package/es/action-sheet/ActionSheet.d.ts +2 -2
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +2 -2
- package/es/avatar/index.css +1 -1
- package/es/badge/index.css +1 -1
- package/es/button/Button.d.ts +3 -3
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +3 -3
- package/es/calendar/Calendar.d.ts +2 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +2 -2
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/Cell.d.ts +2 -2
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +2 -2
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/CellGroup.mjs +2 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +26 -12
- package/es/checkbox/Checkbox.mjs +13 -2
- package/es/checkbox/Checker.d.ts +9 -0
- package/es/checkbox/Checker.mjs +10 -10
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +9 -0
- package/es/collapse-item/index.css +1 -1
- package/es/composables/use-global-z-index.d.ts +4 -0
- package/es/composables/use-global-z-index.mjs +9 -0
- package/es/composables/use-scope-id.d.ts +3 -0
- package/es/composables/use-scope-id.mjs +9 -0
- package/es/composables/use-sync-prop-ref.d.ts +2 -0
- package/es/composables/use-sync-prop-ref.mjs +18 -0
- package/es/config-provider/ConfigProvider.d.ts +30 -6
- package/es/config-provider/ConfigProvider.mjs +48 -9
- package/es/config-provider/index.d.ts +17 -2
- 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.d.ts +2 -2
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/function-call.d.ts +3 -3
- package/es/dialog/function-call.mjs +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +1 -1
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.mjs +2 -2
- package/es/dropdown-item/types.d.ts +2 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/empty/index.css +1 -1
- package/es/field/Field.d.ts +3 -3
- package/es/field/Field.mjs +2 -0
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +3 -3
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/hierarchy-select/HierarchySelect.d.ts +16 -1
- package/es/hierarchy-select/HierarchySelect.mjs +8 -5
- package/es/hierarchy-select/index.css +1 -1
- package/es/hierarchy-select/index.d.ts +11 -1
- package/es/icon/config.mjs +34 -11
- package/es/icon/index.css +1 -1
- package/es/image/Image.d.ts +1 -1
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +1 -1
- package/es/image-preview/ImagePreview.d.ts +17 -1
- package/es/image-preview/ImagePreview.mjs +17 -4
- package/es/image-preview/ImagePreviewItem.d.ts +6 -0
- package/es/image-preview/ImagePreviewItem.mjs +9 -3
- package/es/image-preview/function-call.mjs +1 -0
- package/es/image-preview/index.d.ts +12 -1
- package/es/image-preview/types.d.ts +1 -0
- package/es/index-bar/IndexBar.d.ts +16 -1
- package/es/index-bar/IndexBar.mjs +6 -3
- package/es/index-bar/index.d.ts +12 -1
- 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/List.d.ts +7 -3
- package/es/list/List.mjs +5 -3
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +2 -0
- package/es/loading/index.css +1 -1
- package/es/media-picker/index.css +1 -1
- package/es/multiple-picker/index.css +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/index.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +3 -3
- package/es/number-keyboard/NumberKeyboard.mjs +5 -20
- package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +3 -3
- package/es/number-keyboard/style/index.mjs +0 -1
- package/es/picker/index.css +1 -1
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/Popover.mjs +16 -12
- package/es/popover/index.d.ts +1 -1
- package/es/popup/Popup.d.ts +2 -2
- package/es/popup/Popup.mjs +9 -10
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +2 -2
- package/es/radio/index.css +1 -1
- package/es/radio-picker/index.css +1 -1
- package/es/search/Search.d.ts +1 -1
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +2 -2
- package/es/skeleton/index.d.ts +2 -2
- package/es/step/index.css +1 -1
- package/es/stepper/Stepper.d.ts +2 -2
- package/es/stepper/index.d.ts +2 -2
- package/es/steps/Steps.d.ts +1 -1
- package/es/steps/index.d.ts +1 -1
- package/es/sticky/Sticky.d.ts +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/swipe/Swipe.mjs +1 -1
- package/es/swipe/index.css +1 -1
- package/es/swipe-cell/SwipeCell.mjs +10 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/table/index.css +1 -1
- package/es/tabs/Tabs.d.ts +4 -4
- package/es/tabs/index.d.ts +4 -4
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.d.ts +1 -1
- package/es/text-ellipsis/TextEllipsis.d.ts +17 -4
- package/es/text-ellipsis/TextEllipsis.mjs +52 -30
- package/es/text-ellipsis/index.css +1 -1
- package/es/text-ellipsis/index.d.ts +12 -3
- package/es/time-picker/index.css +1 -1
- package/es/timeline/index.css +1 -1
- package/es/toast/Toast.d.ts +5 -2
- package/es/toast/Toast.mjs +2 -1
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +4 -2
- package/es/toast/types.d.ts +2 -0
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/utils/interceptor.d.ts +2 -1
- package/es/utils/interceptor.mjs +3 -2
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/action-sheet/ActionSheet.d.ts +2 -2
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +2 -2
- package/lib/avatar/index.css +1 -1
- package/lib/badge/index.css +1 -1
- package/lib/button/Button.d.ts +3 -3
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +3 -3
- package/lib/calendar/Calendar.d.ts +2 -2
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +2 -2
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/Cell.d.ts +2 -2
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +2 -2
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/CellGroup.js +2 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +26 -12
- package/lib/checkbox/Checkbox.js +13 -2
- package/lib/checkbox/Checker.d.ts +9 -0
- package/lib/checkbox/Checker.js +10 -10
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +9 -0
- package/lib/collapse-item/index.css +1 -1
- package/lib/composables/use-global-z-index.d.ts +4 -0
- package/lib/composables/use-global-z-index.js +28 -0
- package/lib/composables/use-scope-id.d.ts +3 -0
- package/lib/composables/use-scope-id.js +28 -0
- package/lib/composables/use-sync-prop-ref.d.ts +2 -0
- package/lib/composables/use-sync-prop-ref.js +37 -0
- package/lib/config-provider/ConfigProvider.d.ts +30 -6
- package/lib/config-provider/ConfigProvider.js +46 -7
- package/lib/config-provider/index.d.ts +17 -2
- 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.d.ts +2 -2
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/function-call.d.ts +3 -3
- package/lib/dialog/function-call.js +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.js +2 -2
- package/lib/dropdown-item/types.d.ts +2 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/empty/index.css +1 -1
- package/lib/field/Field.d.ts +3 -3
- package/lib/field/Field.js +2 -0
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +3 -3
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/hierarchy-select/HierarchySelect.d.ts +16 -1
- package/lib/hierarchy-select/HierarchySelect.js +7 -4
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/hierarchy-select/index.d.ts +11 -1
- package/lib/icon/config.js +34 -11
- package/lib/icon/index.css +1 -1
- package/lib/image/Image.d.ts +1 -1
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image-preview/ImagePreview.d.ts +17 -1
- package/lib/image-preview/ImagePreview.js +17 -4
- package/lib/image-preview/ImagePreviewItem.d.ts +6 -0
- package/lib/image-preview/ImagePreviewItem.js +9 -3
- package/lib/image-preview/function-call.js +1 -0
- package/lib/image-preview/index.d.ts +12 -1
- package/lib/image-preview/types.d.ts +1 -0
- package/lib/index-bar/IndexBar.d.ts +16 -1
- package/lib/index-bar/IndexBar.js +5 -2
- package/lib/index-bar/index.d.ts +12 -1
- 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/List.d.ts +7 -3
- package/lib/list/List.js +4 -2
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +2 -0
- package/lib/loading/index.css +1 -1
- package/lib/media-picker/index.css +1 -1
- package/lib/multiple-picker/index.css +1 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/index.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +3 -3
- package/lib/number-keyboard/NumberKeyboard.js +4 -19
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +3 -3
- package/lib/number-keyboard/style/index.js +0 -1
- package/lib/picker/index.css +1 -1
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/Popover.js +16 -12
- package/lib/popover/index.d.ts +1 -1
- package/lib/popup/Popup.d.ts +2 -2
- package/lib/popup/Popup.js +8 -9
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +2 -2
- package/lib/radio/index.css +1 -1
- package/lib/radio-picker/index.css +1 -1
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +2 -2
- package/lib/skeleton/index.d.ts +2 -2
- package/lib/step/index.css +1 -1
- package/lib/stepper/Stepper.d.ts +2 -2
- package/lib/stepper/index.d.ts +2 -2
- package/lib/steps/Steps.d.ts +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/sticky/Sticky.d.ts +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/swipe/Swipe.js +1 -1
- package/lib/swipe/index.css +1 -1
- package/lib/swipe-cell/SwipeCell.js +10 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/table/index.css +1 -1
- package/lib/tabs/Tabs.d.ts +4 -4
- package/lib/tabs/index.d.ts +4 -4
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.d.ts +1 -1
- package/lib/text-ellipsis/TextEllipsis.d.ts +17 -4
- package/lib/text-ellipsis/TextEllipsis.js +51 -29
- package/lib/text-ellipsis/index.css +1 -1
- package/lib/text-ellipsis/index.d.ts +12 -3
- package/lib/time-picker/index.css +1 -1
- package/lib/timeline/index.css +1 -1
- package/lib/toast/Toast.d.ts +5 -2
- package/lib/toast/Toast.js +2 -1
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +4 -2
- package/lib/toast/types.d.ts +2 -0
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/utils/interceptor.d.ts +2 -1
- package/lib/utils/interceptor.js +3 -2
- 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 +230 -112
- package/lib/zartui.es.js +231 -113
- package/lib/zartui.js +230 -112
- package/lib/zartui.min.js +1 -1
- package/package.json +21 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-action-sheet-max-height: 80%;--zt-action-sheet-header-height: 44px;--zt-action-sheet-header-font-size: var(--zt-font-size-lg);--zt-action-sheet-description-color: var(--zt-
|
|
1
|
+
:root{--zt-action-sheet-max-height: 80%;--zt-action-sheet-header-height: 44px;--zt-action-sheet-header-font-size: var(--zt-font-size-lg);--zt-action-sheet-description-color: var(--zt-gray-a4);--zt-action-sheet-description-font-size: var(--zt-font-size-md);--zt-action-sheet-description-line-height: var(--zt-line-height-md);--zt-action-sheet-item-background: var(--zt-background-2);--zt-action-sheet-item-font-size: var(--zt-font-size-lg);--zt-action-sheet-item-line-height: 24px;--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-subname-font-size: var(--zt-font-size-sm);--zt-action-sheet-subname-line-height: var(--zt-line-height-xs);--zt-action-sheet-close-icon-size: 22px;--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)}.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-action-sheet-item-font-size);background:var(--zt-action-sheet-item-background);border:none;cursor:pointer}.zt-action-sheet__item{line-height:var(--zt-action-sheet-item-line-height)}.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:16px;color:var(--zt-text-color);line-height:24px}.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-action-sheet-subname-font-size);line-height:var(--zt-action-sheet-subname-line-height)}.zt-action-sheet__header{flex-shrink:0;font-weight:var(--zt-font-bold);font-size:var(--zt-action-sheet-header-font-size);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-action-sheet-description-font-size);line-height:var(--zt-action-sheet-description-line-height);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-action-sheet-close-icon-size);line-height:inherit}
|
|
@@ -111,13 +111,13 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
|
111
111
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
112
112
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
113
113
|
}, {
|
|
114
|
-
show: boolean;
|
|
115
114
|
overlay: boolean;
|
|
115
|
+
round: boolean;
|
|
116
|
+
show: boolean;
|
|
116
117
|
lockScroll: boolean;
|
|
117
118
|
lazyRender: boolean;
|
|
118
119
|
transitionAppear: boolean;
|
|
119
120
|
closeOnClickOverlay: boolean;
|
|
120
|
-
round: boolean;
|
|
121
121
|
closeIcon: string;
|
|
122
122
|
closeable: boolean;
|
|
123
123
|
closeOnPopstate: boolean;
|
package/lib/avatar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-avatar-background
|
|
1
|
+
:root{--zt-avatar-background: var(--zt-primary-color);--zt-avatar-color: var(--zt-white);--zt-avatar-size-small: 32px;--zt-avatar-font-size-small: 12px;--zt-avatar-size-medium: 48px;--zt-avatar-font-size-medium: 16px;--zt-avatar-size-large: 60px;--zt-avatar-font-size-large: 20px;--zt-avatar-square-radius: 4px;--zt-avatar-border-color: var(--zt-background-2);--zt-avatar-border-shadow-color: var(--zt-gray-a2)}.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-size-small);height:var(--zt-avatar-size-small);font-size:var(--zt-avatar-font-size-small);line-height:var(--zt-avatar-size-small)}.zt-avatar__img--medium{width:var(--zt-avatar-size-medium);height:var(--zt-avatar-size-medium);font-size:var(--zt-avatar-font-size-medium);line-height:var(--zt-avatar-size-medium)}.zt-avatar__img--large{width:var(--zt-avatar-size-large);height:var(--zt-avatar-size-large);font-size:var(--zt-avatar-font-size-large);line-height:var(--zt-avatar-size-large)}.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/lib/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-font-size: var(--zt-font-size-sm);--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:
|
|
1
|
+
:root{--zt-badge-size: 16px;--zt-badge-color: var(--zt-white);--zt-badge-padding: 1px 4px;--zt-badge-font-size: var(--zt-font-size-sm);--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-badge-font-size);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/lib/button/Button.d.ts
CHANGED
|
@@ -142,11 +142,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
142
142
|
type: ButtonType;
|
|
143
143
|
tag: keyof HTMLElementTagNameMap;
|
|
144
144
|
disabled: boolean;
|
|
145
|
-
size: ButtonSize;
|
|
146
145
|
round: boolean;
|
|
147
|
-
loading: boolean;
|
|
148
|
-
square: boolean;
|
|
149
146
|
block: boolean;
|
|
147
|
+
size: ButtonSize;
|
|
148
|
+
square: boolean;
|
|
149
|
+
loading: boolean;
|
|
150
150
|
borderLess: boolean;
|
|
151
151
|
blockInner: boolean;
|
|
152
152
|
plain: boolean;
|
package/lib/button/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-button-mini-height: 24px;--zt-button-mini-padding: 0 var(--zt-padding-sm);--zt-button-mini-font-size: var(--zt-font-size-sm);--zt-button-small-height: 28px;--zt-button-small-padding: 0 var(--zt-padding-sm);--zt-button-small-font-size: var(--zt-font-size-md);--zt-button-medium-height: 36px;--zt-button-medium-padding: 0 var(--zt-padding-md);--zt-button-medium-font-size: var(--zt-font-size-md);--zt-button-normal-padding: 0 var(--zt-padding-lg);--zt-button-normal-font-size: var(--zt-font-size-lg);--zt-button-large-height: 50px;--zt-button-default-height: 44px;--zt-button-default-line-height: calc(var(--zt-button-normal-font-size) * 2 - 8px);--zt-button-default-font-size: var(--zt-font-size-lg);--zt-button-default-color: var(--zt-text-color);--zt-button-default-background: var(--zt-button-plain-background);--zt-button-default-border-color:
|
|
1
|
+
:root{--zt-button-mini-height: 24px;--zt-button-mini-padding: 0 var(--zt-padding-sm);--zt-button-mini-font-size: var(--zt-font-size-sm);--zt-button-small-height: 28px;--zt-button-small-padding: 0 var(--zt-padding-sm);--zt-button-small-font-size: var(--zt-font-size-md);--zt-button-medium-height: 36px;--zt-button-medium-padding: 0 var(--zt-padding-md);--zt-button-medium-font-size: var(--zt-font-size-md);--zt-button-normal-padding: 0 var(--zt-padding-lg);--zt-button-normal-font-size: var(--zt-font-size-lg);--zt-button-large-height: 50px;--zt-button-default-height: 44px;--zt-button-default-line-height: calc(var(--zt-button-normal-font-size) * 2 - 8px);--zt-button-default-font-size: var(--zt-font-size-lg);--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-icon-mini-size: 16px;--zt-button-icon-small-size: 20px;--zt-button-icon-medium-size: 20px;--zt-button-icon-normal-size: 24px;--zt-button-loading-icon-size: 20px;--zt-button-inner-block-horizontal-margin: 16px}.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-button-default-font-size);line-height:var(--zt-button-default-line-height);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-button-normal-font-size)}.zt-button--medium{height:var(--zt-button-medium-height);padding:var(--zt-button-medium-padding);font-size:var(--zt-button-medium-font-size)}.zt-button--small{height:var(--zt-button-small-height);padding:var(--zt-button-small-padding);font-size:var(--zt-button-small-font-size)}.zt-button--mini{height:var(--zt-button-mini-height);padding:var(--zt-button-mini-padding);font-size:var(--zt-button-mini-font-size)}.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-normal-size)}.zt-button__icon--mini{font-size:var(--zt-button-icon-mini-size)}.zt-button__icon--small{font-size:var(--zt-button-icon-small-size)}.zt-button__icon--medium{font-size:var(--zt-button-icon-medium-size)}.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/lib/button/index.d.ts
CHANGED
|
@@ -93,11 +93,11 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
|
93
93
|
type: import("./types").ButtonType;
|
|
94
94
|
tag: keyof HTMLElementTagNameMap;
|
|
95
95
|
disabled: boolean;
|
|
96
|
-
size: import("./types").ButtonSize;
|
|
97
96
|
round: boolean;
|
|
98
|
-
loading: boolean;
|
|
99
|
-
square: boolean;
|
|
100
97
|
block: boolean;
|
|
98
|
+
size: import("./types").ButtonSize;
|
|
99
|
+
square: boolean;
|
|
100
|
+
loading: boolean;
|
|
101
101
|
borderLess: boolean;
|
|
102
102
|
blockInner: boolean;
|
|
103
103
|
plain: boolean;
|
|
@@ -282,11 +282,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
282
282
|
}, {
|
|
283
283
|
type: CalendarType;
|
|
284
284
|
position: PopupPosition;
|
|
285
|
-
|
|
285
|
+
round: boolean;
|
|
286
286
|
show: boolean;
|
|
287
|
+
readonly: boolean;
|
|
287
288
|
lazyRender: boolean;
|
|
288
289
|
closeOnClickOverlay: boolean;
|
|
289
|
-
round: boolean;
|
|
290
290
|
closeOnPopstate: boolean;
|
|
291
291
|
safeAreaInsetTop: boolean;
|
|
292
292
|
safeAreaInsetBottom: boolean;
|
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-header-title-font-size: var(--zt-font-size-md);--zt-calendar-header-subtitle-font-size: var(--zt-font-size-md);--zt-calendar-weekdays-height: 30px;--zt-calendar-weekdays-font-size: var(--zt-font-size-sm);--zt-calendar-weekdays-font-color: var(
|
|
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-header-title-font-size: var(--zt-font-size-md);--zt-calendar-header-subtitle-font-size: var(--zt-font-size-md);--zt-calendar-weekdays-height: 30px;--zt-calendar-weekdays-font-size: var(--zt-font-size-sm);--zt-calendar-weekdays-font-color: var(--zt-gray-a8);--zt-calendar-weekdays-background: var(--zt-calendar-background);--zt-calendar-month-title-font-size: var(--zt-font-size-md);--zt-calendar-month-mark-font-size: 160px;--zt-calendar-day-height: 14.285vw;--zt-calendar-day-height-half: 7.143vw;--zt-calendar-day-font-size: var(--zt-font-size-lg);--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-info-font-size: var(--zt-font-size-xs);--zt-calendar-info-line-height: var(--zt-line-height-xs);--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{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__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-title-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:32px;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-calendar-header-title-font-size);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{font-size:var(--zt-calendar-header-subtitle-font-size)}.zt-calendar__month-title{font-size:var(--zt-calendar-month-title-font-size)}.zt-calendar__weekdays{display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{flex:1;font-size:var(--zt-calendar-weekdays-font-size);line-height:var(--zt-calendar-weekdays-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-calendar-day-font-size);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 rgba(0,145,250,.1)}.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 rgba(0,145,250,.1)}.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
|
@@ -188,11 +188,11 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
188
188
|
}, {
|
|
189
189
|
type: import("./types").CalendarType;
|
|
190
190
|
position: import("..").PopupPosition;
|
|
191
|
-
|
|
191
|
+
round: boolean;
|
|
192
192
|
show: boolean;
|
|
193
|
+
readonly: boolean;
|
|
193
194
|
lazyRender: boolean;
|
|
194
195
|
closeOnClickOverlay: boolean;
|
|
195
|
-
round: boolean;
|
|
196
196
|
closeOnPopstate: boolean;
|
|
197
197
|
safeAreaInsetTop: boolean;
|
|
198
198
|
safeAreaInsetBottom: boolean;
|
|
@@ -156,10 +156,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
156
156
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
157
157
|
}, {
|
|
158
158
|
position: PopupPosition;
|
|
159
|
+
round: boolean;
|
|
159
160
|
show: boolean;
|
|
160
161
|
teleport: string;
|
|
161
162
|
closeOnClickOverlay: boolean;
|
|
162
|
-
round: boolean;
|
|
163
163
|
closeable: boolean;
|
|
164
164
|
closeOnPopstate: boolean;
|
|
165
165
|
safeAreaInsetTop: boolean;
|
package/lib/cascader/index.d.ts
CHANGED
|
@@ -103,10 +103,10 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
103
103
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
104
104
|
}, {
|
|
105
105
|
position: import("..").PopupPosition;
|
|
106
|
+
round: boolean;
|
|
106
107
|
show: boolean;
|
|
107
108
|
teleport: string;
|
|
108
109
|
closeOnClickOverlay: boolean;
|
|
109
|
-
round: boolean;
|
|
110
110
|
closeable: boolean;
|
|
111
111
|
closeOnPopstate: boolean;
|
|
112
112
|
safeAreaInsetTop: boolean;
|
package/lib/cell/Cell.d.ts
CHANGED
|
@@ -141,10 +141,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
}, {
|
|
142
142
|
replace: boolean;
|
|
143
143
|
value: string;
|
|
144
|
-
direction: CellDirection;
|
|
145
144
|
center: boolean;
|
|
146
|
-
isLink: boolean;
|
|
147
145
|
border: boolean;
|
|
146
|
+
direction: CellDirection;
|
|
147
|
+
isLink: boolean;
|
|
148
148
|
required: boolean;
|
|
149
149
|
clickable: boolean | null;
|
|
150
150
|
}, {}>;
|
package/lib/cell/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-cell-font-size: var(--zt-font-size-md);--zt-cell-line-height: var(--zt-line-height-md);--zt-cell-vertical-padding: 10px;--zt-cell-horizontal-padding: var(--zt-padding-md);--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-label-font-size: var(--zt-font-size-md);--zt-cell-label-line-height: var(--zt-line-height-md);--zt-cell-label-margin-top: var(--zt-padding-base);--zt-cell-title-color: var(--zt-text-color);--zt-cell-icon-size: var(--zt-cell-line-height);--zt-cell-right-icon-color: var(--zt-
|
|
1
|
+
:root{--zt-cell-font-size: var(--zt-font-size-md);--zt-cell-line-height: var(--zt-line-height-md);--zt-cell-vertical-padding: 10px;--zt-cell-horizontal-padding: var(--zt-padding-md);--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-label-font-size: var(--zt-font-size-md);--zt-cell-label-line-height: var(--zt-line-height-md);--zt-cell-label-margin-top: var(--zt-padding-base);--zt-cell-title-color: var(--zt-text-color);--zt-cell-icon-size: var(--zt-cell-line-height);--zt-cell-right-icon-color: var(--zt-gray-a4);--zt-cell-large-vertical-padding: var(--zt-padding-sm);--zt-cell-large-title-font-size: var(--zt-font-size-lg);--zt-cell-large-label-font-size: var(--zt-font-size-md);--zt-cell-vertical-background: var(--zt-background-card);--zt-cell-horizontal-background: var(--zt-background-card);--zt-cell-value-height: 44px;--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-left-icon-size: 48px;--zt-cell-left-icon-radius: 4px;--zt-cell-row-title-max-width: 100px}.zt-cell{position:relative;display:flex;box-sizing:border-box;width:100%;overflow:hidden;color:var(--zt-cell-text-color);font-size:var(--zt-cell-font-size);line-height:var(--zt-cell-line-height);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-cell-label-line-height);font-size:var(--zt-cell-font-size);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-cell-font-size);line-height:var(--zt-cell-line-height);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-cell-font-size);line-height:var(--zt-cell-line-height);word-break:break-all;display:inline-block;overflow:hidden;flex:1}.zt-cell__title-icon,.zt-cell__right-icon{height:var(--zt-cell-line-height);font-size:var(--zt-cell-icon-size);line-height:var(--zt-cell-line-height)}.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-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-cell-font-size);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
|
@@ -71,10 +71,10 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
71
71
|
}, {
|
|
72
72
|
replace: boolean;
|
|
73
73
|
value: string;
|
|
74
|
-
direction: import("./types").CellDirection;
|
|
75
74
|
center: boolean;
|
|
76
|
-
isLink: boolean;
|
|
77
75
|
border: boolean;
|
|
76
|
+
direction: import("./types").CellDirection;
|
|
77
|
+
isLink: boolean;
|
|
78
78
|
required: boolean;
|
|
79
79
|
clickable: boolean | null;
|
|
80
80
|
}, {}>>;
|
|
@@ -23,6 +23,7 @@ module.exports = __toCommonJS(stdin_exports);
|
|
|
23
23
|
var import_vue = require("vue");
|
|
24
24
|
var import_vue2 = require("vue");
|
|
25
25
|
var import_utils = require("../utils");
|
|
26
|
+
var import_use_scope_id = require("../composables/use-scope-id");
|
|
26
27
|
const [name, bem] = (0, import_utils.createNamespace)("cell-group");
|
|
27
28
|
const cellGroupProps = {
|
|
28
29
|
title: String,
|
|
@@ -45,7 +46,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
45
46
|
}), {
|
|
46
47
|
[import_utils.BORDER_TOP_BOTTOM]: props.border && !props.inset
|
|
47
48
|
}]
|
|
48
|
-
}, attrs), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
49
|
+
}, attrs, (0, import_use_scope_id.useScopeId)()), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
49
50
|
};
|
|
50
51
|
const renderTitle = () => (0, import_vue.createVNode)("div", {
|
|
51
52
|
"class": bem("title", {
|
|
@@ -13,8 +13,8 @@ export declare const CellGroup: import("../utils").WithInstall<import("vue").Def
|
|
|
13
13
|
default: true;
|
|
14
14
|
};
|
|
15
15
|
}>>, {
|
|
16
|
-
border: boolean;
|
|
17
16
|
inset: boolean;
|
|
17
|
+
border: boolean;
|
|
18
18
|
}, {}>>;
|
|
19
19
|
export default CellGroup;
|
|
20
20
|
export type { CellGroupProps } from './CellGroup';
|
|
@@ -1,57 +1,70 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
import type { ExtractPropTypes } from 'vue';
|
|
2
3
|
declare const checkboxProps: {
|
|
3
|
-
name:
|
|
4
|
+
name: PropType<unknown>;
|
|
4
5
|
shape: {
|
|
5
|
-
type:
|
|
6
|
+
type: PropType<import("./Checker").CheckerShape>;
|
|
6
7
|
default: import("./Checker").CheckerShape;
|
|
7
8
|
};
|
|
8
9
|
disabled: BooleanConstructor;
|
|
9
10
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
10
|
-
modelValue:
|
|
11
|
+
modelValue: PropType<unknown>;
|
|
11
12
|
checkedColor: StringConstructor;
|
|
12
|
-
labelPosition:
|
|
13
|
+
labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
|
|
13
14
|
labelDisabled: BooleanConstructor;
|
|
14
15
|
} & {
|
|
15
16
|
bindGroup: {
|
|
16
17
|
type: BooleanConstructor;
|
|
17
18
|
default: true;
|
|
18
19
|
};
|
|
20
|
+
indeterminate: {
|
|
21
|
+
type: PropType<boolean | null>;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
19
24
|
};
|
|
20
25
|
export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
|
|
21
26
|
declare const _default: import("vue").DefineComponent<{
|
|
22
|
-
name:
|
|
27
|
+
name: PropType<unknown>;
|
|
23
28
|
shape: {
|
|
24
|
-
type:
|
|
29
|
+
type: PropType<import("./Checker").CheckerShape>;
|
|
25
30
|
default: import("./Checker").CheckerShape;
|
|
26
31
|
};
|
|
27
32
|
disabled: BooleanConstructor;
|
|
28
33
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
29
|
-
modelValue:
|
|
34
|
+
modelValue: PropType<unknown>;
|
|
30
35
|
checkedColor: StringConstructor;
|
|
31
|
-
labelPosition:
|
|
36
|
+
labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
|
|
32
37
|
labelDisabled: BooleanConstructor;
|
|
33
38
|
} & {
|
|
34
39
|
bindGroup: {
|
|
35
40
|
type: BooleanConstructor;
|
|
36
41
|
default: true;
|
|
37
42
|
};
|
|
43
|
+
indeterminate: {
|
|
44
|
+
type: PropType<boolean | null>;
|
|
45
|
+
default: null;
|
|
46
|
+
};
|
|
38
47
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
39
|
-
name:
|
|
48
|
+
name: PropType<unknown>;
|
|
40
49
|
shape: {
|
|
41
|
-
type:
|
|
50
|
+
type: PropType<import("./Checker").CheckerShape>;
|
|
42
51
|
default: import("./Checker").CheckerShape;
|
|
43
52
|
};
|
|
44
53
|
disabled: BooleanConstructor;
|
|
45
54
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
46
|
-
modelValue:
|
|
55
|
+
modelValue: PropType<unknown>;
|
|
47
56
|
checkedColor: StringConstructor;
|
|
48
|
-
labelPosition:
|
|
57
|
+
labelPosition: PropType<import("./Checker").CheckerLabelPosition>;
|
|
49
58
|
labelDisabled: BooleanConstructor;
|
|
50
59
|
} & {
|
|
51
60
|
bindGroup: {
|
|
52
61
|
type: BooleanConstructor;
|
|
53
62
|
default: true;
|
|
54
63
|
};
|
|
64
|
+
indeterminate: {
|
|
65
|
+
type: PropType<boolean | null>;
|
|
66
|
+
default: null;
|
|
67
|
+
};
|
|
55
68
|
}>> & {
|
|
56
69
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
57
70
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -60,5 +73,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
73
|
disabled: boolean;
|
|
61
74
|
labelDisabled: boolean;
|
|
62
75
|
bindGroup: boolean;
|
|
76
|
+
indeterminate: boolean | null;
|
|
63
77
|
}, {}>;
|
|
64
78
|
export default _default;
|
package/lib/checkbox/Checkbox.js
CHANGED
|
@@ -39,7 +39,11 @@ var import_use_expose = require("../composables/use-expose");
|
|
|
39
39
|
var import_Checker = __toESM(require("./Checker"));
|
|
40
40
|
const [name, bem] = (0, import_utils.createNamespace)("checkbox");
|
|
41
41
|
const checkboxProps = (0, import_utils.extend)({}, import_Checker.checkerProps, {
|
|
42
|
-
bindGroup: import_utils.truthProp
|
|
42
|
+
bindGroup: import_utils.truthProp,
|
|
43
|
+
indeterminate: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: null
|
|
46
|
+
}
|
|
43
47
|
});
|
|
44
48
|
var stdin_default = (0, import_vue2.defineComponent)({
|
|
45
49
|
name,
|
|
@@ -90,9 +94,16 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
90
94
|
setParentValue(newValue);
|
|
91
95
|
} else {
|
|
92
96
|
emit("update:modelValue", newValue);
|
|
97
|
+
if (props.indeterminate !== null) {
|
|
98
|
+
emit("change", newValue);
|
|
99
|
+
}
|
|
93
100
|
}
|
|
94
101
|
};
|
|
95
|
-
(0, import_vue2.watch)(() => props.modelValue, (value) =>
|
|
102
|
+
(0, import_vue2.watch)(() => props.modelValue, (value) => {
|
|
103
|
+
if (props.indeterminate === null) {
|
|
104
|
+
emit("change", value);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
96
107
|
(0, import_use_expose.useExpose)({
|
|
97
108
|
toggle,
|
|
98
109
|
props,
|
|
@@ -48,6 +48,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
48
|
type: BooleanConstructor;
|
|
49
49
|
default: true;
|
|
50
50
|
};
|
|
51
|
+
indeterminate: {
|
|
52
|
+
type: PropType<boolean | null>;
|
|
53
|
+
default: null;
|
|
54
|
+
};
|
|
51
55
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "toggle")[], "click" | "toggle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
56
|
name: PropType<unknown>;
|
|
53
57
|
shape: {
|
|
@@ -72,6 +76,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
76
|
type: BooleanConstructor;
|
|
73
77
|
default: true;
|
|
74
78
|
};
|
|
79
|
+
indeterminate: {
|
|
80
|
+
type: PropType<boolean | null>;
|
|
81
|
+
default: null;
|
|
82
|
+
};
|
|
75
83
|
}>> & {
|
|
76
84
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
77
85
|
onToggle?: ((...args: any[]) => any) | undefined;
|
|
@@ -81,5 +89,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
89
|
checked: boolean;
|
|
82
90
|
labelDisabled: boolean;
|
|
83
91
|
bindGroup: boolean;
|
|
92
|
+
indeterminate: boolean | null;
|
|
84
93
|
}, {}>;
|
|
85
94
|
export default _default;
|
package/lib/checkbox/Checker.js
CHANGED
|
@@ -41,7 +41,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
41
41
|
role: String,
|
|
42
42
|
parent: Object,
|
|
43
43
|
checked: Boolean,
|
|
44
|
-
bindGroup: import_utils.truthProp
|
|
44
|
+
bindGroup: import_utils.truthProp,
|
|
45
|
+
indeterminate: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: null
|
|
48
|
+
}
|
|
45
49
|
}),
|
|
46
50
|
emits: ["click", "toggle"],
|
|
47
51
|
setup(props, {
|
|
@@ -80,14 +84,16 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
80
84
|
const {
|
|
81
85
|
bem,
|
|
82
86
|
shape,
|
|
83
|
-
checked
|
|
87
|
+
checked,
|
|
88
|
+
indeterminate
|
|
84
89
|
} = props;
|
|
85
90
|
const iconSize = props.iconSize || getParentProp("iconSize");
|
|
86
91
|
return (0, import_vue.createVNode)("div", {
|
|
87
92
|
"ref": iconRef,
|
|
88
93
|
"class": bem("icon", [shape, {
|
|
89
94
|
disabled: disabled.value,
|
|
90
|
-
checked
|
|
95
|
+
checked,
|
|
96
|
+
indeterminate
|
|
91
97
|
}]),
|
|
92
98
|
"style": {
|
|
93
99
|
fontSize: (0, import_utils.addUnit)(iconSize)
|
|
@@ -95,14 +101,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
95
101
|
}, [slots.icon ? slots.icon({
|
|
96
102
|
checked,
|
|
97
103
|
disabled: disabled.value
|
|
98
|
-
}) : props.role === "radio" ? (0, import_vue.createVNode)(import_icon.Icon, {
|
|
99
|
-
"style": iconStyle.value
|
|
100
|
-
}, {
|
|
101
|
-
default: () => [checked ? (0, import_vue.createVNode)("div", {
|
|
102
|
-
"class": bem("dot")
|
|
103
|
-
}, null) : ""]
|
|
104
104
|
}) : (0, import_vue.createVNode)(import_icon.Icon, {
|
|
105
|
-
"name": "checkbox-select",
|
|
105
|
+
"name": indeterminate ? "minus" : "checkbox-select",
|
|
106
106
|
"style": iconStyle.value
|
|
107
107
|
}, null)]);
|
|
108
108
|
};
|
package/lib/checkbox/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-checkbox-size: 16px;--zt-checkbox-padding: 12px 0;--zt-checkbox-border-color: var(--zt-gray-
|
|
1
|
+
:root{--zt-checkbox-size: 16px;--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-label-font-size: var(--zt-font-size-md);--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-background: var(--zt-border-color);--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-checkbox-size);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-blue);color:var(--zt-white)}.zt-checkbox__label{margin-left:var(--zt-checkbox-label-margin);color:var(--zt-checkbox-label-color);font-size:var(--zt-checkbox-label-font-size)}.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
|
@@ -15,6 +15,10 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
default: true;
|
|
17
17
|
};
|
|
18
|
+
indeterminate: {
|
|
19
|
+
type: import("vue").PropType<boolean | null>;
|
|
20
|
+
default: null;
|
|
21
|
+
};
|
|
18
22
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
23
|
name: import("vue").PropType<unknown>;
|
|
20
24
|
shape: {
|
|
@@ -32,6 +36,10 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
|
32
36
|
type: BooleanConstructor;
|
|
33
37
|
default: true;
|
|
34
38
|
};
|
|
39
|
+
indeterminate: {
|
|
40
|
+
type: import("vue").PropType<boolean | null>;
|
|
41
|
+
default: null;
|
|
42
|
+
};
|
|
35
43
|
}>> & {
|
|
36
44
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
37
45
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -40,6 +48,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
|
40
48
|
disabled: boolean;
|
|
41
49
|
labelDisabled: boolean;
|
|
42
50
|
bindGroup: boolean;
|
|
51
|
+
indeterminate: boolean | null;
|
|
43
52
|
}, {}>>;
|
|
44
53
|
export default Checkbox;
|
|
45
54
|
export type { CheckboxProps } from './Checkbox';
|
|
@@ -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-font-size: var(--zt-font-size-md);--zt-collapse-item-content-line-height: 20px;--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-title-line-height: 24px;--zt-collapse-item-title-font-size: 16px}.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-blue)}.zt-collapse-item__bar--custom{background:var(--zt-white)}.zt-collapse-item__icon{font-size:var(--zt-collapse-item-title-line-height);color:var(--zt-
|
|
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-font-size: var(--zt-font-size-md);--zt-collapse-item-content-line-height: 20px;--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-title-line-height: 24px;--zt-collapse-item-title-font-size: 16px}.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-blue)}.zt-collapse-item__bar--custom{background:var(--zt-white)}.zt-collapse-item__icon{font-size:var(--zt-collapse-item-title-line-height);color:var(--zt-gray-a4);transition:transform var(--zt-collapse-item-duration)}.zt-collapse-item__icon--expanded{color:var(--zt-blue);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-collapse-item-title-font-size);color:var(--zt-text-color);line-height:var(--zt-collapse-item-title-line-height)}.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-collapse-item-content-font-size);line-height:var(--zt-collapse-item-content-line-height);background:var(--zt-collapse-item-content-background)}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var stdin_exports = {};
|
|
19
|
+
__export(stdin_exports, {
|
|
20
|
+
setGlobalZIndex: () => setGlobalZIndex,
|
|
21
|
+
useGlobalZIndex: () => useGlobalZIndex
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
24
|
+
let globalZIndex = 2e3;
|
|
25
|
+
const useGlobalZIndex = () => ++globalZIndex;
|
|
26
|
+
const setGlobalZIndex = (val) => {
|
|
27
|
+
globalZIndex = val;
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var stdin_exports = {};
|
|
19
|
+
__export(stdin_exports, {
|
|
20
|
+
useScopeId: () => useScopeId
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
23
|
+
var import_vue = require("vue");
|
|
24
|
+
const useScopeId = () => {
|
|
25
|
+
var _a;
|
|
26
|
+
const { scopeId } = ((_a = (0, import_vue.getCurrentInstance)()) == null ? void 0 : _a.vnode) || {};
|
|
27
|
+
return scopeId ? { [scopeId]: "" } : null;
|
|
28
|
+
};
|