zartui 3.0.6 → 3.0.7
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/es/button/Button.d.ts +3 -0
- package/es/button/Button.mjs +2 -0
- package/es/button/index.d.ts +2 -0
- package/es/cascader/Cascader.mjs +0 -2
- package/es/cascader/index.css +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.d.ts +2 -2
- package/es/checkbox/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.mjs +3 -1
- package/es/date-time-picker/DateTimePicker.d.ts +1 -1
- package/es/date-time-picker/DateTimePicker.mjs +9 -3
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/es/date-time-picker/index.d.ts +1 -1
- package/es/dialog/index.css +1 -1
- package/es/divider/index.css +1 -1
- package/es/dropdown-item/DropdownItem.mjs +7 -4
- package/es/dropdown-menu/DropdownMenu.mjs +2 -2
- package/es/dropdown-menu/types.d.ts +1 -0
- package/es/empty/Images.mjs +9 -9
- package/es/empty/index.css +1 -1
- package/es/hierarchy-select/Breadcrumb.d.ts +43 -0
- package/es/hierarchy-select/Breadcrumb.mjs +56 -0
- package/es/hierarchy-select/HierarchySelect.d.ts +104 -0
- package/es/hierarchy-select/HierarchySelect.mjs +221 -0
- package/es/hierarchy-select/index.css +1 -0
- package/es/hierarchy-select/index.d.ts +79 -0
- package/es/hierarchy-select/index.mjs +8 -0
- package/es/hierarchy-select/style/index.d.ts +1 -0
- package/es/hierarchy-select/style/index.mjs +8 -0
- package/es/hierarchy-select/svg/SubIcon.d.ts +1 -0
- package/es/hierarchy-select/svg/SubIcon.mjs +33 -0
- package/es/hierarchy-select/types.d.ts +7 -0
- package/es/hierarchy-select/types.mjs +0 -0
- package/es/icon/config.mjs +3 -1
- package/es/icon/index.css +1 -1
- package/es/image-preview/ImagePreview.mjs +1 -1
- package/es/index-anchor/IndexAnchor.d.ts +11 -0
- package/es/index-anchor/IndexAnchor.mjs +88 -0
- package/es/index-anchor/index.css +1 -0
- package/es/index-anchor/index.d.ts +14 -0
- package/es/index-anchor/index.mjs +10 -0
- package/es/index-anchor/style/index.d.ts +1 -0
- package/es/index-anchor/style/index.mjs +3 -0
- package/es/index-anchor/types.d.ts +11 -0
- package/es/index-anchor/types.mjs +0 -0
- package/es/index-bar/IndexBar.d.ts +64 -0
- package/es/index-bar/IndexBar.mjs +275 -0
- package/es/index-bar/index.css +1 -0
- package/es/index-bar/index.d.ts +50 -0
- package/es/index-bar/index.mjs +10 -0
- package/es/index-bar/style/index.d.ts +1 -0
- package/es/index-bar/style/index.mjs +2 -0
- package/es/index-bar/types.d.ts +16 -0
- package/es/index-bar/types.mjs +0 -0
- package/es/index.d.ts +8 -1
- package/es/index.mjs +22 -1
- package/es/lazyload/vue-lazyload/index.mjs +5 -0
- package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
- package/es/lazyload/vue-lazyload/listener.mjs +45 -0
- package/es/list/List.mjs +2 -4
- package/es/list/index.css +1 -1
- package/es/locale/lang/en-US.d.ts +7 -23
- package/es/locale/lang/en-US.mjs +7 -23
- package/es/locale/lang/zh-CN.d.ts +7 -23
- package/es/locale/lang/zh-CN.mjs +7 -23
- package/es/media-picker/MediaPicker.mjs +20 -0
- package/es/media-picker/image/PickFileIcon.mjs +1 -1
- package/es/media-picker/image/PickPhotoIcon.mjs +1 -1
- package/es/media-picker/image/TakeAudioIcon.mjs +1 -1
- package/es/media-picker/image/TakePhotoIcon.mjs +1 -1
- package/es/media-picker/image/TakeVideoIcon.mjs +1 -1
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/util/media-util.mjs +3 -0
- package/es/media-picker/watermark/image-processor.mjs +10 -6
- package/es/media-picker/watermark/resize-options.mjs +1 -0
- package/es/media-picker/watermark/watermark.mjs +4 -0
- package/es/multiple-picker/MultiplePicker.d.ts +4 -4
- package/es/multiple-picker/MultiplePicker.mjs +3 -3
- package/es/multiple-picker/MultiplePickerOptions.d.ts +4 -4
- package/es/multiple-picker/MultiplePickerOptions.mjs +3 -3
- package/es/multiple-picker/index.d.ts +3 -3
- package/es/notice-bar/index.css +1 -1
- package/es/picker/Picker.mjs +7 -4
- package/es/picker/PickerToolbar.mjs +1 -0
- package/es/popover/Popover.d.ts +13 -0
- package/es/popover/Popover.mjs +91 -4
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +9 -0
- package/es/popup/Popup.mjs +1 -0
- package/es/popup/index.css +1 -1
- package/es/popup/shared.mjs +12 -0
- package/es/radio/Radio.d.ts +1 -1
- package/es/radio/index.d.ts +1 -1
- package/es/rate/index.css +1 -1
- package/es/search/Search.d.ts +1 -1
- package/es/search/Search.mjs +1 -0
- package/es/search/index.d.ts +1 -1
- package/es/signature/Signature.mjs +13 -10
- package/es/signature/index.css +1 -1
- package/es/step/Step.mjs +10 -6
- package/es/step/index.css +1 -1
- package/es/stepper/Stepper.mjs +2 -0
- package/es/stepper/index.css +1 -1
- package/es/steps/index.css +1 -1
- package/es/sticky/Sticky.mjs +2 -0
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/swipe/Swipe.d.ts +3 -1
- package/es/swipe/Swipe.mjs +19 -2
- package/es/swipe/index.d.ts +3 -1
- package/es/swipe-cell/SwipeCell.d.ts +44 -0
- package/es/swipe-cell/SwipeCell.mjs +163 -0
- package/es/swipe-cell/index.css +1 -0
- package/es/swipe-cell/index.d.ts +39 -0
- package/es/swipe-cell/index.mjs +10 -0
- package/es/swipe-cell/style/index.d.ts +1 -0
- package/es/swipe-cell/style/index.mjs +2 -0
- package/es/swipe-cell/types.d.ts +9 -0
- package/es/swipe-cell/types.mjs +0 -0
- package/es/switch/index.css +1 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/table/Table.d.ts +113 -0
- package/es/table/Table.mjs +118 -0
- package/es/table/index.css +1 -0
- package/es/table/index.d.ts +75 -0
- package/es/table/index.mjs +10 -0
- package/es/table/style/index.d.ts +1 -0
- package/es/table/style/index.mjs +2 -0
- package/es/tabs/Tabs.mjs +2 -0
- package/es/tabs/index.css +1 -1
- package/es/tag/Tag.d.ts +18 -1
- package/es/tag/Tag.mjs +47 -2
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +13 -1
- package/es/text-ellipsis/TextEllipsis.d.ts +76 -0
- package/es/text-ellipsis/TextEllipsis.mjs +118 -0
- package/es/text-ellipsis/index.css +1 -0
- package/es/text-ellipsis/index.d.ts +60 -0
- package/es/text-ellipsis/index.mjs +10 -0
- package/es/text-ellipsis/style/index.d.ts +1 -0
- package/es/text-ellipsis/style/index.mjs +2 -0
- package/es/text-ellipsis/types.d.ts +3 -0
- package/es/text-ellipsis/types.mjs +0 -0
- package/es/timeline/Timeline.d.ts +113 -0
- package/es/timeline/Timeline.mjs +162 -0
- package/es/timeline/index.css +1 -0
- package/es/timeline/index.d.ts +75 -0
- package/es/timeline/index.mjs +10 -0
- package/es/timeline/style/index.d.ts +1 -0
- package/es/timeline/style/index.mjs +4 -0
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/uploader/utils.mjs +1 -1
- package/es/utils/dom.d.ts +1 -0
- package/es/utils/dom.mjs +11 -0
- package/lib/action-sheet/index.js +4 -0
- package/lib/avatar/Avatar.js +4 -0
- package/lib/avatar/index.js +4 -0
- package/lib/badge/index.js +4 -0
- package/lib/button/Button.d.ts +3 -0
- package/lib/button/Button.js +2 -0
- package/lib/button/index.d.ts +2 -0
- package/lib/button/index.js +4 -0
- package/lib/calendar/Calendar.js +4 -0
- package/lib/calendar/CalendarMonth.js +4 -0
- package/lib/calendar/index.js +4 -0
- package/lib/cascader/Cascader.js +4 -2
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.js +4 -0
- package/lib/cell/index.js +4 -0
- package/lib/cell-group/index.js +4 -0
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checkbox.js +4 -0
- package/lib/checkbox/Checker.d.ts +2 -2
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +4 -0
- package/lib/checkbox-group/index.js +4 -0
- package/lib/col/index.js +4 -0
- package/lib/collapse/index.js +4 -0
- package/lib/collapse-item/CollapseItem.js +7 -1
- package/lib/collapse-item/index.js +4 -0
- package/lib/config-provider/index.js +4 -0
- package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
- package/lib/date-time-picker/DateTimePicker.js +13 -3
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/lib/date-time-picker/DateTimePickerWrapper.js +4 -0
- package/lib/date-time-picker/index.d.ts +1 -1
- package/lib/date-time-picker/index.js +4 -0
- package/lib/dialog/function-call.js +4 -0
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.js +4 -0
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.js +4 -0
- package/lib/dropdown-item/DropdownItem.js +6 -3
- package/lib/dropdown-item/index.js +4 -0
- package/lib/dropdown-menu/DropdownMenu.js +6 -2
- package/lib/dropdown-menu/index.js +4 -0
- package/lib/dropdown-menu/types.d.ts +1 -0
- package/lib/empty/Images.js +9 -9
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.js +4 -0
- package/lib/field/index.js +4 -0
- package/lib/form/index.js +4 -0
- package/lib/grid/index.js +4 -0
- package/lib/grid-item/index.js +4 -0
- package/lib/hierarchy-select/Breadcrumb.d.ts +43 -0
- package/lib/hierarchy-select/Breadcrumb.js +85 -0
- package/lib/hierarchy-select/HierarchySelect.d.ts +104 -0
- package/lib/hierarchy-select/HierarchySelect.js +250 -0
- package/lib/hierarchy-select/index.css +1 -0
- package/lib/hierarchy-select/index.d.ts +79 -0
- package/lib/hierarchy-select/index.js +37 -0
- package/lib/hierarchy-select/style/index.d.ts +1 -0
- package/lib/hierarchy-select/style/index.js +8 -0
- package/lib/hierarchy-select/svg/SubIcon.d.ts +1 -0
- package/lib/hierarchy-select/svg/SubIcon.js +52 -0
- package/lib/hierarchy-select/types.d.ts +7 -0
- package/lib/hierarchy-select/types.js +15 -0
- package/lib/icon/config.js +3 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +4 -0
- package/lib/image/index.js +4 -0
- package/lib/image-preview/ImagePreview.js +5 -1
- package/lib/image-preview/function-call.js +4 -0
- package/lib/image-preview/index.js +4 -0
- package/lib/index-anchor/IndexAnchor.d.ts +11 -0
- package/lib/index-anchor/IndexAnchor.js +107 -0
- package/lib/index-anchor/index.css +1 -0
- package/lib/index-anchor/index.d.ts +14 -0
- package/lib/index-anchor/index.js +39 -0
- package/lib/index-anchor/style/index.d.ts +1 -0
- package/lib/index-anchor/style/index.js +3 -0
- package/lib/index-anchor/types.d.ts +11 -0
- package/lib/index-anchor/types.js +15 -0
- package/lib/index-bar/IndexBar.d.ts +64 -0
- package/lib/index-bar/IndexBar.js +294 -0
- package/lib/index-bar/index.css +1 -0
- package/lib/index-bar/index.d.ts +50 -0
- package/lib/index-bar/index.js +39 -0
- package/lib/index-bar/style/index.d.ts +1 -0
- package/lib/index-bar/style/index.js +2 -0
- package/lib/index-bar/types.d.ts +16 -0
- package/lib/index-bar/types.js +15 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.js +22 -1
- package/lib/lazyload/vue-lazyload/index.js +9 -0
- package/lib/lazyload/vue-lazyload/lazy.js +85 -0
- package/lib/lazyload/vue-lazyload/listener.js +45 -0
- package/lib/list/List.js +2 -4
- package/lib/list/index.css +1 -1
- package/lib/list/index.js +4 -0
- package/lib/loading/index.js +4 -0
- package/lib/locale/index.js +4 -0
- package/lib/locale/lang/en-US.d.ts +7 -23
- package/lib/locale/lang/en-US.js +7 -23
- package/lib/locale/lang/zh-CN.d.ts +7 -23
- package/lib/locale/lang/zh-CN.js +7 -23
- package/lib/media-picker/MediaPicker.js +24 -0
- package/lib/media-picker/image/PickFileIcon.js +1 -1
- package/lib/media-picker/image/PickPhotoIcon.js +1 -1
- package/lib/media-picker/image/TakeAudioIcon.js +1 -1
- package/lib/media-picker/image/TakePhotoIcon.js +1 -1
- package/lib/media-picker/image/TakeVideoIcon.js +1 -1
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.js +4 -0
- package/lib/media-picker/util/media-util.js +3 -0
- package/lib/media-picker/watermark/image-processor.js +10 -6
- package/lib/media-picker/watermark/resize-options.js +1 -0
- package/lib/media-picker/watermark/watermark.js +4 -0
- package/lib/media-player/MediaPlayer.js +4 -0
- package/lib/media-player/index.js +4 -0
- package/lib/multiple-picker/MultiplePicker.d.ts +4 -4
- package/lib/multiple-picker/MultiplePicker.js +7 -3
- package/lib/multiple-picker/MultiplePickerOptions.d.ts +4 -4
- package/lib/multiple-picker/MultiplePickerOptions.js +3 -3
- package/lib/multiple-picker/index.d.ts +3 -3
- package/lib/multiple-picker/index.js +4 -0
- package/lib/nav-bar/index.js +4 -0
- package/lib/notice-bar/NoticeBar.js +4 -0
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.js +4 -0
- package/lib/notify/function-call.js +4 -0
- package/lib/notify/index.js +4 -0
- package/lib/number-keyboard/NumberKeyboard.js +4 -0
- package/lib/number-keyboard/NumberKeyboardKey.js +4 -0
- package/lib/number-keyboard/index.js +4 -0
- package/lib/overlay/index.js +4 -0
- package/lib/password-input/index.js +4 -0
- package/lib/picker/Picker.js +10 -3
- package/lib/picker/PickerToolbar.js +1 -0
- package/lib/picker/index.js +4 -0
- package/lib/popover/Popover.d.ts +13 -0
- package/lib/popover/Popover.js +90 -3
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +9 -0
- package/lib/popover/index.js +4 -0
- package/lib/popup/Popup.js +1 -0
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +4 -0
- package/lib/popup/shared.js +12 -0
- package/lib/pull-refresh/index.js +4 -0
- package/lib/radio/Radio.d.ts +1 -1
- package/lib/radio/Radio.js +4 -0
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio/index.js +4 -0
- package/lib/radio-group/index.js +4 -0
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.js +4 -0
- package/lib/row/index.js +4 -0
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/Search.js +1 -0
- package/lib/search/index.d.ts +1 -1
- package/lib/search/index.js +4 -0
- package/lib/signature/Signature.js +16 -9
- package/lib/signature/index.css +1 -1
- package/lib/signature/index.js +4 -0
- package/lib/skeleton/index.js +4 -0
- package/lib/step/Step.js +10 -6
- package/lib/step/index.css +1 -1
- package/lib/step/index.js +4 -0
- package/lib/stepper/Stepper.js +6 -0
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.js +4 -0
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.js +4 -0
- package/lib/sticky/Sticky.js +2 -0
- package/lib/sticky/index.js +4 -0
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/swipe/Swipe.d.ts +3 -1
- package/lib/swipe/Swipe.js +19 -2
- package/lib/swipe/index.d.ts +3 -1
- package/lib/swipe/index.js +4 -0
- package/lib/swipe-cell/SwipeCell.d.ts +44 -0
- package/lib/swipe-cell/SwipeCell.js +182 -0
- package/lib/swipe-cell/index.css +1 -0
- package/lib/swipe-cell/index.d.ts +39 -0
- package/lib/swipe-cell/index.js +39 -0
- package/lib/swipe-cell/style/index.d.ts +1 -0
- package/lib/swipe-cell/style/index.js +2 -0
- package/lib/swipe-cell/types.d.ts +9 -0
- package/lib/swipe-cell/types.js +15 -0
- package/lib/swipe-item/index.js +4 -0
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.js +4 -0
- package/lib/tab/index.js +4 -0
- package/lib/tabbar/index.js +4 -0
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.js +4 -0
- package/lib/table/Table.d.ts +113 -0
- package/lib/table/Table.js +137 -0
- package/lib/table/index.css +1 -0
- package/lib/table/index.d.ts +75 -0
- package/lib/table/index.js +39 -0
- package/lib/table/style/index.d.ts +1 -0
- package/lib/table/style/index.js +2 -0
- package/lib/tabs/Tabs.js +6 -0
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.js +4 -0
- package/lib/tag/Tag.d.ts +18 -1
- package/lib/tag/Tag.js +47 -2
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +13 -1
- package/lib/tag/index.js +4 -0
- package/lib/text-ellipsis/TextEllipsis.d.ts +76 -0
- package/lib/text-ellipsis/TextEllipsis.js +137 -0
- package/lib/text-ellipsis/index.css +1 -0
- package/lib/text-ellipsis/index.d.ts +60 -0
- package/lib/text-ellipsis/index.js +39 -0
- package/lib/text-ellipsis/style/index.d.ts +1 -0
- package/lib/text-ellipsis/style/index.js +2 -0
- package/lib/text-ellipsis/types.d.ts +3 -0
- package/lib/text-ellipsis/types.js +15 -0
- package/lib/time-picker/TimePicker.js +4 -0
- package/lib/time-picker/TimePickerColumn.js +4 -0
- package/lib/time-picker/index.js +4 -0
- package/lib/timeline/Timeline.d.ts +113 -0
- package/lib/timeline/Timeline.js +191 -0
- package/lib/timeline/index.css +1 -0
- package/lib/timeline/index.d.ts +75 -0
- package/lib/timeline/index.js +39 -0
- package/lib/timeline/style/index.d.ts +1 -0
- package/lib/timeline/style/index.js +4 -0
- package/lib/toast/function-call.js +4 -0
- package/lib/toast/index.js +4 -0
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/Uploader.js +4 -0
- package/lib/uploader/index.d.ts +1 -1
- package/lib/uploader/index.js +4 -0
- package/lib/uploader/utils.js +1 -1
- package/lib/utils/create.js +4 -0
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/dom.js +11 -0
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +2619 -1019
- package/lib/zartui.es.js +2671 -1071
- package/lib/zartui.js +3354 -1218
- package/lib/zartui.min.js +1 -1
- package/package.json +14 -13
package/lib/empty/Images.js
CHANGED
|
@@ -116,7 +116,7 @@ const renderNotFound = () => (0, import_vue.createVNode)("svg", {
|
|
|
116
116
|
"fill": "none",
|
|
117
117
|
"fill-rule": "evenodd"
|
|
118
118
|
}, [(0, import_vue.createVNode)("path", {
|
|
119
|
-
"fill": "
|
|
119
|
+
"fill": "currentColor",
|
|
120
120
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z",
|
|
121
121
|
"transform": "translate(20 20)"
|
|
122
122
|
}, null), (0, import_vue.createVNode)("path", {
|
|
@@ -239,7 +239,7 @@ const renderServerError = () => (0, import_vue.createVNode)("svg", {
|
|
|
239
239
|
"fill": "none",
|
|
240
240
|
"fill-rule": "evenodd"
|
|
241
241
|
}, [(0, import_vue.createVNode)("path", {
|
|
242
|
-
"fill": "
|
|
242
|
+
"fill": "currentColor",
|
|
243
243
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z",
|
|
244
244
|
"transform": "translate(20 20)"
|
|
245
245
|
}, null), (0, import_vue.createVNode)("path", {
|
|
@@ -330,7 +330,7 @@ const renderAccessRestricted = () => (0, import_vue.createVNode)("svg", {
|
|
|
330
330
|
"fill": "none",
|
|
331
331
|
"fill-rule": "evenodd"
|
|
332
332
|
}, [(0, import_vue.createVNode)("path", {
|
|
333
|
-
"fill": "
|
|
333
|
+
"fill": "currentColor",
|
|
334
334
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
335
335
|
}, null), (0, import_vue.createVNode)("path", {
|
|
336
336
|
"d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
|
|
@@ -461,7 +461,7 @@ const renderDeveloping = () => (0, import_vue.createVNode)("svg", {
|
|
|
461
461
|
"fill": "none",
|
|
462
462
|
"fill-rule": "evenodd"
|
|
463
463
|
}, [(0, import_vue.createVNode)("path", {
|
|
464
|
-
"fill": "
|
|
464
|
+
"fill": "currentColor",
|
|
465
465
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z",
|
|
466
466
|
"transform": "translate(20 20)"
|
|
467
467
|
}, null), (0, import_vue.createVNode)("path", {
|
|
@@ -560,7 +560,7 @@ const renderNetworkError = () => (0, import_vue.createVNode)("svg", {
|
|
|
560
560
|
"fill": "none",
|
|
561
561
|
"fill-rule": "evenodd"
|
|
562
562
|
}, [(0, import_vue.createVNode)("path", {
|
|
563
|
-
"fill": "
|
|
563
|
+
"fill": "currentColor",
|
|
564
564
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
565
565
|
}, null), (0, import_vue.createVNode)("path", {
|
|
566
566
|
"d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
|
|
@@ -646,7 +646,7 @@ const renderEmptyResult = () => (0, import_vue.createVNode)("svg", {
|
|
|
646
646
|
"fill": "none",
|
|
647
647
|
"fill-rule": "evenodd"
|
|
648
648
|
}, [(0, import_vue.createVNode)("path", {
|
|
649
|
-
"fill": "
|
|
649
|
+
"fill": "currentColor",
|
|
650
650
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
651
651
|
}, null), (0, import_vue.createVNode)("path", {
|
|
652
652
|
"d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
|
|
@@ -732,7 +732,7 @@ const renderFindNull = () => (0, import_vue.createVNode)("svg", {
|
|
|
732
732
|
"fill": "none",
|
|
733
733
|
"fill-rule": "evenodd"
|
|
734
734
|
}, [(0, import_vue.createVNode)("path", {
|
|
735
|
-
"fill": "
|
|
735
|
+
"fill": "currentColor",
|
|
736
736
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
737
737
|
}, null), (0, import_vue.createVNode)("path", {
|
|
738
738
|
"d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
|
|
@@ -818,7 +818,7 @@ const renderEmptyInterface = () => (0, import_vue.createVNode)("svg", {
|
|
|
818
818
|
"fill": "none",
|
|
819
819
|
"fill-rule": "evenodd"
|
|
820
820
|
}, [(0, import_vue.createVNode)("path", {
|
|
821
|
-
"fill": "
|
|
821
|
+
"fill": "currentColor",
|
|
822
822
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
823
823
|
}, null), (0, import_vue.createVNode)("path", {
|
|
824
824
|
"d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
|
|
@@ -925,7 +925,7 @@ const renderReportSuccess = () => (0, import_vue.createVNode)("svg", {
|
|
|
925
925
|
"fill": "none",
|
|
926
926
|
"fill-rule": "evenodd"
|
|
927
927
|
}, [(0, import_vue.createVNode)("path", {
|
|
928
|
-
"fill": "
|
|
928
|
+
"fill": "currentColor",
|
|
929
929
|
"d": "M80 0A80 80 0 1 0 80 160A80 80 0 1 0 80 0Z"
|
|
930
930
|
}, null), (0, import_vue.createVNode)("path", {
|
|
931
931
|
"d": "M88,80 L114,80 C118.418278,80 122,83.581722 122,88 L122,107 C122,118.59798 112.59798,128 101,128 L88,128 C83.581722,128 80,124.418278 80,120 L80,88 C80,83.581722 83.581722,80 88,80 Z",
|
package/lib/empty/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-empty-image-width: 200px;--zt-empty-image-height: 200px;--zt-empty-description-padding: 8px 64px 16px;--zt-empty-description-color: var(--zt-gray-a6);--zt-empty-description-font-size: var(--zt-font-size-md);--zt-empty-description-line-height: var(--zt-line-height-md);--zt-empty-bottom-margin-top: 32px}.zt-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}.zt-empty__image{width:var(--zt-empty-image-width);height:var(--zt-empty-image-height)}.zt-empty__image img{width:100%;height:100%}.zt-empty__description{text-align:center;padding:var(--zt-empty-description-padding);color:var(--zt-empty-description-color);font-size:var(--zt-empty-description-font-size);line-height:var(--zt-empty-description-line-height)}.zt-empty__bottom{margin-top:var(--zt-empty-bottom-margin-top);width:100%}
|
|
1
|
+
:root{--zt-empty-image-width: 200px;--zt-empty-image-height: 200px;--zt-empty-image-background-color: #e6f5ff;--zt-empty-description-padding: 8px 64px 16px;--zt-empty-description-color: var(--zt-gray-a6);--zt-empty-description-font-size: var(--zt-font-size-md);--zt-empty-description-line-height: var(--zt-line-height-md);--zt-empty-bottom-margin-top: 32px}.zt-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}.zt-empty__image{width:var(--zt-empty-image-width);height:var(--zt-empty-image-height);color:var(--zt-empty-image-background-color)}.zt-empty__image img{width:100%;height:100%}.zt-empty__description{text-align:center;padding:var(--zt-empty-description-padding);color:var(--zt-empty-description-color);font-size:var(--zt-empty-description-font-size);line-height:var(--zt-empty-description-line-height)}.zt-empty__bottom{margin-top:var(--zt-empty-bottom-margin-top);width:100%}.zt-theme-dark{--zt-empty-image-background-color: #1e3347}
|
package/lib/empty/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
package/lib/field/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
package/lib/form/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
package/lib/grid/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
package/lib/grid-item/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
data: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
valueKey: {
|
|
7
|
+
type: import("vue").PropType<string>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
textKey: {
|
|
11
|
+
type: import("vue").PropType<string>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
breadcrumbTitle: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "chooseSenior"[], "chooseSenior", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
data: {
|
|
20
|
+
type: ArrayConstructor;
|
|
21
|
+
default: () => never[];
|
|
22
|
+
};
|
|
23
|
+
valueKey: {
|
|
24
|
+
type: import("vue").PropType<string>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
textKey: {
|
|
28
|
+
type: import("vue").PropType<string>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
breadcrumbTitle: {
|
|
32
|
+
type: import("vue").PropType<string>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}>> & {
|
|
36
|
+
onChooseSenior?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
data: unknown[];
|
|
39
|
+
valueKey: string;
|
|
40
|
+
textKey: string;
|
|
41
|
+
breadcrumbTitle: string;
|
|
42
|
+
}>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name2 in all)
|
|
9
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var stdin_exports = {};
|
|
29
|
+
__export(stdin_exports, {
|
|
30
|
+
default: () => stdin_default
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
33
|
+
var import_vue = require("vue");
|
|
34
|
+
var import_vue2 = require("vue");
|
|
35
|
+
var import_utils = require("../utils");
|
|
36
|
+
var import_icon = __toESM(require("../icon"));
|
|
37
|
+
const [name, bem] = (0, import_utils.createNamespace)("breadcrumb");
|
|
38
|
+
const BreadcrumbProps = {
|
|
39
|
+
data: {
|
|
40
|
+
type: Array,
|
|
41
|
+
default: () => []
|
|
42
|
+
},
|
|
43
|
+
valueKey: (0, import_utils.makeStringProp)("id"),
|
|
44
|
+
textKey: (0, import_utils.makeStringProp)("name"),
|
|
45
|
+
breadcrumbTitle: (0, import_utils.makeStringProp)("\u5168\u90E8")
|
|
46
|
+
};
|
|
47
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
|
48
|
+
name,
|
|
49
|
+
props: BreadcrumbProps,
|
|
50
|
+
emits: ["chooseSenior"],
|
|
51
|
+
setup(props, {
|
|
52
|
+
emit
|
|
53
|
+
}) {
|
|
54
|
+
const chooseSenior = (index) => {
|
|
55
|
+
if (props.data.length === index + 1) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
emit("chooseSenior", index);
|
|
59
|
+
};
|
|
60
|
+
return () => (0, import_vue.createVNode)("section", {
|
|
61
|
+
"class": bem()
|
|
62
|
+
}, [(0, import_vue.createVNode)("div", {
|
|
63
|
+
"class": bem("list")
|
|
64
|
+
}, [(0, import_vue.createVNode)("div", {
|
|
65
|
+
"class": bem("default"),
|
|
66
|
+
"onClick": () => {
|
|
67
|
+
chooseSenior(-1);
|
|
68
|
+
}
|
|
69
|
+
}, [props.breadcrumbTitle]), props.data.map((item, index) => (0, import_vue.createVNode)("div", {
|
|
70
|
+
"class": bem("item")
|
|
71
|
+
}, [(0, import_vue.createVNode)(import_icon.default, {
|
|
72
|
+
"class": bem("icon"),
|
|
73
|
+
"name": "arrow-right",
|
|
74
|
+
"color": "#C6CED9"
|
|
75
|
+
}, null), (0, import_vue.createVNode)("span", {
|
|
76
|
+
"class": bem("name"),
|
|
77
|
+
"style": {
|
|
78
|
+
color: index === props.data.length - 1 ? "" : "#0091fa"
|
|
79
|
+
},
|
|
80
|
+
"onClick": () => {
|
|
81
|
+
chooseSenior(index);
|
|
82
|
+
}
|
|
83
|
+
}, [item[props.textKey]])]))])]);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const hierarchySelectProps: {
|
|
3
|
+
treeData: {
|
|
4
|
+
type: ArrayConstructor;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
disableParent: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
multiple: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
asyncGetter: {
|
|
16
|
+
type: FunctionConstructor;
|
|
17
|
+
};
|
|
18
|
+
valueKey: {
|
|
19
|
+
type: import("vue").PropType<string>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
textKey: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
breadcrumbTitle: {
|
|
27
|
+
type: import("vue").PropType<string>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
autoChangeToChildren: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
export declare type HierarchySelectProps = ExtractPropTypes<typeof hierarchySelectProps>;
|
|
33
|
+
declare const _default: import("vue").DefineComponent<{
|
|
34
|
+
treeData: {
|
|
35
|
+
type: ArrayConstructor;
|
|
36
|
+
default: () => never[];
|
|
37
|
+
};
|
|
38
|
+
disableParent: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
multiple: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
asyncGetter: {
|
|
47
|
+
type: FunctionConstructor;
|
|
48
|
+
};
|
|
49
|
+
valueKey: {
|
|
50
|
+
type: import("vue").PropType<string>;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
textKey: {
|
|
54
|
+
type: import("vue").PropType<string>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
breadcrumbTitle: {
|
|
58
|
+
type: import("vue").PropType<string>;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
autoChangeToChildren: BooleanConstructor;
|
|
62
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "selected" | "asyncGetter")[], "selected" | "change" | "asyncGetter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
63
|
+
treeData: {
|
|
64
|
+
type: ArrayConstructor;
|
|
65
|
+
default: () => never[];
|
|
66
|
+
};
|
|
67
|
+
disableParent: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
multiple: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
asyncGetter: {
|
|
76
|
+
type: FunctionConstructor;
|
|
77
|
+
};
|
|
78
|
+
valueKey: {
|
|
79
|
+
type: import("vue").PropType<string>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
textKey: {
|
|
83
|
+
type: import("vue").PropType<string>;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
breadcrumbTitle: {
|
|
87
|
+
type: import("vue").PropType<string>;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
autoChangeToChildren: BooleanConstructor;
|
|
91
|
+
}>> & {
|
|
92
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
93
|
+
onSelected?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
onAsyncGetter?: ((...args: any[]) => any) | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
multiple: boolean;
|
|
97
|
+
valueKey: string;
|
|
98
|
+
textKey: string;
|
|
99
|
+
breadcrumbTitle: string;
|
|
100
|
+
treeData: unknown[];
|
|
101
|
+
disableParent: boolean;
|
|
102
|
+
autoChangeToChildren: boolean;
|
|
103
|
+
}>;
|
|
104
|
+
export default _default;
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name2 in all)
|
|
9
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var stdin_exports = {};
|
|
29
|
+
__export(stdin_exports, {
|
|
30
|
+
default: () => stdin_default
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
33
|
+
var import_vue = require("vue");
|
|
34
|
+
var import_vue2 = require("vue");
|
|
35
|
+
var import_utils = require("../utils");
|
|
36
|
+
var import_deep_clone = require("../utils/deep-clone");
|
|
37
|
+
var import_SubIcon = require("./svg/SubIcon");
|
|
38
|
+
var import_icon = __toESM(require("../icon"));
|
|
39
|
+
var import_toast = require("../toast");
|
|
40
|
+
var import_Breadcrumb = __toESM(require("./Breadcrumb"));
|
|
41
|
+
const [name, bem] = (0, import_utils.createNamespace)("hierarchy-select");
|
|
42
|
+
const hierarchySelectProps = {
|
|
43
|
+
treeData: {
|
|
44
|
+
type: Array,
|
|
45
|
+
default: () => []
|
|
46
|
+
},
|
|
47
|
+
disableParent: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
},
|
|
51
|
+
multiple: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false
|
|
54
|
+
},
|
|
55
|
+
asyncGetter: {
|
|
56
|
+
type: Function
|
|
57
|
+
},
|
|
58
|
+
valueKey: (0, import_utils.makeStringProp)("id"),
|
|
59
|
+
textKey: (0, import_utils.makeStringProp)("name"),
|
|
60
|
+
breadcrumbTitle: (0, import_utils.makeStringProp)("\u5168\u90E8"),
|
|
61
|
+
autoChangeToChildren: Boolean
|
|
62
|
+
};
|
|
63
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
|
64
|
+
name,
|
|
65
|
+
props: hierarchySelectProps,
|
|
66
|
+
emits: ["asyncGetter", "selected", "change"],
|
|
67
|
+
setup(props, {
|
|
68
|
+
emit
|
|
69
|
+
}) {
|
|
70
|
+
const checkedList = (0, import_vue2.ref)([]);
|
|
71
|
+
const choosedValue = (0, import_vue2.ref)();
|
|
72
|
+
const dataList = (0, import_vue2.ref)((0, import_deep_clone.deepClone)(props.treeData));
|
|
73
|
+
const breadcrumbData = (0, import_vue2.ref)([]);
|
|
74
|
+
const historyLayers = (0, import_vue2.ref)([]);
|
|
75
|
+
const isDisabled = (item) => {
|
|
76
|
+
if (!props.autoChangeToChildren && props.disableParent && item.children) {
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
if (props.asyncGetter && props.disableParent && item.children) {
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
if (!props.asyncGetter && props.disableParent && item.children && item.children.length) {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const uncheckedChildren = (array) => {
|
|
87
|
+
const unchecked = (list) => {
|
|
88
|
+
const len = checkedList.value.length;
|
|
89
|
+
for (let index = len - 1; index > -1; index--) {
|
|
90
|
+
list.forEach((v) => {
|
|
91
|
+
if (checkedList.value[index][props.valueKey] === v[props.valueKey]) {
|
|
92
|
+
checkedList.value.splice(index, 1);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
list.forEach((v) => {
|
|
97
|
+
if (v && v.children && v.children.length) {
|
|
98
|
+
unchecked(v.children);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
unchecked(array);
|
|
103
|
+
};
|
|
104
|
+
const multipleClicked = (item) => {
|
|
105
|
+
if (isDisabled(item)) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
item = (0, import_deep_clone.deepClone)(item);
|
|
109
|
+
if (checkedList.value && checkedList.value.length) {
|
|
110
|
+
let existed = false;
|
|
111
|
+
checkedList.value.forEach((v, i) => {
|
|
112
|
+
if (item[props.valueKey] === v[props.valueKey]) {
|
|
113
|
+
existed = true;
|
|
114
|
+
checkedList.value.splice(i, 1);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
if (!existed) {
|
|
118
|
+
if (item.children && item.children.length) {
|
|
119
|
+
uncheckedChildren(item.children);
|
|
120
|
+
}
|
|
121
|
+
delete item.children;
|
|
122
|
+
checkedList.value.push(item);
|
|
123
|
+
}
|
|
124
|
+
} else {
|
|
125
|
+
checkedList.value = [];
|
|
126
|
+
delete item.children;
|
|
127
|
+
checkedList.value.push(item);
|
|
128
|
+
}
|
|
129
|
+
emit("change", checkedList.value);
|
|
130
|
+
};
|
|
131
|
+
const selected = (item) => {
|
|
132
|
+
if (isDisabled(item) || item.disabled) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (props.multiple) {
|
|
136
|
+
multipleClicked(item);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
choosedValue.value = item[props.valueKey];
|
|
140
|
+
emit("selected", item);
|
|
141
|
+
};
|
|
142
|
+
const getChecked = (item) => {
|
|
143
|
+
if (checkedList.value && checkedList.value.length && checkedList.value.map((v) => v[props.valueKey]).indexOf(item[props.valueKey]) > -1) {
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
return false;
|
|
147
|
+
};
|
|
148
|
+
const toNextLevel = (item, index) => {
|
|
149
|
+
if (item.disabled) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (getChecked(item)) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
if (item.children && item.children.length) {
|
|
156
|
+
breadcrumbData.value.push(item);
|
|
157
|
+
historyLayers.value.push(dataList.value);
|
|
158
|
+
dataList.value = item.children;
|
|
159
|
+
} else if (props.asyncGetter) {
|
|
160
|
+
props.asyncGetter(item).then((list) => {
|
|
161
|
+
if (!list || list.length === 0) {
|
|
162
|
+
(0, import_toast.showToast)("\u65E0\u4E0B\u7EA7\u6570\u636E");
|
|
163
|
+
dataList.value[index].children = props.autoChangeToChildren ? void 0 : [];
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
historyLayers.value.push(dataList.value);
|
|
167
|
+
breadcrumbData.value.push(item);
|
|
168
|
+
dataList.value = list;
|
|
169
|
+
});
|
|
170
|
+
} else {
|
|
171
|
+
(0, import_toast.showToast)("\u65E0\u4E0B\u7EA7\u6570\u636E");
|
|
172
|
+
}
|
|
173
|
+
(0, import_vue2.nextTick)(() => {
|
|
174
|
+
var _a;
|
|
175
|
+
(_a = document.querySelector(".zt-breadcrumb__item:last-child")) == null ? void 0 : _a.scrollIntoViewIfNeeded();
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
const getMultipleDom = (item) => {
|
|
179
|
+
if (item.disabled || isDisabled(item)) {
|
|
180
|
+
return (0, import_vue.createVNode)("span", {
|
|
181
|
+
"class": bem("icon", {
|
|
182
|
+
disabled: true,
|
|
183
|
+
round: true
|
|
184
|
+
})
|
|
185
|
+
}, [(0, import_vue.createVNode)(import_icon.default, {
|
|
186
|
+
"name": "checkbox-select"
|
|
187
|
+
}, null)]);
|
|
188
|
+
}
|
|
189
|
+
return getChecked(item) ? (0, import_vue.createVNode)("span", {
|
|
190
|
+
"class": bem("icon", {
|
|
191
|
+
checked: true,
|
|
192
|
+
round: true
|
|
193
|
+
})
|
|
194
|
+
}, [(0, import_vue.createVNode)(import_icon.default, {
|
|
195
|
+
"name": "checkbox-select"
|
|
196
|
+
}, null)]) : (0, import_vue.createVNode)("span", {
|
|
197
|
+
"class": bem("icon", {
|
|
198
|
+
round: true
|
|
199
|
+
})
|
|
200
|
+
}, [(0, import_vue.createVNode)(import_icon.default, {
|
|
201
|
+
"name": "check-blank-r",
|
|
202
|
+
"class": bem("uncheck-icon")
|
|
203
|
+
}, null)]);
|
|
204
|
+
};
|
|
205
|
+
const showSub = (item) => {
|
|
206
|
+
var _a;
|
|
207
|
+
if (!props.autoChangeToChildren) {
|
|
208
|
+
return item && (item == null ? void 0 : item.children);
|
|
209
|
+
}
|
|
210
|
+
return props.asyncGetter && (item == null ? void 0 : item.children) || !props.asyncGetter && ((_a = item == null ? void 0 : item.children) == null ? void 0 : _a.length);
|
|
211
|
+
};
|
|
212
|
+
const chooseSenior = (index) => {
|
|
213
|
+
breadcrumbData.value.splice(index + 1);
|
|
214
|
+
dataList.value = historyLayers.value[index + 1];
|
|
215
|
+
historyLayers.value.splice(index + 1);
|
|
216
|
+
};
|
|
217
|
+
return () => (0, import_vue.createVNode)("div", {
|
|
218
|
+
"class": bem()
|
|
219
|
+
}, [(0, import_vue.createVNode)(import_Breadcrumb.default, {
|
|
220
|
+
"data": breadcrumbData.value,
|
|
221
|
+
"valueKey": props.valueKey,
|
|
222
|
+
"textKey": props.textKey,
|
|
223
|
+
"onChooseSenior": chooseSenior,
|
|
224
|
+
"breadcrumbTitle": props.breadcrumbTitle
|
|
225
|
+
}, null), dataList.value.map((item, index) => (0, import_vue.createVNode)("div", {
|
|
226
|
+
"class": [bem("score-item"), isDisabled(item) ? bem("disable-parent") : "", item.disabled ? bem("disable") : ""]
|
|
227
|
+
}, [props.multiple && (0, import_vue.createVNode)("div", {
|
|
228
|
+
"class": bem("multiple-button"),
|
|
229
|
+
"onClick": () => {
|
|
230
|
+
multipleClicked(item);
|
|
231
|
+
}
|
|
232
|
+
}, [getMultipleDom(item)]), (0, import_vue.createVNode)("div", {
|
|
233
|
+
"class": bem("item-content", {
|
|
234
|
+
selected: !props.multiple && choosedValue.value === item[props.valueKey]
|
|
235
|
+
}),
|
|
236
|
+
"onClick": () => {
|
|
237
|
+
selected(item);
|
|
238
|
+
}
|
|
239
|
+
}, [item[props.textKey]]), (0, import_vue.createVNode)("div", {
|
|
240
|
+
"class": bem("item-nav"),
|
|
241
|
+
"onClick": () => {
|
|
242
|
+
toNextLevel(item, index);
|
|
243
|
+
}
|
|
244
|
+
}, [showSub(item) && (0, import_vue.createVNode)("div", {
|
|
245
|
+
"class": bem("sub-level", getChecked(item) ? "disable" : "")
|
|
246
|
+
}, [(0, import_vue.createVNode)("span", {
|
|
247
|
+
"class": bem("sub-icon")
|
|
248
|
+
}, [(0, import_SubIcon.SubIcon)()]), (0, import_vue.createVNode)("span", null, [(0, import_vue.createTextVNode)("\u4E0B\u7EA7")])])])]))]);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--zt-hierarchy-select-size: 16px;--zt-hierarchy-select-color: var(--zt-gray-5);--zt-hierarchy-select-duration: var(--zt-duration-fast);--zt-hierarchy-select-round-icon-border: 1px solid rgba(45, 75, 115, .13);--zt-hierarchy-select-round-icon-box-shadow: -1px -1px 2px 0 #ffffff, 0 0 3px 0 rgba(45, 75, 115, .2);--zt-hierarchy-select-round-icon-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%);--zt-hierarchy-select-checked-icon-color: var(--zt-primary-color);--zt-hierarchy-select-checked-icon-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .2);--zt-hierarchy-select-checked-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-hierarchy-select-disabled-icon-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 rgba(45, 75, 115, .2);--zt-hierarchy-select-disabled-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-hierarchy-select-disabled-checked-icon-opacity: .4;--zt-hierarchy-select-disabled-icon-background: linear-gradient(134deg, #e1e6eb 0%, #e5edf5 100%)}.zt-hierarchy-select__score-item{position:relative;display:flex;justify-content:space-between;align-items:center;padding:10px 0 10px var(--zt-padding-md);background-color:var(--zt-background-2)}.zt-hierarchy-select__score-item: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-border-color);transform:scaleY(.5)}.zt-hierarchy-select__item-content{flex:1;margin-right:var(--zt-padding-md);width:278px;font-size:var(--zt-font-size-md);font-family:PingFangSC,PingFangSC-Regular;font-weight:400;text-align:left;color:var(--zt-gray-default);line-height:24px;word-break:break-all}.zt-hierarchy-select__item-content--selected,.zt-hierarchy-select__item-content span{color:var(--zt-primary-color)}.zt-hierarchy-select__disable .zt-hierarchy-select__sub-level,.zt-hierarchy-select__disable-parent .zt-hierarchy-select__sub-level,.zt-hierarchy-select__disable .zt-hierarchy-select__item-content,.zt-hierarchy-select__disable-parent .zt-hierarchy-select__item-content{opacity:.4}.zt-hierarchy-select__item-nav{padding:0 16px;border-left:rgba(0,0,0,.1) 1px solid}.zt-hierarchy-select__sub-level{display:flex;align-items:center}.zt-hierarchy-select__sub-level span{color:var(--zt-primary-color)}.zt-hierarchy-select__sub-level--disable{opacity:.2}.zt-hierarchy-select__multiple-button{margin-right:8px;display:flex;justify-content:center;align-items:center}.zt-hierarchy-select__icon{font-size:0;font-size:var(--zt-hierarchy-select-size);cursor:pointer;box-sizing:border-box}.zt-hierarchy-select__icon .zt-icon{display:flex;justify-content:center;align-items:center;color:transparent;text-align:center;width:18px;height:18px;border:1px solid var(--zt-hierarchy-select-color);transition-duration:var(--zt-hierarchy-select-duration);transition-property:color,border-color,background-color}.zt-hierarchy-select__icon--round .zt-icon{border-radius:100%;border:var(--zt-hierarchy-select-round-icon-border);box-shadow:var(--zt-hierarchy-select-round-icon-box-shadow);background:var(--zt-hierarchy-select-round-icon-background)}.zt-hierarchy-select__icon--checked .zt-icon{color:var(--zt-white);background:var(--zt-hierarchy-select-checked-icon-color);box-shadow:var(--zt-hierarchy-select-checked-icon-shadow);border:var(--zt-hierarchy-select-checked-icon-border)}.zt-hierarchy-select__icon--disabled{cursor:not-allowed}.zt-hierarchy-select__icon--disabled .zt-icon{border:var(--zt-hierarchy-select-disabled-icon-border);box-shadow:var(--zt-hierarchy-select-disabled-icon-shadow);background:var(--zt-hierarchy-select-disabled-icon-background)}.zt-hierarchy-select__icon--disabled.zt-hierarchy-select__icon--checked .zt-icon{opacity:var(--zt-hierarchy-select-disabled-checked-icon-opacity);background:var(--zt-blue);color:var(--zt-white)}.zt-breadcrumb{padding:0 16px}.zt-breadcrumb__list{box-sizing:border-box;height:44px;display:flex;align-items:center;color:var(--zt-primary-color);width:100%;overflow-x:scroll}.zt-breadcrumb__list::-webkit-scrollbar{width:0;height:0}.zt-breadcrumb__default{display:flex;white-space:nowrap}.zt-breadcrumb__item{height:44px;display:flex;align-items:center;white-space:nowrap}.zt-breadcrumb__item:last-child{color:var(--zt-gray-default)}.zt-breadcrumb__icon{padding:0 4px}
|