@tdesign/uniapp 0.0.1-alpha.1 → 0.7.0
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 +204 -0
- package/LICENSE +9 -0
- package/README.md +144 -0
- package/dist/.eslintrc.js +30 -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 +350 -0
- package/dist/action-sheet/computed.js +15 -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 +238 -0
- package/dist/button/README.md +229 -0
- package/dist/button/button.css +514 -0
- package/dist/button/button.vue +244 -0
- package/dist/button/props.ts +207 -0
- package/dist/button/type.ts +192 -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 +519 -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 +251 -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 +519 -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 +544 -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 +285 -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/tsconfig.eslint.json +13 -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 +504 -8
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
|
|
5
|
+
* */
|
|
6
|
+
|
|
7
|
+
import type { TdBadgeProps } from './type';
|
|
8
|
+
export default {
|
|
9
|
+
/** 颜色 */
|
|
10
|
+
color: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: '',
|
|
13
|
+
},
|
|
14
|
+
/** 徽标内容,示例:`content='自定义内容'`。也可以使用默认插槽定义 */
|
|
15
|
+
content: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: '',
|
|
18
|
+
},
|
|
19
|
+
/** 徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+。特殊:值为空表示使用插槽渲染 */
|
|
20
|
+
count: {
|
|
21
|
+
type: [String, Number],
|
|
22
|
+
default: 0 as TdBadgeProps['count'],
|
|
23
|
+
},
|
|
24
|
+
/** 是否为红点 */
|
|
25
|
+
dot: Boolean,
|
|
26
|
+
/** 封顶的数字值 */
|
|
27
|
+
maxCount: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 99,
|
|
30
|
+
},
|
|
31
|
+
/** 设置状态点的位置偏移,示例:[-10, 20] 或 ['10em', '8rem'] */
|
|
32
|
+
offset: {
|
|
33
|
+
type: Array,
|
|
34
|
+
},
|
|
35
|
+
/** 徽标形状,其中 ribbon 和 ribbon-right 等效 */
|
|
36
|
+
shape: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: 'circle' as TdBadgeProps['shape'],
|
|
39
|
+
validator(val: TdBadgeProps['shape']): boolean {
|
|
40
|
+
if (!val) return true;
|
|
41
|
+
return ['circle', 'square', 'bubble', 'ribbon', 'ribbon-right', 'ribbon-left', 'triangle-right', 'triangle-left'].includes(val);
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
/** 当数值为 0 时,是否展示徽标 */
|
|
45
|
+
showZero: Boolean,
|
|
46
|
+
/** 尺寸 */
|
|
47
|
+
size: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: 'medium' as TdBadgeProps['size'],
|
|
50
|
+
validator(val: TdBadgeProps['size']): boolean {
|
|
51
|
+
if (!val) return true;
|
|
52
|
+
return ['medium', 'large'].includes(val);
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
|
|
5
|
+
* */
|
|
6
|
+
|
|
7
|
+
export interface TdBadgeProps {
|
|
8
|
+
/**
|
|
9
|
+
* 颜色
|
|
10
|
+
* @default ''
|
|
11
|
+
*/
|
|
12
|
+
color?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 徽标内容,示例:`content='自定义内容'`。也可以使用默认插槽定义
|
|
15
|
+
* @default ''
|
|
16
|
+
*/
|
|
17
|
+
content?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+。特殊:值为空表示使用插槽渲染
|
|
20
|
+
* @default 0
|
|
21
|
+
*/
|
|
22
|
+
count?: string | number;
|
|
23
|
+
/**
|
|
24
|
+
* 是否为红点
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
dot?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 封顶的数字值
|
|
30
|
+
* @default 99
|
|
31
|
+
*/
|
|
32
|
+
maxCount?: number;
|
|
33
|
+
/**
|
|
34
|
+
* 设置状态点的位置偏移,示例:[-10, 20] 或 ['10em', '8rem']
|
|
35
|
+
*/
|
|
36
|
+
offset?: Array<string | number>;
|
|
37
|
+
/**
|
|
38
|
+
* 徽标形状,其中 ribbon 和 ribbon-right 等效
|
|
39
|
+
* @default circle
|
|
40
|
+
*/
|
|
41
|
+
shape?:
|
|
42
|
+
| 'circle'
|
|
43
|
+
| 'square'
|
|
44
|
+
| 'bubble'
|
|
45
|
+
| 'ribbon'
|
|
46
|
+
| 'ribbon-right'
|
|
47
|
+
| 'ribbon-left'
|
|
48
|
+
| 'triangle-right'
|
|
49
|
+
| 'triangle-left';
|
|
50
|
+
/**
|
|
51
|
+
* 当数值为 0 时,是否展示徽标
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
showZero?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* 尺寸
|
|
57
|
+
* @default medium
|
|
58
|
+
*/
|
|
59
|
+
size?: 'medium' | 'large';
|
|
60
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Button
|
|
3
|
+
description: Buttons are used to open a closed-loop task, such as "delete" an object, "buy" an item, etc.
|
|
4
|
+
spline: base
|
|
5
|
+
isComponent: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
For global import, configure it in `app.json` in the root directory of the miniprogram. For local import, configure it in `index.json` of the page or component that needs to be imported.
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
"usingComponents": {
|
|
17
|
+
"t-button": "tdesign-miniprogram/button/button"
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Code Demo
|
|
23
|
+
|
|
24
|
+
### 01 Component Type
|
|
25
|
+
|
|
26
|
+
#### Basic Buttons
|
|
27
|
+
|
|
28
|
+
{{ base }}
|
|
29
|
+
|
|
30
|
+
#### Icon Button
|
|
31
|
+
|
|
32
|
+
{{ icon-btn }}
|
|
33
|
+
|
|
34
|
+
#### Ghost Button
|
|
35
|
+
|
|
36
|
+
{{ ghost-btn }}
|
|
37
|
+
|
|
38
|
+
#### Combination Button
|
|
39
|
+
|
|
40
|
+
{{ group-btn }}
|
|
41
|
+
|
|
42
|
+
#### Banner Button
|
|
43
|
+
|
|
44
|
+
{{ block-btn }}
|
|
45
|
+
|
|
46
|
+
### 02 Component State
|
|
47
|
+
|
|
48
|
+
#### Buttons for different states
|
|
49
|
+
|
|
50
|
+
{{ disabled }}
|
|
51
|
+
|
|
52
|
+
### 03 Component Style
|
|
53
|
+
|
|
54
|
+
#### Different sizes of buttons
|
|
55
|
+
|
|
56
|
+
{{ size }}
|
|
57
|
+
|
|
58
|
+
#### Different shaped buttons
|
|
59
|
+
|
|
60
|
+
{{ shape }}
|
|
61
|
+
|
|
62
|
+
#### Different color theme buttons
|
|
63
|
+
|
|
64
|
+
{{ theme }}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## API
|
|
69
|
+
|
|
70
|
+
### Button Props
|
|
71
|
+
|
|
72
|
+
name | type | default | description | required
|
|
73
|
+
-- | -- | -- | -- | --
|
|
74
|
+
custom-style | Object | - | CSS(Cascading Style Sheets) | N
|
|
75
|
+
app-parameter | String | - | \- | N
|
|
76
|
+
block | Boolean | false | make button to be a block-level element | N
|
|
77
|
+
content | String | - | button's children elements | N
|
|
78
|
+
custom-dataset | String / Number / Boolean / Object / Array | {} | Typescript:`string \| number \| boolean \| object \| Array<string \| number \| boolean \| object>` | N
|
|
79
|
+
disabled | Boolean | undefined | disable the button, make it can not be clicked | N
|
|
80
|
+
ghost | Boolean | false | make background-color to be transparent | N
|
|
81
|
+
hover-class | String | - | \- | N
|
|
82
|
+
hover-start-time | Number | 20 | \- | N
|
|
83
|
+
hover-stay-time | Number | 70 | \- | N
|
|
84
|
+
hover-stop-propagation | Boolean | false | \- | N
|
|
85
|
+
icon | String / Object | - | icon name | N
|
|
86
|
+
lang | String | - | message language。options: en/zh_CN/zh_TW | N
|
|
87
|
+
loading | Boolean | false | set button to be loading state | N
|
|
88
|
+
loading-props | Object | {} | Typescript:`LoadingProps`,[Loading API Documents](./loading?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/packages/uniapp-components/button/type.ts) | N
|
|
89
|
+
open-type | String | - | open type of button, [Miniprogram Button](https://developers.weixin.qq.com/miniprogram/dev/component/button.html)。options: contact/share/getPhoneNumber/getUserInfo/launchApp/openSetting/feedback/chooseAvatar/agreePrivacyAuthorization | N
|
|
90
|
+
phone-number-no-quota-toast | Boolean | true | \- | N
|
|
91
|
+
send-message-img | String | 截图 | \- | N
|
|
92
|
+
send-message-path | String | 当前分享路径 | \- | N
|
|
93
|
+
send-message-title | String | 当前标题 | \- | N
|
|
94
|
+
session-from | String | - | \- | N
|
|
95
|
+
shape | String | rectangle | button shape。options: rectangle/square/round/circle | N
|
|
96
|
+
show-message-card | Boolean | false | \- | N
|
|
97
|
+
size | String | medium | a button has four size。options: extra-small/small/medium/large | N
|
|
98
|
+
t-id | String | - | id | N
|
|
99
|
+
theme | String | default | button theme。options: default/primary/danger/light | N
|
|
100
|
+
type | String | - | type of button element, same as formType of Miniprogram。options: submit/reset | N
|
|
101
|
+
variant | String | base | variant of button。options: base/outline/dashed/text | N
|
|
102
|
+
|
|
103
|
+
### Button Events
|
|
104
|
+
|
|
105
|
+
name | params | description
|
|
106
|
+
-- | -- | --
|
|
107
|
+
agreeprivacyauthorization | \- | \-
|
|
108
|
+
chooseavatar | \- | \-
|
|
109
|
+
click | `(e: MouseEvent)` | trigger on click
|
|
110
|
+
contact | \- | \-
|
|
111
|
+
createliveactivity | \- | \-
|
|
112
|
+
error | \- | \-
|
|
113
|
+
getphonenumber | \- | \-
|
|
114
|
+
getrealtimephonenumber | \- | \-
|
|
115
|
+
getuserinfo | \- | \-
|
|
116
|
+
launchapp | \- | \-
|
|
117
|
+
opensetting | \- | \-
|
|
118
|
+
|
|
119
|
+
### Button Slots
|
|
120
|
+
|
|
121
|
+
name | Description
|
|
122
|
+
-- | --
|
|
123
|
+
\- | \-
|
|
124
|
+
content | button's children elements
|
|
125
|
+
suffix | \-
|
|
126
|
+
|
|
127
|
+
### Button External Classes
|
|
128
|
+
|
|
129
|
+
className | Description
|
|
130
|
+
-- | --
|
|
131
|
+
t-class | \-
|
|
132
|
+
t-class-icon | class name of icon
|
|
133
|
+
t-class-loading | class name of loading
|
|
134
|
+
|
|
135
|
+
### CSS Variables
|
|
136
|
+
|
|
137
|
+
The component provides the following CSS variables, which can be used to customize styles.
|
|
138
|
+
Name | Default Value | Description
|
|
139
|
+
-- | -- | --
|
|
140
|
+
--td-button-border-radius | @radius-default | -
|
|
141
|
+
--td-button-border-width | 4rpx | -
|
|
142
|
+
--td-button-danger-active-bg-color | @error-color-active | -
|
|
143
|
+
--td-button-danger-active-border-color | @error-color-active | -
|
|
144
|
+
--td-button-danger-bg-color | @error-color | -
|
|
145
|
+
--td-button-danger-border-color | @error-color | -
|
|
146
|
+
--td-button-danger-color | @text-color-anti | -
|
|
147
|
+
--td-button-danger-dashed-border-color | @button-danger-dashed-color | -
|
|
148
|
+
--td-button-danger-dashed-color | @error-color | -
|
|
149
|
+
--td-button-danger-dashed-disabled-color | @button-danger-disabled-color | -
|
|
150
|
+
--td-button-danger-disabled-bg | @error-color-3 | -
|
|
151
|
+
--td-button-danger-disabled-border-color | @error-color-3 | -
|
|
152
|
+
--td-button-danger-disabled-color | @font-white-1 | -
|
|
153
|
+
--td-button-danger-outline-active-bg-color | @bg-color-container-active | -
|
|
154
|
+
--td-button-danger-outline-active-border-color | @error-color-active | -
|
|
155
|
+
--td-button-danger-outline-border-color | @button-danger-outline-color | -
|
|
156
|
+
--td-button-danger-outline-color | @error-color | -
|
|
157
|
+
--td-button-danger-outline-disabled-color | @error-color-3 | -
|
|
158
|
+
--td-button-danger-text-active-bg-color | @bg-color-container-active | -
|
|
159
|
+
--td-button-danger-text-color | @error-color | -
|
|
160
|
+
--td-button-danger-text-disabled-color | @button-danger-disabled-color | -
|
|
161
|
+
--td-button-default-active-bg-color | @bg-color-component-active | -
|
|
162
|
+
--td-button-default-active-border-color | @bg-color-component-active | -
|
|
163
|
+
--td-button-default-bg-color | @bg-color-component | -
|
|
164
|
+
--td-button-default-border-color | @bg-color-component | -
|
|
165
|
+
--td-button-default-color | @text-color-primary | -
|
|
166
|
+
--td-button-default-disabled-bg | @bg-color-component-disabled | -
|
|
167
|
+
--td-button-default-disabled-border-color | @bg-color-component-disabled | -
|
|
168
|
+
--td-button-default-disabled-color | @text-color-disabled | -
|
|
169
|
+
--td-button-default-outline-active-bg-color | @bg-color-container-active | -
|
|
170
|
+
--td-button-default-outline-active-border-color | @component-border | -
|
|
171
|
+
--td-button-default-outline-border-color | @component-border | -
|
|
172
|
+
--td-button-default-outline-color | @text-color-primary | -
|
|
173
|
+
--td-button-default-outline-disabled-color | @component-border | -
|
|
174
|
+
--td-button-default-text-active-bg-color | @bg-color-container-active | -
|
|
175
|
+
--td-button-extra-small-font-size | @font-size-base | -
|
|
176
|
+
--td-button-extra-small-height | 56rpx | -
|
|
177
|
+
--td-button-extra-small-icon-size | 36rpx | -
|
|
178
|
+
--td-button-extra-small-padding-horizontal | 16rpx | -
|
|
179
|
+
--td-button-font-weight | 600 | -
|
|
180
|
+
--td-button-ghost-border-color | @button-ghost-color | -
|
|
181
|
+
--td-button-ghost-color | @text-color-anti | -
|
|
182
|
+
--td-button-ghost-danger-border-color | @error-color | -
|
|
183
|
+
--td-button-ghost-danger-color | @error-color | -
|
|
184
|
+
--td-button-ghost-danger-hover-color | @error-color-active | -
|
|
185
|
+
--td-button-ghost-disabled-color | @font-white-4 | -
|
|
186
|
+
--td-button-ghost-hover-color | @font-white-2 | -
|
|
187
|
+
--td-button-ghost-primary-border-color | @brand-color | -
|
|
188
|
+
--td-button-ghost-primary-color | @brand-color | -
|
|
189
|
+
--td-button-ghost-primary-hover-color | @brand-color-active | -
|
|
190
|
+
--td-button-icon-border-radius | 8rpx | -
|
|
191
|
+
--td-button-icon-spacer | @spacer | -
|
|
192
|
+
--td-button-large-font-size | @font-size-m | -
|
|
193
|
+
--td-button-large-height | 96rpx | -
|
|
194
|
+
--td-button-large-icon-size | 48rpx | -
|
|
195
|
+
--td-button-large-padding-horizontal | 40rpx | -
|
|
196
|
+
--td-button-light-active-bg-color | @brand-color-light-active | -
|
|
197
|
+
--td-button-light-active-border-color | @brand-color-light-active | -
|
|
198
|
+
--td-button-light-bg-color | @brand-color-light | -
|
|
199
|
+
--td-button-light-border-color | @brand-color-light | -
|
|
200
|
+
--td-button-light-color | @brand-color | -
|
|
201
|
+
--td-button-light-disabled-bg | @brand-color-light | -
|
|
202
|
+
--td-button-light-disabled-border-color | @brand-color-light | -
|
|
203
|
+
--td-button-light-disabled-color | @brand-color-disabled | -
|
|
204
|
+
--td-button-light-outline-active-bg-color | @brand-color-light-active | -
|
|
205
|
+
--td-button-light-outline-active-border-color | @brand-color-active | -
|
|
206
|
+
--td-button-light-outline-bg-color | @brand-color-light | -
|
|
207
|
+
--td-button-light-outline-border-color | @button-light-outline-color | -
|
|
208
|
+
--td-button-light-outline-color | @brand-color | -
|
|
209
|
+
--td-button-light-outline-disabled-color | @brand-color-disabled | -
|
|
210
|
+
--td-button-light-text-active-bg-color | @bg-color-container-active | -
|
|
211
|
+
--td-button-light-text-color | @brand-color | -
|
|
212
|
+
--td-button-medium-font-size | @font-size-m | -
|
|
213
|
+
--td-button-medium-height | 80rpx | -
|
|
214
|
+
--td-button-medium-icon-size | 40rpx | -
|
|
215
|
+
--td-button-medium-padding-horizontal | 32rpx | -
|
|
216
|
+
--td-button-primary-active-bg-color | @brand-color-active | -
|
|
217
|
+
--td-button-primary-active-border-color | @brand-color-active | -
|
|
218
|
+
--td-button-primary-bg-color | @brand-color | -
|
|
219
|
+
--td-button-primary-border-color | @brand-color | -
|
|
220
|
+
--td-button-primary-color | @text-color-anti | -
|
|
221
|
+
--td-button-primary-dashed-border-color | @button-primary-dashed-color | -
|
|
222
|
+
--td-button-primary-dashed-color | @brand-color | -
|
|
223
|
+
--td-button-primary-dashed-disabled-color | @brand-color-disabled | -
|
|
224
|
+
--td-button-primary-disabled-bg | @brand-color-disabled | -
|
|
225
|
+
--td-button-primary-disabled-border-color | @brand-color-disabled | -
|
|
226
|
+
--td-button-primary-disabled-color | @text-color-anti | -
|
|
227
|
+
--td-button-primary-outline-active-bg-color | @bg-color-container-active | -
|
|
228
|
+
--td-button-primary-outline-active-border-color | @brand-color-active | -
|
|
229
|
+
--td-button-primary-outline-border-color | @button-primary-outline-color | -
|
|
230
|
+
--td-button-primary-outline-color | @brand-color | -
|
|
231
|
+
--td-button-primary-outline-disabled-color | @brand-color-disabled | -
|
|
232
|
+
--td-button-primary-text-active-bg-color | @bg-color-container-active | -
|
|
233
|
+
--td-button-primary-text-color | @brand-color | -
|
|
234
|
+
--td-button-primary-text-disabled-color | @brand-color-disabled | -
|
|
235
|
+
--td-button-small-font-size | @font-size-base | -
|
|
236
|
+
--td-button-small-height | 64rpx | -
|
|
237
|
+
--td-button-small-icon-size | 36rpx | -
|
|
238
|
+
--td-button-small-padding-horizontal | 24rpx | -
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Button 按钮
|
|
3
|
+
description: 用于开启一个闭环的操作任务,如“删除”对象、“购买”商品等。
|
|
4
|
+
spline: base
|
|
5
|
+
isComponent: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## 引入
|
|
10
|
+
|
|
11
|
+
可在 `main.ts` 或在需要使用的页面或组件中引入。
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import TButton from '@tdesign/uniapp/button/button.vue';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### 01 组件类型
|
|
18
|
+
|
|
19
|
+
#### 基础按钮
|
|
20
|
+
|
|
21
|
+
{{ base }}
|
|
22
|
+
|
|
23
|
+
#### 图标按钮
|
|
24
|
+
|
|
25
|
+
{{ icon-btn }}
|
|
26
|
+
|
|
27
|
+
#### 幽灵按钮
|
|
28
|
+
|
|
29
|
+
{{ ghost-btn }}
|
|
30
|
+
|
|
31
|
+
#### 组合按钮
|
|
32
|
+
|
|
33
|
+
{{ group-btn }}
|
|
34
|
+
|
|
35
|
+
#### 通栏按钮
|
|
36
|
+
|
|
37
|
+
{{ block-btn }}
|
|
38
|
+
|
|
39
|
+
### 02 组件状态
|
|
40
|
+
|
|
41
|
+
#### 按钮禁用态
|
|
42
|
+
|
|
43
|
+
{{ disabled }}
|
|
44
|
+
|
|
45
|
+
### 03 组件样式
|
|
46
|
+
|
|
47
|
+
#### 按钮尺寸
|
|
48
|
+
|
|
49
|
+
{{ size }}
|
|
50
|
+
|
|
51
|
+
#### 按钮形状
|
|
52
|
+
|
|
53
|
+
{{ shape }}
|
|
54
|
+
|
|
55
|
+
#### 按钮主题
|
|
56
|
+
|
|
57
|
+
{{ theme }}
|
|
58
|
+
|
|
59
|
+
## API
|
|
60
|
+
|
|
61
|
+
### Button Props
|
|
62
|
+
|
|
63
|
+
名称 | 类型 | 默认值 | 描述 | 必传
|
|
64
|
+
-- | -- | -- | -- | --
|
|
65
|
+
custom-style | Object | - | 自定义样式 | N
|
|
66
|
+
app-parameter | String | - | 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 | N
|
|
67
|
+
block | Boolean | false | 是否为块级元素 | N
|
|
68
|
+
content | String | - | 按钮内容 | N
|
|
69
|
+
custom-dataset | String / Number / Boolean / Object / Array | {} | 自定义 dataset,可通过 event.currentTarget.dataset.custom 获取。TS 类型:`string \| number \| boolean \| object \| Array<string \| number \| boolean \| object>` | N
|
|
70
|
+
disabled | Boolean | undefined | 禁用状态。优先级:Button.disabled > Form.disabled | N
|
|
71
|
+
ghost | Boolean | false | 是否为幽灵按钮(镂空按钮) | N
|
|
72
|
+
hover-class | String | - | 指定按钮按下去的样式类,按钮不为加载或禁用状态时有效。当 `hover-class="none"` 时,没有点击态效果 | N
|
|
73
|
+
hover-start-time | Number | 20 | 按住后多久出现点击态,单位毫秒 | N
|
|
74
|
+
hover-stay-time | Number | 70 | 手指松开后点击态保留时间,单位毫秒 | N
|
|
75
|
+
hover-stop-propagation | Boolean | false | 指定是否阻止本节点的祖先节点出现点击态 | N
|
|
76
|
+
icon | String / Object | - | 图标名称。值为字符串表示图标名称,值为 `Object` 类型,表示透传至 `icon` | N
|
|
77
|
+
lang | String | - | 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。<br />具体释义:<br />`en` 英文;<br />`zh_CN` 简体中文;<br />`zh_TW` 繁体中文。<br />[小程序官方文档](https://developers.weixin.qq.com/miniprogram/dev/component/button.html)。可选项:en/zh_CN/zh_TW | N
|
|
78
|
+
loading | Boolean | false | 是否显示为加载状态 | N
|
|
79
|
+
loading-props | Object | {} | 透传 Loading 组件全部属性。TS 类型:`LoadingProps`,[Loading API Documents](./loading?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/packages/uniapp-components/button/type.ts) | N
|
|
80
|
+
open-type | String | - | 微信开放能力。<br />具体释义:<br />`contact` 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从 bindcontact 回调中获得具体信息,<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/customer-message.html">具体说明</a> (*鸿蒙 OS 暂不支持*);<br />`liveActivity` 通过前端获取<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message-2.html">新的一次性订阅消息下发机制</a>使用的 code;<br />`share` 触发用户转发,使用前建议先阅读<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#使用指引">使用指引</a>;<br />`getPhoneNumber` 获取用户手机号,可以从 bindgetphonenumber 回调中获取到用户信息,<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html">具体说明</a> (*小程序插件中不能使用*);<br />`getUserInfo` 获取用户信息,可以从 bindgetuserinfo 回调中获取到用户信息 (*小程序插件中不能使用*);<br />`launchApp` 打开APP,可以通过 app-parameter 属性设定向 APP 传的参数<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/launchApp.html">具体说明</a>;<br />`openSetting` 打开授权设置页;<br />`feedback` 打开“意见反馈”页面,用户可提交反馈内容并上传<a href="https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/wx.getLogManager.html">日志</a>,开发者可以登录<a href="https://mp.weixin.qq.com/">小程序管理后台</a>后进入左侧菜单“客服反馈”页面获取到反馈内容;<br />`chooseAvatar` 获取用户头像,可以从 bindchooseavatar 回调中获取到头像信息;<br />`agreePrivacyAuthorization`用户同意隐私协议按钮。用户点击一次此按钮后,所有隐私接口可以正常调用。可通过`bindagreeprivacyauthorization`监听用户同意隐私协议事件。隐私合规开发指南详情可见《<a href="https://developers.weixin.qq.com/miniprogram/dev/framework/user-privacy/PrivacyAuthorize.html">小程序隐私协议开发指南</a>》。<br />[小程序官方文档](https://developers.weixin.qq.com/miniprogram/dev/component/button.html)。可选项:contact/share/getPhoneNumber/getUserInfo/launchApp/openSetting/feedback/chooseAvatar/agreePrivacyAuthorization | N
|
|
81
|
+
phone-number-no-quota-toast | Boolean | true | 原生按钮属性,当手机号快速验证或手机号实时验证额度用尽时,是否对用户展示“申请获取你的手机号,但该功能使用次数已达当前小程序上限,暂时无法使用”的提示,默认展示,open-type="getPhoneNumber" 或 open-type="getRealtimePhoneNumber" 时有效 | N
|
|
82
|
+
send-message-img | String | 截图 | 会话内消息卡片图片,open-type="contact"时有效 | N
|
|
83
|
+
send-message-path | String | 当前分享路径 | 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效 | N
|
|
84
|
+
send-message-title | String | 当前标题 | 会话内消息卡片标题,open-type="contact"时有效 | N
|
|
85
|
+
session-from | String | - | 会话来源,open-type="contact"时有效 | N
|
|
86
|
+
shape | String | rectangle | 按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形。可选项:rectangle/square/round/circle | N
|
|
87
|
+
show-message-card | Boolean | false | 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,open-type="contact"时有效 | N
|
|
88
|
+
size | String | medium | 组件尺寸。可选项:extra-small/small/medium/large | N
|
|
89
|
+
t-id | String | - | 按钮标签id | N
|
|
90
|
+
theme | String | default | 组件风格,依次为品牌色、危险色。可选项:default/primary/danger/light | N
|
|
91
|
+
type | String | - | 同小程序的 formType。可选项:submit/reset | N
|
|
92
|
+
variant | String | base | 按钮形式,基础、线框、虚线、文字。可选项:base/outline/dashed/text | N
|
|
93
|
+
|
|
94
|
+
### Button Events
|
|
95
|
+
|
|
96
|
+
名称 | 参数 | 描述
|
|
97
|
+
-- | -- | --
|
|
98
|
+
agreeprivacyauthorization | \- | 原生按钮属性,用户同意隐私协议事件回调,open-type=agreePrivacyAuthorization时有效 (Tips: 如果使用 onNeedPrivacyAuthorization 接口,需要在 bindagreeprivacyauthorization 触发后再调用 resolve({ event: "agree", buttonId }))
|
|
99
|
+
chooseavatar | \- | 原生按钮属性,获取用户头像回调,`open-type=chooseAvatar` 时有效。返回 `e.detail.avatarUrl` 为头像临时文件链接
|
|
100
|
+
click | `(e: MouseEvent)` | 点击时触发
|
|
101
|
+
contact | \- | 原生按钮属性,客服消息回调,`open-type="contact"` 时有效
|
|
102
|
+
createliveactivity | \- | 新的一次性订阅消息下发机制回调,`open-type=liveActivity` 时有效
|
|
103
|
+
error | \- | 原生按钮属性,当使用开放能力时,发生错误的回调,`open-type=launchApp` 时有效
|
|
104
|
+
getphonenumber | \- | 原生按钮属性,手机号快速验证回调,open-type=getPhoneNumber时有效。Tips:在触发 bindgetphonenumber 回调后应立即隐藏手机号按钮组件,或置为 disabled 状态,避免用户重复授权手机号产生额外费用
|
|
105
|
+
getrealtimephonenumber | \- | 原生按钮属性,手机号实时验证回调,open-type=getRealtimePhoneNumber 时有效。Tips:在触发 bindgetrealtimephonenumber 回调后应立即隐藏手机号按钮组件,或置为 disabled 状态,避免用户重复授权手机号产生额外费用
|
|
106
|
+
getuserinfo | \- | 原生按钮属性,用户点击该按钮时,会返回获取到的用户信息,回调的detail数据与wx.getUserInfo返回的一致,open-type="getUserInfo"时有效
|
|
107
|
+
launchapp | \- | 打开 APP 成功的回调,`open-type=launchApp` 时有效
|
|
108
|
+
opensetting | \- | 原生按钮属性,在打开授权设置页后回调,open-type=openSetting时有效
|
|
109
|
+
|
|
110
|
+
### Button Slots
|
|
111
|
+
|
|
112
|
+
名称 | 描述
|
|
113
|
+
-- | --
|
|
114
|
+
\- | 默认插槽,作用同 `content` 插槽
|
|
115
|
+
content | 自定义 `content` 显示内容
|
|
116
|
+
suffix | 右侧内容,可用于定义右侧图标
|
|
117
|
+
|
|
118
|
+
### Button External Classes
|
|
119
|
+
|
|
120
|
+
类名 | 描述
|
|
121
|
+
-- | --
|
|
122
|
+
t-class | 根节点样式类
|
|
123
|
+
t-class-icon | 图标样式类
|
|
124
|
+
t-class-loading | 加载样式类
|
|
125
|
+
|
|
126
|
+
### CSS Variables
|
|
127
|
+
|
|
128
|
+
组件提供了下列 CSS 变量,可用于自定义样式。
|
|
129
|
+
名称 | 默认值 | 描述
|
|
130
|
+
-- | -- | --
|
|
131
|
+
--td-button-border-radius | @radius-default | -
|
|
132
|
+
--td-button-border-width | 4rpx | -
|
|
133
|
+
--td-button-danger-active-bg-color | @error-color-active | -
|
|
134
|
+
--td-button-danger-active-border-color | @error-color-active | -
|
|
135
|
+
--td-button-danger-bg-color | @error-color | -
|
|
136
|
+
--td-button-danger-border-color | @error-color | -
|
|
137
|
+
--td-button-danger-color | @text-color-anti | -
|
|
138
|
+
--td-button-danger-dashed-border-color | @button-danger-dashed-color | -
|
|
139
|
+
--td-button-danger-dashed-color | @error-color | -
|
|
140
|
+
--td-button-danger-dashed-disabled-color | @button-danger-disabled-color | -
|
|
141
|
+
--td-button-danger-disabled-bg | @error-color-3 | -
|
|
142
|
+
--td-button-danger-disabled-border-color | @error-color-3 | -
|
|
143
|
+
--td-button-danger-disabled-color | @font-white-1 | -
|
|
144
|
+
--td-button-danger-outline-active-bg-color | @bg-color-container-active | -
|
|
145
|
+
--td-button-danger-outline-active-border-color | @error-color-active | -
|
|
146
|
+
--td-button-danger-outline-border-color | @button-danger-outline-color | -
|
|
147
|
+
--td-button-danger-outline-color | @error-color | -
|
|
148
|
+
--td-button-danger-outline-disabled-color | @error-color-3 | -
|
|
149
|
+
--td-button-danger-text-active-bg-color | @bg-color-container-active | -
|
|
150
|
+
--td-button-danger-text-color | @error-color | -
|
|
151
|
+
--td-button-danger-text-disabled-color | @button-danger-disabled-color | -
|
|
152
|
+
--td-button-default-active-bg-color | @bg-color-component-active | -
|
|
153
|
+
--td-button-default-active-border-color | @bg-color-component-active | -
|
|
154
|
+
--td-button-default-bg-color | @bg-color-component | -
|
|
155
|
+
--td-button-default-border-color | @bg-color-component | -
|
|
156
|
+
--td-button-default-color | @text-color-primary | -
|
|
157
|
+
--td-button-default-disabled-bg | @bg-color-component-disabled | -
|
|
158
|
+
--td-button-default-disabled-border-color | @bg-color-component-disabled | -
|
|
159
|
+
--td-button-default-disabled-color | @text-color-disabled | -
|
|
160
|
+
--td-button-default-outline-active-bg-color | @bg-color-container-active | -
|
|
161
|
+
--td-button-default-outline-active-border-color | @component-border | -
|
|
162
|
+
--td-button-default-outline-border-color | @component-border | -
|
|
163
|
+
--td-button-default-outline-color | @text-color-primary | -
|
|
164
|
+
--td-button-default-outline-disabled-color | @component-border | -
|
|
165
|
+
--td-button-default-text-active-bg-color | @bg-color-container-active | -
|
|
166
|
+
--td-button-extra-small-font-size | @font-size-base | -
|
|
167
|
+
--td-button-extra-small-height | 56rpx | -
|
|
168
|
+
--td-button-extra-small-icon-size | 36rpx | -
|
|
169
|
+
--td-button-extra-small-padding-horizontal | 16rpx | -
|
|
170
|
+
--td-button-font-weight | 600 | -
|
|
171
|
+
--td-button-ghost-border-color | @button-ghost-color | -
|
|
172
|
+
--td-button-ghost-color | @text-color-anti | -
|
|
173
|
+
--td-button-ghost-danger-border-color | @error-color | -
|
|
174
|
+
--td-button-ghost-danger-color | @error-color | -
|
|
175
|
+
--td-button-ghost-danger-hover-color | @error-color-active | -
|
|
176
|
+
--td-button-ghost-disabled-color | @font-white-4 | -
|
|
177
|
+
--td-button-ghost-hover-color | @font-white-2 | -
|
|
178
|
+
--td-button-ghost-primary-border-color | @brand-color | -
|
|
179
|
+
--td-button-ghost-primary-color | @brand-color | -
|
|
180
|
+
--td-button-ghost-primary-hover-color | @brand-color-active | -
|
|
181
|
+
--td-button-icon-border-radius | 8rpx | -
|
|
182
|
+
--td-button-icon-spacer | @spacer | -
|
|
183
|
+
--td-button-large-font-size | @font-size-m | -
|
|
184
|
+
--td-button-large-height | 96rpx | -
|
|
185
|
+
--td-button-large-icon-size | 48rpx | -
|
|
186
|
+
--td-button-large-padding-horizontal | 40rpx | -
|
|
187
|
+
--td-button-light-active-bg-color | @brand-color-light-active | -
|
|
188
|
+
--td-button-light-active-border-color | @brand-color-light-active | -
|
|
189
|
+
--td-button-light-bg-color | @brand-color-light | -
|
|
190
|
+
--td-button-light-border-color | @brand-color-light | -
|
|
191
|
+
--td-button-light-color | @brand-color | -
|
|
192
|
+
--td-button-light-disabled-bg | @brand-color-light | -
|
|
193
|
+
--td-button-light-disabled-border-color | @brand-color-light | -
|
|
194
|
+
--td-button-light-disabled-color | @brand-color-disabled | -
|
|
195
|
+
--td-button-light-outline-active-bg-color | @brand-color-light-active | -
|
|
196
|
+
--td-button-light-outline-active-border-color | @brand-color-active | -
|
|
197
|
+
--td-button-light-outline-bg-color | @brand-color-light | -
|
|
198
|
+
--td-button-light-outline-border-color | @button-light-outline-color | -
|
|
199
|
+
--td-button-light-outline-color | @brand-color | -
|
|
200
|
+
--td-button-light-outline-disabled-color | @brand-color-disabled | -
|
|
201
|
+
--td-button-light-text-active-bg-color | @bg-color-container-active | -
|
|
202
|
+
--td-button-light-text-color | @brand-color | -
|
|
203
|
+
--td-button-medium-font-size | @font-size-m | -
|
|
204
|
+
--td-button-medium-height | 80rpx | -
|
|
205
|
+
--td-button-medium-icon-size | 40rpx | -
|
|
206
|
+
--td-button-medium-padding-horizontal | 32rpx | -
|
|
207
|
+
--td-button-primary-active-bg-color | @brand-color-active | -
|
|
208
|
+
--td-button-primary-active-border-color | @brand-color-active | -
|
|
209
|
+
--td-button-primary-bg-color | @brand-color | -
|
|
210
|
+
--td-button-primary-border-color | @brand-color | -
|
|
211
|
+
--td-button-primary-color | @text-color-anti | -
|
|
212
|
+
--td-button-primary-dashed-border-color | @button-primary-dashed-color | -
|
|
213
|
+
--td-button-primary-dashed-color | @brand-color | -
|
|
214
|
+
--td-button-primary-dashed-disabled-color | @brand-color-disabled | -
|
|
215
|
+
--td-button-primary-disabled-bg | @brand-color-disabled | -
|
|
216
|
+
--td-button-primary-disabled-border-color | @brand-color-disabled | -
|
|
217
|
+
--td-button-primary-disabled-color | @text-color-anti | -
|
|
218
|
+
--td-button-primary-outline-active-bg-color | @bg-color-container-active | -
|
|
219
|
+
--td-button-primary-outline-active-border-color | @brand-color-active | -
|
|
220
|
+
--td-button-primary-outline-border-color | @button-primary-outline-color | -
|
|
221
|
+
--td-button-primary-outline-color | @brand-color | -
|
|
222
|
+
--td-button-primary-outline-disabled-color | @brand-color-disabled | -
|
|
223
|
+
--td-button-primary-text-active-bg-color | @bg-color-container-active | -
|
|
224
|
+
--td-button-primary-text-color | @brand-color | -
|
|
225
|
+
--td-button-primary-text-disabled-color | @brand-color-disabled | -
|
|
226
|
+
--td-button-small-font-size | @font-size-base | -
|
|
227
|
+
--td-button-small-height | 64rpx | -
|
|
228
|
+
--td-button-small-icon-size | 36rpx | -
|
|
229
|
+
--td-button-small-padding-horizontal | 24rpx | -
|