@web-utils/form-ui 1.0.0-beta8 → 1.0.0-beta80
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/address-input/index.d.ts +52 -0
- package/address-input/index.mjs +2 -0
- package/address-input/style.css +1 -0
- package/affix/index.d.ts +30 -0
- package/affix/index.mjs +48 -0
- package/affix/style.css +1 -0
- package/api/index.d.ts +66 -0
- package/api/index.mjs +42 -0
- package/awesome-button/index.d.ts +60 -0
- package/awesome-button/index.mjs +49 -0
- package/base.css +1 -1
- package/capsule-tab/index.d.ts +30 -0
- package/capsule-tab/index.mjs +2 -0
- package/capsule-tab/style.css +1 -0
- package/card/index.d.ts +41 -0
- package/card/index.mjs +90 -0
- package/card/style.css +1 -0
- package/chunks/22GsbC-1.mjs +32 -0
- package/chunks/6dNVtIN32.mjs +89 -0
- package/chunks/6eDDQWcr.mjs +69 -0
- package/chunks/B1MSrc6f.mjs +8 -0
- package/chunks/B1luuf_A2.mjs +111 -0
- package/chunks/B4GsYMXo.mjs +39 -0
- package/chunks/B5c0s3IR.mjs +449 -0
- package/chunks/BAG_R87k2.mjs +60 -0
- package/chunks/BEghYt1s2.mjs +31 -0
- package/chunks/BM5LdxU72.mjs +95 -0
- package/chunks/BQytQPLa.mjs +780 -0
- package/chunks/BVUClQOx.mjs +26 -0
- package/chunks/BWTQ3qdg.mjs +68 -0
- package/chunks/BhHMGhJ8.mjs +109 -0
- package/chunks/Bo8lYN4n2.mjs +27 -0
- package/chunks/Bs926z902.mjs +200 -0
- package/chunks/BsqIRxSS.mjs +67 -0
- package/chunks/Bu1M7um22.mjs +87 -0
- package/chunks/Bvn6wnku.mjs +99 -0
- package/chunks/BwL9Xz1F.mjs +46 -0
- package/chunks/C-iN5MJZ.mjs +57 -0
- package/chunks/C-zPVdz-.mjs +198 -0
- package/chunks/C8h_P_kl2.mjs +206 -0
- package/chunks/CGmbnjKL.mjs +26 -0
- package/chunks/CHmZyvFr.mjs +63 -0
- package/chunks/CLn5E7NV.mjs +17 -0
- package/chunks/COA3tHyu2.mjs +34 -0
- package/chunks/CTYReSXN.mjs +37 -0
- package/chunks/CUaecRXx.mjs +4794 -0
- package/chunks/C_QfuxeQ.mjs +98 -0
- package/chunks/Cb7kjZa-.mjs +661 -0
- package/chunks/ChP-pNSi2.mjs +145 -0
- package/chunks/CiMBKxeJ.mjs +61 -0
- package/chunks/CkLpOk7H.mjs +155 -0
- package/chunks/ClVh1Lek.mjs +130 -0
- package/chunks/Co0M4G3P.mjs +30 -0
- package/chunks/Ctx93AFS.mjs +54 -0
- package/chunks/D6mInNk02.mjs +419 -0
- package/chunks/DCqyZyF6.mjs +52 -0
- package/chunks/DH-B0Lkz2.mjs +34 -0
- package/chunks/DQMWqQFe2.mjs +42 -0
- package/chunks/D_q3C3v4.mjs +595 -0
- package/chunks/DbcxJ45j.mjs +298 -0
- package/chunks/DcgE9SF_2.mjs +29 -0
- package/chunks/DdACGFy3.mjs +90 -0
- package/chunks/DgH_4qOn2.mjs +210 -0
- package/chunks/Dkw6LNCq2.mjs +379 -0
- package/chunks/Dodxnwze.mjs +60 -0
- package/chunks/DokYQ49m.mjs +29 -0
- package/chunks/DxeRdYI82.mjs +108 -0
- package/chunks/Dz_TTgwF2.mjs +515 -0
- package/chunks/FZqu01np2.mjs +1354 -0
- package/chunks/KOJEsarR2.mjs +217 -0
- package/chunks/PEU1JRcN2.mjs +64 -0
- package/chunks/SInS7QSL.mjs +17 -0
- package/chunks/V-Js6hNd.mjs +179 -0
- package/chunks/X-ckP2Hj.mjs +40 -0
- package/chunks/Zdhb_SRi2.mjs +63 -0
- package/chunks/eX0Esdvw2.mjs +25 -0
- package/chunks/hBvPGqka.mjs +26 -0
- package/chunks/mnqSaATq.mjs +184 -0
- package/chunks/mqi8hesW2.mjs +613 -0
- package/chunks/oXiNltCq.mjs +30 -0
- package/chunks/sTTHpRrx.mjs +50 -0
- package/chunks/shY1VkIE2.mjs +29 -0
- package/chunks/tSaeUhnr.mjs +58 -0
- package/chunks/tVHVSu5h.mjs +1798 -0
- package/chunks/tfaGdZX2.mjs +647 -0
- package/chunks/tqW2DSco.mjs +199 -0
- package/chunks/tzjUpVIj.mjs +37 -0
- package/code-mirror-editor/index.d.ts +50 -0
- package/code-mirror-editor/index.mjs +99 -0
- package/code-mirror-editor/style.css +1 -0
- package/confirm-button/index.d.ts +122 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +93 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +73 -0
- package/constants/index.mjs +4 -0
- package/context-menu/index.d.ts +183 -0
- package/context-menu/index.mjs +196 -0
- package/context-menu/style.css +1 -0
- package/count-up/index.d.ts +70 -0
- package/count-up/index.mjs +94 -0
- package/custom-scrollbar/index.d.ts +49 -0
- package/custom-scrollbar/index.mjs +93 -0
- package/data-box/index.d.ts +30 -0
- package/data-box/index.mjs +2 -0
- package/data-box/style.css +1 -0
- package/data-card/index.d.ts +20 -0
- package/data-card/index.mjs +64 -0
- package/data-card/style.css +1 -0
- package/data-card-text/index.d.ts +21 -0
- package/data-card-text/index.mjs +68 -0
- package/data-card-text/style.css +1 -0
- package/data-display/index.d.ts +20 -0
- package/data-display/index.mjs +74 -0
- package/data-display/style.css +1 -0
- package/data-icons/index.d.ts +21 -0
- package/data-icons/index.mjs +75 -0
- package/data-icons/style.css +1 -0
- package/data-imgtext/index.d.ts +18 -0
- package/data-imgtext/index.mjs +72 -0
- package/data-imgtext/style.css +1 -0
- package/data-operatext/index.d.ts +17 -0
- package/data-operatext/index.mjs +55 -0
- package/data-operatext/style.css +1 -0
- package/data-panel/index.d.ts +19 -0
- package/data-panel/index.mjs +62 -0
- package/data-panel/style.css +1 -0
- package/data-pay/index.d.ts +19 -0
- package/data-pay/index.mjs +111 -0
- package/data-pay/style.css +1 -0
- package/data-price/index.d.ts +17 -0
- package/data-price/index.mjs +52 -0
- package/data-price/style.css +1 -0
- package/data-progress/index.d.ts +19 -0
- package/data-progress/index.mjs +73 -0
- package/data-progress/style.css +1 -0
- package/data-rotate/index.d.ts +21 -0
- package/data-rotate/index.mjs +2 -0
- package/data-rotate/style.css +1 -0
- package/data-table-picker/index.d.ts +61 -0
- package/data-table-picker/index.mjs +120 -0
- package/data-tabs/index.d.ts +21 -0
- package/data-tabs/index.mjs +2 -0
- package/data-tabs/style.css +1 -0
- package/dict-render/index.d.ts +28 -0
- package/dict-render/index.mjs +2 -0
- package/e-charts/index.d.ts +79 -0
- package/e-charts/index.mjs +179 -0
- package/e-charts/style.css +1 -0
- package/easy-popup/index.d.ts +114 -0
- package/easy-popup/index.mjs +92 -0
- package/easy-popup/style.css +1 -0
- package/editable-progress/index.d.ts +68 -0
- package/editable-progress/index.mjs +121 -0
- package/editable-progress/style.css +1 -0
- package/editable-tree/index.d.ts +281 -0
- package/editable-tree/index.mjs +596 -0
- package/editable-tree/style.css +1 -0
- package/element-dialog/index.d.ts +341 -18
- package/element-dialog/index.mjs +2 -91
- package/element-dialog/style.css +1 -1
- package/element-listeners/style.css +1 -0
- package/element-multi-instance/style.css +1 -0
- package/element-resize-observer/index.d.ts +8 -0
- package/element-resize-observer/index.mjs +40 -0
- package/element-resize-observer/style.css +1 -0
- package/empty-view/index.d.ts +2 -2
- package/empty-view/index.mjs +1 -1
- package/error-view/index.d.ts +25 -0
- package/error-view/index.mjs +37 -0
- package/error-view/style.css +1 -0
- package/flex-box/index.d.ts +44 -0
- package/flex-box/index.mjs +2 -0
- package/flex-column/index.d.ts +41 -0
- package/flex-column/index.mjs +2 -0
- package/flex-item/index.d.ts +77 -0
- package/flex-item/index.mjs +2 -0
- package/flex-row/index.d.ts +41 -0
- package/flex-row/index.mjs +2 -0
- package/flex-scroll-area/index.d.ts +1 -1
- package/flex-scroll-area/index.mjs +1 -1
- package/flex-scroller/index.d.ts +26 -0
- package/flex-scroller/index.mjs +29 -0
- package/flex-scroller/style.css +1 -0
- package/flow-designer/index.d.ts +286 -0
- package/flow-designer/index.mjs +2 -0
- package/flow-designer/style.css +1 -0
- package/flow-viewer/index.d.ts +62 -0
- package/flow-viewer/index.mjs +159 -0
- package/flow-viewer/style.css +1 -0
- package/form-advice/index.mjs +13 -12
- package/form-button/index.d.ts +123 -0
- package/form-button/index.mjs +36 -0
- package/form-card/index.d.ts +14 -0
- package/form-card/index.mjs +18 -0
- package/form-cascader/index.d.ts +478 -0
- package/form-cascader/index.mjs +2 -0
- package/form-checkbox/index.d.ts +237 -30
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +373 -0
- package/form-checkbox-group/index.mjs +2 -0
- package/form-checkbox-group/style.css +1 -0
- package/form-date-picker/index.d.ts +375 -29
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +89 -22
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +137 -23
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +282 -50
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +223 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +296 -25
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +296 -25
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +237 -29
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +296 -25
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +269 -1
- package/form-input-tag/index.mjs +1 -3
- package/form-input-time/index.d.ts +440 -1
- package/form-input-time/index.mjs +1 -3
- package/form-item-config-provider/index.d.ts +23 -3
- package/form-item-config-provider/index.mjs +7 -7
- package/form-item-group/index.d.ts +91 -17
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +133 -18
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +295 -28
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +244 -24
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +2 -2
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +527 -28
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +273 -26
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +264 -26
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +287 -0
- package/form-table/index.mjs +2 -0
- package/form-table-plus/index.d.ts +266 -0
- package/form-table-plus/index.mjs +2 -0
- package/form-text/index.d.ts +157 -23
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +351 -0
- package/form-textarea/index.mjs +2 -0
- package/form-time-select/index.d.ts +325 -0
- package/form-time-select/index.mjs +2 -0
- package/form-tree-select/index.d.ts +715 -0
- package/form-tree-select/index.mjs +2 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.d.ts +717 -0
- package/form-tree-select-multiple/index.mjs +2 -0
- package/form-view/index.d.ts +225 -1
- package/form-view/index.mjs +280 -6
- package/form-view/style.css +1 -0
- package/guide-steps/index.d.ts +31 -0
- package/guide-steps/index.mjs +77 -0
- package/guide-steps/style.css +1 -0
- package/helper/dictionary.d.ts +29 -0
- package/helper/dictionary.mjs +97 -0
- package/helper/form-item.d.ts +17 -0
- package/helper/form-item.mjs +27 -0
- package/helper/input.d.ts +49 -0
- package/helper/input.mjs +2 -0
- package/helper/sub-table-plus.d.ts +98 -0
- package/helper/sub-table-plus.mjs +4 -0
- package/highlight-j-s/index.d.ts +18 -0
- package/highlight-j-s/index.mjs +51 -0
- package/highlight-j-s/style.css +1 -0
- package/hook/useDictionary.d.ts +60 -0
- package/hook/useDictionary.mjs +15 -0
- package/hook/useVisibilityChange.d.ts +4 -0
- package/hook/useVisibilityChange.mjs +14 -0
- package/iframe-window/index.d.ts +9 -0
- package/iframe-window/index.mjs +37 -0
- package/iframe-window/style.css +1 -0
- package/image-cropper/index.d.ts +365 -0
- package/image-cropper/index.mjs +156 -0
- package/image-cropper/style.css +1 -0
- package/image-preview/index.d.ts +61 -0
- package/image-preview/index.mjs +201 -0
- package/image-preview/style.css +1 -0
- package/image-viewer/index.d.ts +25 -0
- package/image-viewer/index.mjs +70 -0
- package/image-viewer/style.css +1 -0
- package/index.css +2 -0
- package/index.d.ts +120 -36
- package/index.mjs +122 -62
- package/input-number-range/index.d.ts +41 -0
- package/input-number-range/index.mjs +77 -0
- package/input-number-range/style.css +1 -0
- package/keyboard/index.d.ts +64 -0
- package/keyboard/index.mjs +2 -0
- package/keyboard/style.css +1 -0
- package/loading-view/index.d.ts +65 -0
- package/loading-view/index.mjs +39 -0
- package/loading-view/style.css +1 -0
- package/name-avatar/index.d.ts +62 -0
- package/name-avatar/index.mjs +61 -0
- package/name-avatar/style.css +1 -0
- package/nav-bar/index.d.ts +21 -0
- package/nav-bar/index.mjs +37 -0
- package/nav-bar/style.css +1 -0
- package/package.json +29 -7
- package/page/index.d.ts +21 -0
- package/page/index.mjs +17 -0
- package/page/style.css +1 -0
- package/page-header/index.d.ts +27 -0
- package/page-header/index.mjs +25 -0
- package/page-header/style.css +1 -0
- package/page-index/index.d.ts +82 -0
- package/page-index/index.mjs +124 -0
- package/page-index/style.css +1 -0
- package/page-index-top/index.d.ts +38 -0
- package/page-index-top/index.mjs +87 -0
- package/page-skeleton/index.d.ts +30 -0
- package/page-skeleton/index.mjs +44 -0
- package/page-skeleton/style.css +1 -0
- package/page-skeleton-new/index.d.ts +34 -0
- package/page-skeleton-new/index.mjs +80 -0
- package/page-skeleton-new/style.css +1 -0
- package/pageable-table/index.d.ts +400 -0
- package/pageable-table/index.mjs +2 -0
- package/pageable-table/style.css +1 -0
- package/photo-swipe/index.d.ts +18 -0
- package/photo-swipe/index.mjs +2 -0
- package/props/cascader.d.ts +326 -0
- package/props/cascader.mjs +145 -0
- package/props/checkbox-group.d.ts +213 -0
- package/props/checkbox-group.mjs +83 -0
- package/props/checkbox.d.ts +205 -0
- package/props/checkbox.mjs +74 -0
- package/props/col.d.ts +74 -0
- package/props/col.mjs +32 -0
- package/props/common.d.ts +114 -0
- package/props/common.mjs +18 -0
- package/props/date.d.ts +336 -0
- package/props/date.mjs +158 -0
- package/props/form-item.d.ts +144 -0
- package/props/form-item.mjs +73 -0
- package/props/form.d.ts +157 -0
- package/props/form.mjs +89 -0
- package/props/image.d.ts +102 -0
- package/props/image.mjs +10 -0
- package/props/input-cron.d.ts +102 -0
- package/props/input-cron.mjs +16 -0
- package/props/input-number.d.ts +216 -0
- package/props/input-number.mjs +72 -0
- package/props/input-tag.d.ts +123 -0
- package/props/input-tag.mjs +33 -0
- package/props/input.d.ts +299 -0
- package/props/input.mjs +97 -0
- package/props/radio-group.d.ts +205 -0
- package/props/radio-group.mjs +84 -0
- package/props/rate.d.ts +211 -0
- package/props/rate.mjs +66 -0
- package/props/select.d.ts +450 -0
- package/props/select.mjs +218 -0
- package/props/slide.d.ts +235 -0
- package/props/slide.mjs +72 -0
- package/props/switch.d.ts +229 -0
- package/props/switch.mjs +80 -0
- package/props/text.d.ts +127 -0
- package/props/text.mjs +22 -0
- package/props/textarea.d.ts +266 -0
- package/props/textarea.mjs +82 -0
- package/props/time-select.d.ts +216 -0
- package/props/time-select.mjs +67 -0
- package/props/time.d.ts +304 -0
- package/props/time.mjs +138 -0
- package/props/tree-select-multiple.d.ts +324 -0
- package/props/tree-select-multiple.mjs +16 -0
- package/props/tree-select.d.ts +326 -0
- package/props/tree-select.mjs +25 -0
- package/props/tree.d.ts +76 -0
- package/props/tree.mjs +75 -0
- package/props/vue-tree-select.d.ts +458 -0
- package/props/vue-tree-select.mjs +213 -0
- package/resolver/components.d.ts +2 -0
- package/resolver/components.mjs +4 -0
- package/resolver/index.mjs +29 -0
- package/sign-panel/index.d.ts +85 -0
- package/sign-panel/index.mjs +183 -0
- package/sign-panel/style.css +1 -0
- package/skeleton-panel/index.d.ts +27 -0
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.d.ts +106 -0
- package/split-pane/index.mjs +2 -0
- package/split-pane/style.css +1 -0
- package/stateful/index.d.ts +92 -0
- package/stateful/index.mjs +67 -0
- package/stateful/style.css +1 -0
- package/sub-table/index.d.ts +109 -0
- package/sub-table/index.mjs +2 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.d.ts +109 -0
- package/sub-table-plus/index.mjs +2 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.d.ts +27 -0
- package/swiper/index.mjs +126 -0
- package/swiper/style.css +1 -0
- package/table-column/index.d.ts +163 -0
- package/table-column/index.mjs +2 -0
- package/table-column/style.css +1 -0
- package/table-column-def/index.d.ts +97 -0
- package/table-column-def/index.mjs +11 -0
- package/table-view/index.d.ts +345 -1
- package/table-view/index.mjs +472 -6
- package/table-view/style.css +1 -0
- package/tag-render/index.d.ts +48 -0
- package/tag-render/index.mjs +86 -0
- package/tag-render/style.css +1 -0
- package/text-ellipsis/index.d.ts +111 -0
- package/text-ellipsis/index.mjs +124 -0
- package/text-ellipsis/style.css +1 -0
- package/toolbar/index.d.ts +128 -1
- package/toolbar/index.mjs +1 -8
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +188 -1
- package/toolbar-button/index.mjs +1 -8
- package/toolbar-button/style.css +1 -0
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/vue-qr-code/index.d.ts +47 -0
- package/vue-qr-code/index.mjs +32 -0
- package/vue-tags-input/index.d.ts +373 -0
- package/vue-tags-input/index.mjs +350 -0
- package/vue-tags-input/style.css +1 -0
- package/vue-tree-select/index.d.ts +1489 -0
- package/vue-tree-select/index.mjs +2 -0
- package/vue-tree-select/style.css +1 -0
- package/vue-video-player/index.d.ts +117 -0
- package/vue-video-player/index.mjs +136 -0
- package/vue-video-player/style.css +1 -0
- package/watermark/index.d.ts +97 -0
- package/watermark/index.mjs +2 -0
- package/watermark/style.css +1 -0
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/x-input-tag/index.mjs +232 -0
- package/x-input-tag/style.css +1 -0
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +2 -0
- package/year-calendar/style.css +1 -0
- package/chunks/1glrRdhD.mjs +0 -23
- package/chunks/6Ukll2os.mjs +0 -149
- package/chunks/78hGOZc9.mjs +0 -43
- package/chunks/BID1Rr2O.mjs +0 -32
- package/chunks/BMkPC2kt.mjs +0 -28
- package/chunks/BPJNSq9M.mjs +0 -4
- package/chunks/BaExlbMY.mjs +0 -32
- package/chunks/BeIZhqg_.mjs +0 -167
- package/chunks/BmQGmui_.mjs +0 -54
- package/chunks/BnycM8aG.mjs +0 -74
- package/chunks/BooKKkk0.mjs +0 -36
- package/chunks/Bpox2cVQ.mjs +0 -92
- package/chunks/Bs_IYr3X.mjs +0 -94
- package/chunks/BuZDN2DV.mjs +0 -28
- package/chunks/C4JpDEWP.mjs +0 -35
- package/chunks/DAjuA2O6.mjs +0 -28
- package/chunks/Dywq0t6V.mjs +0 -47
- package/chunks/GlsJxLiF.mjs +0 -35
- package/chunks/pFgf4c4i.mjs +0 -47
- package/chunks/zb_1Xy1W.mjs +0 -74
- package/constants.d.ts +0 -7
- package/constants.mjs +0 -4
- package/form-check-box-group/index.d.ts +0 -119
- package/form-check-box-group/index.mjs +0 -2
- package/input/style.css +0 -1
- package/json-editor/index.d.ts +0 -32
- package/json-editor/index.mjs +0 -2
- package/json-editor/style.css +0 -1
- package/resolver.mjs +0 -81
- /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
package/props/tree.d.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export declare const allProps: {
|
|
2
|
+
label: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
addRootNodeLabel: StringConstructor;
|
|
7
|
+
defaultExpandedKeys: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
newNodeBuilder: {
|
|
12
|
+
type: FunctionConstructor;
|
|
13
|
+
default: (name: string, parent: {
|
|
14
|
+
id: string | number;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}) => {
|
|
17
|
+
name: string;
|
|
18
|
+
parentId: string | number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
contextMenu: BooleanConstructor;
|
|
22
|
+
lazy: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
expandFirstNode: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
readonly: BooleanConstructor;
|
|
31
|
+
saveApi: FunctionConstructor;
|
|
32
|
+
updateApi: FunctionConstructor;
|
|
33
|
+
deleteApi: FunctionConstructor;
|
|
34
|
+
fetchApi: FunctionConstructor;
|
|
35
|
+
customRootNode: (ObjectConstructor | FunctionConstructor)[];
|
|
36
|
+
rootNode: ObjectConstructor;
|
|
37
|
+
contextMenuIcon: BooleanConstructor;
|
|
38
|
+
contextMenuInline: BooleanConstructor;
|
|
39
|
+
treeProps: {
|
|
40
|
+
type: ObjectConstructor;
|
|
41
|
+
default: () => {
|
|
42
|
+
children: string;
|
|
43
|
+
label: string;
|
|
44
|
+
isLeaf: (data: any) => boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
menuLabel: {
|
|
48
|
+
type: ObjectConstructor;
|
|
49
|
+
default: () => {
|
|
50
|
+
appendPeer: string;
|
|
51
|
+
appendChild: string;
|
|
52
|
+
removeNode: string;
|
|
53
|
+
editNode: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
icon: {
|
|
57
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
|
58
|
+
default: (data: any, node: any) => string;
|
|
59
|
+
};
|
|
60
|
+
confirmButton: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
addRootNodeButtonStyle: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
reserveExpandKey: BooleanConstructor;
|
|
69
|
+
nodeKey: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
defaultExpandAll: BooleanConstructor;
|
|
74
|
+
};
|
|
75
|
+
export declare const manualBindProps: Record<string, boolean | undefined>;
|
|
76
|
+
export declare const predicate: (propsKey: keyof typeof manualBindProps) => boolean;
|
package/props/tree.mjs
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { hasOwn as e } from "@web-utils/core";
|
|
2
|
+
//#region src/props/tree.ts
|
|
3
|
+
var t = {
|
|
4
|
+
label: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: "书签"
|
|
7
|
+
},
|
|
8
|
+
addRootNodeLabel: String,
|
|
9
|
+
defaultExpandedKeys: {
|
|
10
|
+
type: Array,
|
|
11
|
+
default: () => []
|
|
12
|
+
},
|
|
13
|
+
newNodeBuilder: {
|
|
14
|
+
type: Function,
|
|
15
|
+
default: (e, t) => ({
|
|
16
|
+
name: e,
|
|
17
|
+
parentId: t.id
|
|
18
|
+
})
|
|
19
|
+
},
|
|
20
|
+
contextMenu: Boolean,
|
|
21
|
+
lazy: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !0
|
|
24
|
+
},
|
|
25
|
+
expandFirstNode: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !0
|
|
28
|
+
},
|
|
29
|
+
readonly: Boolean,
|
|
30
|
+
saveApi: Function,
|
|
31
|
+
updateApi: Function,
|
|
32
|
+
deleteApi: Function,
|
|
33
|
+
fetchApi: Function,
|
|
34
|
+
customRootNode: [Object, Function],
|
|
35
|
+
rootNode: Object,
|
|
36
|
+
contextMenuIcon: Boolean,
|
|
37
|
+
contextMenuInline: Boolean,
|
|
38
|
+
treeProps: {
|
|
39
|
+
type: Object,
|
|
40
|
+
default: () => ({
|
|
41
|
+
children: "children",
|
|
42
|
+
label: "name",
|
|
43
|
+
isLeaf: (t) => e(t, "hasChildren") ? !t.hasChildren : e(t, "hasChild") ? !t.hasChild : e(t, "children") && t.children ? t.children.length === 0 : !0
|
|
44
|
+
})
|
|
45
|
+
},
|
|
46
|
+
menuLabel: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default: () => ({
|
|
49
|
+
appendPeer: "添加同级节点",
|
|
50
|
+
appendChild: "添加",
|
|
51
|
+
removeNode: "删除",
|
|
52
|
+
editNode: "修改"
|
|
53
|
+
})
|
|
54
|
+
},
|
|
55
|
+
icon: {
|
|
56
|
+
type: [Function, Boolean],
|
|
57
|
+
default: (e, t) => "el-icon-collection-tag"
|
|
58
|
+
},
|
|
59
|
+
confirmButton: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !0
|
|
62
|
+
},
|
|
63
|
+
addRootNodeButtonStyle: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: "top"
|
|
66
|
+
},
|
|
67
|
+
reserveExpandKey: Boolean,
|
|
68
|
+
nodeKey: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: "id"
|
|
71
|
+
},
|
|
72
|
+
defaultExpandAll: Boolean
|
|
73
|
+
}, n = { icon: !0 }, r = (e) => n[e] !== !0;
|
|
74
|
+
//#endregion
|
|
75
|
+
export { t as allProps, n as manualBindProps, r as predicate };
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
export declare const allProps: {
|
|
2
|
+
/**
|
|
3
|
+
* Whether to allow resetting value even if there are disabled selected nodes.
|
|
4
|
+
*/
|
|
5
|
+
allowClearingDisabled: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* When an ancestor node is selected/deselected, whether its disabled descendants should be selected/deselected.
|
|
11
|
+
* You may want to use this in conjunction with `allowClearingDisabled` prop.
|
|
12
|
+
*/
|
|
13
|
+
allowSelectingDisabledDescendants: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Whether the menu should be always open.
|
|
19
|
+
*/
|
|
20
|
+
alwaysOpen: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Append the menu to <body />?
|
|
26
|
+
*/
|
|
27
|
+
appendToBody: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Whether to enable async search mode.
|
|
33
|
+
*/
|
|
34
|
+
async: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Automatically focus the component on mount?
|
|
40
|
+
*/
|
|
41
|
+
autoFocus: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Automatically load root options on mount. When set to `false`, root options will be loaded when the menu is opened.
|
|
47
|
+
*/
|
|
48
|
+
autoLoadRootOptions: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* When user deselects a node, automatically deselect its ancestors. Applies to flat mode only.
|
|
54
|
+
*/
|
|
55
|
+
autoDeselectAncestors: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* When user deselects a node, automatically deselect its descendants. Applies to flat mode only.
|
|
61
|
+
*/
|
|
62
|
+
autoDeselectDescendants: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* When user selects a node, automatically select its ancestors. Applies to flat mode only.
|
|
68
|
+
*/
|
|
69
|
+
autoSelectAncestors: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* When user selects a node, automatically select its descendants. Applies to flat mode only.
|
|
75
|
+
*/
|
|
76
|
+
autoSelectDescendants: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Whether pressing backspace key removes the last item if there is no text input.
|
|
82
|
+
*/
|
|
83
|
+
backspaceRemoves: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Function that processes before clearing all input fields.
|
|
89
|
+
* Return `false` to prevent value from being cleared.
|
|
90
|
+
*/
|
|
91
|
+
beforeClearAll: {
|
|
92
|
+
type: FunctionConstructor;
|
|
93
|
+
default: () => boolean;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Show branch nodes before leaf nodes?
|
|
97
|
+
*/
|
|
98
|
+
branchNodesFirst: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Should cache results of every search request?
|
|
104
|
+
*/
|
|
105
|
+
cacheOptions: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Show an "×" button that resets value?
|
|
111
|
+
*/
|
|
112
|
+
clearable: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Title for the "×" button when `multiple: true`.
|
|
118
|
+
*/
|
|
119
|
+
clearAllText: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Whether to clear the search input after selecting.
|
|
125
|
+
* Use only when `multiple` is `true`.
|
|
126
|
+
* For single-select mode, it **always** clears the input after selecting an option regardless of the prop value.
|
|
127
|
+
*/
|
|
128
|
+
clearOnSelect: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Title for the "×" button.
|
|
134
|
+
*/
|
|
135
|
+
clearValueText: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Whether to close the menu after selecting an option?
|
|
141
|
+
* Use only when `multiple` is `true`.
|
|
142
|
+
*/
|
|
143
|
+
closeOnSelect: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* How many levels of branch nodes should be automatically expanded when loaded.
|
|
149
|
+
* Set `Infinity` to make all branch nodes expanded by default.
|
|
150
|
+
*/
|
|
151
|
+
defaultExpandLevel: {
|
|
152
|
+
type: NumberConstructor;
|
|
153
|
+
default: number;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* The default set of options to show before the user starts searching. Used for async search mode.
|
|
157
|
+
* When set to `true`, the results for search query as a empty string will be autoloaded.
|
|
158
|
+
*/
|
|
159
|
+
defaultOptions: {
|
|
160
|
+
default: boolean;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Whether pressing delete key removes the last item if there is no text input.
|
|
164
|
+
*/
|
|
165
|
+
deleteRemoves: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Delimiter to use to join multiple values for the hidden field value.
|
|
171
|
+
*/
|
|
172
|
+
delimiter: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Only show the nodes that match the search value directly, excluding its ancestors.
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
flattenSearchResults: {
|
|
181
|
+
type: BooleanConstructor;
|
|
182
|
+
default: boolean;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Prevent branch nodes from being selected?
|
|
186
|
+
*/
|
|
187
|
+
disableBranchNodes: {
|
|
188
|
+
type: BooleanConstructor;
|
|
189
|
+
default: boolean;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Disable the fuzzy matching functionality?
|
|
193
|
+
*/
|
|
194
|
+
disableFuzzyMatching: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Whether to enable flat mode or not. Non-flat mode (default) means:
|
|
200
|
+
* - Whenever a branch node gets checked, all its children will be checked too
|
|
201
|
+
* - Whenever a branch node has all children checked, the branch node itself will be checked too
|
|
202
|
+
* Set `true` to disable this mechanism
|
|
203
|
+
*/
|
|
204
|
+
flat: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
default: boolean;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Will be passed with all events as the last param.
|
|
210
|
+
* Useful for identifying events origin.
|
|
211
|
+
*/
|
|
212
|
+
instanceId: {
|
|
213
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Joins multiple values into a single form field with the `delimiter` (legacy mode).
|
|
217
|
+
*/
|
|
218
|
+
joinValues: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Limit the display of selected options.
|
|
224
|
+
* The rest will be hidden within the limitText string.
|
|
225
|
+
*/
|
|
226
|
+
limit: {
|
|
227
|
+
type: NumberConstructor;
|
|
228
|
+
default: number;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Function that processes the message shown when selected elements pass the defined limit.
|
|
232
|
+
*/
|
|
233
|
+
limitText: {
|
|
234
|
+
type: FunctionConstructor;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Text displayed when loading options.
|
|
238
|
+
*/
|
|
239
|
+
loadingText: {
|
|
240
|
+
type: StringConstructor;
|
|
241
|
+
default: string;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Used for dynamically loading options.
|
|
245
|
+
*/
|
|
246
|
+
loadOptions: {
|
|
247
|
+
type: FunctionConstructor;
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Which node properties to filter on.
|
|
251
|
+
*/
|
|
252
|
+
matchKeys: {
|
|
253
|
+
type: ArrayConstructor;
|
|
254
|
+
default: () => string[];
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Sets `maxHeight` style value of the menu.
|
|
258
|
+
*/
|
|
259
|
+
maxHeight: {
|
|
260
|
+
type: NumberConstructor;
|
|
261
|
+
default: number;
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* Set `true` to allow selecting multiple options (a.k.a., multi-select mode).
|
|
265
|
+
*/
|
|
266
|
+
multiple: {
|
|
267
|
+
type: BooleanConstructor;
|
|
268
|
+
default: boolean;
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Generates a hidden <input /> tag with this field name for html forms.
|
|
272
|
+
*/
|
|
273
|
+
name: {
|
|
274
|
+
type: StringConstructor;
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* Text displayed when a branch node has no children.
|
|
278
|
+
*/
|
|
279
|
+
noChildrenText: {
|
|
280
|
+
type: StringConstructor;
|
|
281
|
+
default: string;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Text displayed when there are no available options.
|
|
285
|
+
*/
|
|
286
|
+
noOptionsText: {
|
|
287
|
+
type: StringConstructor;
|
|
288
|
+
default: string;
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Text displayed when there are no matching search results.
|
|
292
|
+
*/
|
|
293
|
+
noResultsText: {
|
|
294
|
+
type: StringConstructor;
|
|
295
|
+
default: string;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Used for normalizing source data.
|
|
299
|
+
*/
|
|
300
|
+
normalizer: {
|
|
301
|
+
type: FunctionConstructor;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* By default (`auto`), the menu will open below the control. If there is not
|
|
305
|
+
* enough space, vue-treeselect will automatically flip the menu.
|
|
306
|
+
* You can use one of other four options to force the menu to be always opened
|
|
307
|
+
* to specified direction.
|
|
308
|
+
* Acceptable values:
|
|
309
|
+
* - `"auto"`
|
|
310
|
+
* - `"below"`
|
|
311
|
+
* - `"bottom"`
|
|
312
|
+
* - `"above"`
|
|
313
|
+
* - `"top"`
|
|
314
|
+
*/
|
|
315
|
+
openDirection: {
|
|
316
|
+
type: StringConstructor;
|
|
317
|
+
default: string;
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* Whether to automatically open the menu when the control is clicked.
|
|
321
|
+
*/
|
|
322
|
+
openOnClick: {
|
|
323
|
+
type: BooleanConstructor;
|
|
324
|
+
default: boolean;
|
|
325
|
+
};
|
|
326
|
+
/**
|
|
327
|
+
* Whether to automatically open the menu when the control is focused.
|
|
328
|
+
*/
|
|
329
|
+
openOnFocus: {
|
|
330
|
+
type: BooleanConstructor;
|
|
331
|
+
default: boolean;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Array of available options.
|
|
335
|
+
*/
|
|
336
|
+
options: {
|
|
337
|
+
type: ArrayConstructor;
|
|
338
|
+
};
|
|
339
|
+
/**
|
|
340
|
+
* Applies HTML5 required attribute when needed.
|
|
341
|
+
*/
|
|
342
|
+
required: {
|
|
343
|
+
type: BooleanConstructor;
|
|
344
|
+
default: boolean;
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* Text displayed asking user whether to retry loading children options.
|
|
348
|
+
*/
|
|
349
|
+
retryText: {
|
|
350
|
+
type: StringConstructor;
|
|
351
|
+
default: string;
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* Title for the retry button.
|
|
355
|
+
*/
|
|
356
|
+
retryTitle: {
|
|
357
|
+
type: StringConstructor;
|
|
358
|
+
default: string;
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Enable searching feature?
|
|
362
|
+
*/
|
|
363
|
+
searchable: {
|
|
364
|
+
type: BooleanConstructor;
|
|
365
|
+
default: boolean;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Search in ancestor nodes too.
|
|
369
|
+
*/
|
|
370
|
+
searchNested: {
|
|
371
|
+
type: BooleanConstructor;
|
|
372
|
+
default: boolean;
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* Text tip to prompt for async search.
|
|
376
|
+
*/
|
|
377
|
+
searchPromptText: {
|
|
378
|
+
type: StringConstructor;
|
|
379
|
+
default: string;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* Whether to show a children count next to the label of each branch node.
|
|
383
|
+
*/
|
|
384
|
+
showCount: {
|
|
385
|
+
type: BooleanConstructor;
|
|
386
|
+
default: boolean;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* Used in conjunction with `showCount` to specify which type of count number should be displayed.
|
|
390
|
+
* Acceptable values:
|
|
391
|
+
* - "ALL_CHILDREN"
|
|
392
|
+
* - "ALL_DESCENDANTS"
|
|
393
|
+
* - "LEAF_CHILDREN"
|
|
394
|
+
* - "LEAF_DESCENDANTS"
|
|
395
|
+
*/
|
|
396
|
+
showCountOf: {
|
|
397
|
+
type: StringConstructor;
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* Whether to show children count when searching.
|
|
401
|
+
* Fallbacks to the value of `showCount` when not specified.
|
|
402
|
+
*/
|
|
403
|
+
showCountOnSearch: null;
|
|
404
|
+
/**
|
|
405
|
+
* In which order the selected options should be displayed in trigger & sorted in `value` array.
|
|
406
|
+
* Used for multi-select mode only.
|
|
407
|
+
* Acceptable values:
|
|
408
|
+
* - "ORDER_SELECTED"
|
|
409
|
+
* - "LEVEL"
|
|
410
|
+
* - "INDEX"
|
|
411
|
+
*/
|
|
412
|
+
sortValueBy: {
|
|
413
|
+
type: StringConstructor;
|
|
414
|
+
};
|
|
415
|
+
/**
|
|
416
|
+
* Tab index of the control.
|
|
417
|
+
*/
|
|
418
|
+
tabIndex: {
|
|
419
|
+
type: NumberConstructor;
|
|
420
|
+
default: number;
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* The value of the control.
|
|
424
|
+
* Should be `id` or `node` object for single-select mode, or an array of `id` or `node` object for multi-select mode.
|
|
425
|
+
* Its format depends on the `valueFormat` prop.
|
|
426
|
+
* For most cases, just use `v-model` instead.
|
|
427
|
+
*/
|
|
428
|
+
modelValue: null;
|
|
429
|
+
/**
|
|
430
|
+
* Which kind of nodes should be included in the `value` array in multi-select mode.
|
|
431
|
+
* Acceptable values:
|
|
432
|
+
* - "ALL" - Any node that is checked will be included in the `value` array
|
|
433
|
+
* - "BRANCH_PRIORITY" (default) - If a branch node is checked, all its descendants will be excluded in the `value` array
|
|
434
|
+
* - "LEAF_PRIORITY" - If a branch node is checked, this node itself and its branch descendants will be excluded from the `value` array but its leaf descendants will be included
|
|
435
|
+
* - "ALL_WITH_INDETERMINATE" - Any node that is checked will be included in the `value` array, plus indeterminate nodes
|
|
436
|
+
*/
|
|
437
|
+
valueConsistsOf: {
|
|
438
|
+
type: StringConstructor;
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Format of `value` prop.
|
|
442
|
+
* Note that, when set to `"object"`, only `id` & `label` properties are required in each `node` object in `value` prop.
|
|
443
|
+
* Acceptable values:
|
|
444
|
+
* - "id"
|
|
445
|
+
* - "object"
|
|
446
|
+
*/
|
|
447
|
+
valueFormat: {
|
|
448
|
+
type: StringConstructor;
|
|
449
|
+
default: string;
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* z-index of the menu.
|
|
453
|
+
*/
|
|
454
|
+
zIndex: {
|
|
455
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
456
|
+
default: number;
|
|
457
|
+
};
|
|
458
|
+
};
|