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
@@ -35,6 +35,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
35
35
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
36
36
|
var y = x => () => x
|
37
37
|
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
38
|
+
;// CONCATENATED MODULE: external "vue"
|
39
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
40
|
+
var external_vue_y = x => () => x
|
41
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["onUpdated"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUpdated, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive });
|
38
42
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
39
43
|
function _typeof(o) {
|
40
44
|
"@babel/helpers - typeof";
|
@@ -80,10 +84,6 @@ function _defineProperty(obj, key, value) {
|
|
80
84
|
}
|
81
85
|
return obj;
|
82
86
|
}
|
83
|
-
;// CONCATENATED MODULE: external "vue"
|
84
|
-
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
85
|
-
var external_vue_y = x => () => x
|
86
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref });
|
87
87
|
;// CONCATENATED MODULE: ../../packages/table/src/const.ts
|
88
88
|
|
89
89
|
/*
|
@@ -114,11 +114,11 @@ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBP
|
|
114
114
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
115
115
|
var BORDER_OPTION;
|
116
116
|
(function (BORDER_OPTION) {
|
117
|
-
BORDER_OPTION["NONE"] = "none";
|
118
|
-
BORDER_OPTION["ROW"] = "row";
|
119
117
|
BORDER_OPTION["COL"] = "col";
|
120
|
-
BORDER_OPTION["OUTER"] = "outer";
|
121
118
|
BORDER_OPTION["HORIZONTAL"] = "horizontal";
|
119
|
+
BORDER_OPTION["NONE"] = "none";
|
120
|
+
BORDER_OPTION["OUTER"] = "outer";
|
121
|
+
BORDER_OPTION["ROW"] = "row";
|
122
122
|
})(BORDER_OPTION || (BORDER_OPTION = {}));
|
123
123
|
/**
|
124
124
|
* 鼠标划过行样式
|
@@ -126,8 +126,8 @@ var BORDER_OPTION;
|
|
126
126
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
127
127
|
var ROW_HOVER;
|
128
128
|
(function (ROW_HOVER) {
|
129
|
-
ROW_HOVER["HIGHLIGHT"] = "highlight";
|
130
129
|
ROW_HOVER["AUTO"] = "auto";
|
130
|
+
ROW_HOVER["HIGHLIGHT"] = "highlight";
|
131
131
|
})(ROW_HOVER || (ROW_HOVER = {}));
|
132
132
|
var ROW_HOVER_OPTIONS = [ROW_HOVER.AUTO, ROW_HOVER.HIGHLIGHT];
|
133
133
|
/**
|
@@ -168,7 +168,7 @@ var COLUMN_ATTRIBUTE = {
|
|
168
168
|
/**
|
169
169
|
* Y 轴滚动条宽度
|
170
170
|
*/
|
171
|
-
var SCROLLY_WIDTH =
|
171
|
+
var SCROLLY_WIDTH = 0;
|
172
172
|
/**
|
173
173
|
* 默认行高
|
174
174
|
*/
|
@@ -205,9 +205,9 @@ var createDefaultSizeList = function createDefaultSizeList(t) {
|
|
205
205
|
/**
|
206
206
|
* Provide key: init column when use <column { ...props }> template
|
207
207
|
*/
|
208
|
-
var PROVIDE_KEY_INIT_COL = '
|
209
|
-
var PROVIDE_KEY_TB_CACHE = '
|
210
|
-
var BK_COLUMN_UPDATE_DEFINE = '
|
208
|
+
var PROVIDE_KEY_INIT_COL = Symbol('bkInitColumns');
|
209
|
+
var PROVIDE_KEY_TB_CACHE = Symbol('bkTableCahce');
|
210
|
+
var BK_COLUMN_UPDATE_DEFINE = Symbol('bkColumnUpdateDefine');
|
211
211
|
/**
|
212
212
|
* 表格底部高度
|
213
213
|
* 分页组件
|
@@ -220,9 +220,9 @@ var TB_FOOT_HEIGHT = 60;
|
|
220
220
|
var SORT_OPTION;
|
221
221
|
(function (SORT_OPTION) {
|
222
222
|
SORT_OPTION["ASC"] = "asc";
|
223
|
+
SORT_OPTION["CUSTOM"] = "custom";
|
223
224
|
SORT_OPTION["DESC"] = "desc";
|
224
225
|
SORT_OPTION["NULL"] = "null";
|
225
|
-
SORT_OPTION["CUSTOM"] = "custom";
|
226
226
|
})(SORT_OPTION || (SORT_OPTION = {}));
|
227
227
|
var SORT_OPTIONS = [SORT_OPTION.ASC, SORT_OPTION.DESC, SORT_OPTION.NULL, SORT_OPTION.CUSTOM];
|
228
228
|
/**
|
@@ -247,30 +247,30 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["string"]: ()
|
|
247
247
|
|
248
248
|
var SortScope;
|
249
249
|
(function (SortScope) {
|
250
|
-
SortScope["CURRENT"] = "current";
|
251
250
|
SortScope["ALL"] = "all";
|
251
|
+
SortScope["CURRENT"] = "current";
|
252
252
|
})(SortScope || (SortScope = {}));
|
253
253
|
var OverflowModeEnum;
|
254
254
|
(function (OverflowModeEnum) {
|
255
|
-
OverflowModeEnum["STATIC"] = "static";
|
256
255
|
OverflowModeEnum["AUTO"] = "auto";
|
256
|
+
OverflowModeEnum["STATIC"] = "static";
|
257
257
|
})(OverflowModeEnum || (OverflowModeEnum = {}));
|
258
258
|
var EnumOverflowModeType = (0,external_vue_types_namespaceObject.toType)('showOverflowTooltipMode', {
|
259
259
|
"default": OverflowModeEnum.AUTO
|
260
260
|
});
|
261
261
|
var ColumnTypeEnum;
|
262
262
|
(function (ColumnTypeEnum) {
|
263
|
-
ColumnTypeEnum["SELECTION"] = "selection";
|
264
|
-
ColumnTypeEnum["INDEX"] = "index";
|
265
263
|
ColumnTypeEnum["EXPAND"] = "expand";
|
266
|
-
ColumnTypeEnum["
|
264
|
+
ColumnTypeEnum["INDEX"] = "index";
|
265
|
+
ColumnTypeEnum["NONE"] = "__COL_TYPE_NONE";
|
266
|
+
ColumnTypeEnum["SELECTION"] = "selection";
|
267
267
|
})(ColumnTypeEnum || (ColumnTypeEnum = {}));
|
268
268
|
var TableAlignEnum;
|
269
269
|
(function (TableAlignEnum) {
|
270
|
-
TableAlignEnum["LEFT"] = "left";
|
271
|
-
TableAlignEnum["RIGHT"] = "right";
|
272
270
|
TableAlignEnum["CENTER"] = "center";
|
271
|
+
TableAlignEnum["LEFT"] = "left";
|
273
272
|
TableAlignEnum["NONE"] = "";
|
273
|
+
TableAlignEnum["RIGHT"] = "right";
|
274
274
|
})(TableAlignEnum || (TableAlignEnum = {}));
|
275
275
|
var columnType = (0,external_vue_types_namespaceObject.toType)('columnType', {
|
276
276
|
"default": ColumnTypeEnum.NONE
|
@@ -288,9 +288,9 @@ var fullType = (0,external_vue_types_namespaceObject.toType)('full', {
|
|
288
288
|
});
|
289
289
|
var SettingSizeEnum;
|
290
290
|
(function (SettingSizeEnum) {
|
291
|
-
SettingSizeEnum["SMALL"] = "small";
|
292
|
-
SettingSizeEnum["MEDIUM"] = "medium";
|
293
291
|
SettingSizeEnum["LARGE"] = "large";
|
292
|
+
SettingSizeEnum["MEDIUM"] = "medium";
|
293
|
+
SettingSizeEnum["SMALL"] = "small";
|
294
294
|
})(SettingSizeEnum || (SettingSizeEnum = {}));
|
295
295
|
var settingSizeType = (0,external_vue_types_namespaceObject.toType)('columnSize', {
|
296
296
|
"default": SettingSizeEnum.SMALL
|
@@ -315,9 +315,9 @@ var IFilterType = (0,external_vue_types_namespaceObject.toType)('IFilterPropShap
|
|
315
315
|
});
|
316
316
|
var ColumnPickEnum;
|
317
317
|
(function (ColumnPickEnum) {
|
318
|
+
ColumnPickEnum["DISABLED"] = "disabled";
|
318
319
|
ColumnPickEnum["MULTI"] = "multi";
|
319
320
|
ColumnPickEnum["SINGLE"] = "single";
|
320
|
-
ColumnPickEnum["DISABLED"] = "disabled";
|
321
321
|
})(ColumnPickEnum || (ColumnPickEnum = {}));
|
322
322
|
var ResizerWay;
|
323
323
|
(function (ResizerWay) {
|
@@ -353,14 +353,14 @@ var IColumnProp = (0,external_vue_types_namespaceObject.toType)('IColumnPropType
|
|
353
353
|
});
|
354
354
|
var IColSortBehavior;
|
355
355
|
(function (IColSortBehavior) {
|
356
|
-
/**
|
357
|
-
* 列排序是相互依赖的
|
358
|
-
*/
|
359
|
-
IColSortBehavior["interdependent"] = "interdependent";
|
360
356
|
/**
|
361
357
|
* 列与列之间的排序是独立的,互斥的
|
362
358
|
*/
|
363
359
|
IColSortBehavior["independent"] = "independent";
|
360
|
+
/**
|
361
|
+
* 列排序是相互依赖的
|
362
|
+
*/
|
363
|
+
IColSortBehavior["interdependent"] = "interdependent";
|
364
364
|
})(IColSortBehavior || (IColSortBehavior = {}));
|
365
365
|
var tableProps = {
|
366
366
|
/**
|
@@ -517,7 +517,7 @@ var tableProps = {
|
|
517
517
|
/**
|
518
518
|
* 提供自定义判定当前行是否选中
|
519
519
|
* 如果设置了此属性,其他判定均不生效
|
520
|
-
* ({ row
|
520
|
+
* ({ row }) => bool
|
521
521
|
*/
|
522
522
|
isSelectedFn: shared_namespaceObject.PropTypes.func.def(undefined),
|
523
523
|
/**
|
@@ -596,11 +596,14 @@ var tableProps = {
|
|
596
596
|
/**
|
597
597
|
* 是否支持行拖拽排序
|
598
598
|
*/
|
599
|
-
rowDraggable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func, shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.object]).def(false)
|
599
|
+
rowDraggable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func, shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.object]).def(false),
|
600
|
+
/**
|
601
|
+
* 是否支持shift键多行选择
|
602
|
+
*/
|
603
|
+
shiftMultiChecked: shared_namespaceObject.PropTypes.bool.def(false)
|
600
604
|
};
|
601
605
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
602
606
|
|
603
|
-
|
604
607
|
/*
|
605
608
|
* Tencent is pleased to support the open source community by making
|
606
609
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -654,100 +657,23 @@ var TableColumnProp = {
|
|
654
657
|
name: 'TableColumn',
|
655
658
|
props: TableColumnProp,
|
656
659
|
setup: function setup(props) {
|
657
|
-
var
|
658
|
-
var _rm = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
659
|
-
}, false);
|
660
|
-
var bkTableCache = (0,external_vue_namespaceObject.inject)(PROVIDE_KEY_TB_CACHE, {
|
661
|
-
queueStack: function queueStack(_, fn) {
|
662
|
-
return fn === null || fn === void 0 ? void 0 : fn();
|
663
|
-
}
|
664
|
-
});
|
660
|
+
var initTableColumns = (0,external_vue_namespaceObject.inject)(PROVIDE_KEY_INIT_COL, function () {});
|
665
661
|
var column = (0,external_vue_namespaceObject.reactive)(Object.assign({}, props, {
|
666
662
|
field: props.prop || props.field
|
667
663
|
}));
|
664
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
665
|
+
initTableColumns();
|
666
|
+
});
|
667
|
+
(0,external_vue_namespaceObject.onUpdated)(function () {
|
668
|
+
initTableColumns();
|
669
|
+
});
|
670
|
+
(0,external_vue_namespaceObject.onUnmounted)(function () {
|
671
|
+
initTableColumns();
|
672
|
+
});
|
668
673
|
return {
|
669
|
-
initColumns: initColumns,
|
670
|
-
bkTableCache: bkTableCache,
|
671
674
|
column: column
|
672
675
|
};
|
673
676
|
},
|
674
|
-
unmounted: function unmounted() {
|
675
|
-
this.updateColumnDefine(true);
|
676
|
-
},
|
677
|
-
mounted: function mounted() {
|
678
|
-
this.updateColumnDefine();
|
679
|
-
},
|
680
|
-
updated: function updated() {
|
681
|
-
this.updateColumnDefineByParent();
|
682
|
-
},
|
683
|
-
methods: {
|
684
|
-
updateColumnDefine: function updateColumnDefine() {
|
685
|
-
var unmounted = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
686
|
-
if (unmounted) {
|
687
|
-
this.unmountColumn();
|
688
|
-
return;
|
689
|
-
}
|
690
|
-
this.updateColumnDefineByParent();
|
691
|
-
},
|
692
|
-
copyProps: function copyProps(props) {
|
693
|
-
return Object.keys(props !== null && props !== void 0 ? props : {}).reduce(function (result, key) {
|
694
|
-
var target = key.replace(/-(\w)/g, function (_, letter) {
|
695
|
-
return letter.toUpperCase();
|
696
|
-
});
|
697
|
-
return Object.assign(result, _defineProperty({}, target, props[key]));
|
698
|
-
}, {});
|
699
|
-
},
|
700
|
-
updateColumnDefineByParent: function updateColumnDefineByParent() {
|
701
|
-
var _this = this;
|
702
|
-
var fn = function fn() {
|
703
|
-
// @ts-ignore
|
704
|
-
var selfVnode = _this._;
|
705
|
-
var colList = selfVnode.parent.vnode.children["default"]() || [];
|
706
|
-
var sortColumns = [];
|
707
|
-
var index = 0;
|
708
|
-
var reduceColumns = function reduceColumns(nodes) {
|
709
|
-
if (!Array.isArray(nodes)) {
|
710
|
-
return;
|
711
|
-
}
|
712
|
-
nodes.forEach(function (node) {
|
713
|
-
var _node$type, _node$children2;
|
714
|
-
if (Array.isArray(node)) {
|
715
|
-
reduceColumns(node);
|
716
|
-
return;
|
717
|
-
}
|
718
|
-
var skipValidateKey0 = true;
|
719
|
-
if (((_node$type = node.type) === null || _node$type === void 0 ? void 0 : _node$type.name) === 'TableColumn') {
|
720
|
-
var _node$children;
|
721
|
-
skipValidateKey0 = Object.hasOwnProperty.call(node.props || {}, 'key');
|
722
|
-
var resolveProp = Object.assign({
|
723
|
-
index: index
|
724
|
-
}, _this.copyProps(node.props), {
|
725
|
-
field: node.props.prop || node.props.field,
|
726
|
-
render: (_node$children = node.children) === null || _node$children === void 0 ? void 0 : _node$children["default"]
|
727
|
-
});
|
728
|
-
sortColumns.push((0,external_vue_namespaceObject.unref)(resolveProp));
|
729
|
-
index = index + 1;
|
730
|
-
}
|
731
|
-
if ((_node$children2 = node.children) !== null && _node$children2 !== void 0 && _node$children2.length && skipValidateKey0) {
|
732
|
-
reduceColumns(node.children);
|
733
|
-
}
|
734
|
-
});
|
735
|
-
};
|
736
|
-
reduceColumns(colList);
|
737
|
-
_this.initColumns(sortColumns);
|
738
|
-
};
|
739
|
-
if (typeof this.bkTableCache.queueStack === 'function') {
|
740
|
-
this.bkTableCache.queueStack(BK_COLUMN_UPDATE_DEFINE, fn);
|
741
|
-
}
|
742
|
-
},
|
743
|
-
unmountColumn: function unmountColumn() {
|
744
|
-
var resolveProp = Object.assign({}, this.copyProps(this.$props), {
|
745
|
-
field: this.$props.prop || this.$props.field,
|
746
|
-
render: this.$slots["default"]
|
747
|
-
});
|
748
|
-
this.initColumns(resolveProp, true);
|
749
|
-
}
|
750
|
-
},
|
751
677
|
render: function render() {
|
752
678
|
var _this$$slots$default, _this$$slots;
|
753
679
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots, {
|
package/lib/tag/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
declare const BkTag: {
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
3
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
4
|
-
default: "" | "info" | "success" | "
|
3
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
4
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
5
5
|
};
|
6
6
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
7
7
|
default: boolean;
|
@@ -38,8 +38,8 @@ declare const BkTag: {
|
|
38
38
|
handleClick: (e: Event) => void;
|
39
39
|
resolveClassName: (cls: string) => string;
|
40
40
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
41
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
42
|
-
default: "" | "info" | "success" | "
|
41
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
42
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
43
43
|
};
|
44
44
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
45
|
default: boolean;
|
@@ -70,7 +70,7 @@ declare const BkTag: {
|
|
70
70
|
onClose?: (...args: any[]) => any;
|
71
71
|
}, {
|
72
72
|
type: "" | "stroke" | "filled";
|
73
|
-
theme: "" | "info" | "success" | "
|
73
|
+
theme: "" | "info" | "success" | "danger" | "warning";
|
74
74
|
closable: boolean;
|
75
75
|
radius: string;
|
76
76
|
checked: boolean;
|
@@ -86,8 +86,8 @@ declare const BkTag: {
|
|
86
86
|
M: {};
|
87
87
|
Defaults: {};
|
88
88
|
}, Readonly<import("vue").ExtractPropTypes<{
|
89
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
90
|
-
default: "" | "info" | "success" | "
|
89
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
90
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
91
91
|
};
|
92
92
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
93
93
|
default: boolean;
|
@@ -125,7 +125,7 @@ declare const BkTag: {
|
|
125
125
|
resolveClassName: (cls: string) => string;
|
126
126
|
}, {}, {}, {}, {
|
127
127
|
type: "" | "stroke" | "filled";
|
128
|
-
theme: "" | "info" | "success" | "
|
128
|
+
theme: "" | "info" | "success" | "danger" | "warning";
|
129
129
|
closable: boolean;
|
130
130
|
radius: string;
|
131
131
|
checked: boolean;
|
@@ -135,8 +135,8 @@ declare const BkTag: {
|
|
135
135
|
__isTeleport?: never;
|
136
136
|
__isSuspense?: never;
|
137
137
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
138
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
139
|
-
default: "" | "info" | "success" | "
|
138
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
139
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
140
140
|
};
|
141
141
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
142
142
|
default: boolean;
|
@@ -174,7 +174,7 @@ declare const BkTag: {
|
|
174
174
|
resolveClassName: (cls: string) => string;
|
175
175
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", {
|
176
176
|
type: "" | "stroke" | "filled";
|
177
|
-
theme: "" | "info" | "success" | "
|
177
|
+
theme: "" | "info" | "success" | "danger" | "warning";
|
178
178
|
closable: boolean;
|
179
179
|
radius: string;
|
180
180
|
checked: boolean;
|
package/lib/tag/index.js
CHANGED
@@ -134,9 +134,9 @@ const icon_namespaceObject = icon_x({ ["Error"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
134
134
|
|
135
135
|
var TagStrokeType;
|
136
136
|
(function (TagStrokeType) {
|
137
|
-
TagStrokeType["UNKNOWN"] = "";
|
138
137
|
TagStrokeType["FILLED"] = "filled";
|
139
138
|
TagStrokeType["STROKE"] = "stroke";
|
139
|
+
TagStrokeType["UNKNOWN"] = "";
|
140
140
|
})(TagStrokeType || (TagStrokeType = {}));
|
141
141
|
/* harmony default export */ const tag = ((0,external_vue_namespaceObject.defineComponent)({
|
142
142
|
name: 'Tag',
|
@@ -184,8 +184,8 @@ var TagStrokeType;
|
|
184
184
|
var _this$$slots$default, _this$$slots;
|
185
185
|
var classes = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('tag'), true), this.resolveClassName('tag-closable'), this.closable), this.resolveClassName('tag-checkable'), this.checkable), this.resolveClassName('tag-check'), this.checked), this.resolveClassName("tag-".concat(this.type)), this.type), this.resolveClassName("tag-".concat(this.theme)), this.theme), this.resolveClassName("tag--".concat(this.size)), true);
|
186
186
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
187
|
-
"class": classes,
|
188
187
|
"style": this.wrapperStyle,
|
188
|
+
"class": classes,
|
189
189
|
"onClick": this.handleClick
|
190
190
|
}, [this.$slots.icon ? (0,external_vue_namespaceObject.createVNode)("span", {
|
191
191
|
"class": "".concat(this.resolveClassName('tag-icon'))
|
package/lib/tag/tag.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SlotsType } from 'vue';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
4
|
-
default: "" | "info" | "success" | "
|
3
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
4
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
5
5
|
};
|
6
6
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
7
7
|
default: boolean;
|
@@ -35,8 +35,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
35
|
handleClick: (e: Event) => void;
|
36
36
|
resolveClassName: (cls: string) => string;
|
37
37
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
38
|
-
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "
|
39
|
-
default: "" | "info" | "success" | "
|
38
|
+
theme: import("vue-types").VueTypeDef<"" | "info" | "success" | "danger" | "warning"> & {
|
39
|
+
default: "" | "info" | "success" | "danger" | "warning";
|
40
40
|
};
|
41
41
|
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
42
|
default: boolean;
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
67
67
|
onClose?: (...args: any[]) => any;
|
68
68
|
}, {
|
69
69
|
type: "" | "stroke" | "filled";
|
70
|
-
theme: "" | "info" | "success" | "
|
70
|
+
theme: "" | "info" | "success" | "danger" | "warning";
|
71
71
|
closable: boolean;
|
72
72
|
radius: string;
|
73
73
|
checked: boolean;
|
package/lib/tag/tag.variable.css
CHANGED
@@ -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
|
.bk-tag {
|
128
131
|
display: inline-flex;
|
@@ -31,6 +31,6 @@ export declare const getCharLength: (str: string) => number;
|
|
31
31
|
* @param collapseTags 是否折叠 tags
|
32
32
|
* @param selectedTagList 已选择 tags
|
33
33
|
*/
|
34
|
-
export declare const useTagsOverflow: (tagInputRef: Ref<HTMLDivElement>, collapseTags: Ref<
|
34
|
+
export declare const useTagsOverflow: (tagInputRef: Ref<HTMLDivElement>, collapseTags: Ref<boolean>, selectedTagList: Ref<string[]>) => {
|
35
35
|
overflowTagIndex: Ref<number>;
|
36
36
|
};
|
package/lib/tag-input/index.d.ts
CHANGED
@@ -176,8 +176,8 @@ declare const TagInput: {
|
|
176
176
|
} & {
|
177
177
|
default: boolean;
|
178
178
|
};
|
179
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
180
|
-
default: "auto" | "auto-
|
179
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
180
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
181
181
|
};
|
182
182
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
183
183
|
default: string;
|
@@ -274,7 +274,7 @@ declare const TagInput: {
|
|
274
274
|
default: boolean;
|
275
275
|
};
|
276
276
|
tagOverflowTips: {
|
277
|
-
type: import("vue").PropType<Partial<import("../directives/
|
277
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
278
278
|
default: () => {};
|
279
279
|
};
|
280
280
|
}>> & {
|
@@ -519,8 +519,8 @@ declare const TagInput: {
|
|
519
519
|
} & {
|
520
520
|
default: boolean;
|
521
521
|
};
|
522
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
523
|
-
default: "auto" | "auto-
|
522
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
523
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
524
524
|
};
|
525
525
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
526
526
|
default: string;
|
@@ -617,7 +617,7 @@ declare const TagInput: {
|
|
617
617
|
default: boolean;
|
618
618
|
};
|
619
619
|
tagOverflowTips: {
|
620
|
-
type: import("vue").PropType<Partial<import("../directives/
|
620
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
621
621
|
default: () => {};
|
622
622
|
};
|
623
623
|
}>> & {
|
@@ -843,8 +843,8 @@ declare const TagInput: {
|
|
843
843
|
} & {
|
844
844
|
default: boolean;
|
845
845
|
};
|
846
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
847
|
-
default: "auto" | "auto-
|
846
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
847
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
848
848
|
};
|
849
849
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
850
850
|
default: string;
|
@@ -941,7 +941,7 @@ declare const TagInput: {
|
|
941
941
|
default: boolean;
|
942
942
|
};
|
943
943
|
tagOverflowTips: {
|
944
|
-
type: import("vue").PropType<Partial<import("../directives/
|
944
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
945
945
|
default: () => {};
|
946
946
|
};
|
947
947
|
}>> & {
|
@@ -1220,8 +1220,8 @@ declare const TagInput: {
|
|
1220
1220
|
} & {
|
1221
1221
|
default: boolean;
|
1222
1222
|
};
|
1223
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-
|
1224
|
-
default: "auto" | "auto-
|
1223
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"> & {
|
1224
|
+
default: "auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start";
|
1225
1225
|
};
|
1226
1226
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
1227
1227
|
default: string;
|
@@ -1318,7 +1318,7 @@ declare const TagInput: {
|
|
1318
1318
|
default: boolean;
|
1319
1319
|
};
|
1320
1320
|
tagOverflowTips: {
|
1321
|
-
type: import("vue").PropType<Partial<import("../directives/
|
1321
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
1322
1322
|
default: () => {};
|
1323
1323
|
};
|
1324
1324
|
}>> & {
|