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,112 @@
|
|
1
|
+
import { TreePropTypes as defineTypes } from './props';
|
2
|
+
export declare type TreePropTypes = defineTypes;
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
data: import("vue-types").VueTypeDef<any[]> & {
|
5
|
+
default: () => any[];
|
6
|
+
};
|
7
|
+
label: import("vue-types").VueTypeDef<any>;
|
8
|
+
children: import("vue-types").VueTypeValidableDef<string> & {
|
9
|
+
default: string;
|
10
|
+
} & {
|
11
|
+
default: string;
|
12
|
+
};
|
13
|
+
indent: import("vue-types").VueTypeValidableDef<number> & {
|
14
|
+
default: number;
|
15
|
+
} & {
|
16
|
+
default: number;
|
17
|
+
};
|
18
|
+
lineHeight: import("vue-types").VueTypeValidableDef<number> & {
|
19
|
+
default: number;
|
20
|
+
} & {
|
21
|
+
default: number;
|
22
|
+
}; /**
|
23
|
+
* 监听组件配置Data改变
|
24
|
+
*/
|
25
|
+
levelLine: import("vue-types").VueTypeDef<any> & {
|
26
|
+
default: any;
|
27
|
+
};
|
28
|
+
virtualRender: import("vue-types").VueTypeValidableDef<boolean> & {
|
29
|
+
default: boolean;
|
30
|
+
} & {
|
31
|
+
default: boolean;
|
32
|
+
};
|
33
|
+
prefixIcon: import("vue-types").VueTypeDef<any> & {
|
34
|
+
default: any;
|
35
|
+
};
|
36
|
+
async: import("vue-types").VueTypeShape<{
|
37
|
+
callback: (item: any, cb: any) => Promise<any>;
|
38
|
+
cache: Boolean;
|
39
|
+
}>;
|
40
|
+
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
41
|
+
default: number;
|
42
|
+
} & {
|
43
|
+
default: number;
|
44
|
+
};
|
45
|
+
}, {
|
46
|
+
renderData: import("vue").ComputedRef<any[]>;
|
47
|
+
flatData: {
|
48
|
+
data: any[];
|
49
|
+
schema: any[] | Map<string, any>;
|
50
|
+
levelLineSchema: {};
|
51
|
+
};
|
52
|
+
hanldeTreeNodeClick: (item: any) => void;
|
53
|
+
handleNodeContentClick: (item: any) => void;
|
54
|
+
handleNodeActionClick: (node: any) => void;
|
55
|
+
getActionIcon: (item: any) => any;
|
56
|
+
getRootIcon: (item: any) => JSX.Element;
|
57
|
+
getVirtualLines: (node: any) => JSX.Element[];
|
58
|
+
getNodePrefixIcon: (item: any) => any;
|
59
|
+
getLoadingIcon: (item: any) => "" | JSX.Element;
|
60
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
61
|
+
data: import("vue-types").VueTypeDef<any[]> & {
|
62
|
+
default: () => any[];
|
63
|
+
};
|
64
|
+
label: import("vue-types").VueTypeDef<any>;
|
65
|
+
children: import("vue-types").VueTypeValidableDef<string> & {
|
66
|
+
default: string;
|
67
|
+
} & {
|
68
|
+
default: string;
|
69
|
+
};
|
70
|
+
indent: import("vue-types").VueTypeValidableDef<number> & {
|
71
|
+
default: number;
|
72
|
+
} & {
|
73
|
+
default: number;
|
74
|
+
};
|
75
|
+
lineHeight: import("vue-types").VueTypeValidableDef<number> & {
|
76
|
+
default: number;
|
77
|
+
} & {
|
78
|
+
default: number;
|
79
|
+
}; /**
|
80
|
+
* 监听组件配置Data改变
|
81
|
+
*/
|
82
|
+
levelLine: import("vue-types").VueTypeDef<any> & {
|
83
|
+
default: any;
|
84
|
+
};
|
85
|
+
virtualRender: import("vue-types").VueTypeValidableDef<boolean> & {
|
86
|
+
default: boolean;
|
87
|
+
} & {
|
88
|
+
default: boolean;
|
89
|
+
};
|
90
|
+
prefixIcon: import("vue-types").VueTypeDef<any> & {
|
91
|
+
default: any;
|
92
|
+
};
|
93
|
+
async: import("vue-types").VueTypeShape<{
|
94
|
+
callback: (item: any, cb: any) => Promise<any>;
|
95
|
+
cache: Boolean;
|
96
|
+
}>;
|
97
|
+
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
98
|
+
default: number;
|
99
|
+
} & {
|
100
|
+
default: number;
|
101
|
+
};
|
102
|
+
}>>, {
|
103
|
+
data: any[];
|
104
|
+
lineHeight: number;
|
105
|
+
prefixIcon: any;
|
106
|
+
children: string;
|
107
|
+
indent: number;
|
108
|
+
levelLine: any;
|
109
|
+
virtualRender: boolean;
|
110
|
+
offsetLeft: number;
|
111
|
+
}>;
|
112
|
+
export default _default;
|
@@ -0,0 +1,52 @@
|
|
1
|
+
.bk-tree {
|
2
|
+
.bk-node-row {
|
3
|
+
padding-left: calc(var(--offset-left));
|
4
|
+
&.is-checked {
|
5
|
+
background-color: #EBF2FF;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
.bk-tree-node {
|
10
|
+
position: relative;
|
11
|
+
height: var(--lineHeight);
|
12
|
+
padding-left: 0;
|
13
|
+
line-height: var(--lineHeight);
|
14
|
+
cursor: pointer;
|
15
|
+
|
16
|
+
&:not(.is-root) {
|
17
|
+
margin-left: calc(var(--depth)*var(--indent));
|
18
|
+
|
19
|
+
&.level-line {
|
20
|
+
&::before {
|
21
|
+
position: absolute;
|
22
|
+
top: calc(50% + 1px);
|
23
|
+
left: calc(0px - var(--indent) + 6px);
|
24
|
+
z-index: 1;
|
25
|
+
width: calc(var(--indent) - 6px);
|
26
|
+
height: 0;
|
27
|
+
pointer-events: none;
|
28
|
+
border-bottom: var(--level-line);
|
29
|
+
content: '';
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.node-virtual-line {
|
35
|
+
display: inline-block;
|
36
|
+
position: absolute;
|
37
|
+
left: calc(var(--depth) * var(--indent) * -1 + 6px);
|
38
|
+
top: -12px;
|
39
|
+
bottom: 50%;
|
40
|
+
width: 0;
|
41
|
+
border-left: var(--level-line);
|
42
|
+
}
|
43
|
+
|
44
|
+
.bk-tree-icon {
|
45
|
+
margin: 0 6px 0 4px;
|
46
|
+
}
|
47
|
+
|
48
|
+
.node-content {
|
49
|
+
display: inline-block;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
.bk-tree .bk-node-row {
|
2
|
+
padding-left: calc(var(--offset-left));
|
3
|
+
}
|
4
|
+
.bk-tree .bk-node-row.is-checked {
|
5
|
+
background-color: #EBF2FF;
|
6
|
+
}
|
7
|
+
.bk-tree .bk-tree-node {
|
8
|
+
position: relative;
|
9
|
+
height: var(--lineHeight);
|
10
|
+
padding-left: 0;
|
11
|
+
line-height: var(--lineHeight);
|
12
|
+
cursor: pointer;
|
13
|
+
}
|
14
|
+
.bk-tree .bk-tree-node:not(.is-root) {
|
15
|
+
margin-left: calc(var(--depth)*var(--indent));
|
16
|
+
}
|
17
|
+
.bk-tree .bk-tree-node:not(.is-root).level-line::before {
|
18
|
+
position: absolute;
|
19
|
+
top: calc(50% + 1px);
|
20
|
+
left: calc(0px - var(--indent) + 6px);
|
21
|
+
z-index: 1;
|
22
|
+
width: calc(var(--indent) - 6px);
|
23
|
+
height: 0;
|
24
|
+
pointer-events: none;
|
25
|
+
border-bottom: var(--level-line);
|
26
|
+
content: '';
|
27
|
+
}
|
28
|
+
.bk-tree .bk-tree-node .node-virtual-line {
|
29
|
+
display: inline-block;
|
30
|
+
position: absolute;
|
31
|
+
left: calc(var(--depth) * var(--indent) * -1 + 6px);
|
32
|
+
top: -12px;
|
33
|
+
bottom: 50%;
|
34
|
+
width: 0;
|
35
|
+
border-left: var(--level-line);
|
36
|
+
}
|
37
|
+
.bk-tree .bk-tree-node .bk-tree-icon {
|
38
|
+
margin: 0 6px 0 4px;
|
39
|
+
}
|
40
|
+
.bk-tree .bk-tree-node .node-content {
|
41
|
+
display: inline-block;
|
42
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { TreePropTypes } from './props';
|
2
|
+
/**
|
3
|
+
* 扁平化当前数据
|
4
|
+
* @param arrData
|
5
|
+
* @returns
|
6
|
+
*/
|
7
|
+
export declare const getFlatdata: (props: TreePropTypes, treeData?: Array<any>, cachedSchema?: any[]) => (any[] | Map<string, any>)[];
|
8
|
+
/**
|
9
|
+
* 获取当前节点显示Label
|
10
|
+
* @param item 当前节点
|
11
|
+
* @param props Props
|
12
|
+
*/
|
13
|
+
export declare const getLabel: (item: any, props: TreePropTypes) => any;
|
14
|
+
/**
|
15
|
+
* 根据Props获取Tree样式设置
|
16
|
+
* @param item
|
17
|
+
* @param props
|
18
|
+
* @returns
|
19
|
+
*/
|
20
|
+
export declare const getTreeStyle: (item: any, props: TreePropTypes) => {
|
21
|
+
'--level-line': any;
|
22
|
+
'--lineHeight': string;
|
23
|
+
'--indent': string;
|
24
|
+
'--offset-left': string;
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* 获取节点样式配置
|
28
|
+
* @param item
|
29
|
+
* @param props
|
30
|
+
* @returns
|
31
|
+
*/
|
32
|
+
export declare const getNodeItemStyle: any;
|
33
|
+
/**
|
34
|
+
* 获取当前渲染节点Class List
|
35
|
+
* @param item
|
36
|
+
* @returns
|
37
|
+
*/
|
38
|
+
export declare const getNodeItemClass: (item: any, schema: any, props: TreePropTypes) => {
|
39
|
+
'is-root': any;
|
40
|
+
'bk-tree-node': boolean;
|
41
|
+
'is-open': any;
|
42
|
+
'is-virtual-render': boolean;
|
43
|
+
'level-line': any;
|
44
|
+
};
|
45
|
+
/**
|
46
|
+
* 获取当前渲染节点Class List
|
47
|
+
* @param item
|
48
|
+
* @returns
|
49
|
+
*/
|
50
|
+
export declare const getNodeRowClass: (item: any, schema: any) => {
|
51
|
+
'is-checked': any;
|
52
|
+
'bk-node-row': boolean;
|
53
|
+
};
|
54
|
+
/**
|
55
|
+
* 根据路径更新指定节点Child-Data
|
56
|
+
* @param path 节点路径
|
57
|
+
* @param treeData Tree Data
|
58
|
+
* @param childKey Child Key
|
59
|
+
* @param nodekey 节点key
|
60
|
+
* @param nodeValue 节点值
|
61
|
+
*/
|
62
|
+
export declare const updateTreeNode: (path: string, treeData: any[], childKey: string, nodekey: string, nodeValue: any) => void;
|
63
|
+
/**
|
64
|
+
* 根据路径更新指定节点Child-Data
|
65
|
+
* @param path 节点路径
|
66
|
+
* @param treeData Tree Data
|
67
|
+
* @param childKey Child Key
|
68
|
+
* @param assignVal value
|
69
|
+
*/
|
70
|
+
export declare const assignTreeNode: (path: string, treeData: any[], childKey: string, assignVal: any) => void;
|