bkui-vue 1.0.3-beta.9 → 2.0.1-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +162 -164
- package/dist/index.esm.js +31999 -29678
- package/dist/index.umd.js +162 -164
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.variable.css +3 -0
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.variable.css +3 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +3 -0
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +6 -3
- package/lib/cascader/index.js +35 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +7 -7
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +11 -3
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +6 -3
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +32 -30
- package/lib/components.js +31 -29
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +3 -3
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +340 -224
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +2 -64
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +9 -1
- package/lib/dialog/dialog.css +172 -150
- package/lib/dialog/dialog.d.ts +55 -124
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +175 -150
- package/lib/dialog/index.d.ts +132 -296
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +16 -41
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -167
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +3 -0
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +3 -0
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +17 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +12 -11
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +25 -22
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +25 -23
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +3 -0
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.js +0 -1
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.variable.css +3 -0
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +44 -312
- package/lib/modal/index.js +286 -672
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +151 -76
- package/lib/modal/modal.d.ts +19 -117
- package/lib/modal/modal.less +103 -56
- package/lib/modal/modal.variable.css +154 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +107 -63
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -15
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +62 -44
- package/lib/pop-confirm/index.js +17 -14
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/pop-confirm/props.d.ts +2 -2
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +62 -44
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +49 -31
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +30 -0
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +8 -9
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18762 -0
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/{rate/star.variable.css → scrollbar/scrollbar.variable.css} +70 -19
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +754 -419
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +117 -7
- package/lib/search-select/utils.d.ts +22 -9
- package/lib/select/index.d.ts +185 -67
- package/lib/select/index.js +1396 -136
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +56 -14
- package/lib/select/select.d.ts +74 -26
- package/lib/select/select.less +70 -21
- package/lib/select/select.variable.css +59 -14
- package/lib/select/selectTagInput.d.ts +13 -6
- package/lib/select/type.d.ts +4 -5
- package/lib/shared/index.d.ts +1 -2
- package/lib/shared/index.js +108 -96
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +51 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +58 -188
- package/lib/sideslider/index.js +83 -57
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +26 -88
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +64 -26
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -0
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +30 -100
- package/lib/table/const.d.ts +12 -12
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +220 -305
- package/lib/table/index.js +18165 -688
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +13 -0
- package/lib/table/props.d.ts +49 -39
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +58 -47
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +9 -46
- package/lib/table/use-column.d.ts +18 -139
- package/lib/table/use-common.d.ts +5 -5
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +6 -6
- package/lib/table-column/index.d.ts +127 -431
- package/lib/table-column/index.js +43 -117
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +12 -12
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +6 -6
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +3 -3
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +56 -67
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +12 -9
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +64 -20
- package/lib/tree/index.js +17595 -72
- package/lib/tree/props.d.ts +24 -6
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +34 -8
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +9 -0
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +1 -1
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +62 -65
- package/lib/upload/props.d.ts +4 -1
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.type.d.ts +7 -7
- package/lib/upload/upload.variable.css +3 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +13 -49
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/shared/mask.d.ts +0 -11
package/lib/timeline/index.d.ts
CHANGED
@@ -1,43 +1,57 @@
|
|
1
1
|
declare const BkTimeline: {
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
3
|
-
list: import("vue-types").
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
list: import("vue-types").VueTypeDef<{
|
4
|
+
tag: string;
|
5
|
+
content: object;
|
6
|
+
type: string;
|
7
|
+
size: string;
|
8
|
+
color: string;
|
9
|
+
icon: any;
|
10
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
11
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
12
|
+
nodeType: "template" | "vnode";
|
13
|
+
}[]>;
|
8
14
|
titleAble: import("vue-types").VueTypeValidableDef<boolean> & {
|
9
15
|
default: boolean;
|
10
16
|
} & {
|
11
17
|
default: boolean;
|
12
18
|
};
|
13
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
14
|
-
default: string;
|
15
|
-
};
|
16
19
|
}>> & {
|
17
20
|
onSelect?: (...args: any[]) => any;
|
18
21
|
}, {
|
19
|
-
defaultTimelines: import("vue").
|
20
|
-
|
22
|
+
defaultTimelines: import("vue").ShallowRef<{
|
23
|
+
tag: string;
|
24
|
+
content: object;
|
25
|
+
type: string;
|
26
|
+
size: string;
|
27
|
+
color: string;
|
28
|
+
icon: any;
|
29
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
30
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
31
|
+
nodeType: "template" | "vnode";
|
32
|
+
}[]>;
|
33
|
+
handleTitleSelect: (item: any) => void;
|
21
34
|
resolveClassName: (cls: string) => string;
|
22
35
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
23
|
-
list: import("vue-types").
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
36
|
+
list: import("vue-types").VueTypeDef<{
|
37
|
+
tag: string;
|
38
|
+
content: object;
|
39
|
+
type: string;
|
40
|
+
size: string;
|
41
|
+
color: string;
|
42
|
+
icon: any;
|
43
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
44
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
45
|
+
nodeType: "template" | "vnode";
|
46
|
+
}[]>;
|
28
47
|
titleAble: import("vue-types").VueTypeValidableDef<boolean> & {
|
29
48
|
default: boolean;
|
30
49
|
} & {
|
31
50
|
default: boolean;
|
32
51
|
};
|
33
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
34
|
-
default: string;
|
35
|
-
};
|
36
52
|
}>> & {
|
37
53
|
onSelect?: (...args: any[]) => any;
|
38
54
|
}, {
|
39
|
-
extCls: string;
|
40
|
-
list: unknown[];
|
41
55
|
titleAble: boolean;
|
42
56
|
}, true, {}, {}, {
|
43
57
|
P: {};
|
@@ -47,56 +61,78 @@ declare const BkTimeline: {
|
|
47
61
|
M: {};
|
48
62
|
Defaults: {};
|
49
63
|
}, Readonly<import("vue").ExtractPropTypes<{
|
50
|
-
list: import("vue-types").
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
64
|
+
list: import("vue-types").VueTypeDef<{
|
65
|
+
tag: string;
|
66
|
+
content: object;
|
67
|
+
type: string;
|
68
|
+
size: string;
|
69
|
+
color: string;
|
70
|
+
icon: any;
|
71
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
72
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
73
|
+
nodeType: "template" | "vnode";
|
74
|
+
}[]>;
|
55
75
|
titleAble: import("vue-types").VueTypeValidableDef<boolean> & {
|
56
76
|
default: boolean;
|
57
77
|
} & {
|
58
78
|
default: boolean;
|
59
79
|
};
|
60
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
61
|
-
default: string;
|
62
|
-
};
|
63
80
|
}>> & {
|
64
81
|
onSelect?: (...args: any[]) => any;
|
65
82
|
}, {
|
66
|
-
defaultTimelines: import("vue").
|
67
|
-
|
83
|
+
defaultTimelines: import("vue").ShallowRef<{
|
84
|
+
tag: string;
|
85
|
+
content: object;
|
86
|
+
type: string;
|
87
|
+
size: string;
|
88
|
+
color: string;
|
89
|
+
icon: any;
|
90
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
91
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
92
|
+
nodeType: "template" | "vnode";
|
93
|
+
}[]>;
|
94
|
+
handleTitleSelect: (item: any) => void;
|
68
95
|
resolveClassName: (cls: string) => string;
|
69
96
|
}, {}, {}, {}, {
|
70
|
-
extCls: string;
|
71
|
-
list: unknown[];
|
72
97
|
titleAble: boolean;
|
73
98
|
}>;
|
74
99
|
__isFragment?: never;
|
75
100
|
__isTeleport?: never;
|
76
101
|
__isSuspense?: never;
|
77
102
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
78
|
-
list: import("vue-types").
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
103
|
+
list: import("vue-types").VueTypeDef<{
|
104
|
+
tag: string;
|
105
|
+
content: object;
|
106
|
+
type: string;
|
107
|
+
size: string;
|
108
|
+
color: string;
|
109
|
+
icon: any;
|
110
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
111
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
112
|
+
nodeType: "template" | "vnode";
|
113
|
+
}[]>;
|
83
114
|
titleAble: import("vue-types").VueTypeValidableDef<boolean> & {
|
84
115
|
default: boolean;
|
85
116
|
} & {
|
86
117
|
default: boolean;
|
87
118
|
};
|
88
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
89
|
-
default: string;
|
90
|
-
};
|
91
119
|
}>> & {
|
92
120
|
onSelect?: (...args: any[]) => any;
|
93
121
|
}, {
|
94
|
-
defaultTimelines: import("vue").
|
95
|
-
|
122
|
+
defaultTimelines: import("vue").ShallowRef<{
|
123
|
+
tag: string;
|
124
|
+
content: object;
|
125
|
+
type: string;
|
126
|
+
size: string;
|
127
|
+
color: string;
|
128
|
+
icon: any;
|
129
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
130
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
131
|
+
nodeType: "template" | "vnode";
|
132
|
+
}[]>;
|
133
|
+
handleTitleSelect: (item: any) => void;
|
96
134
|
resolveClassName: (cls: string) => string;
|
97
135
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", {
|
98
|
-
extCls: string;
|
99
|
-
list: unknown[];
|
100
136
|
titleAble: boolean;
|
101
137
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
102
138
|
export default BkTimeline;
|
package/lib/timeline/index.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import "../styles/reset.css";
|
2
|
+
import "./timeline.less";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
@@ -48,7 +49,7 @@ function _typeof(o) {
|
|
48
49
|
;// CONCATENATED MODULE: external "vue"
|
49
50
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
50
51
|
var external_vue_y = x => () => x
|
51
|
-
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["
|
52
|
+
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
52
53
|
;// CONCATENATED MODULE: external "../config-provider"
|
53
54
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
54
55
|
var config_provider_y = x => () => x
|
@@ -85,9 +86,18 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
85
86
|
|
86
87
|
|
87
88
|
var timelineProps = {
|
88
|
-
list: shared_namespaceObject.PropTypes.
|
89
|
-
|
90
|
-
|
89
|
+
list: shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.shape({
|
90
|
+
tag: shared_namespaceObject.PropTypes.string,
|
91
|
+
content: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object]),
|
92
|
+
type: shared_namespaceObject.PropTypes.string,
|
93
|
+
size: shared_namespaceObject.PropTypes.string,
|
94
|
+
color: shared_namespaceObject.PropTypes.string,
|
95
|
+
icon: shared_namespaceObject.PropTypes.func,
|
96
|
+
filled: shared_namespaceObject.PropTypes.bool,
|
97
|
+
border: shared_namespaceObject.PropTypes.bool,
|
98
|
+
nodeType: shared_namespaceObject.PropTypes.timelineNodeType()
|
99
|
+
}).isRequired),
|
100
|
+
titleAble: shared_namespaceObject.PropTypes.bool.def(false)
|
91
101
|
};
|
92
102
|
/* harmony default export */ const timeline = ((0,external_vue_namespaceObject.defineComponent)({
|
93
103
|
name: 'Timeline',
|
@@ -95,61 +105,36 @@ var timelineProps = {
|
|
95
105
|
emits: ['select'],
|
96
106
|
setup: function setup(props, _ref) {
|
97
107
|
var emit = _ref.emit;
|
98
|
-
var defaultTimelines = (0,external_vue_namespaceObject.
|
99
|
-
var
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
var _timeline$border;
|
104
|
-
defaults.push({
|
105
|
-
tag: timeline.tag,
|
106
|
-
content: timeline.content,
|
107
|
-
type: timeline.type,
|
108
|
-
size: timeline.size,
|
109
|
-
color: timeline.color,
|
110
|
-
icon: timeline.icon,
|
111
|
-
filled: timeline.filled,
|
112
|
-
border: (_timeline$border = timeline.border) !== null && _timeline$border !== void 0 ? _timeline$border : true
|
113
|
-
});
|
114
|
-
});
|
115
|
-
(_defaultTimelines$val = defaultTimelines.value).splice.apply(_defaultTimelines$val, [0, defaultTimelines.value.length].concat(defaults));
|
116
|
-
};
|
117
|
-
var init = function init() {
|
118
|
-
var _defaultTimelines$val2, _props$list;
|
119
|
-
(_defaultTimelines$val2 = defaultTimelines.value).splice.apply(_defaultTimelines$val2, [0, defaultTimelines.value.length].concat([{
|
120
|
-
tag: '步骤1',
|
121
|
-
content: '内容1'
|
122
|
-
}, {
|
123
|
-
tag: '步骤2',
|
124
|
-
content: '内容2'
|
125
|
-
}, {
|
126
|
-
tag: '步骤3',
|
127
|
-
content: '内容3'
|
128
|
-
}]));
|
129
|
-
if ((_props$list = props.list) !== null && _props$list !== void 0 && _props$list.length) {
|
130
|
-
updateTimelines(props.list);
|
131
|
-
}
|
132
|
-
};
|
133
|
-
var titleSelect = function titleSelect(item) {
|
134
|
-
try {
|
135
|
-
emit('select', item);
|
136
|
-
} catch (e) {
|
137
|
-
console.warn(e);
|
138
|
-
}
|
108
|
+
var defaultTimelines = (0,external_vue_namespaceObject.shallowRef)([]);
|
109
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
110
|
+
resolveClassName = _usePrefix.resolveClassName;
|
111
|
+
var handleTitleSelect = function handleTitleSelect(item) {
|
112
|
+
emit('select', item);
|
139
113
|
};
|
140
|
-
(0,external_vue_namespaceObject.onMounted)(init);
|
141
114
|
(0,external_vue_namespaceObject.watch)(function () {
|
142
115
|
return props.list;
|
143
116
|
}, function () {
|
144
|
-
|
117
|
+
defaultTimelines.value = props.list.map(function (item) {
|
118
|
+
var _item$border;
|
119
|
+
return {
|
120
|
+
tag: item.tag,
|
121
|
+
content: item.content,
|
122
|
+
type: item.type,
|
123
|
+
size: item.size,
|
124
|
+
color: item.color,
|
125
|
+
icon: item.icon,
|
126
|
+
filled: item.filled,
|
127
|
+
border: (_item$border = item.border) !== null && _item$border !== void 0 ? _item$border : true,
|
128
|
+
nodeType: item.nodeType || 'template'
|
129
|
+
};
|
130
|
+
});
|
145
131
|
}, {
|
132
|
+
immediate: true,
|
146
133
|
deep: true
|
147
134
|
});
|
148
|
-
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
149
|
-
resolveClassName = _usePrefix.resolveClassName;
|
150
135
|
return {
|
151
136
|
defaultTimelines: defaultTimelines,
|
152
|
-
|
137
|
+
handleTitleSelect: handleTitleSelect,
|
153
138
|
resolveClassName: resolveClassName
|
154
139
|
};
|
155
140
|
},
|
@@ -157,10 +142,7 @@ var timelineProps = {
|
|
157
142
|
var _this = this;
|
158
143
|
var isIcon = function isIcon(timeline) {
|
159
144
|
var icon = timeline.icon;
|
160
|
-
|
161
|
-
return _typeof(icon) === 'object' || typeof icon === 'function';
|
162
|
-
}
|
163
|
-
return false;
|
145
|
+
return _typeof(icon) === 'object' || typeof icon === 'function';
|
164
146
|
};
|
165
147
|
var makeClass = function makeClass(item) {
|
166
148
|
var timelineClsPrefix = _this.resolveClassName('timeline');
|
@@ -173,38 +155,45 @@ var timelineProps = {
|
|
173
155
|
var timelinesCls = (0,shared_namespaceObject.classes)({}, "".concat(timelineClsPrefix, " ").concat(timelineThemeCls, " ").concat(timelineSizeCls, " ").concat(timelinesColorsCls, " ").concat(timelineFilledCls, " ").concat(timelineCustomIcon));
|
174
156
|
return timelinesCls;
|
175
157
|
};
|
176
|
-
var
|
177
|
-
|
178
|
-
|
179
|
-
|
158
|
+
var renderContent = function renderContent(item) {
|
159
|
+
if (_this.$slots.content) {
|
160
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
161
|
+
"class": "".concat(_this.resolveClassName('timeline-content'))
|
162
|
+
}, [_this.$slots.content(item)]);
|
163
|
+
}
|
164
|
+
if (item.nodeType === 'vnode') {
|
165
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
166
|
+
"class": "".concat(_this.resolveClassName('timeline-content'))
|
167
|
+
}, [item.content]);
|
168
|
+
}
|
169
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
180
170
|
"class": "".concat(_this.resolveClassName('timeline-content')),
|
181
171
|
"innerHTML": item.content
|
182
172
|
}, null);
|
183
173
|
};
|
184
174
|
return (0,external_vue_namespaceObject.createVNode)("ul", {
|
185
|
-
"class":
|
175
|
+
"class": this.resolveClassName('timeline')
|
186
176
|
}, [this.defaultTimelines.map(function (item) {
|
187
|
-
var _this$$slots$default, _this$$slots$default2, _this$$slots;
|
188
177
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
189
178
|
"class": ["".concat(_this.resolveClassName('timeline-dot')), makeClass(item)]
|
190
|
-
}, [isIcon(item)
|
191
|
-
"class": "".concat(_this.resolveClassName('timeline-icon')),
|
179
|
+
}, [isIcon(item) && (0,external_vue_namespaceObject.createVNode)("div", {
|
192
180
|
"style": {
|
193
181
|
border: item.border ? "2px solid ".concat(item.color) : '0px',
|
194
182
|
borderRadius: item.border ? '50%' : '0'
|
195
|
-
}
|
183
|
+
},
|
184
|
+
"class": "".concat(_this.resolveClassName('timeline-icon'))
|
196
185
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
197
186
|
"class": "".concat(_this.resolveClassName('timeline-icon-inner'))
|
198
|
-
}, [typeof item.icon === 'function' ? (0,external_vue_namespaceObject.createVNode)(item.icon, null, null) : item.icon])])
|
187
|
+
}, [typeof item.icon === 'function' ? (0,external_vue_namespaceObject.createVNode)(item.icon, null, null) : item.icon])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
199
188
|
"class": "".concat(_this.resolveClassName('timeline-section'))
|
200
189
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
201
190
|
"class": "".concat(_this.resolveClassName('timeline-title')),
|
202
191
|
"onClick": function onClick() {
|
203
|
-
_this.
|
192
|
+
return _this.handleTitleSelect(item);
|
204
193
|
}
|
205
|
-
}, [
|
194
|
+
}, [item.nodeType === 'vnode' ? item.tag : (0,external_vue_namespaceObject.createVNode)("span", {
|
206
195
|
"innerHTML": item.tag
|
207
|
-
}, null)]),
|
196
|
+
}, null)]), renderContent(item)])]);
|
208
197
|
})]);
|
209
198
|
}
|
210
199
|
}));
|
@@ -25,58 +25,75 @@
|
|
25
25
|
*/
|
26
26
|
import { ExtractPropTypes } from 'vue';
|
27
27
|
declare const timelineProps: {
|
28
|
-
list: import("vue-types").
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
list: import("vue-types").VueTypeDef<{
|
29
|
+
tag: string;
|
30
|
+
content: object;
|
31
|
+
type: string;
|
32
|
+
size: string;
|
33
|
+
color: string;
|
34
|
+
icon: any;
|
35
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
36
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
37
|
+
nodeType: "template" | "vnode";
|
38
|
+
}[]>;
|
33
39
|
titleAble: import("vue-types").VueTypeValidableDef<boolean> & {
|
34
40
|
default: boolean;
|
35
41
|
} & {
|
36
42
|
default: boolean;
|
37
43
|
};
|
38
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
39
|
-
default: string;
|
40
|
-
};
|
41
44
|
};
|
42
|
-
export type TimelinePropTypes = ExtractPropTypes<typeof timelineProps
|
45
|
+
export type TimelinePropTypes = Readonly<ExtractPropTypes<typeof timelineProps>>;
|
43
46
|
declare const _default: import("vue").DefineComponent<{
|
44
|
-
list: import("vue-types").
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
47
|
+
list: import("vue-types").VueTypeDef<{
|
48
|
+
tag: string;
|
49
|
+
content: object;
|
50
|
+
type: string;
|
51
|
+
size: string;
|
52
|
+
color: string;
|
53
|
+
icon: any;
|
54
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
55
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
56
|
+
nodeType: "template" | "vnode";
|
57
|
+
}[]>;
|
49
58
|
titleAble: import("vue-types").VueTypeValidableDef<boolean> & {
|
50
59
|
default: boolean;
|
51
60
|
} & {
|
52
61
|
default: boolean;
|
53
62
|
};
|
54
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
55
|
-
default: string;
|
56
|
-
};
|
57
63
|
}, {
|
58
|
-
defaultTimelines: import("vue").
|
59
|
-
|
64
|
+
defaultTimelines: import("vue").ShallowRef<{
|
65
|
+
tag: string;
|
66
|
+
content: object;
|
67
|
+
type: string;
|
68
|
+
size: string;
|
69
|
+
color: string;
|
70
|
+
icon: any;
|
71
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
72
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
73
|
+
nodeType: "template" | "vnode";
|
74
|
+
}[]>;
|
75
|
+
handleTitleSelect: (item: any) => void;
|
60
76
|
resolveClassName: (cls: string) => string;
|
61
77
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
62
|
-
list: import("vue-types").
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
78
|
+
list: import("vue-types").VueTypeDef<{
|
79
|
+
tag: string;
|
80
|
+
content: object;
|
81
|
+
type: string;
|
82
|
+
size: string;
|
83
|
+
color: string;
|
84
|
+
icon: any;
|
85
|
+
filled: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
86
|
+
border: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
87
|
+
nodeType: "template" | "vnode";
|
88
|
+
}[]>;
|
67
89
|
titleAble: import("vue-types").VueTypeValidableDef<boolean> & {
|
68
90
|
default: boolean;
|
69
91
|
} & {
|
70
92
|
default: boolean;
|
71
93
|
};
|
72
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
73
|
-
default: string;
|
74
|
-
};
|
75
94
|
}>> & {
|
76
95
|
onSelect?: (...args: any[]) => any;
|
77
96
|
}, {
|
78
|
-
extCls: string;
|
79
|
-
list: unknown[];
|
80
97
|
titleAble: boolean;
|
81
98
|
}, {}>;
|
82
99
|
export default _default;
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
* {
|
128
131
|
box-sizing: border-box;
|
package/lib/transfer/const.d.ts
CHANGED
package/lib/transfer/index.js
CHANGED
@@ -5,7 +5,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
6
6
|
import "../checkbox/checkbox.less";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
8
|
-
import * as
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
|
10
10
|
import "../input/input.less";
|
11
11
|
/******/ // The require scope
|
@@ -94,10 +94,10 @@ const checkbox_less_namespaceObject = checkbox_less_x({ });
|
|
94
94
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
95
95
|
var config_provider_y = x => () => x
|
96
96
|
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
97
|
-
;// CONCATENATED MODULE: external "../icon
|
98
|
-
var
|
99
|
-
var
|
100
|
-
const
|
97
|
+
;// CONCATENATED MODULE: external "../icon"
|
98
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
99
|
+
var icon_y = x => () => x
|
100
|
+
const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleLeft, ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleRight, ["ArrowsRight"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ArrowsRight, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search, ["Transfer"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Transfer });
|
101
101
|
;// CONCATENATED MODULE: external "../input"
|
102
102
|
var input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
103
103
|
var input_y = x => () => x
|
@@ -135,9 +135,9 @@ const input_less_namespaceObject = input_less_x({ });
|
|
135
135
|
// 非数组,基础数据数组,对象数组
|
136
136
|
var ArrayType;
|
137
137
|
(function (ArrayType) {
|
138
|
-
ArrayType["OBJECT_ARRAY"] = "objectArray";
|
139
138
|
ArrayType["BASE_ARRAY"] = "baseArray";
|
140
139
|
ArrayType["NOT_ARRAY"] = "notArray";
|
140
|
+
ArrayType["OBJECT_ARRAY"] = "objectArray";
|
141
141
|
})(ArrayType || (ArrayType = {}));
|
142
142
|
;// CONCATENATED MODULE: ../../packages/transfer/src/props.ts
|
143
143
|
/*
|
@@ -222,7 +222,6 @@ var transferProps = {
|
|
222
222
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
223
223
|
* IN THE SOFTWARE.
|
224
224
|
*/
|
225
|
-
/* eslint-disable arrow-body-style */
|
226
225
|
|
227
226
|
|
228
227
|
|
@@ -504,7 +503,6 @@ function useSelectListSearch(selectList, displayCode) {
|
|
504
503
|
var selectField = isLeft ? 'source' : 'target';
|
505
504
|
var titleText = isLeft ? "".concat((_this$title$ = _this.title[0]) !== null && _this$title$ !== void 0 ? _this$title$ : _this.t.sourceList) : "".concat((_this$title$2 = _this.title[1]) !== null && _this$title$2 !== void 0 ? _this$title$2 : _this.t.targetList);
|
506
505
|
var isDisabled = isLeft ? !leftList.length : !rightList.length;
|
507
|
-
// eslint-disable-next-line max-len
|
508
506
|
var isIndeterminate = !!_this.multipleSelectList[selectField].length && !_this.multipleSelectAllValue[selectField];
|
509
507
|
var selectCount = _this.multipleSelectList[selectField].length;
|
510
508
|
var headerClick = function headerClick() {
|
@@ -517,12 +515,12 @@ function useSelectListSearch(selectList, displayCode) {
|
|
517
515
|
"class": "header"
|
518
516
|
}, [_this.multiple ? (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
519
517
|
"class": "header-checkbox",
|
520
|
-
"label": titleText,
|
521
518
|
"modelValue": _this.multipleSelectAllValue[selectField],
|
522
519
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
523
520
|
return _this.multipleSelectAllValue[selectField] = $event;
|
524
521
|
},
|
525
522
|
"indeterminate": isIndeterminate,
|
523
|
+
"label": titleText,
|
526
524
|
"onChange": function onChange(val) {
|
527
525
|
return _this.handleAllChecked(val, selectField);
|
528
526
|
}
|
@@ -563,10 +561,12 @@ function useSelectListSearch(selectList, displayCode) {
|
|
563
561
|
"title": item[_this.displayCode]
|
564
562
|
}, [item[_this.displayCode]]), !multiple && (0,external_vue_namespaceObject.createVNode)("span", {
|
565
563
|
"class": "icon-wrapper"
|
566
|
-
}, [isLeft ? (
|
567
|
-
|
568
|
-
|
569
|
-
|
564
|
+
}, [isLeft ? // <ArrowsRight class={`${this.resolveClassName('icon')} icon-move`} />
|
565
|
+
(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.ArrowsRight, {
|
566
|
+
"class": _this.resolveClassName('icon')
|
567
|
+
}, null) : // <Error class={`${this.resolveClassName('icon')} icon-delete`} />
|
568
|
+
(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
569
|
+
"class": [_this.resolveClassName('icon'), _this.resolveClassName('icon-delete')]
|
570
570
|
}, null)])]);
|
571
571
|
};
|
572
572
|
var getListContentHtml = function getListContentHtml(dirct) {
|
@@ -618,17 +618,17 @@ function useSelectListSearch(selectList, displayCode) {
|
|
618
618
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
619
619
|
"class": "source-list"
|
620
620
|
}, [getHeaderHtml('left-header'), this.searchable && (0,external_vue_namespaceObject.createVNode)(input_namespaceObject["default"], {
|
621
|
+
"class": "transfer-search-input",
|
621
622
|
"modelValue": _this.selectSearchQuery,
|
622
623
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
623
624
|
return _this.selectSearchQuery = $event;
|
624
625
|
},
|
625
|
-
"class": "transfer-search-input",
|
626
626
|
"clearable": true,
|
627
627
|
"placeholder": this.searchPlaceholder || this.t.search
|
628
628
|
}, {
|
629
629
|
prefix: function prefix() {
|
630
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
631
|
-
"class":
|
630
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
631
|
+
"class": _this.resolveClassName('icon-search')
|
632
632
|
}, null);
|
633
633
|
}
|
634
634
|
}), getListContentHtml('left')]), multiple ? (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -640,15 +640,15 @@ function useSelectListSearch(selectList, displayCode) {
|
|
640
640
|
"onClick": function onClick() {
|
641
641
|
return _this.handleMultipleChange('left');
|
642
642
|
}
|
643
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
643
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
644
644
|
"class": ['transfer-button', {
|
645
645
|
disabled: !this.multipleSelectList.target.length
|
646
646
|
}],
|
647
647
|
"onClick": function onClick() {
|
648
648
|
return _this.handleMultipleChange('right');
|
649
649
|
}
|
650
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
651
|
-
"class":
|
650
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)])]) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Transfer, {
|
651
|
+
"class": this.resolveClassName('transfer-icon')
|
652
652
|
}, null), (0,external_vue_namespaceObject.createVNode)("div", {
|
653
653
|
"class": "target-list"
|
654
654
|
}, [getHeaderHtml('right-header'), getListContentHtml('right')])]);
|