@tdesign/uniapp 0.0.1-alpha.1 → 0.7.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/CHANGELOG.md +213 -0
- package/LICENSE +9 -0
- package/README.md +144 -0
- package/dist/action-sheet/README.en-US.md +60 -0
- package/dist/action-sheet/README.md +131 -0
- package/dist/action-sheet/action-sheet.css +162 -0
- package/dist/action-sheet/action-sheet.vue +367 -0
- package/dist/action-sheet/computed.js +29 -0
- package/dist/action-sheet/index.d.ts +11 -0
- package/dist/action-sheet/index.js +13 -0
- package/dist/action-sheet/props.ts +86 -0
- package/dist/action-sheet/show.d.ts +28 -0
- package/dist/action-sheet/show.js +33 -0
- package/dist/action-sheet/type.ts +93 -0
- package/dist/avatar/README.en-US.md +102 -0
- package/dist/avatar/README.md +152 -0
- package/dist/avatar/avatar.css +77 -0
- package/dist/avatar/avatar.vue +200 -0
- package/dist/avatar/computed.js +30 -0
- package/dist/avatar/props.ts +54 -0
- package/dist/avatar/type.ts +58 -0
- package/dist/avatar-group/avatar-group.css +187 -0
- package/dist/avatar-group/avatar-group.vue +121 -0
- package/dist/avatar-group/props.ts +44 -0
- package/dist/avatar-group/type.ts +38 -0
- package/dist/back-top/README.en-US.md +49 -0
- package/dist/back-top/README.md +67 -0
- package/dist/back-top/back-top.css +65 -0
- package/dist/back-top/back-top.vue +122 -0
- package/dist/back-top/props.ts +48 -0
- package/dist/back-top/type.ts +42 -0
- package/dist/badge/README.en-US.md +54 -0
- package/dist/badge/README.md +85 -0
- package/dist/badge/badge.css +140 -0
- package/dist/badge/badge.vue +134 -0
- package/dist/badge/computed.js +63 -0
- package/dist/badge/props.ts +55 -0
- package/dist/badge/type.ts +60 -0
- package/dist/button/README.en-US.md +241 -0
- package/dist/button/README.md +232 -0
- package/dist/button/button.css +514 -0
- package/dist/button/button.vue +247 -0
- package/dist/button/props.ts +221 -0
- package/dist/button/type.ts +206 -0
- package/dist/calendar/README.en-US.md +63 -0
- package/dist/calendar/README.md +113 -0
- package/dist/calendar/calendar-header.props.js +42 -0
- package/dist/calendar/calendar-header.vue +98 -0
- package/dist/calendar/calendar.css +205 -0
- package/dist/calendar/calendar.vue +454 -0
- package/dist/calendar/computed.js +42 -0
- package/dist/calendar/props.ts +113 -0
- package/dist/calendar/template.props.js +57 -0
- package/dist/calendar/template.vue +261 -0
- package/dist/calendar/type.ts +141 -0
- package/dist/calendar/utils.js +16 -0
- package/dist/cascader/README.en-US.md +56 -0
- package/dist/cascader/README.md +96 -0
- package/dist/cascader/cascader.css +102 -0
- package/dist/cascader/cascader.vue +523 -0
- package/dist/cascader/props.ts +73 -0
- package/dist/cascader/type.ts +77 -0
- package/dist/cell/README.en-US.md +116 -0
- package/dist/cell/README.md +147 -0
- package/dist/cell/cell.css +94 -0
- package/dist/cell/cell.vue +260 -0
- package/dist/cell/props.ts +87 -0
- package/dist/cell/type.ts +82 -0
- package/dist/cell-group/cell-group.css +44 -0
- package/dist/cell-group/cell-group.vue +69 -0
- package/dist/cell-group/props.ts +25 -0
- package/dist/cell-group/type.ts +23 -0
- package/dist/check-tag/check-tag.css +197 -0
- package/dist/check-tag/check-tag.vue +149 -0
- package/dist/check-tag/props.ts +67 -0
- package/dist/check-tag/type.ts +63 -0
- package/dist/checkbox/README.en-US.md +103 -0
- package/dist/checkbox/README.md +158 -0
- package/dist/checkbox/checkbox.css +174 -0
- package/dist/checkbox/checkbox.vue +238 -0
- package/dist/checkbox/props.ts +90 -0
- package/dist/checkbox/type.ts +96 -0
- package/dist/checkbox-group/checkbox-group.css +0 -0
- package/dist/checkbox-group/checkbox-group.vue +261 -0
- package/dist/checkbox-group/props.ts +58 -0
- package/dist/checkbox-group/type.ts +72 -0
- package/dist/col/README.en-US.md +31 -0
- package/dist/col/README.md +60 -0
- package/dist/col/col.css +149 -0
- package/dist/col/col.vue +58 -0
- package/dist/col/computed.js +14 -0
- package/dist/col/props.ts +16 -0
- package/dist/col/type.ts +16 -0
- package/dist/collapse/README.en-US.md +82 -0
- package/dist/collapse/README.md +119 -0
- package/dist/collapse/collapse.css +5 -0
- package/dist/collapse/collapse.vue +119 -0
- package/dist/collapse/props.ts +42 -0
- package/dist/collapse/type.ts +46 -0
- package/dist/collapse-panel/collapse-panel.css +154 -0
- package/dist/collapse-panel/collapse-panel.vue +238 -0
- package/dist/collapse-panel/props.ts +48 -0
- package/dist/collapse-panel/type.ts +41 -0
- package/dist/color-picker/README.en-US.md +62 -0
- package/dist/color-picker/README.md +110 -0
- package/dist/color-picker/color-picker.css +271 -0
- package/dist/color-picker/color-picker.vue +501 -0
- package/dist/color-picker/constants.ts +26 -0
- package/dist/color-picker/props.ts +75 -0
- package/dist/color-picker/template.props.js +58 -0
- package/dist/color-picker/template.vue +198 -0
- package/dist/color-picker/type.ts +96 -0
- package/dist/color-picker/utils.js +1 -0
- package/dist/common/bus.js +84 -0
- package/dist/common/canvas/index.js +53 -0
- package/dist/common/common.ts +173 -0
- package/dist/common/config.js +9 -0
- package/dist/common/dom/index.js +1 -0
- package/dist/common/dom/select-component.js +26 -0
- package/dist/common/event/dynamic.js +10 -0
- package/dist/common/functional/mixin.js +51 -0
- package/dist/common/relation/index.js +6 -0
- package/dist/common/relation/parent-map.js +26 -0
- package/dist/common/relation/relation.js +213 -0
- package/dist/common/route.js +13 -0
- package/dist/common/runtime/index.js +5 -0
- package/dist/common/runtime/relation.js +0 -0
- package/dist/common/runtime/wxs-polyfill.js +16 -0
- package/dist/common/shared/calendar/index.js +128 -0
- package/dist/common/shared/calendar/type.ts +14 -0
- package/dist/common/shared/color-picker/cmyk.js +78 -0
- package/dist/common/shared/color-picker/color.js +428 -0
- package/dist/common/shared/color-picker/gradient.js +180 -0
- package/dist/common/shared/color-picker/index.js +3 -0
- package/dist/common/shared/date.js +46 -0
- package/dist/common/shared/qrcode/qrcodegen.js +884 -0
- package/dist/common/shared/qrcode/utils.js +124 -0
- package/dist/common/src/control.js +66 -0
- package/dist/common/src/flatTool.js +99 -0
- package/dist/common/src/index.js +4 -0
- package/dist/common/src/instantiationDecorator.js +259 -0
- package/dist/common/src/superComponent.js +5 -0
- package/dist/common/style/_variables.less +232 -0
- package/dist/common/style/base.less +4 -0
- package/dist/common/style/icons.css +0 -0
- package/dist/common/style/index.css +13 -0
- package/dist/common/style/mixins/_border.less +34 -0
- package/dist/common/style/mixins/_clearfix.less +7 -0
- package/dist/common/style/mixins/_cursor.less +6 -0
- package/dist/common/style/mixins/_ellipsis.less +15 -0
- package/dist/common/style/mixins/_hairline.less +55 -0
- package/dist/common/style/mixins/_index.less +6 -0
- package/dist/common/style/mixins/_other.less +14 -0
- package/dist/common/style/theme/index.css +471 -0
- package/dist/common/style/theme/index.less +11 -0
- package/dist/common/style/theme/raw/_components.less +30 -0
- package/dist/common/style/theme/raw/_dark.less +178 -0
- package/dist/common/style/theme/raw/_font.less +90 -0
- package/dist/common/style/theme/raw/_light.less +182 -0
- package/dist/common/style/theme/raw/_radius.less +10 -0
- package/dist/common/style/theme/raw/_spacer.less +11 -0
- package/dist/common/style/utilities/index.css +13 -0
- package/dist/common/utils.js +358 -0
- package/dist/common/utils.wxs.js +139 -0
- package/dist/common/validator.js +38 -0
- package/dist/common/version.js +66 -0
- package/dist/common/wechat.js +22 -0
- package/dist/count-down/README.en-US.md +50 -0
- package/dist/count-down/README.md +76 -0
- package/dist/count-down/computed.js +3 -0
- package/dist/count-down/count-down.css +110 -0
- package/dist/count-down/count-down.vue +166 -0
- package/dist/count-down/props.ts +62 -0
- package/dist/count-down/type.ts +64 -0
- package/dist/count-down/utils.js +72 -0
- package/dist/date-time-picker/README.en-US.md +61 -0
- package/dist/date-time-picker/README.md +105 -0
- package/dist/date-time-picker/date-time-picker.css +4 -0
- package/dist/date-time-picker/date-time-picker.vue +570 -0
- package/dist/date-time-picker/locale/dayjs.js +81 -0
- package/dist/date-time-picker/locale/en.js +12 -0
- package/dist/date-time-picker/locale/ja.js +12 -0
- package/dist/date-time-picker/locale/ko.js +12 -0
- package/dist/date-time-picker/locale/ru.js +12 -0
- package/dist/date-time-picker/locale/tc.js +12 -0
- package/dist/date-time-picker/locale/zh.js +12 -0
- package/dist/date-time-picker/props.ts +114 -0
- package/dist/date-time-picker/type.ts +134 -0
- package/dist/demo/demo.vue +97 -0
- package/dist/demo/index.css +46 -0
- package/dist/demo-header/demo-header.vue +60 -0
- package/dist/demo-header/index.css +0 -0
- package/dist/demo-navbar/demo-navbar.vue +42 -0
- package/dist/dialog/README.en-US.md +69 -0
- package/dist/dialog/README.md +120 -0
- package/dist/dialog/computed.js +15 -0
- package/dist/dialog/dialog.css +102 -0
- package/dist/dialog/dialog.vue +422 -0
- package/dist/dialog/index.d.ts +42 -0
- package/dist/dialog/index.js +90 -0
- package/dist/dialog/props.ts +94 -0
- package/dist/dialog/type.ts +97 -0
- package/dist/divider/README.en-US.md +40 -0
- package/dist/divider/README.md +64 -0
- package/dist/divider/divider.css +56 -0
- package/dist/divider/divider.vue +79 -0
- package/dist/divider/props.ts +33 -0
- package/dist/divider/type.ts +27 -0
- package/dist/draggable/draggable.css +16 -0
- package/dist/draggable/draggable.vue +92 -0
- package/dist/draggable/props.js +19 -0
- package/dist/drawer/README.en-US.md +54 -0
- package/dist/drawer/README.md +80 -0
- package/dist/drawer/drawer.css +62 -0
- package/dist/drawer/drawer.vue +144 -0
- package/dist/drawer/props.ts +72 -0
- package/dist/drawer/type.ts +81 -0
- package/dist/dropdown-item/computed.js +6 -0
- package/dist/dropdown-item/dropdown-item.css +97 -0
- package/dist/dropdown-item/dropdown-item.vue +403 -0
- package/dist/dropdown-item/props.ts +71 -0
- package/dist/dropdown-item/type.ts +76 -0
- package/dist/dropdown-menu/README.en-US.md +95 -0
- package/dist/dropdown-menu/README.md +125 -0
- package/dist/dropdown-menu/dropdown-menu.css +59 -0
- package/dist/dropdown-menu/dropdown-menu.vue +188 -0
- package/dist/dropdown-menu/props.ts +44 -0
- package/dist/dropdown-menu/type.ts +41 -0
- package/dist/empty/README.en-US.md +39 -0
- package/dist/empty/README.md +69 -0
- package/dist/empty/empty.css +21 -0
- package/dist/empty/empty.vue +140 -0
- package/dist/empty/props.ts +20 -0
- package/dist/empty/type.ts +20 -0
- package/dist/fab/README.en-US.md +37 -0
- package/dist/fab/README.md +81 -0
- package/dist/fab/fab.css +9 -0
- package/dist/fab/fab.vue +238 -0
- package/dist/fab/props.ts +54 -0
- package/dist/fab/type.ts +57 -0
- package/dist/footer/README.en-US.md +33 -0
- package/dist/footer/README.md +61 -0
- package/dist/footer/footer.css +47 -0
- package/dist/footer/footer.vue +117 -0
- package/dist/footer/props.ts +23 -0
- package/dist/footer/type.ts +34 -0
- package/dist/form/README.en-US.md +137 -0
- package/dist/form/README.md +146 -0
- package/dist/form/form-item-props.ts +56 -0
- package/dist/form/form.css +169 -0
- package/dist/form/form.vue +287 -0
- package/dist/form/props.ts +109 -0
- package/dist/form/type.ts +387 -0
- package/dist/form-item/README.en-US.md +37 -0
- package/dist/form-item/README.md +37 -0
- package/dist/form-item/form-item.css +120 -0
- package/dist/form-item/form-item.vue +396 -0
- package/dist/form-item/form-model.ts +198 -0
- package/dist/form-item/props.ts +64 -0
- package/dist/form-item/type.ts +7 -0
- package/dist/grid/README.en-US.md +92 -0
- package/dist/grid/README.md +143 -0
- package/dist/grid/grid.css +13 -0
- package/dist/grid/grid.vue +94 -0
- package/dist/grid/props.ts +43 -0
- package/dist/grid/type.ts +43 -0
- package/dist/grid-item/README.en-US.md +65 -0
- package/dist/grid-item/README.md +65 -0
- package/dist/grid-item/grid-item.css +103 -0
- package/dist/grid-item/grid-item.vue +292 -0
- package/dist/grid-item/props.ts +63 -0
- package/dist/grid-item/type.ts +56 -0
- package/dist/guide/README.en-US.md +103 -0
- package/dist/guide/README.md +140 -0
- package/dist/guide/content.vue +325 -0
- package/dist/guide/guide.css +64 -0
- package/dist/guide/guide.vue +534 -0
- package/dist/guide/props.ts +98 -0
- package/dist/guide/type.ts +174 -0
- package/dist/icon/README.en-US.md +32 -0
- package/dist/icon/README.md +109 -0
- package/dist/icon/icon.css +7073 -0
- package/dist/icon/icon.vue +121 -0
- package/dist/icon/props.ts +35 -0
- package/dist/icon/type.ts +32 -0
- package/dist/image/README.en-US.md +51 -0
- package/dist/image/README.md +86 -0
- package/dist/image/image.css +44 -0
- package/dist/image/image.vue +207 -0
- package/dist/image/props.ts +71 -0
- package/dist/image/type.ts +85 -0
- package/dist/image-viewer/README.en-US.md +49 -0
- package/dist/image-viewer/README.md +78 -0
- package/dist/image-viewer/computed.js +4 -0
- package/dist/image-viewer/image-viewer.css +75 -0
- package/dist/image-viewer/image-viewer.vue +317 -0
- package/dist/image-viewer/props.ts +69 -0
- package/dist/image-viewer/type.ts +76 -0
- package/dist/indexes/README.en-US.md +76 -0
- package/dist/indexes/README.md +105 -0
- package/dist/indexes/computed.js +4 -0
- package/dist/indexes/indexes-anchor-props.ts +12 -0
- package/dist/indexes/indexes.css +50 -0
- package/dist/indexes/indexes.vue +371 -0
- package/dist/indexes/props.ts +40 -0
- package/dist/indexes/type.ts +38 -0
- package/dist/indexes-anchor/README.en-US.md +24 -0
- package/dist/indexes-anchor/README.md +28 -0
- package/dist/indexes-anchor/indexes-anchor.css +49 -0
- package/dist/indexes-anchor/indexes-anchor.vue +73 -0
- package/dist/indexes-anchor/props.ts +12 -0
- package/dist/indexes-anchor/type.ts +12 -0
- package/dist/input/README.en-US.md +121 -0
- package/dist/input/README.md +190 -0
- package/dist/input/computed.js +13 -0
- package/dist/input/input.css +161 -0
- package/dist/input/input.vue +407 -0
- package/dist/input/props.ts +247 -0
- package/dist/input/type.ts +237 -0
- package/dist/input/utils.js +38 -0
- package/dist/link/README.en-US.md +67 -0
- package/dist/link/README.md +115 -0
- package/dist/link/link.css +118 -0
- package/dist/link/link.vue +175 -0
- package/dist/link/props.ts +65 -0
- package/dist/link/type.ts +62 -0
- package/dist/loading/README.en-US.md +49 -0
- package/dist/loading/README.md +96 -0
- package/dist/loading/loading.css +203 -0
- package/dist/loading/loading.vue +157 -0
- package/dist/loading/props.ts +68 -0
- package/dist/loading/type.ts +70 -0
- package/dist/message/README.en-US.md +69 -0
- package/dist/message/README.md +105 -0
- package/dist/message/config.js +10 -0
- package/dist/message/index.d.ts +17 -0
- package/dist/message/index.js +39 -0
- package/dist/message/message.css +0 -0
- package/dist/message/message.interface.ts +30 -0
- package/dist/message/message.vue +275 -0
- package/dist/message/props.ts +101 -0
- package/dist/message/type.ts +101 -0
- package/dist/message-item/computed.js +23 -0
- package/dist/message-item/index.js +40 -0
- package/dist/message-item/message-item.css +63 -0
- package/dist/message-item/message-item.vue +353 -0
- package/dist/mixins/page-scroll.js +115 -0
- package/dist/mixins/skyline.js +12 -0
- package/dist/mixins/theme-change.js +16 -0
- package/dist/mixins/touch.js +29 -0
- package/dist/mixins/transition.js +133 -0
- package/dist/mixins/using-custom-navbar.js +38 -0
- package/dist/navbar/README.en-US.md +76 -0
- package/dist/navbar/README.md +121 -0
- package/dist/navbar/navbar.css +106 -0
- package/dist/navbar/navbar.vue +293 -0
- package/dist/navbar/props.ts +75 -0
- package/dist/navbar/type.ts +76 -0
- package/dist/notice-bar/README.en-US.md +62 -0
- package/dist/notice-bar/README.md +116 -0
- package/dist/notice-bar/notice-bar.css +75 -0
- package/dist/notice-bar/notice-bar.vue +326 -0
- package/dist/notice-bar/props.ts +71 -0
- package/dist/notice-bar/type.ts +71 -0
- package/dist/npm/dayjs/esm/constant.js +25 -0
- package/dist/npm/dayjs/esm/index.js +541 -0
- package/dist/npm/dayjs/esm/locale/en.js +12 -0
- package/dist/npm/dayjs/esm/locale/ja.js +45 -0
- package/dist/npm/dayjs/esm/locale/ko.js +45 -0
- package/dist/npm/dayjs/esm/locale/ru.js +99 -0
- package/dist/npm/dayjs/esm/locale/zh-cn.js +67 -0
- package/dist/npm/dayjs/esm/locale/zh-tw.js +65 -0
- package/dist/npm/dayjs/esm/plugin/localeData/index.js +114 -0
- package/dist/npm/dayjs/esm/plugin/localizedFormat/index.js +20 -0
- package/dist/npm/dayjs/esm/plugin/localizedFormat/utils.js +20 -0
- package/dist/npm/dayjs/esm/utils.js +58 -0
- package/dist/npm/tinycolor2/esm/tinycolor.js +1180 -0
- package/dist/overlay/README.en-US.md +34 -0
- package/dist/overlay/README.md +54 -0
- package/dist/overlay/overlay.css +17 -0
- package/dist/overlay/overlay.vue +105 -0
- package/dist/overlay/props.ts +37 -0
- package/dist/overlay/type.ts +42 -0
- package/dist/picker/README.en-US.md +77 -0
- package/dist/picker/README.md +112 -0
- package/dist/picker/picker.css +71 -0
- package/dist/picker/picker.vue +315 -0
- package/dist/picker/props.ts +95 -0
- package/dist/picker/type.ts +114 -0
- package/dist/picker-item/README.en-US.md +25 -0
- package/dist/picker-item/README.md +25 -0
- package/dist/picker-item/picker-item.css +32 -0
- package/dist/picker-item/picker-item.vue +446 -0
- package/dist/picker-item/props.ts +18 -0
- package/dist/picker-item/type.ts +23 -0
- package/dist/popover/README.en-US.md +55 -0
- package/dist/popover/README.md +85 -0
- package/dist/popover/popover.css +271 -0
- package/dist/popover/popover.vue +352 -0
- package/dist/popover/props.ts +58 -0
- package/dist/popover/type.ts +61 -0
- package/dist/popup/README.en-US.md +53 -0
- package/dist/popup/README.md +82 -0
- package/dist/popup/computed.js +14 -0
- package/dist/popup/popup.css +80 -0
- package/dist/popup/popup.vue +141 -0
- package/dist/popup/props.ts +67 -0
- package/dist/popup/type.ts +72 -0
- package/dist/progress/README.en-US.md +52 -0
- package/dist/progress/README.md +87 -0
- package/dist/progress/computed.js +81 -0
- package/dist/progress/progress.css +136 -0
- package/dist/progress/progress.vue +259 -0
- package/dist/progress/props.ts +55 -0
- package/dist/progress/type.ts +50 -0
- package/dist/progress/utils.js +19 -0
- package/dist/pull-down-refresh/README.en-US.md +60 -0
- package/dist/pull-down-refresh/README.md +83 -0
- package/dist/pull-down-refresh/props.ts +112 -0
- package/dist/pull-down-refresh/pull-down-refresh.css +29 -0
- package/dist/pull-down-refresh/pull-down-refresh.vue +366 -0
- package/dist/pull-down-refresh/type.ts +118 -0
- package/dist/qrcode/README.en-US.md +40 -0
- package/dist/qrcode/README.md +97 -0
- package/dist/qrcode/components/qrcode-canvas/props.ts +48 -0
- package/dist/qrcode/components/qrcode-canvas/qrcode-canvas.css +7 -0
- package/dist/qrcode/components/qrcode-canvas/qrcode-canvas.vue +413 -0
- package/dist/qrcode/components/qrcode-status/props.ts +22 -0
- package/dist/qrcode/components/qrcode-status/qrcode-status.css +25 -0
- package/dist/qrcode/components/qrcode-status/qrcode-status.vue +94 -0
- package/dist/qrcode/components/qrcode-status/type.ts +25 -0
- package/dist/qrcode/hooks/useQRCode.js +25 -0
- package/dist/qrcode/props.ts +66 -0
- package/dist/qrcode/qrcode.css +31 -0
- package/dist/qrcode/qrcode.vue +144 -0
- package/dist/qrcode/type.ts +66 -0
- package/dist/radio/README.en-US.md +104 -0
- package/dist/radio/README.md +148 -0
- package/dist/radio/props.ts +86 -0
- package/dist/radio/radio.css +177 -0
- package/dist/radio/radio.vue +227 -0
- package/dist/radio/type.ts +89 -0
- package/dist/radio-group/props.ts +68 -0
- package/dist/radio-group/radio-group.css +0 -0
- package/dist/radio-group/radio-group.vue +205 -0
- package/dist/radio-group/type.ts +79 -0
- package/dist/rate/README.en-US.md +50 -0
- package/dist/rate/README.md +107 -0
- package/dist/rate/computed.js +66 -0
- package/dist/rate/props.ts +85 -0
- package/dist/rate/rate.css +81 -0
- package/dist/rate/rate.vue +276 -0
- package/dist/rate/type.ts +79 -0
- package/dist/result/README.en-US.md +47 -0
- package/dist/result/README.md +88 -0
- package/dist/result/props.ts +36 -0
- package/dist/result/result.css +35 -0
- package/dist/result/result.vue +128 -0
- package/dist/result/type.ts +31 -0
- package/dist/row/computed.js +13 -0
- package/dist/row/props.ts +12 -0
- package/dist/row/row.css +6 -0
- package/dist/row/row.vue +63 -0
- package/dist/row/type.ts +12 -0
- package/dist/script/postinstall.js +46 -0
- package/dist/scroll-view/scroll-view.css +0 -0
- package/dist/scroll-view/scroll-view.vue +52 -0
- package/dist/search/README.en-US.md +88 -0
- package/dist/search/README.md +126 -0
- package/dist/search/computed.js +3 -0
- package/dist/search/props.ts +171 -0
- package/dist/search/search.css +75 -0
- package/dist/search/search.vue +292 -0
- package/dist/search/type.ts +165 -0
- package/dist/side-bar/README.en-US.md +58 -0
- package/dist/side-bar/README.md +89 -0
- package/dist/side-bar/props.ts +26 -0
- package/dist/side-bar/side-bar-item-props.ts +27 -0
- package/dist/side-bar/side-bar.css +14 -0
- package/dist/side-bar/side-bar.vue +84 -0
- package/dist/side-bar/type.ts +24 -0
- package/dist/side-bar-item/props.ts +27 -0
- package/dist/side-bar-item/side-bar-item.css +66 -0
- package/dist/side-bar-item/side-bar-item.vue +168 -0
- package/dist/side-bar-item/type.ts +32 -0
- package/dist/skeleton/README.en-US.md +44 -0
- package/dist/skeleton/README.md +82 -0
- package/dist/skeleton/props.ts +41 -0
- package/dist/skeleton/skeleton.css +77 -0
- package/dist/skeleton/skeleton.vue +211 -0
- package/dist/skeleton/type.ts +44 -0
- package/dist/slider/README.en-US.md +63 -0
- package/dist/slider/README.md +127 -0
- package/dist/slider/computed.js +9 -0
- package/dist/slider/props.ts +79 -0
- package/dist/slider/slider.css +239 -0
- package/dist/slider/slider.vue +719 -0
- package/dist/slider/tool.js +43 -0
- package/dist/slider/type.ts +81 -0
- package/dist/step-item/computed.js +4 -0
- package/dist/step-item/props.ts +36 -0
- package/dist/step-item/step-item.css +182 -0
- package/dist/step-item/step-item.vue +175 -0
- package/dist/step-item/type.ts +33 -0
- package/dist/stepper/README.en-US.md +49 -0
- package/dist/stepper/README.md +90 -0
- package/dist/stepper/props.ts +88 -0
- package/dist/stepper/stepper.css +105 -0
- package/dist/stepper/stepper.vue +223 -0
- package/dist/stepper/type.ts +79 -0
- package/dist/steps/README.en-US.md +99 -0
- package/dist/steps/README.md +157 -0
- package/dist/steps/props.ts +63 -0
- package/dist/steps/steps.css +19 -0
- package/dist/steps/steps.vue +122 -0
- package/dist/steps/type.ts +44 -0
- package/dist/sticky/README.en-US.md +32 -0
- package/dist/sticky/README.md +66 -0
- package/dist/sticky/props.ts +30 -0
- package/dist/sticky/sticky.css +3 -0
- package/dist/sticky/sticky.vue +144 -0
- package/dist/sticky/type.ts +31 -0
- package/dist/swipe-cell/README.en-US.md +29 -0
- package/dist/swipe-cell/README.md +66 -0
- package/dist/swipe-cell/computed.js +166 -0
- package/dist/swipe-cell/props.ts +39 -0
- package/dist/swipe-cell/swipe-cell.css +31 -0
- package/dist/swipe-cell/swipe-cell.vue +245 -0
- package/dist/swipe-cell/type.ts +48 -0
- package/dist/swiper/README.en-US.md +89 -0
- package/dist/swiper/README.md +139 -0
- package/dist/swiper/computed.js +29 -0
- package/dist/swiper/props.ts +117 -0
- package/dist/swiper/swiper.css +21 -0
- package/dist/swiper/swiper.vue +193 -0
- package/dist/swiper/type.ts +112 -0
- package/dist/swiper-nav/props.ts +49 -0
- package/dist/swiper-nav/swiper-nav.css +130 -0
- package/dist/swiper-nav/swiper-nav.vue +93 -0
- package/dist/swiper-nav/type.ts +45 -0
- package/dist/switch/README.en-US.md +70 -0
- package/dist/switch/README.md +104 -0
- package/dist/switch/props.ts +53 -0
- package/dist/switch/switch.css +123 -0
- package/dist/switch/switch.vue +122 -0
- package/dist/switch/type.ts +51 -0
- package/dist/tab-bar/README.en-US.md +58 -0
- package/dist/tab-bar/README.md +104 -0
- package/dist/tab-bar/props.ts +62 -0
- package/dist/tab-bar/tab-bar.css +42 -0
- package/dist/tab-bar/tab-bar.vue +141 -0
- package/dist/tab-bar/type.ts +56 -0
- package/dist/tab-bar-item/props.ts +25 -0
- package/dist/tab-bar-item/tab-bar-item.css +117 -0
- package/dist/tab-bar-item/tab-bar-item.vue +222 -0
- package/dist/tab-bar-item/type.ts +32 -0
- package/dist/tab-panel/props.ts +34 -0
- package/dist/tab-panel/tab-panel.css +15 -0
- package/dist/tab-panel/tab-panel.vue +100 -0
- package/dist/tab-panel/type.ts +42 -0
- package/dist/tabs/README.en-US.md +89 -0
- package/dist/tabs/README.md +198 -0
- package/dist/tabs/computed.js +26 -0
- package/dist/tabs/props.ts +80 -0
- package/dist/tabs/tabs.css +183 -0
- package/dist/tabs/tabs.vue +494 -0
- package/dist/tabs/type.ts +77 -0
- package/dist/tag/README.en-US.md +113 -0
- package/dist/tag/README.md +151 -0
- package/dist/tag/props.ts +70 -0
- package/dist/tag/tag.css +208 -0
- package/dist/tag/tag.vue +161 -0
- package/dist/tag/type.ts +54 -0
- package/dist/tdesign-uniapp/tdesign-uniapp.vue +11 -0
- package/dist/textarea/README.en-US.md +78 -0
- package/dist/textarea/README.md +132 -0
- package/dist/textarea/computed.js +14 -0
- package/dist/textarea/props.ts +152 -0
- package/dist/textarea/textarea.css +67 -0
- package/dist/textarea/textarea.vue +227 -0
- package/dist/textarea/type.ts +167 -0
- package/dist/toast/README.en-US.md +51 -0
- package/dist/toast/README.md +78 -0
- package/dist/toast/index.d.ts +20 -0
- package/dist/toast/index.js +27 -0
- package/dist/toast/props.ts +68 -0
- package/dist/toast/toast.css +73 -0
- package/dist/toast/toast.vue +213 -0
- package/dist/toast/type.ts +64 -0
- package/dist/transition/README.en-US.md +13 -0
- package/dist/transition/README.md +45 -0
- package/dist/transition/props.js +22 -0
- package/dist/transition/transition.css +14 -0
- package/dist/transition/transition.vue +51 -0
- package/dist/tree-select/README.en-US.md +48 -0
- package/dist/tree-select/README.md +78 -0
- package/dist/tree-select/computed.js +6 -0
- package/dist/tree-select/props.ts +42 -0
- package/dist/tree-select/tree-select.css +44 -0
- package/dist/tree-select/tree-select.vue +319 -0
- package/dist/tree-select/type.ts +49 -0
- package/dist/types/action-sheet.d.ts +7 -0
- package/dist/types/avatar-group.d.ts +7 -0
- package/dist/types/avatar.d.ts +7 -0
- package/dist/types/back-top.d.ts +7 -0
- package/dist/types/badge.d.ts +7 -0
- package/dist/types/button.d.ts +7 -0
- package/dist/types/calendar.d.ts +7 -0
- package/dist/types/cascader.d.ts +7 -0
- package/dist/types/cell-group.d.ts +7 -0
- package/dist/types/cell.d.ts +7 -0
- package/dist/types/check-tag.d.ts +7 -0
- package/dist/types/checkbox-group.d.ts +7 -0
- package/dist/types/checkbox.d.ts +7 -0
- package/dist/types/col.d.ts +7 -0
- package/dist/types/collapse-panel.d.ts +7 -0
- package/dist/types/collapse.d.ts +7 -0
- package/dist/types/color-picker.d.ts +7 -0
- package/dist/types/count-down.d.ts +7 -0
- package/dist/types/date-time-picker.d.ts +7 -0
- package/dist/types/dialog.d.ts +7 -0
- package/dist/types/divider.d.ts +7 -0
- package/dist/types/drawer.d.ts +7 -0
- package/dist/types/dropdown-item.d.ts +7 -0
- package/dist/types/dropdown-menu.d.ts +7 -0
- package/dist/types/empty.d.ts +7 -0
- package/dist/types/fab.d.ts +7 -0
- package/dist/types/footer.d.ts +7 -0
- package/dist/types/form-item.d.ts +7 -0
- package/dist/types/form.d.ts +7 -0
- package/dist/types/grid-item.d.ts +7 -0
- package/dist/types/grid.d.ts +7 -0
- package/dist/types/guide.d.ts +7 -0
- package/dist/types/icon.d.ts +7 -0
- package/dist/types/image-viewer.d.ts +7 -0
- package/dist/types/image.d.ts +7 -0
- package/dist/types/index.d.ts +77 -0
- package/dist/types/indexes-anchor.d.ts +7 -0
- package/dist/types/indexes.d.ts +7 -0
- package/dist/types/input.d.ts +7 -0
- package/dist/types/link.d.ts +7 -0
- package/dist/types/loading.d.ts +7 -0
- package/dist/types/message.d.ts +7 -0
- package/dist/types/navbar.d.ts +7 -0
- package/dist/types/notice-bar.d.ts +7 -0
- package/dist/types/overlay.d.ts +7 -0
- package/dist/types/picker-item.d.ts +7 -0
- package/dist/types/picker.d.ts +7 -0
- package/dist/types/popup.d.ts +7 -0
- package/dist/types/progress.d.ts +7 -0
- package/dist/types/pull-down-refresh.d.ts +7 -0
- package/dist/types/qrcode.d.ts +7 -0
- package/dist/types/radio-group.d.ts +7 -0
- package/dist/types/radio.d.ts +7 -0
- package/dist/types/rate.d.ts +7 -0
- package/dist/types/result.d.ts +7 -0
- package/dist/types/row.d.ts +7 -0
- package/dist/types/search.d.ts +7 -0
- package/dist/types/side-bar-item.d.ts +7 -0
- package/dist/types/side-bar.d.ts +7 -0
- package/dist/types/skeleton.d.ts +7 -0
- package/dist/types/slider.d.ts +7 -0
- package/dist/types/step-item.d.ts +7 -0
- package/dist/types/stepper.d.ts +7 -0
- package/dist/types/steps.d.ts +7 -0
- package/dist/types/sticky.d.ts +7 -0
- package/dist/types/swipe-cell.d.ts +7 -0
- package/dist/types/swiper-nav.d.ts +7 -0
- package/dist/types/swiper.d.ts +7 -0
- package/dist/types/switch.d.ts +7 -0
- package/dist/types/tab-bar-item.d.ts +7 -0
- package/dist/types/tab-bar.d.ts +7 -0
- package/dist/types/tab-panel.d.ts +7 -0
- package/dist/types/tabs.d.ts +7 -0
- package/dist/types/tag.d.ts +7 -0
- package/dist/types/textarea.d.ts +7 -0
- package/dist/types/toast.d.ts +7 -0
- package/dist/types/tree-select.d.ts +7 -0
- package/dist/types/upload.d.ts +7 -0
- package/dist/types/watermark.d.ts +7 -0
- package/dist/upload/README.en-US.md +63 -0
- package/dist/upload/README.md +116 -0
- package/dist/upload/drag.computed.js +227 -0
- package/dist/upload/props.ts +136 -0
- package/dist/upload/type.ts +197 -0
- package/dist/upload/upload.computed.js +13 -0
- package/dist/upload/upload.css +116 -0
- package/dist/upload/upload.vue +887 -0
- package/dist/watermark/README.en-US.md +63 -0
- package/dist/watermark/README.md +115 -0
- package/dist/watermark/props.ts +82 -0
- package/dist/watermark/type.ts +121 -0
- package/dist/watermark/utils/generateBase64Url.js +360 -0
- package/dist/watermark/utils/randomMovingStyle.js +27 -0
- package/dist/watermark/watermark.css +28 -0
- package/dist/watermark/watermark.vue +200 -0
- package/global.d.ts +84 -0
- package/package.json +505 -7
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
:class="classPrefix"
|
|
4
|
+
:style="tools._style(['height:' + tools.addUnit(height), customStyle])"
|
|
5
|
+
>
|
|
6
|
+
<t-scroll-view
|
|
7
|
+
v-for="(item, level) in treeOptions"
|
|
8
|
+
:key="level"
|
|
9
|
+
:t-class="getScrollViewTClass(level)"
|
|
10
|
+
:class="getScrollViewClass(level)"
|
|
11
|
+
:scroll-into-view="scrollIntoView && scrollIntoView[level] ? 'scroll-to-' + scrollIntoView[level] : ''"
|
|
12
|
+
>
|
|
13
|
+
<t-side-bar
|
|
14
|
+
v-if="level == 0"
|
|
15
|
+
:value="innerValue[level]"
|
|
16
|
+
:t-class="classPrefix + '-column ' + tClassLeftColumn"
|
|
17
|
+
style="width: 100%;height: auto;"
|
|
18
|
+
@change="onRootChange"
|
|
19
|
+
>
|
|
20
|
+
<t-side-bar-item
|
|
21
|
+
v-for="(sidebarItem, sidebarIndex) in treeOptions[level]"
|
|
22
|
+
:key="sidebarIndex"
|
|
23
|
+
:label="sidebarItem.label"
|
|
24
|
+
:value="sidebarItem.value"
|
|
25
|
+
:disabled="sidebarItem.disabled"
|
|
26
|
+
:t-id="'scroll-to-' + sidebarItem.value"
|
|
27
|
+
:t-class="'scroll-into-view ' + tClassLeftItem"
|
|
28
|
+
/>
|
|
29
|
+
</t-side-bar>
|
|
30
|
+
|
|
31
|
+
<block v-else-if="level != leafLevel">
|
|
32
|
+
<view
|
|
33
|
+
v-for="(treeItem, index) in treeOptions[level]"
|
|
34
|
+
:key="`view-${level}-${index}`"
|
|
35
|
+
:data-level="level"
|
|
36
|
+
:data-value="treeItem.value"
|
|
37
|
+
:class="
|
|
38
|
+
tools.cls(classPrefix + '__item', [
|
|
39
|
+
['active', treeItem.value === innerValue[level]],
|
|
40
|
+
['disabled', treeItem.disabled]
|
|
41
|
+
]) +
|
|
42
|
+
' ' +
|
|
43
|
+
tClassMiddleItem +
|
|
44
|
+
' scroll-into-view'
|
|
45
|
+
"
|
|
46
|
+
@click="handleTreeClick"
|
|
47
|
+
>
|
|
48
|
+
<view :id="'scroll-to-' + treeItem.value">
|
|
49
|
+
{{ treeItem.label }}
|
|
50
|
+
</view>
|
|
51
|
+
</view>
|
|
52
|
+
</block>
|
|
53
|
+
|
|
54
|
+
<t-radio-group
|
|
55
|
+
v-else-if="!multiple"
|
|
56
|
+
:t-class="classPrefix + '__radio ' + tClassRightColumn"
|
|
57
|
+
:data-level="level"
|
|
58
|
+
data-type="single"
|
|
59
|
+
:value="innerValue[level]"
|
|
60
|
+
@change="({value}) => handleChange({ value, level, type: 'single' })"
|
|
61
|
+
>
|
|
62
|
+
<t-radio
|
|
63
|
+
v-for="(treeItem, index) in treeOptions[level]"
|
|
64
|
+
:key="`radio-${innerValue[level-1]}-${level}-${index}`"
|
|
65
|
+
:t-id="'scroll-to-' + treeItem.value"
|
|
66
|
+
:t-class="'scroll-into-view ' + classPrefix + '__radio-item ' + tClassRightItem"
|
|
67
|
+
:t-class-label="tClassRightItemLabel"
|
|
68
|
+
icon="line"
|
|
69
|
+
:value="treeItem.value"
|
|
70
|
+
:disabled="treeItem.disabled"
|
|
71
|
+
:max-label-row="1"
|
|
72
|
+
borderless
|
|
73
|
+
placement="right"
|
|
74
|
+
>
|
|
75
|
+
{{ treeItem.label }}
|
|
76
|
+
</t-radio>
|
|
77
|
+
</t-radio-group>
|
|
78
|
+
|
|
79
|
+
<t-checkbox-group
|
|
80
|
+
v-else
|
|
81
|
+
:t-class="classPrefix + '__checkbox ' + tClassRightColumn"
|
|
82
|
+
:value="innerValue[level] || []"
|
|
83
|
+
:data-level="level"
|
|
84
|
+
data-type="multiple"
|
|
85
|
+
@change="({context}) => handleChange({ context, value: context.value, level, type: 'multiple' })"
|
|
86
|
+
>
|
|
87
|
+
<t-checkbox
|
|
88
|
+
v-for="(treeItem, index) in treeOptions[level]"
|
|
89
|
+
:key="`checkbox-${innerValue[level-1]}-${level}-${index}`"
|
|
90
|
+
:t-id="'scroll-to-' + treeItem.value"
|
|
91
|
+
:t-class="'scroll-into-view ' + tClassRightItem"
|
|
92
|
+
:t-class-label="tClassRightItemLabel"
|
|
93
|
+
placement="right"
|
|
94
|
+
icon="line"
|
|
95
|
+
:max-label-row="1"
|
|
96
|
+
:value="treeItem.value"
|
|
97
|
+
:disabled="treeItem.disabled"
|
|
98
|
+
borderless
|
|
99
|
+
>
|
|
100
|
+
{{ treeItem.label }}
|
|
101
|
+
</t-checkbox>
|
|
102
|
+
</t-checkbox-group>
|
|
103
|
+
</t-scroll-view>
|
|
104
|
+
<slot name="content" />
|
|
105
|
+
</view>
|
|
106
|
+
</template>
|
|
107
|
+
<script>
|
|
108
|
+
import TRadio from '../radio/radio';
|
|
109
|
+
import TRadioGroup from '../radio-group/radio-group';
|
|
110
|
+
import TCheckbox from '../checkbox/checkbox';
|
|
111
|
+
import TCheckboxGroup from '../checkbox-group/checkbox-group';
|
|
112
|
+
import TSideBar from '../side-bar/side-bar';
|
|
113
|
+
import TSideBarItem from '../side-bar-item/side-bar-item';
|
|
114
|
+
import TScrollView from '../scroll-view/scroll-view.vue';
|
|
115
|
+
|
|
116
|
+
import { uniComponent } from '../common/src/index';
|
|
117
|
+
import { isDef } from '../common/validator';
|
|
118
|
+
import { prefix } from '../common/config';
|
|
119
|
+
import { getTreeDepth, coalesce, nextTick } from '../common/utils';
|
|
120
|
+
import props from './props';
|
|
121
|
+
import tools from '../common/utils.wxs';
|
|
122
|
+
import { getTreeClass } from './computed.js';
|
|
123
|
+
import { canUseVirtualHost } from '../common/version';
|
|
124
|
+
|
|
125
|
+
const name = `${prefix}-tree-select`;
|
|
126
|
+
|
|
127
|
+
export default uniComponent({
|
|
128
|
+
name,
|
|
129
|
+
options: {
|
|
130
|
+
styleIsolation: 'shared',
|
|
131
|
+
},
|
|
132
|
+
controlledProps: [
|
|
133
|
+
{
|
|
134
|
+
key: 'value',
|
|
135
|
+
event: 'change',
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
externalClasses: [
|
|
139
|
+
`${prefix}-class`,
|
|
140
|
+
`${prefix}-class-left-column`,
|
|
141
|
+
`${prefix}-class-left-item`,
|
|
142
|
+
`${prefix}-class-middle-item`,
|
|
143
|
+
`${prefix}-class-right-column`,
|
|
144
|
+
`${prefix}-class-right-item`,
|
|
145
|
+
`${prefix}-class-right-item-label`,
|
|
146
|
+
],
|
|
147
|
+
components: {
|
|
148
|
+
TRadio,
|
|
149
|
+
TRadioGroup,
|
|
150
|
+
TCheckbox,
|
|
151
|
+
TCheckboxGroup,
|
|
152
|
+
TSideBar,
|
|
153
|
+
TSideBarItem,
|
|
154
|
+
TScrollView,
|
|
155
|
+
},
|
|
156
|
+
props: {
|
|
157
|
+
...props,
|
|
158
|
+
},
|
|
159
|
+
data() {
|
|
160
|
+
return {
|
|
161
|
+
prefix,
|
|
162
|
+
classPrefix: name,
|
|
163
|
+
scrollIntoView: null,
|
|
164
|
+
tools,
|
|
165
|
+
|
|
166
|
+
innerValue: coalesce(this.value, this.defaultValue),
|
|
167
|
+
treeOptions: [],
|
|
168
|
+
};
|
|
169
|
+
},
|
|
170
|
+
computed: {
|
|
171
|
+
|
|
172
|
+
},
|
|
173
|
+
watch: {
|
|
174
|
+
value: {
|
|
175
|
+
handler() {
|
|
176
|
+
this.buildTreeOptions();
|
|
177
|
+
},
|
|
178
|
+
deep: true,
|
|
179
|
+
immediate: true,
|
|
180
|
+
},
|
|
181
|
+
options: {
|
|
182
|
+
handler() {
|
|
183
|
+
this.buildTreeOptions();
|
|
184
|
+
},
|
|
185
|
+
deep: true,
|
|
186
|
+
immediate: true,
|
|
187
|
+
},
|
|
188
|
+
keys: {
|
|
189
|
+
handler() {
|
|
190
|
+
this.buildTreeOptions();
|
|
191
|
+
},
|
|
192
|
+
deep: true,
|
|
193
|
+
immediate: true,
|
|
194
|
+
},
|
|
195
|
+
multiple: 'buildTreeOptions',
|
|
196
|
+
},
|
|
197
|
+
mounted() {
|
|
198
|
+
nextTick().then(() => {
|
|
199
|
+
this.getScrollIntoView('init');
|
|
200
|
+
});
|
|
201
|
+
},
|
|
202
|
+
methods: {
|
|
203
|
+
getTreeClass,
|
|
204
|
+
buildTreeOptions() {
|
|
205
|
+
const { options, innerValue: value, customValue, multiple, keys } = this;
|
|
206
|
+
|
|
207
|
+
if (!options.length) return;
|
|
208
|
+
|
|
209
|
+
const treeOptions = [];
|
|
210
|
+
|
|
211
|
+
let level = -1;
|
|
212
|
+
let currentNode = { children: options };
|
|
213
|
+
|
|
214
|
+
while (currentNode?.children) {
|
|
215
|
+
level += 1;
|
|
216
|
+
const currentLevelOptions = currentNode.children.map(item => ({
|
|
217
|
+
label: item[keys?.label || 'label'],
|
|
218
|
+
value: item[keys?.value || 'value'],
|
|
219
|
+
disabled: item[keys?.disabled || 'disabled'],
|
|
220
|
+
children: item[keys?.children || 'children'],
|
|
221
|
+
}));
|
|
222
|
+
|
|
223
|
+
treeOptions.push(currentLevelOptions);
|
|
224
|
+
|
|
225
|
+
const currentValue = coalesce(customValue?.[level], value?.[level]);
|
|
226
|
+
currentNode = currentValue
|
|
227
|
+
? coalesce(currentLevelOptions.find(child => child.value === currentValue), currentLevelOptions[0])
|
|
228
|
+
: currentLevelOptions[0];
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const depth = getTreeDepth(options, keys?.children);
|
|
232
|
+
|
|
233
|
+
// 补齐 treeOptions 长度到 depth
|
|
234
|
+
while (treeOptions.length < depth) {
|
|
235
|
+
treeOptions.push([]);
|
|
236
|
+
level += 1;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const leafLevel = Math.max(0, level);
|
|
240
|
+
const innerValue = customValue
|
|
241
|
+
|| treeOptions.map((levelOptions, idx) => {
|
|
242
|
+
const isLastLevel = idx === treeOptions.length - 1;
|
|
243
|
+
const defaultValue = isLastLevel && multiple ? [levelOptions[0]?.value] : levelOptions[0]?.value;
|
|
244
|
+
return coalesce(value?.[idx], defaultValue);
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
this.innerValue = innerValue;
|
|
248
|
+
this.leafLevel = leafLevel;
|
|
249
|
+
this.treeOptions = treeOptions;
|
|
250
|
+
},
|
|
251
|
+
|
|
252
|
+
getScrollIntoView(status) {
|
|
253
|
+
const { innerValue: value, customValue, scrollIntoView } = this;
|
|
254
|
+
if (status === 'init') {
|
|
255
|
+
const _value = customValue || value;
|
|
256
|
+
const scrollIntoView = Array.isArray(_value)
|
|
257
|
+
? _value.map(item => (Array.isArray(item) ? item[0] : item))
|
|
258
|
+
: [_value];
|
|
259
|
+
// setTimeout(() => {
|
|
260
|
+
this.scrollIntoView = scrollIntoView;
|
|
261
|
+
// }, 1000);
|
|
262
|
+
} else {
|
|
263
|
+
if (scrollIntoView === null) return;
|
|
264
|
+
this.scrollIntoView = null;
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
|
|
268
|
+
onRootChange(e) {
|
|
269
|
+
const { innerValue } = this;
|
|
270
|
+
const { value: itemValue } = e;
|
|
271
|
+
|
|
272
|
+
this.getScrollIntoView('none');
|
|
273
|
+
innerValue[0] = itemValue;
|
|
274
|
+
|
|
275
|
+
this._trigger('change', { value: innerValue, level: 0 });
|
|
276
|
+
},
|
|
277
|
+
|
|
278
|
+
handleTreeClick(e) {
|
|
279
|
+
const { level, value: itemValue } = e.currentTarget.dataset;
|
|
280
|
+
const { innerValue } = this;
|
|
281
|
+
|
|
282
|
+
innerValue[level] = itemValue;
|
|
283
|
+
this.getScrollIntoView('none');
|
|
284
|
+
this._trigger('change', { value: innerValue, level: 1 });
|
|
285
|
+
},
|
|
286
|
+
|
|
287
|
+
handleChange({ level, type, value }) {
|
|
288
|
+
const { innerValue } = this;
|
|
289
|
+
|
|
290
|
+
if (type === 'multiple') {
|
|
291
|
+
if (!isDef(innerValue[level])) {
|
|
292
|
+
innerValue[level] = [];
|
|
293
|
+
}
|
|
294
|
+
const index = innerValue[level].indexOf(value);
|
|
295
|
+
index === -1 ? innerValue[level].push(value) : innerValue[level].splice(index, 1);
|
|
296
|
+
} else {
|
|
297
|
+
innerValue[level] = value;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
this.getScrollIntoView('none');
|
|
301
|
+
this._trigger('change', { value: innerValue, level });
|
|
302
|
+
},
|
|
303
|
+
|
|
304
|
+
getScrollViewTClass(level) {
|
|
305
|
+
return canUseVirtualHost() ? this.getScrollViewRealClass(level) : '';
|
|
306
|
+
},
|
|
307
|
+
getScrollViewClass(level) {
|
|
308
|
+
return !canUseVirtualHost() ? this.getScrollViewRealClass(level) : '';
|
|
309
|
+
},
|
|
310
|
+
getScrollViewRealClass(level) {
|
|
311
|
+
const { classPrefix, leafLevel, treeOptions, tClass } = this;
|
|
312
|
+
return `${tools.cls(`${classPrefix}__column`, [getTreeClass(leafLevel - level, treeOptions.length)])} ${tClass}`;
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
});
|
|
316
|
+
</script>
|
|
317
|
+
<style scoped>
|
|
318
|
+
@import './tree-select.css';
|
|
319
|
+
</style>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
|
|
5
|
+
* */
|
|
6
|
+
|
|
7
|
+
import type { TreeOptionData, TreeKeysType } from '../common/common';
|
|
8
|
+
|
|
9
|
+
export interface TdTreeSelectProps<DataOption extends TreeOptionData = TreeOptionData> {
|
|
10
|
+
/**
|
|
11
|
+
* 自定义选中值,优先级高于 `value`
|
|
12
|
+
*/
|
|
13
|
+
customValue?: TreeSelectValue;
|
|
14
|
+
/**
|
|
15
|
+
* 高度,默认单位为 px
|
|
16
|
+
* @default 336
|
|
17
|
+
*/
|
|
18
|
+
height?: string | number;
|
|
19
|
+
/**
|
|
20
|
+
* 用来定义 `value / label / disabled / children` 在 `options` 数据中对应的字段别名,示例:`{ value: 'key', label: 'name', children: 'list' }`
|
|
21
|
+
*/
|
|
22
|
+
keys?: TreeKeysType;
|
|
23
|
+
/**
|
|
24
|
+
* 是否允许多选
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
multiple?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 选项
|
|
30
|
+
* @default []
|
|
31
|
+
*/
|
|
32
|
+
options?: Array<DataOption>;
|
|
33
|
+
/**
|
|
34
|
+
* 选中值
|
|
35
|
+
*/
|
|
36
|
+
value?: TreeSelectValue;
|
|
37
|
+
/**
|
|
38
|
+
* 选中值,非受控属性
|
|
39
|
+
*/
|
|
40
|
+
defaultValue?: TreeSelectValue;
|
|
41
|
+
/**
|
|
42
|
+
* 点击任何节点均会触发;level 代表当前点击的层级,0 代表最左侧,依次递进
|
|
43
|
+
*/
|
|
44
|
+
onChange?: (context: { value: TreeSelectValue; level: TreeLevel }) => void;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type TreeSelectValue = string | number | Array<TreeSelectValue>;
|
|
48
|
+
|
|
49
|
+
export type TreeLevel = 0 | 1 | 2;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdActionSheetProps } from '../action-sheet/type';
|
|
3
|
+
|
|
4
|
+
export type ActionSheetProps = ExtractNonOnProps<TdActionSheetProps>;
|
|
5
|
+
export type ActionSheetEmits = TransformEventHandlers<TdActionSheetProps, true>;
|
|
6
|
+
declare const ActionSheetComponent: import('vue').DefineComponent<ActionSheetProps, {}, {}, {}, {}, {}, {}, ActionSheetEmits, any>;
|
|
7
|
+
export default ActionSheetComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdAvatarGroupProps } from '../avatar-group/type';
|
|
3
|
+
|
|
4
|
+
export type AvatarGroupProps = ExtractNonOnProps<TdAvatarGroupProps>;
|
|
5
|
+
export type AvatarGroupEmits = TransformEventHandlers<TdAvatarGroupProps, true>;
|
|
6
|
+
declare const AvatarGroupComponent: import('vue').DefineComponent<AvatarGroupProps, {}, {}, {}, {}, {}, {}, AvatarGroupEmits, any>;
|
|
7
|
+
export default AvatarGroupComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdAvatarProps } from '../avatar/type';
|
|
3
|
+
|
|
4
|
+
export type AvatarProps = ExtractNonOnProps<TdAvatarProps>;
|
|
5
|
+
export type AvatarEmits = TransformEventHandlers<TdAvatarProps, true>;
|
|
6
|
+
declare const AvatarComponent: import('vue').DefineComponent<AvatarProps, {}, {}, {}, {}, {}, {}, AvatarEmits, any>;
|
|
7
|
+
export default AvatarComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdBackTopProps } from '../back-top/type';
|
|
3
|
+
|
|
4
|
+
export type BackTopProps = ExtractNonOnProps<TdBackTopProps>;
|
|
5
|
+
export type BackTopEmits = TransformEventHandlers<TdBackTopProps, true>;
|
|
6
|
+
declare const BackTopComponent: import('vue').DefineComponent<BackTopProps, {}, {}, {}, {}, {}, {}, BackTopEmits, any>;
|
|
7
|
+
export default BackTopComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdBadgeProps } from '../badge/type';
|
|
3
|
+
|
|
4
|
+
export type BadgeProps = ExtractNonOnProps<TdBadgeProps>;
|
|
5
|
+
export type BadgeEmits = TransformEventHandlers<TdBadgeProps, true>;
|
|
6
|
+
declare const BadgeComponent: import('vue').DefineComponent<BadgeProps, {}, {}, {}, {}, {}, {}, BadgeEmits, any>;
|
|
7
|
+
export default BadgeComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdButtonProps } from '../button/type';
|
|
3
|
+
|
|
4
|
+
export type ButtonProps = ExtractNonOnProps<TdButtonProps>;
|
|
5
|
+
export type ButtonEmits = TransformEventHandlers<TdButtonProps, true>;
|
|
6
|
+
declare const ButtonComponent: import('vue').DefineComponent<ButtonProps, {}, {}, {}, {}, {}, {}, ButtonEmits, any>;
|
|
7
|
+
export default ButtonComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdCalendarProps } from '../calendar/type';
|
|
3
|
+
|
|
4
|
+
export type CalendarProps = ExtractNonOnProps<TdCalendarProps>;
|
|
5
|
+
export type CalendarEmits = TransformEventHandlers<TdCalendarProps, true>;
|
|
6
|
+
declare const CalendarComponent: import('vue').DefineComponent<CalendarProps, {}, {}, {}, {}, {}, {}, CalendarEmits, any>;
|
|
7
|
+
export default CalendarComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdCascaderProps } from '../cascader/type';
|
|
3
|
+
|
|
4
|
+
export type CascaderProps = ExtractNonOnProps<TdCascaderProps>;
|
|
5
|
+
export type CascaderEmits = TransformEventHandlers<TdCascaderProps, true>;
|
|
6
|
+
declare const CascaderComponent: import('vue').DefineComponent<CascaderProps, {}, {}, {}, {}, {}, {}, CascaderEmits, any>;
|
|
7
|
+
export default CascaderComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdCellGroupProps } from '../cell-group/type';
|
|
3
|
+
|
|
4
|
+
export type CellGroupProps = ExtractNonOnProps<TdCellGroupProps>;
|
|
5
|
+
export type CellGroupEmits = TransformEventHandlers<TdCellGroupProps, true>;
|
|
6
|
+
declare const CellGroupComponent: import('vue').DefineComponent<CellGroupProps, {}, {}, {}, {}, {}, {}, CellGroupEmits, any>;
|
|
7
|
+
export default CellGroupComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdCellProps } from '../cell/type';
|
|
3
|
+
|
|
4
|
+
export type CellProps = ExtractNonOnProps<TdCellProps>;
|
|
5
|
+
export type CellEmits = TransformEventHandlers<TdCellProps, true>;
|
|
6
|
+
declare const CellComponent: import('vue').DefineComponent<CellProps, {}, {}, {}, {}, {}, {}, CellEmits, any>;
|
|
7
|
+
export default CellComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdCheckTagProps } from '../check-tag/type';
|
|
3
|
+
|
|
4
|
+
export type CheckTagProps = ExtractNonOnProps<TdCheckTagProps>;
|
|
5
|
+
export type CheckTagEmits = TransformEventHandlers<TdCheckTagProps, true>;
|
|
6
|
+
declare const CheckTagComponent: import('vue').DefineComponent<CheckTagProps, {}, {}, {}, {}, {}, {}, CheckTagEmits, any>;
|
|
7
|
+
export default CheckTagComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdCheckboxGroupProps } from '../checkbox-group/type';
|
|
3
|
+
|
|
4
|
+
export type CheckboxGroupProps = ExtractNonOnProps<TdCheckboxGroupProps>;
|
|
5
|
+
export type CheckboxGroupEmits = TransformEventHandlers<TdCheckboxGroupProps, true>;
|
|
6
|
+
declare const CheckboxGroupComponent: import('vue').DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, {}, {}, CheckboxGroupEmits, any>;
|
|
7
|
+
export default CheckboxGroupComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdCheckboxProps } from '../checkbox/type';
|
|
3
|
+
|
|
4
|
+
export type CheckboxProps = ExtractNonOnProps<TdCheckboxProps>;
|
|
5
|
+
export type CheckboxEmits = TransformEventHandlers<TdCheckboxProps, true>;
|
|
6
|
+
declare const CheckboxComponent: import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, {}, {}, CheckboxEmits, any>;
|
|
7
|
+
export default CheckboxComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdColProps } from '../col/type';
|
|
3
|
+
|
|
4
|
+
export type ColProps = ExtractNonOnProps<TdColProps>;
|
|
5
|
+
export type ColEmits = TransformEventHandlers<TdColProps, true>;
|
|
6
|
+
declare const ColComponent: import('vue').DefineComponent<ColProps, {}, {}, {}, {}, {}, {}, ColEmits, any>;
|
|
7
|
+
export default ColComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdCollapsePanelProps } from '../collapse-panel/type';
|
|
3
|
+
|
|
4
|
+
export type CollapsePanelProps = ExtractNonOnProps<TdCollapsePanelProps>;
|
|
5
|
+
export type CollapsePanelEmits = TransformEventHandlers<TdCollapsePanelProps, true>;
|
|
6
|
+
declare const CollapsePanelComponent: import('vue').DefineComponent<CollapsePanelProps, {}, {}, {}, {}, {}, {}, CollapsePanelEmits, any>;
|
|
7
|
+
export default CollapsePanelComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdCollapseProps } from '../collapse/type';
|
|
3
|
+
|
|
4
|
+
export type CollapseProps = ExtractNonOnProps<TdCollapseProps>;
|
|
5
|
+
export type CollapseEmits = TransformEventHandlers<TdCollapseProps, true>;
|
|
6
|
+
declare const CollapseComponent: import('vue').DefineComponent<CollapseProps, {}, {}, {}, {}, {}, {}, CollapseEmits, any>;
|
|
7
|
+
export default CollapseComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdColorPickerProps } from '../color-picker/type';
|
|
3
|
+
|
|
4
|
+
export type ColorPickerProps = ExtractNonOnProps<TdColorPickerProps>;
|
|
5
|
+
export type ColorPickerEmits = TransformEventHandlers<TdColorPickerProps, true>;
|
|
6
|
+
declare const ColorPickerComponent: import('vue').DefineComponent<ColorPickerProps, {}, {}, {}, {}, {}, {}, ColorPickerEmits, any>;
|
|
7
|
+
export default ColorPickerComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdCountDownProps } from '../count-down/type';
|
|
3
|
+
|
|
4
|
+
export type CountDownProps = ExtractNonOnProps<TdCountDownProps>;
|
|
5
|
+
export type CountDownEmits = TransformEventHandlers<TdCountDownProps, true>;
|
|
6
|
+
declare const CountDownComponent: import('vue').DefineComponent<CountDownProps, {}, {}, {}, {}, {}, {}, CountDownEmits, any>;
|
|
7
|
+
export default CountDownComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdDateTimePickerProps } from '../date-time-picker/type';
|
|
3
|
+
|
|
4
|
+
export type DateTimePickerProps = ExtractNonOnProps<TdDateTimePickerProps>;
|
|
5
|
+
export type DateTimePickerEmits = TransformEventHandlers<TdDateTimePickerProps, true>;
|
|
6
|
+
declare const DateTimePickerComponent: import('vue').DefineComponent<DateTimePickerProps, {}, {}, {}, {}, {}, {}, DateTimePickerEmits, any>;
|
|
7
|
+
export default DateTimePickerComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdDialogProps } from '../dialog/type';
|
|
3
|
+
|
|
4
|
+
export type DialogProps = ExtractNonOnProps<TdDialogProps>;
|
|
5
|
+
export type DialogEmits = TransformEventHandlers<TdDialogProps, true>;
|
|
6
|
+
declare const DialogComponent: import('vue').DefineComponent<DialogProps, {}, {}, {}, {}, {}, {}, DialogEmits, any>;
|
|
7
|
+
export default DialogComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdDividerProps } from '../divider/type';
|
|
3
|
+
|
|
4
|
+
export type DividerProps = ExtractNonOnProps<TdDividerProps>;
|
|
5
|
+
export type DividerEmits = TransformEventHandlers<TdDividerProps, true>;
|
|
6
|
+
declare const DividerComponent: import('vue').DefineComponent<DividerProps, {}, {}, {}, {}, {}, {}, DividerEmits, any>;
|
|
7
|
+
export default DividerComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdDrawerProps } from '../drawer/type';
|
|
3
|
+
|
|
4
|
+
export type DrawerProps = ExtractNonOnProps<TdDrawerProps>;
|
|
5
|
+
export type DrawerEmits = TransformEventHandlers<TdDrawerProps, true>;
|
|
6
|
+
declare const DrawerComponent: import('vue').DefineComponent<DrawerProps, {}, {}, {}, {}, {}, {}, DrawerEmits, any>;
|
|
7
|
+
export default DrawerComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdDropdownItemProps } from '../dropdown-item/type';
|
|
3
|
+
|
|
4
|
+
export type DropdownItemProps = ExtractNonOnProps<TdDropdownItemProps>;
|
|
5
|
+
export type DropdownItemEmits = TransformEventHandlers<TdDropdownItemProps, true>;
|
|
6
|
+
declare const DropdownItemComponent: import('vue').DefineComponent<DropdownItemProps, {}, {}, {}, {}, {}, {}, DropdownItemEmits, any>;
|
|
7
|
+
export default DropdownItemComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdDropdownMenuProps } from '../dropdown-menu/type';
|
|
3
|
+
|
|
4
|
+
export type DropdownMenuProps = ExtractNonOnProps<TdDropdownMenuProps>;
|
|
5
|
+
export type DropdownMenuEmits = TransformEventHandlers<TdDropdownMenuProps, true>;
|
|
6
|
+
declare const DropdownMenuComponent: import('vue').DefineComponent<DropdownMenuProps, {}, {}, {}, {}, {}, {}, DropdownMenuEmits, any>;
|
|
7
|
+
export default DropdownMenuComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdEmptyProps } from '../empty/type';
|
|
3
|
+
|
|
4
|
+
export type EmptyProps = ExtractNonOnProps<TdEmptyProps>;
|
|
5
|
+
export type EmptyEmits = TransformEventHandlers<TdEmptyProps, true>;
|
|
6
|
+
declare const EmptyComponent: import('vue').DefineComponent<EmptyProps, {}, {}, {}, {}, {}, {}, EmptyEmits, any>;
|
|
7
|
+
export default EmptyComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdFabProps } from '../fab/type';
|
|
3
|
+
|
|
4
|
+
export type FabProps = ExtractNonOnProps<TdFabProps>;
|
|
5
|
+
export type FabEmits = TransformEventHandlers<TdFabProps, true>;
|
|
6
|
+
declare const FabComponent: import('vue').DefineComponent<FabProps, {}, {}, {}, {}, {}, {}, FabEmits, any>;
|
|
7
|
+
export default FabComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdFooterProps } from '../footer/type';
|
|
3
|
+
|
|
4
|
+
export type FooterProps = ExtractNonOnProps<TdFooterProps>;
|
|
5
|
+
export type FooterEmits = TransformEventHandlers<TdFooterProps, true>;
|
|
6
|
+
declare const FooterComponent: import('vue').DefineComponent<FooterProps, {}, {}, {}, {}, {}, {}, FooterEmits, any>;
|
|
7
|
+
export default FooterComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdFormItemProps } from '../form-item/type';
|
|
3
|
+
|
|
4
|
+
export type FormItemProps = ExtractNonOnProps<TdFormItemProps>;
|
|
5
|
+
export type FormItemEmits = TransformEventHandlers<TdFormItemProps, true>;
|
|
6
|
+
declare const FormItemComponent: import('vue').DefineComponent<FormItemProps, {}, {}, {}, {}, {}, {}, FormItemEmits, any>;
|
|
7
|
+
export default FormItemComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdFormProps } from '../form/type';
|
|
3
|
+
|
|
4
|
+
export type FormProps = ExtractNonOnProps<TdFormProps>;
|
|
5
|
+
export type FormEmits = TransformEventHandlers<TdFormProps, true>;
|
|
6
|
+
declare const FormComponent: import('vue').DefineComponent<FormProps, {}, {}, {}, {}, {}, {}, FormEmits, any>;
|
|
7
|
+
export default FormComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdGridItemProps } from '../grid-item/type';
|
|
3
|
+
|
|
4
|
+
export type GridItemProps = ExtractNonOnProps<TdGridItemProps>;
|
|
5
|
+
export type GridItemEmits = TransformEventHandlers<TdGridItemProps, true>;
|
|
6
|
+
declare const GridItemComponent: import('vue').DefineComponent<GridItemProps, {}, {}, {}, {}, {}, {}, GridItemEmits, any>;
|
|
7
|
+
export default GridItemComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdGridProps } from '../grid/type';
|
|
3
|
+
|
|
4
|
+
export type GridProps = ExtractNonOnProps<TdGridProps>;
|
|
5
|
+
export type GridEmits = TransformEventHandlers<TdGridProps, true>;
|
|
6
|
+
declare const GridComponent: import('vue').DefineComponent<GridProps, {}, {}, {}, {}, {}, {}, GridEmits, any>;
|
|
7
|
+
export default GridComponent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TransformEventHandlers, ExtractNonOnProps } from '../common/common';
|
|
2
|
+
import type { TdGuideProps } from '../guide/type';
|
|
3
|
+
|
|
4
|
+
export type GuideProps = ExtractNonOnProps<TdGuideProps>;
|
|
5
|
+
export type GuideEmits = TransformEventHandlers<TdGuideProps, true>;
|
|
6
|
+
declare const GuideComponent: import('vue').DefineComponent<GuideProps, {}, {}, {}, {}, {}, {}, GuideEmits, any>;
|
|
7
|
+
export default GuideComponent;
|