@blueking/bkui-knowledge 0.0.1-beta.1
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 +316 -0
- package/bin/bkui-knowledge.js +321 -0
- package/knowledge/component-apis/affix.json +41 -0
- package/knowledge/component-apis/alert.json +63 -0
- package/knowledge/component-apis/animate-number.json +24 -0
- package/knowledge/component-apis/backtop.json +39 -0
- package/knowledge/component-apis/badge.json +70 -0
- package/knowledge/component-apis/breadcrumb.json +41 -0
- package/knowledge/component-apis/button.json +87 -0
- package/knowledge/component-apis/card.json +62 -0
- package/knowledge/component-apis/cascader.json +92 -0
- package/knowledge/component-apis/checkbox.json +103 -0
- package/knowledge/component-apis/code-diff.json +43 -0
- package/knowledge/component-apis/collapse.json +96 -0
- package/knowledge/component-apis/color-picker.json +60 -0
- package/knowledge/component-apis/config-provider.json +29 -0
- package/knowledge/component-apis/container.json +59 -0
- package/knowledge/component-apis/date-picker.json +84 -0
- package/knowledge/component-apis/dialog.json +124 -0
- package/knowledge/component-apis/divider.json +39 -0
- package/knowledge/component-apis/dropdown.json +60 -0
- package/knowledge/component-apis/exception.json +43 -0
- package/knowledge/component-apis/fixed-navbar.json +43 -0
- package/knowledge/component-apis/form.json +56 -0
- package/knowledge/component-apis/image.json +73 -0
- package/knowledge/component-apis/info-box.json +75 -0
- package/knowledge/component-apis/input.json +146 -0
- package/knowledge/component-apis/link.json +46 -0
- package/knowledge/component-apis/loading.json +48 -0
- package/knowledge/component-apis/menu.json +108 -0
- package/knowledge/component-apis/message.json +47 -0
- package/knowledge/component-apis/navigation.json +143 -0
- package/knowledge/component-apis/notify.json +57 -0
- package/knowledge/component-apis/overflow-title.json +38 -0
- package/knowledge/component-apis/pagination.json +98 -0
- package/knowledge/component-apis/pop-confirm.json +79 -0
- package/knowledge/component-apis/popover.json +73 -0
- package/knowledge/component-apis/process.json +55 -0
- package/knowledge/component-apis/progress.json +74 -0
- package/knowledge/component-apis/radio.json +79 -0
- package/knowledge/component-apis/rate.json +38 -0
- package/knowledge/component-apis/resize-layout.json +72 -0
- package/knowledge/component-apis/scrollbar.json +73 -0
- package/knowledge/component-apis/search-select.json +74 -0
- package/knowledge/component-apis/select.json +146 -0
- package/knowledge/component-apis/sideslider.json +80 -0
- package/knowledge/component-apis/slider.json +93 -0
- package/knowledge/component-apis/steps.json +51 -0
- package/knowledge/component-apis/swiper.json +51 -0
- package/knowledge/component-apis/switcher.json +93 -0
- package/knowledge/component-apis/tab.json +116 -0
- package/knowledge/component-apis/table.json +215 -0
- package/knowledge/component-apis/tag-input.json +110 -0
- package/knowledge/component-apis/tag.json +89 -0
- package/knowledge/component-apis/time-picker.json +63 -0
- package/knowledge/component-apis/timeline.json +42 -0
- package/knowledge/component-apis/transfer.json +78 -0
- package/knowledge/component-apis/tree.json +98 -0
- package/knowledge/component-apis/upload.json +103 -0
- package/knowledge/component-apis/virtual-render.json +71 -0
- package/knowledge/examples/404.tsx +33 -0
- package/knowledge/examples/affix/demo/affix-bottom.vue +6 -0
- package/knowledge/examples/affix/demo/affix-callback.vue +17 -0
- package/knowledge/examples/affix/demo/affix-container.vue +26 -0
- package/knowledge/examples/affix/demo/affix-top.vue +6 -0
- package/knowledge/examples/affix/demo/affix-z-index.vue +9 -0
- package/knowledge/examples/affix/demo/affix.vue +6 -0
- package/knowledge/examples/affix/index.tsx +165 -0
- package/knowledge/examples/alert/demo/alert-close-text.vue +38 -0
- package/knowledge/examples/alert/demo/alert-close.vue +30 -0
- package/knowledge/examples/alert/demo/alert-show-icon.vue +30 -0
- package/knowledge/examples/alert/demo/alert.vue +26 -0
- package/knowledge/examples/alert/index.tsx +171 -0
- package/knowledge/examples/animate-number/base-demo.vue +17 -0
- package/knowledge/examples/animate-number/index.tsx +80 -0
- package/knowledge/examples/backtop/base-demo.vue +4 -0
- package/knowledge/examples/backtop/index.tsx +102 -0
- package/knowledge/examples/badge/badge-demo.vue +63 -0
- package/knowledge/examples/badge/badge-dot.vue +27 -0
- package/knowledge/examples/badge/badge.vue +34 -0
- package/knowledge/examples/badge/index.tsx +191 -0
- package/knowledge/examples/blueking/crontab/demo/base.vue +7 -0
- package/knowledge/examples/blueking/crontab/index.tsx +82 -0
- package/knowledge/examples/blueking/date-picker/base-demo.vue +11 -0
- package/knowledge/examples/blueking/date-picker/baseline-time-demo.vue +39 -0
- package/knowledge/examples/blueking/date-picker/index.tsx +272 -0
- package/knowledge/examples/blueking/date-picker/simple-demo.vue +14 -0
- package/knowledge/examples/blueking/date-picker/time-demo.vue +39 -0
- package/knowledge/examples/blueking/date-picker/timezone-demo.vue +15 -0
- package/knowledge/examples/blueking/date-picker/validate-demo.vue +67 -0
- package/knowledge/examples/blueking/ediatable/base-config-demo.vue +97 -0
- package/knowledge/examples/blueking/ediatable/base-demo.vue +106 -0
- package/knowledge/examples/blueking/ediatable/components/cluster-name.vue +62 -0
- package/knowledge/examples/blueking/ediatable/components/regex-keys.vue +71 -0
- package/knowledge/examples/blueking/ediatable/components/render-row.vue +152 -0
- package/knowledge/examples/blueking/ediatable/components/switch-mode.vue +68 -0
- package/knowledge/examples/blueking/ediatable/components/target-datetime.vue +74 -0
- package/knowledge/examples/blueking/ediatable/components/target-number.vue +59 -0
- package/knowledge/examples/blueking/ediatable/datetime-picker-column-demo.vue +63 -0
- package/knowledge/examples/blueking/ediatable/index.tsx +400 -0
- package/knowledge/examples/blueking/ediatable/input-column-demo.vue +54 -0
- package/knowledge/examples/blueking/ediatable/select-column-demo.vue +67 -0
- package/knowledge/examples/blueking/ediatable/tag-input-column.vue +54 -0
- package/knowledge/examples/blueking/ediatable/text-plain-column-demo.vue +64 -0
- package/knowledge/examples/blueking/functional-deps/base-demo.vue +19 -0
- package/knowledge/examples/blueking/functional-deps/dialog-demo.vue +29 -0
- package/knowledge/examples/blueking/functional-deps/index.tsx +146 -0
- package/knowledge/examples/blueking/functional-deps/partial-demo.vue +19 -0
- package/knowledge/examples/blueking/log-search/base-demo.vue +36 -0
- package/knowledge/examples/blueking/log-search/index.tsx +102 -0
- package/knowledge/examples/blueking/log-search/module-combina-demo.vue +39 -0
- package/knowledge/examples/blueking/release-note/async-loading-demo.vue +40 -0
- package/knowledge/examples/blueking/release-note/base-demo.vue +23 -0
- package/knowledge/examples/blueking/release-note/index.tsx +208 -0
- package/knowledge/examples/blueking/release-note/release-note.vue +497 -0
- package/knowledge/examples/blueking/release-note/slot-demo.vue +21 -0
- package/knowledge/examples/blueking/status-tag/base-demo.vue +91 -0
- package/knowledge/examples/blueking/status-tag/custom-color-demo.vue +109 -0
- package/knowledge/examples/blueking/status-tag/i18n-demo.vue +148 -0
- package/knowledge/examples/blueking/status-tag/index.tsx +180 -0
- package/knowledge/examples/blueking/status-tag/installation-demo.vue +94 -0
- package/knowledge/examples/blueking/status-tag/type-demo.vue +132 -0
- package/knowledge/examples/breadcrumb/base-demo.vue +37 -0
- package/knowledge/examples/breadcrumb/index.tsx +215 -0
- package/knowledge/examples/breadcrumb/prefix-demo.vue +59 -0
- package/knowledge/examples/breadcrumb/separator-demo.vue +63 -0
- package/knowledge/examples/button/demo/basic.vue +21 -0
- package/knowledge/examples/button/demo/disabled.vue +17 -0
- package/knowledge/examples/button/demo/group.vue +141 -0
- package/knowledge/examples/button/demo/icon.vue +73 -0
- package/knowledge/examples/button/demo/loading-button.vue +31 -0
- package/knowledge/examples/button/demo/mouse-hover.vue +29 -0
- package/knowledge/examples/button/demo/outline.vue +18 -0
- package/knowledge/examples/button/demo/size.vue +139 -0
- package/knowledge/examples/button/demo/text.vue +36 -0
- package/knowledge/examples/button/index.tsx +210 -0
- package/knowledge/examples/card/card-demo.vue +89 -0
- package/knowledge/examples/card/card-edit.vue +68 -0
- package/knowledge/examples/card/index.tsx +197 -0
- package/knowledge/examples/cascader/base-demo.vue +87 -0
- package/knowledge/examples/cascader/check-any-level-demo.vue +87 -0
- package/knowledge/examples/cascader/checkbox-demo.vue +97 -0
- package/knowledge/examples/cascader/custom-fillback.vue +53 -0
- package/knowledge/examples/cascader/custom-trigger-demo.vue +83 -0
- package/knowledge/examples/cascader/extension-demo.vue +284 -0
- package/knowledge/examples/cascader/id-key.vue +166 -0
- package/knowledge/examples/cascader/index.tsx +424 -0
- package/knowledge/examples/cascader/multiple-toggle-demo.vue +81 -0
- package/knowledge/examples/cascader/panel-slot-demo.vue +81 -0
- package/knowledge/examples/cascader/remote-demo.vue +44 -0
- package/knowledge/examples/cascader/separator-demo.vue +66 -0
- package/knowledge/examples/cascader/show-complete-name.vue +69 -0
- package/knowledge/examples/cascader/slots-demo.vue +117 -0
- package/knowledge/examples/cascader.tsx +102 -0
- package/knowledge/examples/checkbox/demo/checkbox-checked.vue +18 -0
- package/knowledge/examples/checkbox/demo/checkbox-disabled.vue +18 -0
- package/knowledge/examples/checkbox/demo/checkbox-group.vue +15 -0
- package/knowledge/examples/checkbox/demo/checkbox-indeterminate.vue +10 -0
- package/knowledge/examples/checkbox/demo/checkbox-prechecked.vue +26 -0
- package/knowledge/examples/checkbox/demo/checkbox.vue +10 -0
- package/knowledge/examples/checkbox/index.tsx +239 -0
- package/knowledge/examples/code-diff/demo/basic.vue +87 -0
- package/knowledge/examples/code-diff/demo/demo.ts +111 -0
- package/knowledge/examples/code-diff/demo/diff-context.vue +93 -0
- package/knowledge/examples/code-diff/demo/format.vue +94 -0
- package/knowledge/examples/code-diff/demo/theme.vue +96 -0
- package/knowledge/examples/code-diff/index.tsx +171 -0
- package/knowledge/examples/collapse/demo/collapse-accordion.vue +32 -0
- package/knowledge/examples/collapse/demo/collapse-block.vue +30 -0
- package/knowledge/examples/collapse/demo/collapse-card.vue +30 -0
- package/knowledge/examples/collapse/demo/collapse-click.vue +38 -0
- package/knowledge/examples/collapse/demo/collapse-disabled.vue +34 -0
- package/knowledge/examples/collapse/demo/collapse-enter-leave.vue +38 -0
- package/knowledge/examples/collapse/demo/collapse-icon-align.vue +32 -0
- package/knowledge/examples/collapse/demo/collapse-icon.vue +31 -0
- package/knowledge/examples/collapse/demo/collapse-jsx.tsx +77 -0
- package/knowledge/examples/collapse/demo/collapse-line.vue +31 -0
- package/knowledge/examples/collapse/demo/collapse-panel.vue +43 -0
- package/knowledge/examples/collapse/demo/collapse-single.vue +13 -0
- package/knowledge/examples/collapse/demo/collapse-slot.vue +33 -0
- package/knowledge/examples/collapse/demo/collapse-title.vue +33 -0
- package/knowledge/examples/collapse/demo/collapse.vue +30 -0
- package/knowledge/examples/collapse/index.tsx +473 -0
- package/knowledge/examples/collapse.tsx +68 -0
- package/knowledge/examples/color-picker/base-demo.vue +34 -0
- package/knowledge/examples/color-picker/color-picker.tsx +200 -0
- package/knowledge/examples/color-picker/preset-demo.vue +25 -0
- package/knowledge/examples/color-picker/size-demo.vue +29 -0
- package/knowledge/examples/color-picker/slot-demo.vue +34 -0
- package/knowledge/examples/container/demo/all.vue +152 -0
- package/knowledge/examples/container/demo/base.vue +111 -0
- package/knowledge/examples/container/demo/custom-col.vue +78 -0
- package/knowledge/examples/container/demo/custom-gutter.vue +86 -0
- package/knowledge/examples/container/demo/custom-push-pull.vue +90 -0
- package/knowledge/examples/container/demo/flex.vue +63 -0
- package/knowledge/examples/container/index.tsx +209 -0
- package/knowledge/examples/date-picker/base-demo.vue +19 -0
- package/knowledge/examples/date-picker/demo-tsx.tsx +49 -0
- package/knowledge/examples/date-picker/footer-slot-demo.vue +26 -0
- package/knowledge/examples/date-picker/header-slot-demo.vue +26 -0
- package/knowledge/examples/date-picker/index.tsx +436 -0
- package/knowledge/examples/date-picker/month-range-demo.vue +33 -0
- package/knowledge/examples/date-picker/range-demo.vue +50 -0
- package/knowledge/examples/date-picker/shortcuts-slot-demo.vue +157 -0
- package/knowledge/examples/date-picker/trigger-slot-demo.vue +149 -0
- package/knowledge/examples/date-picker/with-time-demo.vue +44 -0
- package/knowledge/examples/date-picker/year-month-demo.vue +33 -0
- package/knowledge/examples/date-picker/year-range-demo.vue +33 -0
- package/knowledge/examples/dialog/base-demo.vue +52 -0
- package/knowledge/examples/dialog/before-close-demo.vue +47 -0
- package/knowledge/examples/dialog/fullscreen-demo.vue +66 -0
- package/knowledge/examples/dialog/index.tsx +338 -0
- package/knowledge/examples/dialog/mask-demo.vue +27 -0
- package/knowledge/examples/dialog/nested-demo.vue +76 -0
- package/knowledge/examples/divider/base-demo.vue +14 -0
- package/knowledge/examples/divider/divider.tsx +117 -0
- package/knowledge/examples/dropdown/align-demo.vue +46 -0
- package/knowledge/examples/dropdown/base-demo.vue +36 -0
- package/knowledge/examples/dropdown/boundary-body-demo.vue +34 -0
- package/knowledge/examples/dropdown/disabled-demo.vue +45 -0
- package/knowledge/examples/dropdown/dropdown-methods-demo.vue +35 -0
- package/knowledge/examples/dropdown/dropdown.tsx +246 -0
- package/knowledge/examples/dropdown/hide-ignore-reference.vue +37 -0
- package/knowledge/examples/dropdown/is-show-demo.vue +39 -0
- package/knowledge/examples/dropdown/trigger-demo.vue +30 -0
- package/knowledge/examples/dropdown.tsx +164 -0
- package/knowledge/examples/exception/base-demo.vue +63 -0
- package/knowledge/examples/exception/exception.tsx +98 -0
- package/knowledge/examples/exception/part-demo.vue +80 -0
- package/knowledge/examples/exception.tsx +147 -0
- package/knowledge/examples/fixed-navbar/base-demo.vue +29 -0
- package/knowledge/examples/fixed-navbar/index.tsx +151 -0
- package/knowledge/examples/form/demo/compose-form-item.vue +46 -0
- package/knowledge/examples/form/demo/form-description.vue +63 -0
- package/knowledge/examples/form/demo/form-validator.vue +115 -0
- package/knowledge/examples/form/demo/form-vertical.vue +60 -0
- package/knowledge/examples/form/demo/form.vue +94 -0
- package/knowledge/examples/form/index.tsx +383 -0
- package/knowledge/examples/home.tsx +36 -0
- package/knowledge/examples/icon/base-demo.vue +93 -0
- package/knowledge/examples/icon/import-demo.vue +12 -0
- package/knowledge/examples/icon/index.tsx +90 -0
- package/knowledge/examples/info-box/align-demo.vue +30 -0
- package/knowledge/examples/info-box/base-demo.vue +35 -0
- package/knowledge/examples/info-box/button-text-demo.vue +25 -0
- package/knowledge/examples/info-box/callback-demo.vue +27 -0
- package/knowledge/examples/info-box/index.tsx +272 -0
- package/knowledge/examples/info-box/status-demo.vue +81 -0
- package/knowledge/examples/input/demo/autosize.vue +68 -0
- package/knowledge/examples/input/demo/basic.vue +19 -0
- package/knowledge/examples/input/demo/clearable.vue +15 -0
- package/knowledge/examples/input/demo/combine.vue +86 -0
- package/knowledge/examples/input/demo/event-callback.vue +19 -0
- package/knowledge/examples/input/demo/hover-clear.vue +13 -0
- package/knowledge/examples/input/demo/icon.vue +41 -0
- package/knowledge/examples/input/demo/max-length.vue +38 -0
- package/knowledge/examples/input/demo/native-attrs.vue +27 -0
- package/knowledge/examples/input/demo/number.vue +54 -0
- package/knowledge/examples/input/demo/password.vue +13 -0
- package/knowledge/examples/input/demo/simple.vue +13 -0
- package/knowledge/examples/input/demo/size.vue +52 -0
- package/knowledge/examples/input/demo/status.vue +23 -0
- package/knowledge/examples/input/demo/textarea.vue +31 -0
- package/knowledge/examples/input/index.tsx +587 -0
- package/knowledge/examples/link/base-demo.vue +31 -0
- package/knowledge/examples/link/disable-demo.vue +35 -0
- package/knowledge/examples/link/icon-demo.vue +23 -0
- package/knowledge/examples/link/index.tsx +120 -0
- package/knowledge/examples/loading/demo/basic.vue +15 -0
- package/knowledge/examples/loading/demo/directive.vue +52 -0
- package/knowledge/examples/loading/demo/mask.vue +26 -0
- package/knowledge/examples/loading/demo/mode.vue +31 -0
- package/knowledge/examples/loading/demo/size.vue +28 -0
- package/knowledge/examples/loading/demo/theme.vue +30 -0
- package/knowledge/examples/loading/demo/title.vue +22 -0
- package/knowledge/examples/loading/index.tsx +187 -0
- package/knowledge/examples/menu/base-demo.vue +62 -0
- package/knowledge/examples/menu/index.tsx +224 -0
- package/knowledge/examples/message/base-demo.vue +16 -0
- package/knowledge/examples/message/close-demo.vue +34 -0
- package/knowledge/examples/message/message.tsx +337 -0
- package/knowledge/examples/message/multi-demo.vue +135 -0
- package/knowledge/examples/message/theme-demo.vue +59 -0
- package/knowledge/examples/navigation/base-demo.vue +117 -0
- package/knowledge/examples/navigation/index.tsx +175 -0
- package/knowledge/examples/navigation/theme-demo.vue +124 -0
- package/knowledge/examples/notify/demo/base.vue +37 -0
- package/knowledge/examples/notify/demo/close.vue +42 -0
- package/knowledge/examples/notify/demo/position.vue +55 -0
- package/knowledge/examples/notify/demo/theme.vue +45 -0
- package/knowledge/examples/notify/index.tsx +177 -0
- package/knowledge/examples/overflow-title/base-demo.vue +15 -0
- package/knowledge/examples/overflow-title/directive.vue +21 -0
- package/knowledge/examples/overflow-title/index.tsx +153 -0
- package/knowledge/examples/pagination/demo/pagination-small.vue +16 -0
- package/knowledge/examples/pagination/demo/pagination.vue +16 -0
- package/knowledge/examples/pagination/index.tsx +193 -0
- package/knowledge/examples/pop-components.tsx +151 -0
- package/knowledge/examples/pop-confirm/demo-base.vue +42 -0
- package/knowledge/examples/pop-confirm/demo-icon.vue +27 -0
- package/knowledge/examples/pop-confirm/demo-select.vue +44 -0
- package/knowledge/examples/pop-confirm/demo-simple.vue +27 -0
- package/knowledge/examples/pop-confirm/demo-slot.vue +27 -0
- package/knowledge/examples/pop-confirm/hide-ignore-reference.vue +45 -0
- package/knowledge/examples/pop-confirm/index.tsx +266 -0
- package/knowledge/examples/popover/demo/always.vue +12 -0
- package/knowledge/examples/popover/demo/base.vue +34 -0
- package/knowledge/examples/popover/demo/callback.vue +28 -0
- package/knowledge/examples/popover/demo/hide-ignore-reference.vue +9 -0
- package/knowledge/examples/popover/demo/manual-trigger.vue +43 -0
- package/knowledge/examples/popover/demo/mouse-event.vue +48 -0
- package/knowledge/examples/popover/demo/position.vue +165 -0
- package/knowledge/examples/popover/demo/slot.vue +20 -0
- package/knowledge/examples/popover/index.tsx +425 -0
- package/knowledge/examples/process/base-demo.vue +32 -0
- package/knowledge/examples/process/index.tsx +141 -0
- package/knowledge/examples/process/loading-demo.vue +30 -0
- package/knowledge/examples/process/status-demo.vue +42 -0
- package/knowledge/examples/process.tsx +65 -0
- package/knowledge/examples/progress/base-demo.vue +52 -0
- package/knowledge/examples/progress/change-demo.vue +43 -0
- package/knowledge/examples/progress/index.tsx +253 -0
- package/knowledge/examples/progress/size-demo.vue +100 -0
- package/knowledge/examples/progress/text-demo.vue +51 -0
- package/knowledge/examples/progress/type-demo.vue +44 -0
- package/knowledge/examples/progress/type-size-demo.vue +69 -0
- package/knowledge/examples/radio/demo/radio-button.vue +12 -0
- package/knowledge/examples/radio/demo/radio-card.vue +15 -0
- package/knowledge/examples/radio/demo/radio-checked.vue +11 -0
- package/knowledge/examples/radio/demo/radio-disabled.vue +16 -0
- package/knowledge/examples/radio/demo/radio-group-capsule.vue +17 -0
- package/knowledge/examples/radio/demo/radio-group.vue +41 -0
- package/knowledge/examples/radio/demo/radio.vue +45 -0
- package/knowledge/examples/radio/index.tsx +300 -0
- package/knowledge/examples/rate/base-demo.vue +11 -0
- package/knowledge/examples/rate/edit-demo.vue +16 -0
- package/knowledge/examples/rate/index.tsx +140 -0
- package/knowledge/examples/rate/size-demo.vue +19 -0
- package/knowledge/examples/resize-layout/advance-demo.vue +52 -0
- package/knowledge/examples/resize-layout/auto-minimize-demo.vue +16 -0
- package/knowledge/examples/resize-layout/base-demo.vue +28 -0
- package/knowledge/examples/resize-layout/collapsible-demo.vue +16 -0
- package/knowledge/examples/resize-layout/immediate-demo.vue +18 -0
- package/knowledge/examples/resize-layout/resize-layout.tsx +251 -0
- package/knowledge/examples/search-select/base-demo.vue +152 -0
- package/knowledge/examples/search-select/comprehensive-use.vue +133 -0
- package/knowledge/examples/search-select/index.tsx +352 -0
- package/knowledge/examples/search-select/menu-demo.vue +134 -0
- package/knowledge/examples/search-select/placeholder-demo.vue +75 -0
- package/knowledge/examples/search-select/remote-demo.vue +82 -0
- package/knowledge/examples/search-select/validate-demo.vue +99 -0
- package/knowledge/examples/search-select/value-behavior.vue +56 -0
- package/knowledge/examples/select/select-allow-create.vue +95 -0
- package/knowledge/examples/select/select-base-demo.vue +116 -0
- package/knowledge/examples/select/select-group-demo.vue +88 -0
- package/knowledge/examples/select/select-multi-demo.vue +140 -0
- package/knowledge/examples/select/select-scrollloading-demo.vue +68 -0
- package/knowledge/examples/select/select-search-demo.vue +151 -0
- package/knowledge/examples/select/select-slot-demo.vue +226 -0
- package/knowledge/examples/select/select-style-demo.vue +119 -0
- package/knowledge/examples/select/select-tree-demo.vue +130 -0
- package/knowledge/examples/select/select-trigger-demo.vue +74 -0
- package/knowledge/examples/select/select-virtual-render.vue +51 -0
- package/knowledge/examples/select/select.tsx +697 -0
- package/knowledge/examples/sideslider/base-demo.vue +28 -0
- package/knowledge/examples/sideslider/before-close-demo.vue +40 -0
- package/knowledge/examples/sideslider/direction-demo.vue +52 -0
- package/knowledge/examples/sideslider/footer-demo.vue +45 -0
- package/knowledge/examples/sideslider/index.tsx +248 -0
- package/knowledge/examples/sideslider/sideslider.tsx +104 -0
- package/knowledge/examples/sideslider/title-demo.vue +29 -0
- package/knowledge/examples/slider/base-demo.vue +49 -0
- package/knowledge/examples/slider/custom-demo.vue +57 -0
- package/knowledge/examples/slider/input-demo.vue +45 -0
- package/knowledge/examples/slider/slider.tsx +295 -0
- package/knowledge/examples/slider/step-demo.vue +70 -0
- package/knowledge/examples/slider/vertical-demo.vue +33 -0
- package/knowledge/examples/slider.tsx +143 -0
- package/knowledge/examples/start/index.tsx +42 -0
- package/knowledge/examples/start/start.md +86 -0
- package/knowledge/examples/steps/base-demo.vue +8 -0
- package/knowledge/examples/steps/controllable-demo.vue +32 -0
- package/knowledge/examples/steps/custom-demo.vue +45 -0
- package/knowledge/examples/steps/direction-demo.vue +28 -0
- package/knowledge/examples/steps/index.tsx +206 -0
- package/knowledge/examples/steps/size-demo.vue +5 -0
- package/knowledge/examples/steps/status-demo.vue +20 -0
- package/knowledge/examples/steps/theme-demo.vue +25 -0
- package/knowledge/examples/steps.tsx +107 -0
- package/knowledge/examples/swiper/base-demo.vue +24 -0
- package/knowledge/examples/swiper/index.tsx +135 -0
- package/knowledge/examples/swiper/slot-demo.vue +18 -0
- package/knowledge/examples/switcher/base-demo.vue +33 -0
- package/knowledge/examples/switcher/before-change-demo.vue +35 -0
- package/knowledge/examples/switcher/disabled-demo.vue +67 -0
- package/knowledge/examples/switcher/index.tsx +261 -0
- package/knowledge/examples/switcher/size-demo.vue +43 -0
- package/knowledge/examples/switcher/text-demo.vue +46 -0
- package/knowledge/examples/switcher/theme-demo.vue +36 -0
- package/knowledge/examples/switcher/type-demo.vue +173 -0
- package/knowledge/examples/tab/demo-add.vue +48 -0
- package/knowledge/examples/tab/demo-base.vue +36 -0
- package/knowledge/examples/tab/demo-border-card.vue +29 -0
- package/knowledge/examples/tab/demo-card-grid.vue +29 -0
- package/knowledge/examples/tab/demo-card-tab.vue +29 -0
- package/knowledge/examples/tab/demo-card.vue +41 -0
- package/knowledge/examples/tab/demo-drag.vue +30 -0
- package/knowledge/examples/tab/demo-extend.vue +58 -0
- package/knowledge/examples/tab/demo-jsx.tsx +196 -0
- package/knowledge/examples/tab/demo-number.vue +95 -0
- package/knowledge/examples/tab/demo-position.vue +46 -0
- package/knowledge/examples/tab/index.tsx +334 -0
- package/knowledge/examples/table/basic-filter.vue +130 -0
- package/knowledge/examples/table/basic-sort-behavior.vue +62 -0
- package/knowledge/examples/table/basic-sort.vue +64 -0
- package/knowledge/examples/table/basic-span.vue +70 -0
- package/knowledge/examples/table/basic.tsx +323 -0
- package/knowledge/examples/table/basic.vue +229 -0
- package/knowledge/examples/table/bordered.vue +34 -0
- package/knowledge/examples/table/btn-demo.vue +20 -0
- package/knowledge/examples/table/cell-render.tsx +68 -0
- package/knowledge/examples/table/col-wrapper.vue +10 -0
- package/knowledge/examples/table/column-template-index.vue +66 -0
- package/knowledge/examples/table/column-template.tsx +63 -0
- package/knowledge/examples/table/column-template.vue +129 -0
- package/knowledge/examples/table/config.ts +831 -0
- package/knowledge/examples/table/custom-head.vue +63 -0
- package/knowledge/examples/table/data-empty-cell.vue +130 -0
- package/knowledge/examples/table/data-empty.vue +53 -0
- package/knowledge/examples/table/event.vue +40 -0
- package/knowledge/examples/table/expand.vue +67 -0
- package/knowledge/examples/table/filter-scope.vue +59 -0
- package/knowledge/examples/table/fixed.vue +24 -0
- package/knowledge/examples/table/flex-layout.vue +46 -0
- package/knowledge/examples/table/index.tsx +495 -0
- package/knowledge/examples/table/multi-header.vue +218 -0
- package/knowledge/examples/table/options.tsx +385 -0
- package/knowledge/examples/table/pagination.vue +31 -0
- package/knowledge/examples/table/remotePagination.vue +54 -0
- package/knowledge/examples/table/scroll-horizontal.vue +45 -0
- package/knowledge/examples/table/scroll-loading-slot.vue +56 -0
- package/knowledge/examples/table/scroll-loading.vue +65 -0
- package/knowledge/examples/table/selection.vue +48 -0
- package/knowledge/examples/table/virtual-render.vue +59 -0
- package/knowledge/examples/tag/base-demo.vue +21 -0
- package/knowledge/examples/tag/check-demo.vue +28 -0
- package/knowledge/examples/tag/closable-demo.vue +21 -0
- package/knowledge/examples/tag/icon-demo.vue +26 -0
- package/knowledge/examples/tag/index.tsx +213 -0
- package/knowledge/examples/tag/radius-demo.vue +29 -0
- package/knowledge/examples/tag/size-demo.vue +42 -0
- package/knowledge/examples/tag/type-demo.vue +71 -0
- package/knowledge/examples/tag-input/base-demo.vue +34 -0
- package/knowledge/examples/tag-input/clear-demo.vue +36 -0
- package/knowledge/examples/tag-input/copy-demo.vue +48 -0
- package/knowledge/examples/tag-input/create-demo.vue +29 -0
- package/knowledge/examples/tag-input/disabled-demo.vue +27 -0
- package/knowledge/examples/tag-input/example-demo.vue +47 -0
- package/knowledge/examples/tag-input/group-demo.vue +45 -0
- package/knowledge/examples/tag-input/index.tsx +438 -0
- package/knowledge/examples/tag-input/list-disabled-demo.vue +27 -0
- package/knowledge/examples/tag-input/match-demo.vue +38 -0
- package/knowledge/examples/tag-input/more-demo.vue +38 -0
- package/knowledge/examples/tag-input/paste-demo.vue +31 -0
- package/knowledge/examples/tag-input/single-demo.vue +62 -0
- package/knowledge/examples/tag-input/tooltips-demo.vue +47 -0
- package/knowledge/examples/tag-input/trigger-demo.vue +28 -0
- package/knowledge/examples/test.tsx +60 -0
- package/knowledge/examples/time-picker/base-demo.vue +8 -0
- package/knowledge/examples/time-picker/index.tsx +296 -0
- package/knowledge/examples/time-picker/range-demo.vue +18 -0
- package/knowledge/examples/timeline/base-demo.vue +50 -0
- package/knowledge/examples/timeline/custom-demo.vue +57 -0
- package/knowledge/examples/timeline/html-demo.vue +41 -0
- package/knowledge/examples/timeline/index.tsx +212 -0
- package/knowledge/examples/timeline/node-demo.vue +45 -0
- package/knowledge/examples/timeline/status-demo.vue +131 -0
- package/knowledge/examples/timeline/vnode-demo.vue +84 -0
- package/knowledge/examples/timeline.tsx +101 -0
- package/knowledge/examples/tooltips/demo/base.tsx +54 -0
- package/knowledge/examples/tooltips/demo/base.vue +42 -0
- package/knowledge/examples/tooltips/demo/boundary.vue +50 -0
- package/knowledge/examples/tooltips/demo/callback.vue +52 -0
- package/knowledge/examples/tooltips/demo/click.vue +42 -0
- package/knowledge/examples/tooltips/demo/position.vue +111 -0
- package/knowledge/examples/tooltips/index.tsx +218 -0
- package/knowledge/examples/transfer/base-demo.vue +47 -0
- package/knowledge/examples/transfer/custom-header-demo.vue +147 -0
- package/knowledge/examples/transfer/custom-option-demo.vue +47 -0
- package/knowledge/examples/transfer/index.tsx +288 -0
- package/knowledge/examples/transfer/multiple-demo.vue +41 -0
- package/knowledge/examples/transfer/normal-list-demo.vue +30 -0
- package/knowledge/examples/transfer/search-demo.vue +152 -0
- package/knowledge/examples/transfer/target-list-demo.vue +46 -0
- package/knowledge/examples/tree/async.vue +119 -0
- package/knowledge/examples/tree/auto-config.vue +65 -0
- package/knowledge/examples/tree/basic.vue +53 -0
- package/knowledge/examples/tree/config.ts +342 -0
- package/knowledge/examples/tree/custom-node.vue +101 -0
- package/knowledge/examples/tree/draggable-function.vue +43 -0
- package/knowledge/examples/tree/draggable.vue +47 -0
- package/knowledge/examples/tree/expand-all.vue +26 -0
- package/knowledge/examples/tree/index.tsx +262 -0
- package/knowledge/examples/tree/level-line.vue +45 -0
- package/knowledge/examples/tree/node-content-action.vue +78 -0
- package/knowledge/examples/tree/options.ts +463 -0
- package/knowledge/examples/tree/prefix-icon-jsx.tsx +76 -0
- package/knowledge/examples/tree/prefix-icon.vue +128 -0
- package/knowledge/examples/tree/search.vue +108 -0
- package/knowledge/examples/tree/selected.vue +98 -0
- package/knowledge/examples/tree/tree.less +14 -0
- package/knowledge/examples/tree/virtual-render.vue +111 -0
- package/knowledge/examples/upload/demo/accept-image.vue +22 -0
- package/knowledge/examples/upload/demo/accept-zip.vue +22 -0
- package/knowledge/examples/upload/demo/base.vue +70 -0
- package/knowledge/examples/upload/demo/limit.vue +34 -0
- package/knowledge/examples/upload/demo/max-size.vue +27 -0
- package/knowledge/examples/upload/demo/preview-image.vue +90 -0
- package/knowledge/examples/upload/demo/single-picture.vue +36 -0
- package/knowledge/examples/upload/demo/slots-file.vue +68 -0
- package/knowledge/examples/upload/demo/theme-button.vue +30 -0
- package/knowledge/examples/upload/demo/theme-picture.vue +36 -0
- package/knowledge/examples/upload/index.tsx +407 -0
- package/knowledge/examples/utils/index.ts +81 -0
- package/knowledge/examples/virtual-render/basic.vue +127 -0
- package/knowledge/examples/virtual-render/custom-line-height.vue +122 -0
- package/knowledge/examples/virtual-render/index.tsx +79 -0
- package/knowledge/examples/virtual-render/scrollbar.vue +130 -0
- package/knowledge/manifest.json +667 -0
- package/knowledge/skills/.template/README.md +38 -0
- package/knowledge/skills/.template/SKILL.md +48 -0
- package/knowledge/skills/.template/assets/.gitkeep +3 -0
- package/knowledge/skills/.template/references/advanced.md +23 -0
- package/knowledge/skills/.template/references/examples.md +19 -0
- package/knowledge/skills/.template/references/troubleshooting.md +27 -0
- package/knowledge/skills/api-standard/SKILL.md +64 -0
- package/knowledge/skills/api-standard/assets/http.ts +121 -0
- package/knowledge/skills/api-standard/references/full-implementation.md +249 -0
- package/knowledge/skills/api-standard/references/protocol-migration.md +51 -0
- package/knowledge/skills/bkui-builder/SKILL.md +57 -0
- package/knowledge/skills/bkui-builder/assets/layouts/admin-layout-dark.vue +371 -0
- package/knowledge/skills/bkui-builder/assets/layouts/admin-layout-left.vue +134 -0
- package/knowledge/skills/bkui-builder/assets/layouts/admin-layout-top.vue +129 -0
- package/knowledge/skills/bkui-builder/assets/pages/dashboard-page.vue +69 -0
- package/knowledge/skills/bkui-builder/assets/pages/detail-page.vue +93 -0
- package/knowledge/skills/bkui-builder/assets/pages/table-page.vue +293 -0
- package/knowledge/skills/bkui-builder/assets/pages/wizard-form.vue +84 -0
- package/knowledge/skills/bkui-builder/references/checklist.md +72 -0
- package/knowledge/skills/bkui-builder/references/code-snippets.md +145 -0
- package/knowledge/skills/bkui-builder/references/visual-mapping.md +190 -0
- package/knowledge/skills/bkui-cheatsheet/SKILL.md +62 -0
- package/knowledge/skills/bkui-cheatsheet/references/complex-components.md +242 -0
- package/knowledge/skills/bundle-optimization/SKILL.md +44 -0
- package/knowledge/skills/bundle-optimization/assets/vite.config.optimization.ts +53 -0
- package/knowledge/skills/code-review/SKILL.md +54 -0
- package/knowledge/skills/code-review/assets/pre-commit-review.sh +69 -0
- package/knowledge/skills/code-review/references/checklist.md +329 -0
- package/knowledge/skills/code-review/references/git-scenarios.md +242 -0
- package/knowledge/skills/code-review/references/report-examples.md +120 -0
- package/knowledge/skills/code-review/references/report-format.md +75 -0
- package/knowledge/skills/code-review/references/scoring-standard.md +69 -0
- package/knowledge/skills/code-review/references/writing-guidelines.md +44 -0
- package/knowledge/skills/js-security-check/SKILL.md +52 -0
- package/knowledge/skills/js-security-check/references/checklist.md +144 -0
- package/knowledge/skills/js-security-check/references/fix-examples.md +289 -0
- package/knowledge/skills/js-security-check/references/report-format.md +140 -0
- package/knowledge/skills/js-security-check/references/scoring-standard.md +67 -0
- package/knowledge/skills/js-security-check/references/security-toolkit.md +354 -0
- package/knowledge/skills/nodejs-security-check/SKILL.md +52 -0
- package/knowledge/skills/nodejs-security-check/references/checklist.md +177 -0
- package/knowledge/skills/nodejs-security-check/references/fix-examples.md +384 -0
- package/knowledge/skills/nodejs-security-check/references/report-format.md +165 -0
- package/knowledge/skills/nodejs-security-check/references/scoring-standard.md +88 -0
- package/knowledge/skills/nodejs-security-check/references/security-toolkit.md +426 -0
- package/knowledge/skills/permission-directive/SKILL.md +51 -0
- package/knowledge/skills/permission-directive/assets/authority-directive.ts +104 -0
- package/knowledge/skills/pinia-setup/SKILL.md +65 -0
- package/knowledge/skills/pinia-setup/assets/store-template.ts +122 -0
- package/knowledge/skills/unit-testing/SKILL.md +71 -0
- package/knowledge/skills/unit-testing/assets/component.spec.ts +153 -0
- package/knowledge/skills/virtual-list/SKILL.md +63 -0
- package/knowledge/skills/virtual-list/assets/VirtualList.vue +123 -0
- package/knowledge/skills/vite-migration/SKILL.md +12 -0
- package/knowledge/skills/vite-migration/scripts/check-migration.js +165 -0
- package/knowledge/skills/vue-composables/SKILL.md +37 -0
- package/knowledge/skills/vue-composables/assets/useTable.ts +138 -0
- package/package.json +26 -0
- package/server/mcp-core.js +636 -0
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Tencent is pleased to support the open source community by making
|
|
3
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
8
|
+
*
|
|
9
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
|
10
|
+
*
|
|
11
|
+
* ---------------------------------------------------
|
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
13
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
|
14
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
|
15
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
16
|
+
*
|
|
17
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
|
18
|
+
* the Software.
|
|
19
|
+
*
|
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
21
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
23
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
24
|
+
* IN THE SOFTWARE.
|
|
25
|
+
*/
|
|
26
|
+
export const BASIC_DATA = [
|
|
27
|
+
{
|
|
28
|
+
name: '方案成熟',
|
|
29
|
+
isOpen: true,
|
|
30
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
31
|
+
id: '/',
|
|
32
|
+
children: [
|
|
33
|
+
{
|
|
34
|
+
name: 'child-1-方案成熟-拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
35
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
36
|
+
children: [],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'child-1-覆盖全面',
|
|
40
|
+
content:
|
|
41
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
42
|
+
children: [],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'child-1-开放平台',
|
|
46
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
47
|
+
children: [
|
|
48
|
+
{
|
|
49
|
+
name: 'child-1-方案成熟',
|
|
50
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
51
|
+
children: [],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'child-1-覆盖全面',
|
|
55
|
+
content:
|
|
56
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
57
|
+
children: [],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'child-1-开放平台',
|
|
61
|
+
isOpen: true,
|
|
62
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
63
|
+
children: [],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: '覆盖全面',
|
|
71
|
+
content:
|
|
72
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
73
|
+
id: '//',
|
|
74
|
+
children: [
|
|
75
|
+
{
|
|
76
|
+
name: 'child-2-方案成熟',
|
|
77
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
78
|
+
children: [],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'child-2-覆盖全面',
|
|
82
|
+
content:
|
|
83
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
84
|
+
children: [],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'child-2-开放平台',
|
|
88
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
89
|
+
children: [],
|
|
90
|
+
checked: true,
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: '开放平台',
|
|
96
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
97
|
+
children: [
|
|
98
|
+
{
|
|
99
|
+
name: 'child-3-方案成熟',
|
|
100
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
101
|
+
children: [],
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'child-3-覆盖全面',
|
|
105
|
+
content:
|
|
106
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
107
|
+
children: [],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'child-3-开放平台',
|
|
111
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
112
|
+
children: [],
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
];
|
|
117
|
+
|
|
118
|
+
export const ASYNC_DATA = [
|
|
119
|
+
{
|
|
120
|
+
name: '方案成熟',
|
|
121
|
+
async: true,
|
|
122
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
123
|
+
id: '1',
|
|
124
|
+
children: [],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: '覆盖全面',
|
|
128
|
+
async: true,
|
|
129
|
+
content:
|
|
130
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
131
|
+
id: '2',
|
|
132
|
+
children: [],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: '开放平台',
|
|
136
|
+
async: true,
|
|
137
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
138
|
+
id: '3',
|
|
139
|
+
children: [],
|
|
140
|
+
},
|
|
141
|
+
];
|
|
142
|
+
|
|
143
|
+
export const AUTO_OPEN_DATA = [
|
|
144
|
+
{
|
|
145
|
+
name: '方案成熟',
|
|
146
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
147
|
+
children: [
|
|
148
|
+
{
|
|
149
|
+
name: 'child-1-方案成熟-拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
150
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
151
|
+
children: [],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'child-1-覆盖全面',
|
|
155
|
+
content:
|
|
156
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
157
|
+
children: [],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: 'child-1-开放平台',
|
|
161
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
162
|
+
children: [
|
|
163
|
+
{
|
|
164
|
+
name: 'child-1-方案成熟',
|
|
165
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
166
|
+
children: [],
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'child-1-覆盖全面',
|
|
170
|
+
content:
|
|
171
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
172
|
+
children: [],
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: 'child-1-开放平台',
|
|
176
|
+
isOpen: true,
|
|
177
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
178
|
+
children: [],
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: '覆盖全面',
|
|
186
|
+
content:
|
|
187
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
188
|
+
children: [
|
|
189
|
+
{
|
|
190
|
+
name: 'child-2-方案成熟',
|
|
191
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
192
|
+
children: [],
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: 'child-2-覆盖全面',
|
|
196
|
+
content:
|
|
197
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
198
|
+
children: [],
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: 'child-2-开放平台',
|
|
202
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
203
|
+
children: [],
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: '开放平台',
|
|
209
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
210
|
+
isOpen: true,
|
|
211
|
+
children: [
|
|
212
|
+
{
|
|
213
|
+
name: 'child-3-方案成熟',
|
|
214
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
215
|
+
children: [],
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: 'child-3-覆盖全面',
|
|
219
|
+
content:
|
|
220
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
221
|
+
children: [],
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: 'child-3-开放平台',
|
|
225
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
226
|
+
children: [],
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
},
|
|
230
|
+
];
|
|
231
|
+
|
|
232
|
+
export const AUTO_CHECKED_DATA = [
|
|
233
|
+
{
|
|
234
|
+
name: '方案成熟',
|
|
235
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
236
|
+
children: [
|
|
237
|
+
{
|
|
238
|
+
name: 'child-1-方案成熟-拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
239
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
240
|
+
children: [],
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: 'child-1-覆盖全面',
|
|
244
|
+
content:
|
|
245
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
246
|
+
children: [],
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
name: 'child-1-开放平台',
|
|
250
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
251
|
+
children: [
|
|
252
|
+
{
|
|
253
|
+
name: 'child-1-方案成熟',
|
|
254
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
255
|
+
children: [],
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: 'child-1-覆盖全面',
|
|
259
|
+
content:
|
|
260
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
261
|
+
children: [],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'child-1-开放平台',
|
|
265
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
266
|
+
children: [],
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
name: '覆盖全面',
|
|
274
|
+
content:
|
|
275
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
276
|
+
children: [
|
|
277
|
+
{
|
|
278
|
+
name: 'child-2-方案成熟',
|
|
279
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
280
|
+
children: [],
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: 'child-2-覆盖全面',
|
|
284
|
+
content:
|
|
285
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
286
|
+
children: [],
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: 'child-2-开放平台',
|
|
290
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
291
|
+
children: [],
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: '开放平台',
|
|
297
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
298
|
+
isOpen: true,
|
|
299
|
+
children: [
|
|
300
|
+
{
|
|
301
|
+
name: 'child-3-方案成熟',
|
|
302
|
+
isOpen: true,
|
|
303
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
304
|
+
children: [],
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: 'child-3-覆盖全面',
|
|
308
|
+
content:
|
|
309
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
310
|
+
children: [],
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: 'child-3-开放平台',
|
|
314
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
315
|
+
checked: true,
|
|
316
|
+
children: [],
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
},
|
|
320
|
+
];
|
|
321
|
+
|
|
322
|
+
export const SINGLE_NODE_DATA = [
|
|
323
|
+
{
|
|
324
|
+
name: '方案成熟',
|
|
325
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
326
|
+
id: '/',
|
|
327
|
+
children: [
|
|
328
|
+
{
|
|
329
|
+
id: '/1/',
|
|
330
|
+
name: 'child-1-方案成熟-拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
331
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
332
|
+
children: [],
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
id: '/2/',
|
|
336
|
+
name: 'child-1-覆盖全面',
|
|
337
|
+
content:
|
|
338
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
339
|
+
children: [],
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
id: '/3/',
|
|
343
|
+
name: 'child-1-开放平台',
|
|
344
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
345
|
+
children: [
|
|
346
|
+
{
|
|
347
|
+
id: '/3/1/',
|
|
348
|
+
name: 'child-1-方案成熟',
|
|
349
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
350
|
+
children: [],
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
id: '/3/2/',
|
|
354
|
+
name: 'child-1-覆盖全面',
|
|
355
|
+
content:
|
|
356
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
357
|
+
children: [],
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
id: '/3/3/',
|
|
361
|
+
name: 'child-1-开放平台',
|
|
362
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
363
|
+
children: [],
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
},
|
|
367
|
+
],
|
|
368
|
+
},
|
|
369
|
+
];
|
|
370
|
+
export const DRAG_TEST_DATA = [
|
|
371
|
+
{
|
|
372
|
+
name: '方案成熟',
|
|
373
|
+
isOpen: true,
|
|
374
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
375
|
+
id: '/',
|
|
376
|
+
isFolder: true,
|
|
377
|
+
children: [
|
|
378
|
+
{
|
|
379
|
+
name: 'child-1-方案成熟-拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
380
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
381
|
+
isFolder: true,
|
|
382
|
+
children: [],
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
name: 'child-1-覆盖全面',
|
|
386
|
+
disabled: true,
|
|
387
|
+
content:
|
|
388
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
name: 'child-1-开放平台',
|
|
392
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
393
|
+
isFolder: true,
|
|
394
|
+
children: [
|
|
395
|
+
{
|
|
396
|
+
isFolder: true,
|
|
397
|
+
name: 'child-1-方案成熟',
|
|
398
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
399
|
+
children: [],
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
name: 'child-1-覆盖全面',
|
|
403
|
+
disabled: true,
|
|
404
|
+
content:
|
|
405
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
name: 'child-1-开放平台',
|
|
409
|
+
isOpen: true,
|
|
410
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
411
|
+
},
|
|
412
|
+
],
|
|
413
|
+
},
|
|
414
|
+
],
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
name: '覆盖全面',
|
|
418
|
+
disabled: true,
|
|
419
|
+
content:
|
|
420
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
421
|
+
id: '//',
|
|
422
|
+
isFolder: true,
|
|
423
|
+
children: [
|
|
424
|
+
{
|
|
425
|
+
name: 'child-2-方案成熟',
|
|
426
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
name: 'child-2-覆盖全面',
|
|
430
|
+
content:
|
|
431
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
name: 'child-2-开放平台',
|
|
435
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
436
|
+
children: [],
|
|
437
|
+
isFolder: true,
|
|
438
|
+
checked: true,
|
|
439
|
+
},
|
|
440
|
+
],
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: '开放平台',
|
|
444
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
445
|
+
children: [
|
|
446
|
+
{
|
|
447
|
+
name: 'child-3-方案成熟',
|
|
448
|
+
isFolder: true,
|
|
449
|
+
content: '拥有支撑数百款腾讯业务的经验沉淀,兼容各种复杂的系统架构,生于运维 · 精于运维',
|
|
450
|
+
children: [],
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
name: 'child-3-覆盖全面',
|
|
454
|
+
content:
|
|
455
|
+
'从配置管理,到作业执行、任务调度和监控自愈,再通过运维大数据分析辅助运营决策,全方位覆盖业务运营的全周期保障管理。',
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
name: 'child-3-开放平台',
|
|
459
|
+
content: '开放的PaaS,具备强大的开发框架和调度引擎,以及完整的运维开发培训体系,助力运维快速转型升级。',
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
|
+
},
|
|
463
|
+
];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Tencent is pleased to support the open source community by making
|
|
3
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
8
|
+
*
|
|
9
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
|
10
|
+
*
|
|
11
|
+
* ---------------------------------------------------
|
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
13
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
|
14
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
|
15
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
16
|
+
*
|
|
17
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
|
18
|
+
* the Software.
|
|
19
|
+
*
|
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
21
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
23
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
24
|
+
* IN THE SOFTWARE.
|
|
25
|
+
*/
|
|
26
|
+
import { defineComponent } from 'vue';
|
|
27
|
+
|
|
28
|
+
import { BASIC_DATA } from './options';
|
|
29
|
+
|
|
30
|
+
import './tree.less';
|
|
31
|
+
export default defineComponent({
|
|
32
|
+
components: {},
|
|
33
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
treeData: [...BASIC_DATA],
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
methods: {
|
|
39
|
+
getPrefixIcon(params, renderType) {
|
|
40
|
+
const {
|
|
41
|
+
__attr__: { hasChildNode, isOpen, isRoot },
|
|
42
|
+
} = params;
|
|
43
|
+
const isAction = renderType === 'node_action';
|
|
44
|
+
const childeFont = hasChildNode ? '+' : '*';
|
|
45
|
+
const openFont = isOpen ? '-' : childeFont;
|
|
46
|
+
const rootFont = isRoot ? 'R' : 'C';
|
|
47
|
+
const fontIcon = !isAction ? rootFont : openFont;
|
|
48
|
+
return (
|
|
49
|
+
<span
|
|
50
|
+
style='font-size: 8px; text-align: center;'
|
|
51
|
+
class='custom-node'
|
|
52
|
+
>
|
|
53
|
+
{fontIcon}
|
|
54
|
+
</span>
|
|
55
|
+
);
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
render() {
|
|
59
|
+
return (
|
|
60
|
+
<div class={'row'}>
|
|
61
|
+
<div class={'column'}>
|
|
62
|
+
<span>function 返回对象</span>
|
|
63
|
+
<div class={'cell'}>
|
|
64
|
+
<bk-tree
|
|
65
|
+
children='children'
|
|
66
|
+
data={this.treeData}
|
|
67
|
+
label='name'
|
|
68
|
+
levelLine={true}
|
|
69
|
+
prefix-icon={this.getPrefixIcon}
|
|
70
|
+
/>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
);
|
|
75
|
+
},
|
|
76
|
+
});
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="row">
|
|
3
|
+
<div class="column">
|
|
4
|
+
<span>prefix-icon: true</span>
|
|
5
|
+
|
|
6
|
+
<div class="cell">
|
|
7
|
+
<bk-tree
|
|
8
|
+
:data="treeData"
|
|
9
|
+
children="children"
|
|
10
|
+
label="name"
|
|
11
|
+
level-line
|
|
12
|
+
prefix-icon
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="column">
|
|
17
|
+
<span>function 函数返回 'default' 将会调用系统默认样式</span>
|
|
18
|
+
<div class="cell">
|
|
19
|
+
<bk-tree
|
|
20
|
+
:data="treeData"
|
|
21
|
+
:prefix-icon="getPrefixIcon"
|
|
22
|
+
children="children"
|
|
23
|
+
label="name"
|
|
24
|
+
level-line
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="column">
|
|
29
|
+
<span>function 返回字符串</span>
|
|
30
|
+
<div class="cell">
|
|
31
|
+
<bk-tree
|
|
32
|
+
:data="treeData"
|
|
33
|
+
:prefix-icon="getPrefixIcon2"
|
|
34
|
+
children="children"
|
|
35
|
+
label="name"
|
|
36
|
+
level-line
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="column">
|
|
41
|
+
<span>function 返回对象</span>
|
|
42
|
+
<div class="cell">
|
|
43
|
+
<bk-tree
|
|
44
|
+
:data="treeData"
|
|
45
|
+
:prefix-icon="getPrefixIcon3"
|
|
46
|
+
children="children"
|
|
47
|
+
label="name"
|
|
48
|
+
level-line
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<script setup>
|
|
56
|
+
import { BASIC_DATA } from './options';
|
|
57
|
+
const treeData = [...BASIC_DATA];
|
|
58
|
+
/**
|
|
59
|
+
* Tree Prop: prefixIcon function
|
|
60
|
+
* @param {} isRoot 是否为分跟节点
|
|
61
|
+
* @param {} hasChildNode 是否有孩子节点
|
|
62
|
+
* @param {} isOpened 当前节点是否展开
|
|
63
|
+
* @param {} renderType 当前渲染类型(node_action: 用来标识当前节点状态,展开 | 收起, node_type:节点类型,文件、文件夹)
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
const getPrefixIcon = () => 'default';
|
|
67
|
+
|
|
68
|
+
const getPrefixIcon2 = (item, renderType) => {
|
|
69
|
+
const { isRoot } = item;
|
|
70
|
+
if (renderType === 'node_action') {
|
|
71
|
+
return 'default';
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (isRoot) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return 'Node-';
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const getPrefixIcon3 = (item, renderType) => {
|
|
82
|
+
const { isRoot } = item;
|
|
83
|
+
if (renderType === 'node_action') {
|
|
84
|
+
return 'default';
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (isRoot) {
|
|
88
|
+
return {
|
|
89
|
+
node: 'span',
|
|
90
|
+
className: 'custom-node custom-root',
|
|
91
|
+
text: '0',
|
|
92
|
+
style: {
|
|
93
|
+
fontSize: '12px',
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
node: 'span',
|
|
100
|
+
className: 'custom-node',
|
|
101
|
+
text: '1',
|
|
102
|
+
style: {
|
|
103
|
+
fontSize: '8px',
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
</script>
|
|
108
|
+
<style>
|
|
109
|
+
.custom-node {
|
|
110
|
+
display: flex;
|
|
111
|
+
width: 18px;
|
|
112
|
+
height: 18px;
|
|
113
|
+
padding: 0 5px;
|
|
114
|
+
margin: 0 2px 0 0;
|
|
115
|
+
background: #cccc;
|
|
116
|
+
align-items: center;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.custom-root {
|
|
120
|
+
background: #fafb;
|
|
121
|
+
}
|
|
122
|
+
</style>
|
|
123
|
+
<style scoped>
|
|
124
|
+
@import './tree.less';
|
|
125
|
+
.column {
|
|
126
|
+
width: 25%;
|
|
127
|
+
}
|
|
128
|
+
</style>
|