bkui-vue 0.0.1-beta.2 → 0.0.1-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -19
- package/README_EN.md +93 -0
- package/dist/bkui-vue.cjs.js +10044 -1374
- package/dist/bkui-vue.esm.js +10003 -1380
- package/dist/bkui-vue.umd.js +10044 -1374
- package/dist/style.css +3322 -241
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +32 -0
- package/lib/alert/index.d.ts +180 -3
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +97 -2
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +32 -0
- package/lib/backtop/index.d.ts +166 -2
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +32 -0
- package/lib/badge/index.d.ts +217 -2
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +42 -1
- package/lib/breadcrumb/index.d.ts +144 -43
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +9 -0
- package/lib/button/button.d.ts +57 -28
- package/lib/button/button.less +23 -15
- package/lib/button/button.variable.css +41 -0
- package/lib/button/index.d.ts +225 -3
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +32 -0
- package/lib/card/index.d.ts +187 -2
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.variable.css +32 -0
- package/lib/checkbox/index.d.ts +261 -2
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +6 -5
- package/lib/code-diff/code-diff.css +114 -0
- package/lib/code-diff/code-diff.d.ts +71 -0
- package/lib/code-diff/code-diff.less +144 -0
- package/lib/code-diff/code-diff.variable.css +207 -0
- package/lib/code-diff/index.d.ts +6 -0
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/collapse.less +10 -0
- package/lib/collapse/collapse.variable.css +8 -0
- package/lib/collapse/index.d.ts +166 -2
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +37 -0
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +294 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +500 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +713 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/props.d.ts +111 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.d.ts +57 -27
- package/lib/dialog/index.d.ts +286 -2
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.js +14 -14
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +48 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +131 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -0
- package/lib/dropdown/dropdown-item.d.ts +19 -0
- package/lib/dropdown/dropdown-menu.d.ts +16 -0
- package/lib/dropdown/dropdown.css +43 -0
- package/lib/dropdown/dropdown.d.ts +61 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +136 -0
- package/lib/dropdown/index.d.ts +192 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +32 -0
- package/lib/exception/index.d.ts +95 -1
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
- package/lib/fixed-navbar/index.d.ts +112 -2
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +159 -0
- package/lib/form/form.css +39 -0
- package/lib/form/form.d.ts +84 -0
- package/lib/form/form.less +50 -0
- package/lib/form/form.variable.css +39 -0
- package/lib/form/index.d.ts +286 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +21 -0
- package/lib/form/validator.d.ts +8 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +15 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +15 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +15 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +15 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +15 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +15 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +42 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +15 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +15 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +15 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +15 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +15 -0
- package/lib/index.d.ts +4 -0
- package/lib/input/index.d.ts +417 -2
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +20 -2
- package/lib/input/input.d.ts +98 -46
- package/lib/input/input.less +28 -5
- package/lib/input/input.variable.css +52 -2
- package/lib/link/index.d.ts +164 -2
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +32 -0
- package/lib/loading/index.d.ts +146 -2
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +98 -71
- package/lib/loading/loading.d.ts +47 -21
- package/lib/loading/loading.less +62 -49
- package/lib/loading/loading.variable.css +130 -71
- package/lib/menu/index.d.ts +188 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +14 -0
- package/lib/menu/menu-item.d.ts +16 -0
- package/lib/menu/menu.css +182 -0
- package/lib/menu/menu.d.ts +64 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +275 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +22 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +96 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +53 -0
- package/lib/message/message.less +61 -0
- package/lib/message/message.variable.css +146 -0
- package/lib/message/messageConstructor.d.ts +73 -0
- package/lib/modal/index.d.ts +214 -3
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +33 -15
- package/lib/modal/props.mixin.d.ts +5 -1
- package/lib/navigation/index.d.ts +2 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +25 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +111 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +277 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +142 -0
- package/lib/notify/notifyConstructor.d.ts +91 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +272 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +287 -27
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +74 -45
- package/lib/popover/popover.less +57 -46
- package/lib/popover/popover.variable.css +55 -14
- package/lib/popover/props.d.ts +77 -0
- package/lib/preset.d.ts +7 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +15 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +231 -0
- package/lib/progress/index.d.ts +398 -2
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +32 -3
- package/lib/radio/index.d.ts +277 -2
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +6 -0
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.less +7 -0
- package/lib/radio/radio.variable.css +38 -0
- package/lib/rate/index.d.ts +113 -2
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/select/common.d.ts +13 -3
- package/lib/select/index.d.ts +962 -2
- package/lib/select/index.js +15 -1
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +130 -0
- package/lib/select/select.css +130 -14
- package/lib/select/select.d.ts +152 -150
- package/lib/select/select.less +164 -26
- package/lib/select/select.variable.css +162 -14
- package/lib/shared/bk-helper-core.d.ts +6 -0
- package/lib/shared/bk-mask-manager.d.ts +32 -3
- package/lib/shared/bk-pop-manager.d.ts +8 -1
- package/lib/shared/bk-popover.d.ts +56 -5
- package/lib/shared/index.d.ts +24 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +7 -6
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +206 -2
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +39 -18
- package/lib/sideslider/sideslider.variable.css +32 -0
- package/{index.d.ts → lib/slider/index.d.ts} +4 -5
- package/lib/slider/index.js +15 -0
- package/{commitlint.config.js → lib/slider/slider-button.d.ts} +50 -42
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +189 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +242 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +15 -0
- package/lib/steps/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +381 -0
- package/lib/styles/index.d.ts +43 -25
- package/lib/styles/index.js +1 -1
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +52 -0
- package/lib/styles/mixins/popper.variable.css +43 -0
- package/lib/styles/mixins/size.less +9 -0
- package/lib/styles/reset.css +273 -0
- package/lib/styles/reset.less +313 -0
- package/lib/styles/reset.variable.css +273 -0
- package/lib/styles/themes/themes.less +52 -2
- package/lib/switcher/index.d.ts +286 -2
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +181 -135
- package/lib/tab/index.d.ts +552 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab-nav.d.ts +190 -0
- package/lib/tab/tab-panel.d.ts +48 -0
- package/lib/tab/tab.css +147 -0
- package/lib/tab/tab.d.ts +163 -0
- package/lib/tab/tab.less +221 -0
- package/lib/tab/tab.variable.css +240 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +282 -2
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +118 -0
- package/lib/table/render.d.ts +74 -0
- package/lib/table/table.css +90 -0
- package/lib/table/table.d.ts +85 -37
- package/lib/table/table.less +116 -1
- package/lib/table/table.variable.css +122 -0
- package/lib/table/utils.d.ts +69 -0
- package/lib/tag/index.d.ts +229 -2
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +91 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +103 -2
- package/lib/tag/tag.variable.css +123 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +328 -0
- package/{changelog.config.js → lib/transfer/index.d.ts} +2 -8
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +251 -0
- package/lib/tree/index.d.ts +276 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +89 -0
- package/lib/tree/tree.css +42 -0
- package/lib/tree/tree.d.ts +112 -0
- package/lib/tree/tree.less +52 -0
- package/lib/tree/tree.variable.css +42 -0
- package/lib/tree/util.d.ts +70 -0
- package/lib/use-form.d.ts +3 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +556 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +40 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +63 -48
- package/index.html +0 -40
- package/lib/checkbox-group/index.d.ts +0 -2
- package/lib/checkbox-group/index.js +0 -1
- package/lib/radio-button/index.d.ts +0 -2
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.d.ts +0 -2
- package/lib/radio-group/index.js +0 -1
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,239 @@
|
|
1
|
+
@import '../styles/themes/themes.less';
|
2
|
+
|
3
|
+
@themeSelectors: primary, warning, success, danger;
|
4
|
+
|
5
|
+
@colorSelectors: blue, red, green, yellow, gray;
|
6
|
+
|
7
|
+
@blue-color: #3a84ff;
|
8
|
+
@green-color: #2dcb56;
|
9
|
+
@yellow-color: #ff9c01;
|
10
|
+
@red-color: #ea3636;
|
11
|
+
@gray-color: #63656e;
|
12
|
+
|
13
|
+
* {
|
14
|
+
box-sizing: border-box;
|
15
|
+
}
|
16
|
+
|
17
|
+
.bk-timeline {
|
18
|
+
padding: 0;
|
19
|
+
margin: 16px 0 0;
|
20
|
+
font-style: normal;
|
21
|
+
font-weight: 400;
|
22
|
+
line-height: normal;
|
23
|
+
text-align: left;
|
24
|
+
list-style: none;
|
25
|
+
|
26
|
+
.bk-timeline-dot {
|
27
|
+
position: relative;
|
28
|
+
padding-bottom: 24px;
|
29
|
+
padding-left: 16px;
|
30
|
+
|
31
|
+
/* spacing 1px */
|
32
|
+
margin-top: 13px;
|
33
|
+
font-size: 0;
|
34
|
+
border-left: 1px solid #d8d8d8;
|
35
|
+
|
36
|
+
&::before {
|
37
|
+
position: absolute;
|
38
|
+
top: calc((11px + 1px) * -1);
|
39
|
+
left: -6px;
|
40
|
+
display: inline-block;
|
41
|
+
width: 11px;
|
42
|
+
height: 11px;
|
43
|
+
background: #fff;
|
44
|
+
border: 2px solid #d8d8d8;
|
45
|
+
border-radius: 50%;
|
46
|
+
content: '';
|
47
|
+
box-sizing: border-box;
|
48
|
+
}
|
49
|
+
|
50
|
+
&:last-child {
|
51
|
+
padding-bottom: 0;
|
52
|
+
|
53
|
+
/* 保留border使用间距保持一致 */
|
54
|
+
border-left: 1px solid transparent;
|
55
|
+
}
|
56
|
+
|
57
|
+
.bk-timeline-title {
|
58
|
+
display: inline-block;
|
59
|
+
padding-bottom: 10px;
|
60
|
+
margin-top: -3px;
|
61
|
+
font-size: 14px;
|
62
|
+
color: #63656e;
|
63
|
+
cursor: pointer;
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
.bk-timeline-content {
|
68
|
+
max-width: 300px;
|
69
|
+
font-size: 14px;
|
70
|
+
color: #666;
|
71
|
+
word-break: break-all;
|
72
|
+
}
|
73
|
+
|
74
|
+
.bk-timeline-icon {
|
75
|
+
position: absolute;
|
76
|
+
top: calc((15px + 1px) * -1);
|
77
|
+
left: -8px;
|
78
|
+
|
79
|
+
display: inline-block;
|
80
|
+
width: 15px;
|
81
|
+
height: 15px;
|
82
|
+
background: #fff;
|
83
|
+
border: 2px solid #d8d8d8;
|
84
|
+
border-radius: 50%;
|
85
|
+
box-sizing: border-box;
|
86
|
+
|
87
|
+
.bk-timeline-icon-inner {
|
88
|
+
display: inline-block;
|
89
|
+
transform: scale(1) translate(-.5px, -4px);
|
90
|
+
|
91
|
+
>:first-child {
|
92
|
+
font-size: 12px;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.bk-timeline-section {
|
98
|
+
position: relative;
|
99
|
+
top: calc((11px + 2px) * -1);
|
100
|
+
}
|
101
|
+
|
102
|
+
&.bk-timeline-large {
|
103
|
+
margin-top: calc(15px + 2px);
|
104
|
+
|
105
|
+
&::before {
|
106
|
+
top: calc((15px + 1px) * -1);
|
107
|
+
left: -8px;
|
108
|
+
width: 15px;
|
109
|
+
height: 15px;
|
110
|
+
}
|
111
|
+
|
112
|
+
> .bk-timeline-section {
|
113
|
+
top: calc((15px + 1px) * -1);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
&.bk-timeline-item-custom-icon {
|
118
|
+
margin-top: calc(15px + 2px);
|
119
|
+
|
120
|
+
&::before {
|
121
|
+
display: none;
|
122
|
+
}
|
123
|
+
|
124
|
+
> .bk-timeline-section {
|
125
|
+
top: calc((15px + 1px) * -1);
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
&:first-child {
|
130
|
+
margin-top: 0;
|
131
|
+
}
|
132
|
+
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
each(@themeSelectors, {
|
137
|
+
@color: '@{value}-color';
|
138
|
+
|
139
|
+
.bk-timeline{
|
140
|
+
&-@{value} {
|
141
|
+
border-left: 1px solid @@color;
|
142
|
+
&::before,
|
143
|
+
.bk-timeline-icon {
|
144
|
+
color: @@color;
|
145
|
+
border: 2px solid @@color;
|
146
|
+
}
|
147
|
+
&.bk-timeline-filled {
|
148
|
+
&::before,
|
149
|
+
.bk-timeline-icon {
|
150
|
+
background: @@color;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
})
|
156
|
+
|
157
|
+
each(@colorSelectors, {
|
158
|
+
@color: '@{value}-color';
|
159
|
+
|
160
|
+
.bk-timeline{
|
161
|
+
&-@{value} {
|
162
|
+
&::before,
|
163
|
+
.bk-timeline-icon {
|
164
|
+
color: @@color;
|
165
|
+
border: 2px solid @@color;
|
166
|
+
}
|
167
|
+
&.bk-timeline-filled {
|
168
|
+
&::before,
|
169
|
+
.bk-timeline-icon {
|
170
|
+
background: @@color;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
}
|
175
|
+
})
|
176
|
+
|
177
|
+
&-dashed {
|
178
|
+
.bk-step {
|
179
|
+
.bk-step-title,
|
180
|
+
.bk-step-indicator {
|
181
|
+
&::after {
|
182
|
+
background-image: linear-gradient(to right, @light-gray 50%, transparent 0%);
|
183
|
+
background-position: bottom;
|
184
|
+
background-repeat: repeat-x;
|
185
|
+
background-size: 6px 1px;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
&-solid {
|
192
|
+
.bk-step {
|
193
|
+
.bk-step-title,
|
194
|
+
.bk-step-indicator {
|
195
|
+
&::after {
|
196
|
+
background-color: @light-gray;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
&-vertical {
|
203
|
+
height: 100%;
|
204
|
+
flex-direction: column;
|
205
|
+
|
206
|
+
.bk-step {
|
207
|
+
margin-right: 0;
|
208
|
+
margin-bottom: 8px;
|
209
|
+
|
210
|
+
.bk-step-title,
|
211
|
+
.bk-step-indicator {
|
212
|
+
&::after {
|
213
|
+
display: none;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
&::after {
|
218
|
+
position: absolute;
|
219
|
+
top: 32px;
|
220
|
+
left: 12px;
|
221
|
+
width: 1px;
|
222
|
+
height: 100%;
|
223
|
+
background-image: linear-gradient(@light-gray 50%, transparent 0%);
|
224
|
+
background-position: right;
|
225
|
+
background-repeat: repeat-y;
|
226
|
+
background-size: 1px 6px;
|
227
|
+
content: '';
|
228
|
+
}
|
229
|
+
|
230
|
+
.bk-step-title {
|
231
|
+
display: flex;
|
232
|
+
height: 100%;
|
233
|
+
margin-top: 0;
|
234
|
+
text-align: left;
|
235
|
+
align-items: center;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
@@ -0,0 +1,328 @@
|
|
1
|
+
:root {
|
2
|
+
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
4
|
+
--primary-color: #3a84ff;
|
5
|
+
--success-color: #2dcb56;
|
6
|
+
--warning-color: #ff9c01;
|
7
|
+
--danger-color: #ea3636;
|
8
|
+
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
10
|
+
--light-gray: #c4c6cc;
|
11
|
+
--white-color: white;
|
12
|
+
--disable-color: #dcdee5;
|
13
|
+
--font-size-base: 12px;
|
14
|
+
--font-size-medium: 14px;
|
15
|
+
--font-size-large: 16px;
|
16
|
+
--line-height-base: 16px;
|
17
|
+
--line-height-medium: 16px;
|
18
|
+
--line-height-large: 18px;
|
19
|
+
--component-size-small: 26px;
|
20
|
+
--component-size-base: 32px;
|
21
|
+
--component-size-large: 38px;
|
22
|
+
--border-width-base: 1px;
|
23
|
+
--border-style-base: solid;
|
24
|
+
--border-radius-base: 2px;
|
25
|
+
--input-disabled-bg: #fafbfd;
|
26
|
+
--input-disabled-border: var(--disable-color);
|
27
|
+
--input-height-base: var(--component-size-base);
|
28
|
+
--input-color: var(--default-color);
|
29
|
+
--input-bg: white;
|
30
|
+
--input-border-color: var(--light-gray);
|
31
|
+
--input-broder-radius: 3px;
|
32
|
+
--input-shadow-color: #a3c5fd;
|
33
|
+
--input-horizontal-padding: 10px;
|
34
|
+
--input-block-color: #f4f6fa;
|
35
|
+
--input-icon-size: var(--font-size-large);
|
36
|
+
--input-maxlength-color: #979ba5;
|
37
|
+
--button-primary-hover-color: #5594fa;
|
38
|
+
--button-danger-hover-color: #ff5656;
|
39
|
+
--button-success-hover-color: #45e35f;
|
40
|
+
--button-warning-hover-color: #ffb848;
|
41
|
+
--button-default-hover-border-color: #979ba5;
|
42
|
+
--button-primary-active-color: #2c77f4;
|
43
|
+
--button-danger-active-color: #db2626;
|
44
|
+
--button-success-active-color: #1ab943;
|
45
|
+
--button-warning-active-color: #eb9000;
|
46
|
+
--fixed-navbar-background: #fff;
|
47
|
+
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
48
|
+
--switch-default-color: #fff;
|
49
|
+
--switch-grey-color: #c4c6cc;
|
50
|
+
--breadcrumb-black-color: #979ba5;
|
51
|
+
--breadcrumb-primary-hover-color: #0082ff;
|
52
|
+
--breadcrumb-fn-main-color: #63656e;
|
53
|
+
--link-default-hover-color: #979ba5;
|
54
|
+
--link-primary-hover-color: #699df4;
|
55
|
+
--link-success-hover-color: #45e35f;
|
56
|
+
--link-warning-hover-color: #ffb848;
|
57
|
+
--link-danger-hover-color: #ff5656;
|
58
|
+
--link-default-disabled-color: #dcdee5;
|
59
|
+
--link-primary-disabled-color: #a3c5fd;
|
60
|
+
--link-success-disabled-color: #94f5a4;
|
61
|
+
--link-warning-disabled-color: #ffd695;
|
62
|
+
--link-danger-disabled-color: #fd9c9c;
|
63
|
+
--message-color: var(--default-color);
|
64
|
+
--message-primary-bg-color: #f0f8ff;
|
65
|
+
--message-primary-border-color: #e1ecff;
|
66
|
+
--message-warning-bg-color: #fff4e2;
|
67
|
+
--message-warning-border-color: #ffe8c3;
|
68
|
+
--message-success-bg-color: #f2fff4;
|
69
|
+
--message-success-border-color: #dcffe2;
|
70
|
+
--message-danger-bg-color: #ffeded;
|
71
|
+
--message-danger-border-color: #ffdddd;
|
72
|
+
--slider-default-bg: #dcdee5;
|
73
|
+
--slider-disable-bar-bg: #979ba5;
|
74
|
+
--menu-bg-color: #182132;
|
75
|
+
--submenu-bg-color: #151d2c;
|
76
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
77
|
+
--menu-color: #96a2b9;
|
78
|
+
--menu-group-color: var(--default-color);
|
79
|
+
--menu-width: 260px;
|
80
|
+
--menu-collapse-width: 60px;
|
81
|
+
--menu-active-color: white;
|
82
|
+
--nav-header-bg-color: #182132;
|
83
|
+
--nav-bg-color: #182132;
|
84
|
+
--date-picker-disabled-bg: #fafbfd;
|
85
|
+
--date-picker-dropdown-mb: 4px;
|
86
|
+
--date-picker-dropdown-bg: #fff;
|
87
|
+
--table-bg-color: var(--white-color);
|
88
|
+
--table-border-color: #dcdee5;
|
89
|
+
--table-head-bg-color: #fafbfd;
|
90
|
+
--table-head-font-color: #313238;
|
91
|
+
--table-body-font-color: #575961;
|
92
|
+
--table-row-hover-bg-color: #f5f7fa;
|
93
|
+
}
|
94
|
+
* {
|
95
|
+
box-sizing: border-box;
|
96
|
+
}
|
97
|
+
.bk-timeline {
|
98
|
+
padding: 0;
|
99
|
+
margin: 16px 0 0;
|
100
|
+
font-style: normal;
|
101
|
+
font-weight: 400;
|
102
|
+
line-height: normal;
|
103
|
+
text-align: left;
|
104
|
+
list-style: none;
|
105
|
+
}
|
106
|
+
.bk-timeline .bk-timeline-dot {
|
107
|
+
position: relative;
|
108
|
+
padding-bottom: 24px;
|
109
|
+
padding-left: 16px;
|
110
|
+
/* spacing 1px */
|
111
|
+
margin-top: 13px;
|
112
|
+
font-size: 0;
|
113
|
+
border-left: 1px solid #d8d8d8;
|
114
|
+
}
|
115
|
+
.bk-timeline .bk-timeline-dot::before {
|
116
|
+
position: absolute;
|
117
|
+
top: calc((11px + 1px) * -1);
|
118
|
+
left: -6px;
|
119
|
+
display: inline-block;
|
120
|
+
width: 11px;
|
121
|
+
height: 11px;
|
122
|
+
background: #fff;
|
123
|
+
border: 2px solid #d8d8d8;
|
124
|
+
border-radius: 50%;
|
125
|
+
content: '';
|
126
|
+
box-sizing: border-box;
|
127
|
+
}
|
128
|
+
.bk-timeline .bk-timeline-dot:last-child {
|
129
|
+
padding-bottom: 0;
|
130
|
+
/* 保留border使用间距保持一致 */
|
131
|
+
border-left: 1px solid transparent;
|
132
|
+
}
|
133
|
+
.bk-timeline .bk-timeline-dot .bk-timeline-title {
|
134
|
+
display: inline-block;
|
135
|
+
padding-bottom: 10px;
|
136
|
+
margin-top: -3px;
|
137
|
+
font-size: 14px;
|
138
|
+
color: #63656e;
|
139
|
+
cursor: pointer;
|
140
|
+
}
|
141
|
+
.bk-timeline .bk-timeline-dot .bk-timeline-content {
|
142
|
+
max-width: 300px;
|
143
|
+
font-size: 14px;
|
144
|
+
color: #666;
|
145
|
+
word-break: break-all;
|
146
|
+
}
|
147
|
+
.bk-timeline .bk-timeline-dot .bk-timeline-icon {
|
148
|
+
position: absolute;
|
149
|
+
top: calc((15px + 1px) * -1);
|
150
|
+
left: -8px;
|
151
|
+
display: inline-block;
|
152
|
+
width: 15px;
|
153
|
+
height: 15px;
|
154
|
+
background: #fff;
|
155
|
+
border: 2px solid #d8d8d8;
|
156
|
+
border-radius: 50%;
|
157
|
+
box-sizing: border-box;
|
158
|
+
}
|
159
|
+
.bk-timeline .bk-timeline-dot .bk-timeline-icon .bk-timeline-icon-inner {
|
160
|
+
display: inline-block;
|
161
|
+
transform: scale(1) translate(-0.5px, -4px);
|
162
|
+
}
|
163
|
+
.bk-timeline .bk-timeline-dot .bk-timeline-icon .bk-timeline-icon-inner > :first-child {
|
164
|
+
font-size: 12px;
|
165
|
+
}
|
166
|
+
.bk-timeline .bk-timeline-dot .bk-timeline-section {
|
167
|
+
position: relative;
|
168
|
+
top: calc((11px + 2px) * -1);
|
169
|
+
}
|
170
|
+
.bk-timeline .bk-timeline-dot.bk-timeline-large {
|
171
|
+
margin-top: calc(15px + 2px);
|
172
|
+
}
|
173
|
+
.bk-timeline .bk-timeline-dot.bk-timeline-large::before {
|
174
|
+
top: calc((15px + 1px) * -1);
|
175
|
+
left: -8px;
|
176
|
+
width: 15px;
|
177
|
+
height: 15px;
|
178
|
+
}
|
179
|
+
.bk-timeline .bk-timeline-dot.bk-timeline-large > .bk-timeline-section {
|
180
|
+
top: calc((15px + 1px) * -1);
|
181
|
+
}
|
182
|
+
.bk-timeline .bk-timeline-dot.bk-timeline-item-custom-icon {
|
183
|
+
margin-top: calc(15px + 2px);
|
184
|
+
}
|
185
|
+
.bk-timeline .bk-timeline-dot.bk-timeline-item-custom-icon::before {
|
186
|
+
display: none;
|
187
|
+
}
|
188
|
+
.bk-timeline .bk-timeline-dot.bk-timeline-item-custom-icon > .bk-timeline-section {
|
189
|
+
top: calc((15px + 1px) * -1);
|
190
|
+
}
|
191
|
+
.bk-timeline .bk-timeline-dot:first-child {
|
192
|
+
margin-top: 0;
|
193
|
+
}
|
194
|
+
.bk-timeline .bk-timeline-primary {
|
195
|
+
border-left: 1px solid var(--primary-color);
|
196
|
+
}
|
197
|
+
.bk-timeline .bk-timeline-primary::before,
|
198
|
+
.bk-timeline .bk-timeline-primary .bk-timeline-icon {
|
199
|
+
color: var(--primary-color);
|
200
|
+
border: 2px solid var(--primary-color);
|
201
|
+
}
|
202
|
+
.bk-timeline .bk-timeline-primary.bk-timeline-filled::before,
|
203
|
+
.bk-timeline .bk-timeline-primary.bk-timeline-filled .bk-timeline-icon {
|
204
|
+
background: var(--primary-color);
|
205
|
+
}
|
206
|
+
.bk-timeline .bk-timeline-warning {
|
207
|
+
border-left: 1px solid var(--warning-color);
|
208
|
+
}
|
209
|
+
.bk-timeline .bk-timeline-warning::before,
|
210
|
+
.bk-timeline .bk-timeline-warning .bk-timeline-icon {
|
211
|
+
color: var(--warning-color);
|
212
|
+
border: 2px solid var(--warning-color);
|
213
|
+
}
|
214
|
+
.bk-timeline .bk-timeline-warning.bk-timeline-filled::before,
|
215
|
+
.bk-timeline .bk-timeline-warning.bk-timeline-filled .bk-timeline-icon {
|
216
|
+
background: var(--warning-color);
|
217
|
+
}
|
218
|
+
.bk-timeline .bk-timeline-success {
|
219
|
+
border-left: 1px solid var(--success-color);
|
220
|
+
}
|
221
|
+
.bk-timeline .bk-timeline-success::before,
|
222
|
+
.bk-timeline .bk-timeline-success .bk-timeline-icon {
|
223
|
+
color: var(--success-color);
|
224
|
+
border: 2px solid var(--success-color);
|
225
|
+
}
|
226
|
+
.bk-timeline .bk-timeline-success.bk-timeline-filled::before,
|
227
|
+
.bk-timeline .bk-timeline-success.bk-timeline-filled .bk-timeline-icon {
|
228
|
+
background: var(--success-color);
|
229
|
+
}
|
230
|
+
.bk-timeline .bk-timeline-danger {
|
231
|
+
border-left: 1px solid var(--danger-color);
|
232
|
+
}
|
233
|
+
.bk-timeline .bk-timeline-danger::before,
|
234
|
+
.bk-timeline .bk-timeline-danger .bk-timeline-icon {
|
235
|
+
color: var(--danger-color);
|
236
|
+
border: 2px solid var(--danger-color);
|
237
|
+
}
|
238
|
+
.bk-timeline .bk-timeline-danger.bk-timeline-filled::before,
|
239
|
+
.bk-timeline .bk-timeline-danger.bk-timeline-filled .bk-timeline-icon {
|
240
|
+
background: var(--danger-color);
|
241
|
+
}
|
242
|
+
.bk-timeline .bk-timeline-blue::before,
|
243
|
+
.bk-timeline .bk-timeline-blue .bk-timeline-icon {
|
244
|
+
color: #3a84ff;
|
245
|
+
border: 2px solid #3a84ff;
|
246
|
+
}
|
247
|
+
.bk-timeline .bk-timeline-blue.bk-timeline-filled::before,
|
248
|
+
.bk-timeline .bk-timeline-blue.bk-timeline-filled .bk-timeline-icon {
|
249
|
+
background: #3a84ff;
|
250
|
+
}
|
251
|
+
.bk-timeline .bk-timeline-red::before,
|
252
|
+
.bk-timeline .bk-timeline-red .bk-timeline-icon {
|
253
|
+
color: #ea3636;
|
254
|
+
border: 2px solid #ea3636;
|
255
|
+
}
|
256
|
+
.bk-timeline .bk-timeline-red.bk-timeline-filled::before,
|
257
|
+
.bk-timeline .bk-timeline-red.bk-timeline-filled .bk-timeline-icon {
|
258
|
+
background: #ea3636;
|
259
|
+
}
|
260
|
+
.bk-timeline .bk-timeline-green::before,
|
261
|
+
.bk-timeline .bk-timeline-green .bk-timeline-icon {
|
262
|
+
color: #2dcb56;
|
263
|
+
border: 2px solid #2dcb56;
|
264
|
+
}
|
265
|
+
.bk-timeline .bk-timeline-green.bk-timeline-filled::before,
|
266
|
+
.bk-timeline .bk-timeline-green.bk-timeline-filled .bk-timeline-icon {
|
267
|
+
background: #2dcb56;
|
268
|
+
}
|
269
|
+
.bk-timeline .bk-timeline-yellow::before,
|
270
|
+
.bk-timeline .bk-timeline-yellow .bk-timeline-icon {
|
271
|
+
color: #ff9c01;
|
272
|
+
border: 2px solid #ff9c01;
|
273
|
+
}
|
274
|
+
.bk-timeline .bk-timeline-yellow.bk-timeline-filled::before,
|
275
|
+
.bk-timeline .bk-timeline-yellow.bk-timeline-filled .bk-timeline-icon {
|
276
|
+
background: #ff9c01;
|
277
|
+
}
|
278
|
+
.bk-timeline .bk-timeline-gray::before,
|
279
|
+
.bk-timeline .bk-timeline-gray .bk-timeline-icon {
|
280
|
+
color: #63656e;
|
281
|
+
border: 2px solid #63656e;
|
282
|
+
}
|
283
|
+
.bk-timeline .bk-timeline-gray.bk-timeline-filled::before,
|
284
|
+
.bk-timeline .bk-timeline-gray.bk-timeline-filled .bk-timeline-icon {
|
285
|
+
background: #63656e;
|
286
|
+
}
|
287
|
+
.bk-timeline-dashed .bk-step .bk-step-title::after,
|
288
|
+
.bk-timeline-dashed .bk-step .bk-step-indicator::after {
|
289
|
+
background-image: linear-gradient(to right, var(--light-gray) 50%, transparent 0%);
|
290
|
+
background-position: bottom;
|
291
|
+
background-repeat: repeat-x;
|
292
|
+
background-size: 6px 1px;
|
293
|
+
}
|
294
|
+
.bk-timeline-solid .bk-step .bk-step-title::after,
|
295
|
+
.bk-timeline-solid .bk-step .bk-step-indicator::after {
|
296
|
+
background-color: var(--light-gray);
|
297
|
+
}
|
298
|
+
.bk-timeline-vertical {
|
299
|
+
height: 100%;
|
300
|
+
flex-direction: column;
|
301
|
+
}
|
302
|
+
.bk-timeline-vertical .bk-step {
|
303
|
+
margin-right: 0;
|
304
|
+
margin-bottom: 8px;
|
305
|
+
}
|
306
|
+
.bk-timeline-vertical .bk-step .bk-step-title::after,
|
307
|
+
.bk-timeline-vertical .bk-step .bk-step-indicator::after {
|
308
|
+
display: none;
|
309
|
+
}
|
310
|
+
.bk-timeline-vertical .bk-step::after {
|
311
|
+
position: absolute;
|
312
|
+
top: 32px;
|
313
|
+
left: 12px;
|
314
|
+
width: 1px;
|
315
|
+
height: 100%;
|
316
|
+
background-image: linear-gradient(var(--light-gray) 50%, transparent 0%);
|
317
|
+
background-position: right;
|
318
|
+
background-repeat: repeat-y;
|
319
|
+
background-size: 1px 6px;
|
320
|
+
content: '';
|
321
|
+
}
|
322
|
+
.bk-timeline-vertical .bk-step .bk-step-title {
|
323
|
+
display: flex;
|
324
|
+
height: 100%;
|
325
|
+
margin-top: 0;
|
326
|
+
text-align: left;
|
327
|
+
align-items: center;
|
328
|
+
}
|
@@ -23,11 +23,5 @@
|
|
23
23
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
24
|
* IN THE SOFTWARE.
|
25
25
|
*/
|
26
|
-
|
27
|
-
|
28
|
-
owner: 'blueking',
|
29
|
-
repository: 'bkui-vue',
|
30
|
-
host: 'https://git.woa.com',
|
31
|
-
commit: 'commit',
|
32
|
-
issue: 'issue',
|
33
|
-
};
|
26
|
+
import Transfer from './transfer';
|
27
|
+
export default Transfer;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../icon/"),require("../input")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon/","../input"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e._,e.Input)}(this,(function(e,t,r,n,o){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(o);function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s={exports:{}},i={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var c={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],u=!0,l=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(l)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports}(c);var f={exports:{}},p={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(f);var d={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(d),function(e){var t=i.exports,r=c.exports,n=f.exports,o=d.exports;e.exports=function(e,a){return t(e)||r(e,a)||n(e,a)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(s);var v=l(s.exports),h={exports:{}},y={exports:{}};!function(e){var t=p.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(y);var x={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(x);var g={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(g),function(e){var t=y.exports,r=x.exports,n=f.exports,o=g.exports;e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(h);var m=l(h.exports);r.PropTypes.string,r.PropTypes.string,r.PropTypes.string,r.PropTypes.string,r.PropTypes.bool,r.PropTypes.bool,r.PropTypes.string,r.PropTypes.bool;var L=t.defineComponent({name:"Transfer",props:{title:{type:Array,default:function(){return[]}},extCls:{type:String,default:""},searchPlaceholder:{type:String,default:""},settingKey:{type:String,default:"id"},displayKey:{type:String,default:"value"},sortKey:{type:String,default:""},showOverflowTips:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},sortable:{type:Boolean,default:!1},sourceList:{type:Array,default:function(){return[]}},targetList:{type:Array,default:function(){return[]}},emptyContent:{type:Array,default:function(){return[]}}},emits:["change"],slots:["left-header","right-header","source-option","target-option","left-empty-content","right-empty-content"],setup:function(e,n){var o=n.emit,a=[],u=e.sortKey,l=e.sortable,s=t.ref(""),i=t.ref(null),c=t.ref([]),f=t.ref([]),p=t.ref(-1),d=t.ref(-1),h=t.computed((function(){return e.sourceList&&Array.isArray(e.sourceList)?-1!==e.sourceList.toString().indexOf("[object Object]"):"empty"})),y=t.computed((function(){return h.value?e.settingKey:"index"})),x=t.computed((function(){return h.value?e.displayKey:"value"})),g=t.computed((function(){return s.value?c.value.filter((function(e){return!r.isEmpty(e[x.value])&&String(e[x.value]).indexOf(s.value)>-1})):c.value}));t.watch((function(){return e.sourceList}),(function(){"empty"!==h.value&&(L(),V())}),{deep:!0}),t.watch((function(){return e.targetList}),(function(){L(),V()}),{deep:!0}),t.watch((function(){return[x.value,y.value]}),(function(){L()})),t.watch((function(){return e.sortKey}),(function(e){u=e,V()})),t.watch((function(){return e.sortable}),(function(e){l=e,V()}));var L=function(){"empty"!==h.value&&(h.value?_():b())},b=function(){if(!e.targetList.length||e.targetList.length>e.sourceList.length){for(var t,r=[],n=0;n<e.sourceList.length;n++)r.push({index:n,value:e.sourceList[n]});c.value=[].concat(r),(t=f.value).splice.apply(t,[0,f.value.length].concat([])),o("change",c.value,[],[])}else{for(var a=[],u=[],l=0;l<e.sourceList.length;l++)a.push({index:l,value:e.sourceList[l]});e.targetList.forEach((function(e){var t=a.find((function(t){return t.value===e}));t&&u.push(t)})),f.value=[].concat(u);var s=a.filter((function(e){return u.every((function(t){return t.index!==e.index}))}));c.value=m(s),o("change",c.value,m(w(f.value,!1)),[])}},_=function(){if(!e.targetList.length||e.targetList.length>e.sourceList.length){var t;(t=c.value).splice.apply(t,[0,c.value.length].concat(m(e.sourceList))),f.value=[],o("change",c.value,[],[])}else{var r=e.sourceList.filter((function(t){return e.targetList.every((function(e){return e!==t[y.value]}))})),n=[];e.sourceList.forEach((function(t){e.targetList.forEach((function(e){t[y.value]===e&&n.push(t)}))})),f.value=[].concat(n),c.value=m(r);var a=m(w(f.value));o("change",c.value,f.value,a)}},V=function(){var t=[];if(h.value)l||(u=""),t=m(e.sourceList);else{u=l?"index":"";for(var r=0;r<e.sourceList.length;r++)t.push({index:r,value:e.sourceList[r]})}if(u){var n=[];if(t.forEach((function(e){n.push(e[u])})),(a=[].concat(n)).length===e.sourceList.length){var o=m(c.value);c.value=m(M(o,u,a))}}},S=function(){var e=c.value,t=h.value?f.value:m(w(f.value,!1)),r=h.value?m(w(f.value)):[];o("change",e,t,r)},w=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=[];if(!e.length)return[];var n=m(e);return n.forEach((function(e){if(t)for(var n=0,o=Object.entries(e);n<o.length;n++){var a=v(o[n],2),u=a[0],l=a[1];u===y.value&&r.push(l)}else r.push(e.value)})),r},M=function(e,t,r){var n=r;return e.sort((function(e,r){return n.indexOf(e[t])-n.indexOf(r[t])>=0}))},N=function(e){c.value=c.value.filter((function(t){return t[y.value]!==e[y.value]}))};return"empty"!==h.value&&(h.value?_():b(),V()),{keyword:s,transferRef:i,dataList:c,allToRight:function(){p.value=-1;var t=g.value,r=f.value;t.forEach((function(e){r.push(e),N(e)})),a.length===e.sourceList.length?f.value=m(M(r,u,a)):f.value=m(r),S()},allToLeft:function(){d.value=-1;for(var t=f.value,r=c.value;t.length;){var n=t.shift();r.push(n),a.length===e.sourceList.length?c.value=m(M(r,u,a)):c.value=m(r)}S()},displayDataList:g,displayCode:x,leftHoverIndex:p,rightHoverIndex:d,handleItemMouseEvent:function(e,t,r,n){t.preventDefault(),t.stopPropagation();var o="over"===e?n:-1;r?p.value=o:d.value=o},handleItemClick:function(t,r,n){t.preventDefault(),t.stopPropagation(),n?p.value=-1:d.value=-1;var o=n?g.value[r]:f.value.splice(r,1)[0],l=n?f.value:c.value;l.push(o),n&&N(o);var s=a.length===e.sourceList.length?m(M(l,u,a)):m(l);n?f.value=m(s):c.value=m(s),S()},hasSelectedList:f}},render:function(){var e=this,r=this.$props,o=r.extCls,a=r.title,l=r.emptyContent,s=r.searchable,i=r.searchPlaceholder,c=function(r){var n,o,u="left-header"===r,l="".concat(u?null!==(n=a[0])&&void 0!==n?n:"左侧列表":null!==(o=a[1])&&void 0!==o?o:"右侧列表"),s=u?!e.dataList.length:!e.hasSelectedList.length;return e.$slots[r]?t.createVNode("div",{class:"slot-header"},[t.createVNode("div",{class:"slot-content"},[e.$slots[r]()])]):t.createVNode("div",{class:"header"},["".concat(l,"(共").concat(e.dataList.length,"条)"),t.createVNode("span",{class:{disabled:s},onClick:function(){return u&&e.dataList.length&&e.allToRight(),void(!u&&e.hasSelectedList.length&&e.allToLeft())}},[u?"全部添加":"清空"])])},f=function(r,o){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=a?e.leftHoverIndex:e.rightHoverIndex;return t.createVNode("div",{class:"item-content"},[t.createVNode("span",{class:"content-text",title:r[e.displayCode]},[r[e.displayCode]]),t.createVNode("span",{class:["icon-wrapper",o===u?"hover":""]},[a?t.createVNode(n.ArrowsRight,{class:"bk-icon"},null):t.createVNode(n.Error,{class:"bk-icon"},null)])])},p=function(r){var n="left"===r,o=n?e.displayDataList:e.hasSelectedList,a=n?"source-option":"target-option",u=n?"left-empty-content":"right-empty-content";return o.length?t.createVNode("ul",{class:["content",s&&n?"is-search":""]},[o.map((function(r,o){var u,l,s;return t.createVNode("li",{key:o,class:[e.$slots[a]?"custom-item":""],onClick:function(t){return e.handleItemClick(t,o,n)},onMouseover:function(t){return e.handleItemMouseEvent("over",t,n,o)},onMouseleave:function(t){return e.handleItemMouseEvent("leave",t,n,o)}},[null!==(s=null===(l=(u=e.$slots)[a])||void 0===l?void 0:l.call(u,r))&&void 0!==s?s:f(r,o,n)])}))]):function(r){var n,o="left-empty-content"===r,a=null!==(n=o?l[0]:l[1])&&void 0!==n?n:o?"无数据":"未选择任何项";return e.$slots[r]?t.createVNode("div",null,[e.$slots[r]()]):t.createVNode("div",{class:"empty"},[a])}(u)};return t.createVNode("div",{class:["bk-transfer",o],ref:"transferRef"},[t.createVNode("div",{class:"source-list"},[c("left-header"),s&&t.createVNode(u.default,{modelValue:e.keyword,"onUpdate:modelValue":function(t){return e.keyword=t},class:"transfer-search-input",clearable:!0,placeholder:i||"请输入搜索关键字",type:"search","left-icon":"bk-icon icon-search"},null),p("left")]),t.createVNode("div",{class:"transfer"},null),t.createVNode("div",{class:"target-list"},[c("right-header"),p("right")])])}});L.install=function(e){e.component(L.name,L)},e.default=L,Object.defineProperty(e,"__esModule",{value:!0})}));
|