@tplc/wot 0.0.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/components/common/AbortablePromise.ts +36 -0
- package/components/common/abstracts/_config.scss +7 -0
- package/components/common/abstracts/_function.scss +76 -0
- package/components/common/abstracts/_mixin.scss +339 -0
- package/components/common/abstracts/variable.scss +1346 -0
- package/components/common/base64.ts +30 -0
- package/components/common/canvasHelper.ts +49 -0
- package/components/common/clickoutside.ts +34 -0
- package/components/common/dayjs.ts +157 -0
- package/components/common/event.ts +8 -0
- package/components/common/props.ts +51 -0
- package/components/common/util.ts +751 -0
- package/components/composables/useCell.ts +13 -0
- package/components/composables/useChildren.ts +122 -0
- package/components/composables/useCountDown.ts +138 -0
- package/components/composables/useLockScroll.ts +39 -0
- package/components/composables/useParent.ts +41 -0
- package/components/composables/usePopover.ts +193 -0
- package/components/composables/useQueue.ts +52 -0
- package/components/composables/useRaf.ts +37 -0
- package/components/composables/useTouch.ts +44 -0
- package/components/composables/useTranslate.ts +22 -0
- package/components/wd-action-sheet/index.scss +204 -0
- package/components/wd-action-sheet/types.ts +128 -0
- package/components/wd-action-sheet/wd-action-sheet.vue +174 -0
- package/components/wd-backtop/index.scss +25 -0
- package/components/wd-backtop/types.ts +37 -0
- package/components/wd-backtop/wd-backtop.vue +48 -0
- package/components/wd-badge/index.scss +59 -0
- package/components/wd-badge/types.ts +53 -0
- package/components/wd-badge/wd-badge.vue +69 -0
- package/components/wd-button/index.scss +340 -0
- package/components/wd-button/types.ts +112 -0
- package/components/wd-button/wd-button.vue +176 -0
- package/components/wd-calendar/index.scss +244 -0
- package/components/wd-calendar/types.ts +235 -0
- package/components/wd-calendar/wd-calendar.vue +456 -0
- package/components/wd-calendar-view/index.scss +9 -0
- package/components/wd-calendar-view/month/index.scss +151 -0
- package/components/wd-calendar-view/month/month.vue +391 -0
- package/components/wd-calendar-view/month/types.ts +19 -0
- package/components/wd-calendar-view/monthPanel/index.scss +89 -0
- package/components/wd-calendar-view/monthPanel/month-panel.vue +388 -0
- package/components/wd-calendar-view/monthPanel/types.ts +48 -0
- package/components/wd-calendar-view/types.ts +134 -0
- package/components/wd-calendar-view/utils.ts +451 -0
- package/components/wd-calendar-view/wd-calendar-view.vue +111 -0
- package/components/wd-calendar-view/year/index.scss +148 -0
- package/components/wd-calendar-view/year/types.ts +19 -0
- package/components/wd-calendar-view/year/year.vue +220 -0
- package/components/wd-calendar-view/yearPanel/index.scss +24 -0
- package/components/wd-calendar-view/yearPanel/types.ts +38 -0
- package/components/wd-calendar-view/yearPanel/year-panel.vue +140 -0
- package/components/wd-card/index.scss +70 -0
- package/components/wd-card/types.ts +30 -0
- package/components/wd-card/wd-card.vue +40 -0
- package/components/wd-cell/index.scss +189 -0
- package/components/wd-cell/types.ts +96 -0
- package/components/wd-cell/wd-cell.vue +135 -0
- package/components/wd-cell-group/index.scss +55 -0
- package/components/wd-cell-group/types.ts +41 -0
- package/components/wd-cell-group/wd-cell-group.vue +45 -0
- package/components/wd-checkbox/index.scss +285 -0
- package/components/wd-checkbox/types.ts +68 -0
- package/components/wd-checkbox/wd-checkbox.vue +185 -0
- package/components/wd-checkbox-group/index.scss +20 -0
- package/components/wd-checkbox-group/types.ts +59 -0
- package/components/wd-checkbox-group/wd-checkbox-group.vue +103 -0
- package/components/wd-circle/index.scss +18 -0
- package/components/wd-circle/types.ts +54 -0
- package/components/wd-circle/wd-circle.vue +318 -0
- package/components/wd-col/index.scss +19 -0
- package/components/wd-col/types.ts +15 -0
- package/components/wd-col/wd-col.vue +91 -0
- package/components/wd-col-picker/index.scss +241 -0
- package/components/wd-col-picker/types.ts +170 -0
- package/components/wd-col-picker/wd-col-picker.vue +550 -0
- package/components/wd-collapse/index.scss +55 -0
- package/components/wd-collapse/types.ts +63 -0
- package/components/wd-collapse/wd-collapse.vue +160 -0
- package/components/wd-collapse-item/index.scss +79 -0
- package/components/wd-collapse-item/types.ts +36 -0
- package/components/wd-collapse-item/wd-collapse-item.vue +182 -0
- package/components/wd-config-provider/types.ts +1023 -0
- package/components/wd-config-provider/wd-config-provider.vue +82 -0
- package/components/wd-count-down/index.scss +14 -0
- package/components/wd-count-down/types.ts +41 -0
- package/components/wd-count-down/utils.ts +52 -0
- package/components/wd-count-down/wd-count-down.vue +60 -0
- package/components/wd-count-to/index.scss +6 -0
- package/components/wd-count-to/types.ts +110 -0
- package/components/wd-count-to/wd-count-to.vue +134 -0
- package/components/wd-curtain/index.scss +80 -0
- package/components/wd-curtain/types.ts +45 -0
- package/components/wd-curtain/wd-curtain.vue +174 -0
- package/components/wd-datetime-picker/index.scss +243 -0
- package/components/wd-datetime-picker/types.ts +225 -0
- package/components/wd-datetime-picker/wd-datetime-picker.vue +827 -0
- package/components/wd-datetime-picker-view/index.scss +0 -0
- package/components/wd-datetime-picker-view/types.ts +137 -0
- package/components/wd-datetime-picker-view/wd-datetime-picker-view.vue +514 -0
- package/components/wd-divider/index.scss +32 -0
- package/components/wd-divider/types.ts +12 -0
- package/components/wd-divider/wd-divider.vue +29 -0
- package/components/wd-drop-menu/index.scss +89 -0
- package/components/wd-drop-menu/types.ts +38 -0
- package/components/wd-drop-menu/wd-drop-menu.vue +128 -0
- package/components/wd-drop-menu-item/index.scss +66 -0
- package/components/wd-drop-menu-item/types.ts +78 -0
- package/components/wd-drop-menu-item/wd-drop-menu-item.vue +230 -0
- package/components/wd-fab/index.scss +115 -0
- package/components/wd-fab/types.ts +61 -0
- package/components/wd-fab/wd-fab.vue +257 -0
- package/components/wd-form/index.scss +10 -0
- package/components/wd-form/types.ts +93 -0
- package/components/wd-form/wd-form.vue +185 -0
- package/components/wd-form-item/index.scss +17 -0
- package/components/wd-form-item/types.ts +22 -0
- package/components/wd-form-item/wd-form-item.vue +65 -0
- package/components/wd-gap/index.scss +9 -0
- package/components/wd-gap/types.ts +23 -0
- package/components/wd-gap/wd-gap.vue +39 -0
- package/components/wd-grid/index.scss +9 -0
- package/components/wd-grid/types.ts +54 -0
- package/components/wd-grid/wd-grid.vue +107 -0
- package/components/wd-grid-item/index.scss +137 -0
- package/components/wd-grid-item/types.ts +74 -0
- package/components/wd-grid-item/wd-grid-item.vue +181 -0
- package/components/wd-icon/index.scss +1222 -0
- package/components/wd-icon/types.ts +21 -0
- package/components/wd-icon/wd-icon.vue +53 -0
- package/components/wd-icon/wd-icons.ttf +0 -0
- package/components/wd-img/index.scss +19 -0
- package/components/wd-img/types.ts +53 -0
- package/components/wd-img/wd-img.vue +76 -0
- package/components/wd-img-cropper/index.scss +227 -0
- package/components/wd-img-cropper/types.ts +87 -0
- package/components/wd-img-cropper/wd-img-cropper.vue +659 -0
- package/components/wd-index-anchor/index.scss +34 -0
- package/components/wd-index-anchor/type.ts +9 -0
- package/components/wd-index-anchor/wd-index-anchor.vue +57 -0
- package/components/wd-index-bar/index.scss +39 -0
- package/components/wd-index-bar/type.ts +28 -0
- package/components/wd-index-bar/wd-index-bar.vue +158 -0
- package/components/wd-input/index.scss +326 -0
- package/components/wd-input/types.ts +182 -0
- package/components/wd-input/wd-input.vue +327 -0
- package/components/wd-input-number/index.scss +132 -0
- package/components/wd-input-number/types.ts +78 -0
- package/components/wd-input-number/wd-input-number.vue +221 -0
- package/components/wd-loading/index.scss +34 -0
- package/components/wd-loading/types.ts +31 -0
- package/components/wd-loading/wd-loading.vue +90 -0
- package/components/wd-loadmore/index.scss +39 -0
- package/components/wd-loadmore/types.ts +24 -0
- package/components/wd-loadmore/wd-loadmore.vue +53 -0
- package/components/wd-message-box/index.scss +121 -0
- package/components/wd-message-box/index.ts +95 -0
- package/components/wd-message-box/types.ts +116 -0
- package/components/wd-message-box/wd-message-box.vue +326 -0
- package/components/wd-navbar/index.scss +103 -0
- package/components/wd-navbar/types.ts +52 -0
- package/components/wd-navbar/wd-navbar.vue +142 -0
- package/components/wd-navbar-capsule/index.scss +65 -0
- package/components/wd-navbar-capsule/types.ts +0 -0
- package/components/wd-navbar-capsule/wd-navbar-capsule.vue +31 -0
- package/components/wd-notice-bar/index.scss +86 -0
- package/components/wd-notice-bar/types.ts +56 -0
- package/components/wd-notice-bar/wd-notice-bar.vue +223 -0
- package/components/wd-notify/index.scss +34 -0
- package/components/wd-notify/index.ts +59 -0
- package/components/wd-notify/types.ts +62 -0
- package/components/wd-notify/wd-notify.vue +83 -0
- package/components/wd-number-keyboard/index.scss +78 -0
- package/components/wd-number-keyboard/key/index.scss +79 -0
- package/components/wd-number-keyboard/key/index.vue +76 -0
- package/components/wd-number-keyboard/key/types.ts +11 -0
- package/components/wd-number-keyboard/types.ts +79 -0
- package/components/wd-number-keyboard/wd-number-keyboard.vue +173 -0
- package/components/wd-overlay/index.scss +17 -0
- package/components/wd-overlay/types.ts +25 -0
- package/components/wd-overlay/wd-overlay.vue +46 -0
- package/components/wd-pagination/index.scss +57 -0
- package/components/wd-pagination/types.ts +41 -0
- package/components/wd-pagination/wd-pagination.vue +121 -0
- package/components/wd-password-input/index.scss +123 -0
- package/components/wd-password-input/types.ts +48 -0
- package/components/wd-password-input/wd-password-input.vue +58 -0
- package/components/wd-picker/index.scss +216 -0
- package/components/wd-picker/types.ts +186 -0
- package/components/wd-picker/wd-picker.vue +409 -0
- package/components/wd-picker-view/index.scss +91 -0
- package/components/wd-picker-view/types.ts +162 -0
- package/components/wd-picker-view/wd-picker-view.vue +361 -0
- package/components/wd-popover/index.scss +123 -0
- package/components/wd-popover/types.ts +69 -0
- package/components/wd-popover/wd-popover.vue +216 -0
- package/components/wd-popup/index.scss +112 -0
- package/components/wd-popup/types.ts +68 -0
- package/components/wd-popup/wd-popup.vue +227 -0
- package/components/wd-progress/index.scss +62 -0
- package/components/wd-progress/types.ts +40 -0
- package/components/wd-progress/wd-progress.vue +201 -0
- package/components/wd-radio/index.scss +300 -0
- package/components/wd-radio/types.ts +42 -0
- package/components/wd-radio/wd-radio.vue +136 -0
- package/components/wd-radio-group/index.scss +23 -0
- package/components/wd-radio-group/types.ts +36 -0
- package/components/wd-radio-group/wd-radio-group.vue +54 -0
- package/components/wd-rate/index.scss +24 -0
- package/components/wd-rate/types.ts +91 -0
- package/components/wd-rate/wd-rate.vue +131 -0
- package/components/wd-resize/index.scss +26 -0
- package/components/wd-resize/types.ts +6 -0
- package/components/wd-resize/wd-resize.vue +155 -0
- package/components/wd-row/index.scss +10 -0
- package/components/wd-row/types.ts +16 -0
- package/components/wd-row/wd-row.vue +63 -0
- package/components/wd-search/index.scss +148 -0
- package/components/wd-search/types.ts +83 -0
- package/components/wd-search/wd-search.vue +237 -0
- package/components/wd-segmented/index.scss +97 -0
- package/components/wd-segmented/types.ts +68 -0
- package/components/wd-segmented/wd-segmented.vue +143 -0
- package/components/wd-select-picker/index.scss +177 -0
- package/components/wd-select-picker/types.ts +116 -0
- package/components/wd-select-picker/wd-select-picker.vue +486 -0
- package/components/wd-sidebar/index.scss +25 -0
- package/components/wd-sidebar/types.ts +28 -0
- package/components/wd-sidebar/wd-sidebar.vue +41 -0
- package/components/wd-sidebar-item/index.scss +93 -0
- package/components/wd-sidebar-item/types.ts +31 -0
- package/components/wd-sidebar-item/wd-sidebar-item.vue +114 -0
- package/components/wd-skeleton/index.scss +101 -0
- package/components/wd-skeleton/index.ts +1 -0
- package/components/wd-skeleton/types.ts +69 -0
- package/components/wd-skeleton/wd-skeleton.vue +135 -0
- package/components/wd-slider/index.scss +91 -0
- package/components/wd-slider/types.ts +104 -0
- package/components/wd-slider/wd-slider.vue +377 -0
- package/components/wd-sort-button/index.scss +86 -0
- package/components/wd-sort-button/types.ts +43 -0
- package/components/wd-sort-button/wd-sort-button.vue +76 -0
- package/components/wd-status-tip/index.scss +37 -0
- package/components/wd-status-tip/types.ts +59 -0
- package/components/wd-status-tip/wd-status-tip.vue +94 -0
- package/components/wd-step/index.scss +236 -0
- package/components/wd-step/types.ts +33 -0
- package/components/wd-step/wd-step.vue +151 -0
- package/components/wd-steps/index.scss +10 -0
- package/components/wd-steps/types.ts +59 -0
- package/components/wd-steps/wd-steps.vue +37 -0
- package/components/wd-sticky/index.scss +9 -0
- package/components/wd-sticky/types.ts +13 -0
- package/components/wd-sticky/wd-sticky.vue +190 -0
- package/components/wd-sticky-box/index.scss +6 -0
- package/components/wd-sticky-box/types.ts +20 -0
- package/components/wd-sticky-box/wd-sticky-box.vue +154 -0
- package/components/wd-swipe-action/index.scss +22 -0
- package/components/wd-swipe-action/types.ts +43 -0
- package/components/wd-swipe-action/wd-swipe-action.vue +307 -0
- package/components/wd-swiper/index.scss +23 -0
- package/components/wd-swiper/types.ts +189 -0
- package/components/wd-swiper/wd-swiper.vue +202 -0
- package/components/wd-swiper-nav/index.scss +153 -0
- package/components/wd-swiper-nav/types.ts +42 -0
- package/components/wd-swiper-nav/wd-swiper-nav.vue +37 -0
- package/components/wd-switch/index.scss +58 -0
- package/components/wd-switch/types.ts +56 -0
- package/components/wd-switch/wd-switch.vue +83 -0
- package/components/wd-tab/index.scss +8 -0
- package/components/wd-tab/types.ts +20 -0
- package/components/wd-tab/wd-tab.vue +100 -0
- package/components/wd-tabbar/index.scss +57 -0
- package/components/wd-tabbar/types.ts +88 -0
- package/components/wd-tabbar/wd-tabbar.vue +104 -0
- package/components/wd-tabbar-item/index.scss +52 -0
- package/components/wd-tabbar-item/types.ts +51 -0
- package/components/wd-tabbar-item/wd-tabbar-item.vue +101 -0
- package/components/wd-table/index.scss +132 -0
- package/components/wd-table/types.ts +69 -0
- package/components/wd-table/wd-table.vue +255 -0
- package/components/wd-table-col/index.scss +44 -0
- package/components/wd-table-col/types.ts +54 -0
- package/components/wd-table-col/wd-table-col.vue +149 -0
- package/components/wd-tabs/index.scss +280 -0
- package/components/wd-tabs/types.ts +71 -0
- package/components/wd-tabs/wd-tabs.vue +528 -0
- package/components/wd-tag/index.scss +115 -0
- package/components/wd-tag/types.ts +81 -0
- package/components/wd-tag/wd-tag.vue +154 -0
- package/components/wd-text/index.scss +34 -0
- package/components/wd-text/types.ts +98 -0
- package/components/wd-text/wd-text.vue +138 -0
- package/components/wd-textarea/index.scss +343 -0
- package/components/wd-textarea/types.ts +298 -0
- package/components/wd-textarea/wd-textarea.vue +303 -0
- package/components/wd-toast/index.scss +66 -0
- package/components/wd-toast/index.ts +109 -0
- package/components/wd-toast/types.ts +76 -0
- package/components/wd-toast/wd-toast.vue +212 -0
- package/components/wd-tooltip/index.scss +61 -0
- package/components/wd-tooltip/types.ts +102 -0
- package/components/wd-tooltip/wd-tooltip.vue +167 -0
- package/components/wd-transition/index.scss +91 -0
- package/components/wd-transition/types.ts +89 -0
- package/components/wd-transition/wd-transition.vue +221 -0
- package/components/wd-upload/index.scss +173 -0
- package/components/wd-upload/types.ts +378 -0
- package/components/wd-upload/utils.ts +152 -0
- package/components/wd-upload/wd-upload.vue +737 -0
- package/components/wd-video-preview/index.scss +34 -0
- package/components/wd-video-preview/types.ts +32 -0
- package/components/wd-video-preview/wd-video-preview.vue +76 -0
- package/components/wd-watermark/index.scss +18 -0
- package/components/wd-watermark/types.ts +82 -0
- package/components/wd-watermark/wd-watermark.vue +592 -0
- package/components/wot-design-uni/wot-design-uni.vue +14 -0
- package/global.d.ts +108 -0
- package/index.ts +30 -0
- package/locale/index.ts +41 -0
- package/locale/lang/en-US.ts +128 -0
- package/locale/lang/th-TH.ts +127 -0
- package/locale/lang/vi-VN.ts +89 -0
- package/locale/lang/zh-CN.ts +127 -0
- package/locale/lang/zh-HK.ts +84 -0
- package/locale/lang/zh-TW.ts +84 -0
- package/package.json +20 -0
package/global.d.ts
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: weisheng
|
|
3
|
+
* @Date: 2023-09-25 17:28:12
|
|
4
|
+
* @LastEditTime: 2024-08-09 13:39:14
|
|
5
|
+
* @LastEditors: weisheng
|
|
6
|
+
* @Description:
|
|
7
|
+
* @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\global.d.ts
|
|
8
|
+
* 记得注释
|
|
9
|
+
*/
|
|
10
|
+
import '@vue/runtime-core'
|
|
11
|
+
|
|
12
|
+
declare module '@vue/runtime-core' {
|
|
13
|
+
// Helper for Volar
|
|
14
|
+
export interface GlobalComponents {
|
|
15
|
+
WdActionSheet: (typeof import('./components/wd-action-sheet/wd-action-sheet.vue'))['default']
|
|
16
|
+
WdBadge: (typeof import('./components/wd-badge/wd-badge.vue'))['default']
|
|
17
|
+
WdButton: (typeof import('./components/wd-button/wd-button.vue'))['default']
|
|
18
|
+
WdCalendar: (typeof import('./components/wd-calendar/wd-calendar.vue'))['default']
|
|
19
|
+
WdCalendarView: (typeof import('./components/wd-calendar-view/wd-calendar-view.vue'))['default']
|
|
20
|
+
WdCard: (typeof import('./components/wd-card/wd-card.vue'))['default']
|
|
21
|
+
WdCell: (typeof import('./components/wd-cell/wd-cell.vue'))['default']
|
|
22
|
+
WdCellGroup: (typeof import('./components/wd-cell-group/wd-cell-group.vue'))['default']
|
|
23
|
+
WdCheckbox: (typeof import('./components/wd-checkbox/wd-checkbox.vue'))['default']
|
|
24
|
+
WdCheckboxGroup: (typeof import('./components/wd-checkbox-group/wd-checkbox-group.vue'))['default']
|
|
25
|
+
WdCol: (typeof import('./components/wd-col/wd-col.vue'))['default']
|
|
26
|
+
WdColPicker: (typeof import('./components/wd-col-picker/wd-col-picker.vue'))['default']
|
|
27
|
+
WdCollapse: (typeof import('./components/wd-collapse/wd-collapse.vue'))['default']
|
|
28
|
+
WdCollapseItem: (typeof import('./components/wd-collapse-item/wd-collapse-item.vue'))['default']
|
|
29
|
+
WdConfigProvider: (typeof import('./components/wd-config-provider/wd-config-provider.vue'))['default']
|
|
30
|
+
WdCurtain: (typeof import('./components/wd-curtain/wd-curtain.vue'))['default']
|
|
31
|
+
WdDatetimePicker: (typeof import('./components/wd-datetime-picker/wd-datetime-picker.vue'))['default']
|
|
32
|
+
WdDatetimePickerView: (typeof import('./components/wd-datetime-picker-view/wd-datetime-picker-view.vue'))['default']
|
|
33
|
+
WdDivider: (typeof import('./components/wd-divider/wd-divider.vue'))['default']
|
|
34
|
+
WdDropMenu: (typeof import('./components/wd-drop-menu/wd-drop-menu.vue'))['default']
|
|
35
|
+
WdDropMenuItem: (typeof import('./components/wd-drop-menu-item/wd-drop-menu-item.vue'))['default']
|
|
36
|
+
WdGrid: (typeof import('./components/wd-grid/wd-grid.vue'))['default']
|
|
37
|
+
WdGridItem: (typeof import('./components/wd-grid-item/wd-grid-item.vue'))['default']
|
|
38
|
+
WdIcon: (typeof import('./components/wd-icon/wd-icon.vue'))['default']
|
|
39
|
+
WdImg: (typeof import('./components/wd-img/wd-img.vue'))['default']
|
|
40
|
+
WdImgCropper: (typeof import('./components/wd-img-cropper/wd-img-cropper.vue'))['default']
|
|
41
|
+
WdInput: (typeof import('./components/wd-input/wd-input.vue'))['default']
|
|
42
|
+
WdInputNumber: (typeof import('./components/wd-input-number/wd-input-number.vue'))['default']
|
|
43
|
+
WdLoading: (typeof import('./components/wd-loading/wd-loading.vue'))['default']
|
|
44
|
+
WdLoadmore: (typeof import('./components/wd-loadmore/wd-loadmore.vue'))['default']
|
|
45
|
+
WdMessageBox: (typeof import('./components/wd-message-box/wd-message-box.vue'))['default']
|
|
46
|
+
WdOverlay: (typeof import('./components/wd-overlay/wd-overlay.vue'))['default']
|
|
47
|
+
WdNoticeBar: (typeof import('./components/wd-notice-bar/wd-notice-bar.vue'))['default']
|
|
48
|
+
WdPagination: (typeof import('./components/wd-pagination/wd-pagination.vue'))['default']
|
|
49
|
+
WdPicker: (typeof import('./components/wd-picker/wd-picker.vue'))['default']
|
|
50
|
+
WdPickerView: (typeof import('./components/wd-picker-view/wd-picker-view.vue'))['default']
|
|
51
|
+
WdPopover: (typeof import('./components/wd-popover/wd-popover.vue'))['default']
|
|
52
|
+
WdPopup: (typeof import('./components/wd-popup/wd-popup.vue'))['default']
|
|
53
|
+
WdProgress: (typeof import('./components/wd-progress/wd-progress.vue'))['default']
|
|
54
|
+
WdRadio: (typeof import('./components/wd-radio/wd-radio.vue'))['default']
|
|
55
|
+
WdRadioGroup: (typeof import('./components/wd-radio-group/wd-radio-group.vue'))['default']
|
|
56
|
+
WdRate: (typeof import('./components/wd-rate/wd-rate.vue'))['default']
|
|
57
|
+
WdResize: (typeof import('./components/wd-resize/wd-resize.vue'))['default']
|
|
58
|
+
WdRow: (typeof import('./components/wd-row/wd-row.vue'))['default']
|
|
59
|
+
WdSearch: (typeof import('./components/wd-search/wd-search.vue'))['default']
|
|
60
|
+
WdSelectPicker: (typeof import('./components/wd-select-picker/wd-select-picker.vue'))['default']
|
|
61
|
+
WdSlider: (typeof import('./components/wd-slider/wd-slider.vue'))['default']
|
|
62
|
+
WdSortButton: (typeof import('./components/wd-sort-button/wd-sort-button.vue'))['default']
|
|
63
|
+
WdStatusTip: (typeof import('./components/wd-status-tip/wd-status-tip.vue'))['default']
|
|
64
|
+
WdStep: (typeof import('./components/wd-step/wd-step.vue'))['default']
|
|
65
|
+
WdSteps: (typeof import('./components/wd-steps/wd-steps.vue'))['default']
|
|
66
|
+
WdSticky: (typeof import('./components/wd-sticky/wd-sticky.vue'))['default']
|
|
67
|
+
WdStickyBox: (typeof import('./components/wd-sticky-box/wd-sticky-box.vue'))['default']
|
|
68
|
+
WdSwipeAction: (typeof import('./components/wd-swipe-action/wd-swipe-action.vue'))['default']
|
|
69
|
+
WdSwitch: (typeof import('./components/wd-switch/wd-switch.vue'))['default']
|
|
70
|
+
WdTab: (typeof import('./components/wd-tab/wd-tab.vue'))['default']
|
|
71
|
+
WdTabs: (typeof import('./components/wd-tabs/wd-tabs.vue'))['default']
|
|
72
|
+
WdTag: (typeof import('./components/wd-tag/wd-tag.vue'))['default']
|
|
73
|
+
WdToast: (typeof import('./components/wd-toast/wd-toast.vue'))['default']
|
|
74
|
+
WdTooltip: (typeof import('./components/wd-tooltip/wd-tooltip.vue'))['default']
|
|
75
|
+
WdTransition: (typeof import('./components/wd-transition/wd-transition.vue'))['default']
|
|
76
|
+
WdUpload: (typeof import('./components/wd-upload/wd-upload.vue'))['default']
|
|
77
|
+
WdNotify: (typeof import('./components/wd-notify/wd-notify.vue'))['default']
|
|
78
|
+
WdWatermark: (typeof import('./components/wd-watermark/wd-watermark.vue'))['default']
|
|
79
|
+
WdCircle: (typeof import('./components/wd-circle/wd-circle.vue'))['default']
|
|
80
|
+
WdSwiper: (typeof import('./components/wd-swiper/wd-swiper.vue'))['default']
|
|
81
|
+
WdSwiperNav: (typeof import('./components/wd-swiper-nav/wd-swiper-nav.vue'))['default']
|
|
82
|
+
WdSegmented: (typeof import('./components/wd-segmented/wd-segmented.vue'))['default']
|
|
83
|
+
WdTabbar: (typeof import('./components/wd-tabbar/wd-tabbar.vue'))['default']
|
|
84
|
+
WdTabbarItem: (typeof import('./components/wd-tabbar-item/wd-tabbar-item.vue'))['default']
|
|
85
|
+
WdNavbar: (typeof import('./components/wd-navbar/wd-navbar.vue'))['default']
|
|
86
|
+
WdNavbarCapsule: (typeof import('./components/wd-navbar-capsule/wd-navbar-capsule.vue'))['default']
|
|
87
|
+
WdTable: (typeof import('./components/wd-table/wd-table.vue'))['default']
|
|
88
|
+
WdTableCol: (typeof import('./components/wd-table-col/wd-table-col.vue'))['default']
|
|
89
|
+
WdSidebar: (typeof import('./components/wd-sidebar/wd-sidebar.vue'))['default']
|
|
90
|
+
WdSidebarItem: (typeof import('./components/wd-sidebar-item/wd-sidebar-item.vue'))['default']
|
|
91
|
+
WdFab: (typeof import('./components/wd-fab/wd-fab.vue'))['default']
|
|
92
|
+
WdCountDown: (typeof import('./components/wd-count-down/wd-count-down.vue'))['default']
|
|
93
|
+
WdNumberKeyboard: (typeof import('./components/wd-number-keyboard/wd-number-keyboard.vue'))['default']
|
|
94
|
+
WdGap: (typeof import('./components/wd-gap/wd-gap.vue'))['default']
|
|
95
|
+
WdPasswordInput: (typeof import('./components/wd-password-input/wd-password-input.vue'))['default']
|
|
96
|
+
WdForm: (typeof import('./components/wd-form/wd-form.vue'))['default']
|
|
97
|
+
WdTextarea: (typeof import('./components/wd-textarea/wd-textarea.vue'))['default']
|
|
98
|
+
WdVideoPreview: (typeof import('./components/wd-video-preview/wd-video-preview.vue'))['default']
|
|
99
|
+
WdBacktop: (typeof import('./components/wd-backtop/wd-backtop.vue'))['default']
|
|
100
|
+
WdSkeleton: (typeof import('./components/wd-skeleton/wd-skeleton.vue'))['default']
|
|
101
|
+
WdIndexBar: (typeof import('./components/wd-index-bar/wd-index-bar.vue'))['default']
|
|
102
|
+
WdIndexAnchor: (typeof import('./components/wd-index-anchor/wd-index-anchor.vue'))['default']
|
|
103
|
+
WdText: (typeof import('./components/wd-text/wd-text.vue'))['default']
|
|
104
|
+
WdCountTo: (typeof import('./components/wd-count-to/wd-count-to.vue'))['default']
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export {}
|
package/index.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: weisheng
|
|
3
|
+
* @Date: 2021-12-21 14:22:03
|
|
4
|
+
* @LastEditTime: 2024-03-15 16:55:30
|
|
5
|
+
* @LastEditors: weisheng
|
|
6
|
+
* @Description:
|
|
7
|
+
* @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\index.ts
|
|
8
|
+
* 记得注释
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// Toast
|
|
12
|
+
export { useToast } from './components/wd-toast'
|
|
13
|
+
// Messageb
|
|
14
|
+
export { useMessage } from './components/wd-message-box'
|
|
15
|
+
|
|
16
|
+
// useQueue
|
|
17
|
+
export { useQueue } from './components/composables/useQueue'
|
|
18
|
+
|
|
19
|
+
// Notify
|
|
20
|
+
export * from './components/wd-notify'
|
|
21
|
+
|
|
22
|
+
export { dayjs } from './components/common/dayjs'
|
|
23
|
+
|
|
24
|
+
export * as CommonUtil from './components/common/util'
|
|
25
|
+
|
|
26
|
+
export * as clickOut from './components/common/clickoutside'
|
|
27
|
+
|
|
28
|
+
export * from './locale'
|
|
29
|
+
|
|
30
|
+
export type { ConfigProviderThemeVars } from './components/wd-config-provider/types'
|
package/locale/index.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: weisheng
|
|
3
|
+
* @Date: 2024-01-25 23:06:48
|
|
4
|
+
* @LastEditTime: 2024-03-30 11:30:55
|
|
5
|
+
* @LastEditors: weisheng
|
|
6
|
+
* @Description:
|
|
7
|
+
* @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/locale/index.ts
|
|
8
|
+
* 记得注释
|
|
9
|
+
*/
|
|
10
|
+
import { reactive, ref } from 'vue'
|
|
11
|
+
import zhCN from './lang/zh-CN'
|
|
12
|
+
import { deepAssign } from '../components/common/util'
|
|
13
|
+
|
|
14
|
+
type Message = Record<string, any>
|
|
15
|
+
type Messages = Record<string, Message>
|
|
16
|
+
|
|
17
|
+
const lang = ref<string>('zh-CN')
|
|
18
|
+
const messages = reactive<Messages>({
|
|
19
|
+
'zh-CN': zhCN,
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
export const Locale = {
|
|
23
|
+
messages(): Message {
|
|
24
|
+
return messages[lang.value]
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
use(newLang: string, newMessage?: Message) {
|
|
28
|
+
lang.value = newLang
|
|
29
|
+
if (newMessage) {
|
|
30
|
+
this.add({ [newLang]: newMessage })
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
add(newMessages: Messages = {}) {
|
|
35
|
+
deepAssign(messages, newMessages)
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const useCurrentLang = () => lang
|
|
40
|
+
|
|
41
|
+
export default Locale
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
calendar: {
|
|
3
|
+
placeholder: 'Select',
|
|
4
|
+
title: 'Select Date',
|
|
5
|
+
day: 'Date',
|
|
6
|
+
week: 'Week',
|
|
7
|
+
month: 'Month',
|
|
8
|
+
confirm: 'OK',
|
|
9
|
+
startTime: 'Start Date',
|
|
10
|
+
endTime: 'End Date',
|
|
11
|
+
to: 'To',
|
|
12
|
+
timeFormat: 'YY-MM-DD HH:mm:ss',
|
|
13
|
+
dateFormat: 'YYYY-MM-DD',
|
|
14
|
+
weekFormat: (year: number, week: number) => `${year} W${week}`,
|
|
15
|
+
startWeek: 'Start Week',
|
|
16
|
+
endWeek: 'End Week',
|
|
17
|
+
startMonth: 'Start Month',
|
|
18
|
+
endMonth: 'End Month',
|
|
19
|
+
monthFormat: 'YYYY-MM',
|
|
20
|
+
},
|
|
21
|
+
calendarView: {
|
|
22
|
+
startTime: 'Start Time',
|
|
23
|
+
endTime: 'End Time',
|
|
24
|
+
weeks: {
|
|
25
|
+
sun: 'Sun',
|
|
26
|
+
mon: 'Mon',
|
|
27
|
+
tue: 'Tue',
|
|
28
|
+
wed: 'Wed',
|
|
29
|
+
thu: 'Thu',
|
|
30
|
+
fri: 'Fri',
|
|
31
|
+
sat: 'Sat',
|
|
32
|
+
},
|
|
33
|
+
rangePrompt: (maxRange: number) => `The number of selected days cannot exceed ${maxRange} days`,
|
|
34
|
+
rangePromptWeek: (maxRange: number) =>
|
|
35
|
+
`The number of weeks selected cannot exceed ${maxRange} weeks`,
|
|
36
|
+
rangePromptMonth: (maxRange: number) => `The selected month cannot exceed ${maxRange} months`,
|
|
37
|
+
monthTitle: 'YYYY-MM',
|
|
38
|
+
yearTitle: 'YYYY',
|
|
39
|
+
month: 'MM',
|
|
40
|
+
hour: (value: number) => `${value}`,
|
|
41
|
+
minute: (value: number) => `${value}`,
|
|
42
|
+
second: (value: number) => `${value}`,
|
|
43
|
+
},
|
|
44
|
+
datetimePicker: {
|
|
45
|
+
start: 'From',
|
|
46
|
+
end: 'To',
|
|
47
|
+
to: 'To',
|
|
48
|
+
placeholder: 'Select',
|
|
49
|
+
confirm: 'OK',
|
|
50
|
+
cancel: 'Cancel',
|
|
51
|
+
},
|
|
52
|
+
collapse: {
|
|
53
|
+
expand: 'Expand',
|
|
54
|
+
retract: 'Fold',
|
|
55
|
+
},
|
|
56
|
+
colPicker: {
|
|
57
|
+
title: 'Select',
|
|
58
|
+
placeholder: 'Select',
|
|
59
|
+
select: 'Select',
|
|
60
|
+
},
|
|
61
|
+
loadmore: {
|
|
62
|
+
loading: 'Loading...',
|
|
63
|
+
finished: 'Finished loading',
|
|
64
|
+
error: 'Failed to load...',
|
|
65
|
+
retry: 'Refresh',
|
|
66
|
+
},
|
|
67
|
+
imgCropper: {
|
|
68
|
+
confirm: 'OK',
|
|
69
|
+
cancel: 'Cancel',
|
|
70
|
+
},
|
|
71
|
+
messageBox: {
|
|
72
|
+
inputPlaceholder: 'Please input information',
|
|
73
|
+
confirm: 'OK',
|
|
74
|
+
cancel: 'Cancel',
|
|
75
|
+
inputNoValidate: 'Please ensure you input correct information',
|
|
76
|
+
},
|
|
77
|
+
numberKeyboard: {
|
|
78
|
+
confirm: 'done',
|
|
79
|
+
},
|
|
80
|
+
pagination: {
|
|
81
|
+
prev: 'Previous',
|
|
82
|
+
next: 'Next',
|
|
83
|
+
page: (value: number) => `Page:${value}`,
|
|
84
|
+
total: (total: number) => `Total:${total}`,
|
|
85
|
+
size: (size: number) => `${size}/page`,
|
|
86
|
+
},
|
|
87
|
+
picker: {
|
|
88
|
+
cancel: 'Cancel',
|
|
89
|
+
done: 'Done',
|
|
90
|
+
placeholder: 'Select',
|
|
91
|
+
},
|
|
92
|
+
search: {
|
|
93
|
+
search: 'Search',
|
|
94
|
+
cancel: 'Cancel',
|
|
95
|
+
},
|
|
96
|
+
steps: {
|
|
97
|
+
wait: 'Not Started',
|
|
98
|
+
finished: 'Expired',
|
|
99
|
+
process: 'In Progress',
|
|
100
|
+
failed: 'Failed',
|
|
101
|
+
},
|
|
102
|
+
tabs: {
|
|
103
|
+
all: 'All',
|
|
104
|
+
},
|
|
105
|
+
upload: {
|
|
106
|
+
error: 'Failed to upload',
|
|
107
|
+
},
|
|
108
|
+
input: {
|
|
109
|
+
placeholder: 'Please input information...',
|
|
110
|
+
},
|
|
111
|
+
selectPicker: {
|
|
112
|
+
title: 'Select',
|
|
113
|
+
placeholder: 'Select',
|
|
114
|
+
select: 'Select',
|
|
115
|
+
confirm: 'Ok',
|
|
116
|
+
filterPlaceholder: 'Search',
|
|
117
|
+
},
|
|
118
|
+
tag: {
|
|
119
|
+
placeholder: 'Enter',
|
|
120
|
+
add: 'Add Tag',
|
|
121
|
+
},
|
|
122
|
+
textarea: {
|
|
123
|
+
placeholder: 'Please input information...',
|
|
124
|
+
},
|
|
125
|
+
tableCol: {
|
|
126
|
+
indexLabel: 'index',
|
|
127
|
+
},
|
|
128
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
calendar: {
|
|
3
|
+
placeholder: 'เลือก',
|
|
4
|
+
title: 'เลือกวันที่',
|
|
5
|
+
day: 'วันที่',
|
|
6
|
+
week: 'สัปดาห์',
|
|
7
|
+
month: 'เดือน',
|
|
8
|
+
confirm: 'ยืนยัน',
|
|
9
|
+
startTime: 'วันที่เริ่มต้น',
|
|
10
|
+
endTime: 'วันที่สิ้นสุด',
|
|
11
|
+
to: 'ถึง',
|
|
12
|
+
timeFormat: 'YY-MM-DD HH:mm:ss',
|
|
13
|
+
dateFormat: 'YYYY-MM-DD',
|
|
14
|
+
weekFormat: (year: number, week: number) => `${year} W${week}`,
|
|
15
|
+
startWeek: 'เริ่มต้นสัปดาห์',
|
|
16
|
+
endWeek: 'สิ้นสุดสัปดาห์',
|
|
17
|
+
startMonth: 'เดือนเริ่มต้น',
|
|
18
|
+
endMonth: 'สิ้นเดือน',
|
|
19
|
+
monthFormat: 'YYYY-MM',
|
|
20
|
+
},
|
|
21
|
+
calendarView: {
|
|
22
|
+
startTime: 'เวลาเริ่มต้น',
|
|
23
|
+
endTime: 'เวลาสิ้นสุด',
|
|
24
|
+
weeks: {
|
|
25
|
+
sun: 'อา',
|
|
26
|
+
mon: 'จ',
|
|
27
|
+
tue: 'อ',
|
|
28
|
+
wed: 'พ',
|
|
29
|
+
thu: 'พฤ',
|
|
30
|
+
fri: 'ศ',
|
|
31
|
+
sat: 'ส',
|
|
32
|
+
},
|
|
33
|
+
rangePrompt: (maxRange: number) => `จำนวนวันที่เลือกต้องไม่เกิน ${maxRange} วัน`,
|
|
34
|
+
rangePromptWeek: (maxRange: number) => `จำนวนสัปดาห์ที่เลือกต้องไม่เกิน ${maxRange} สัปดาห์`,
|
|
35
|
+
rangePromptMonth: (maxRange: number) => `เดือนที่เลือกต้องไม่เกิน ${maxRange} เดือน`,
|
|
36
|
+
monthTitle: 'YYYY-MM',
|
|
37
|
+
yearTitle: 'YYYY',
|
|
38
|
+
month: 'MM',
|
|
39
|
+
hour: (value: number) => `${value}`,
|
|
40
|
+
minute: (value: number) => `${value}`,
|
|
41
|
+
second: (value: number) => `${value}`,
|
|
42
|
+
},
|
|
43
|
+
collapse: {
|
|
44
|
+
expand: 'ดูเพิ่มเติม',
|
|
45
|
+
retract: 'ย่อ',
|
|
46
|
+
},
|
|
47
|
+
colPicker: {
|
|
48
|
+
title: 'เลือก',
|
|
49
|
+
placeholder: 'เลือก',
|
|
50
|
+
select: 'เลือก',
|
|
51
|
+
},
|
|
52
|
+
datetimePicker: {
|
|
53
|
+
start: 'จาก',
|
|
54
|
+
end: 'ถึง',
|
|
55
|
+
to: 'ถึง',
|
|
56
|
+
placeholder: 'เลือก',
|
|
57
|
+
confirm: 'ยืนยัน',
|
|
58
|
+
cancel: 'ยกเลิก',
|
|
59
|
+
},
|
|
60
|
+
loadmore: {
|
|
61
|
+
loading: 'กำลังโหลด.. รอสักครู่..',
|
|
62
|
+
finished: 'โหลดสำเร็จ',
|
|
63
|
+
error: 'โหลดไม่สำเร็จ',
|
|
64
|
+
retry: 'รีเฟรช',
|
|
65
|
+
},
|
|
66
|
+
imgCropper: {
|
|
67
|
+
confirm: 'ยืนยัน',
|
|
68
|
+
cancel: 'ยกเลิก',
|
|
69
|
+
},
|
|
70
|
+
messageBox: {
|
|
71
|
+
inputPlaceholder: 'กรุณาใส่ข้อมูล',
|
|
72
|
+
confirm: 'ยืนยัน',
|
|
73
|
+
cancel: 'ยกเลิก',
|
|
74
|
+
inputNoValidate: 'กรุณาตรวจสอบว่าคุณได้ใส่ข้อมูลที่ถูกต้อง',
|
|
75
|
+
},
|
|
76
|
+
numberKeyboard: {
|
|
77
|
+
confir: 'ตกลง',
|
|
78
|
+
},
|
|
79
|
+
pagination: {
|
|
80
|
+
prev: 'ก่อนหน้า',
|
|
81
|
+
next: 'หน้าต่อไป',
|
|
82
|
+
page: (value: number) => `หน้า: ${value}`,
|
|
83
|
+
total: (total: number) => `ทั้งหมด: ${total} หน้า`,
|
|
84
|
+
size: (size: number) => `${size}/ ต่อหน้า`,
|
|
85
|
+
},
|
|
86
|
+
picker: {
|
|
87
|
+
cancel: 'ยกเลิก',
|
|
88
|
+
done: 'ตกลง',
|
|
89
|
+
placeholder: 'เลือก',
|
|
90
|
+
},
|
|
91
|
+
search: {
|
|
92
|
+
search: 'ค้นหา',
|
|
93
|
+
cancel: 'ยกเลิก',
|
|
94
|
+
},
|
|
95
|
+
steps: {
|
|
96
|
+
wait: 'ยังไม่เริ่ม',
|
|
97
|
+
finished: 'เสร็จสิ้น',
|
|
98
|
+
process: 'กำลังดำเนินการ',
|
|
99
|
+
failed: 'ไม่ผ่าน',
|
|
100
|
+
},
|
|
101
|
+
tabs: {
|
|
102
|
+
all: 'ทั้งหมด',
|
|
103
|
+
},
|
|
104
|
+
upload: {
|
|
105
|
+
error: 'อัปโหลดไม่สำเร็จ',
|
|
106
|
+
},
|
|
107
|
+
input: {
|
|
108
|
+
placeholder: 'กรุณาใส่ข้อมูล...',
|
|
109
|
+
},
|
|
110
|
+
selectPicker: {
|
|
111
|
+
title: 'เลือก',
|
|
112
|
+
placeholder: 'เลือก',
|
|
113
|
+
select: 'เลือก',
|
|
114
|
+
confirm: 'ยืนยัน',
|
|
115
|
+
filterPlaceholder: 'ค้นหา',
|
|
116
|
+
},
|
|
117
|
+
tag: {
|
|
118
|
+
placeholder: 'กรุณาใส่',
|
|
119
|
+
add: 'ป้ายใหม่',
|
|
120
|
+
},
|
|
121
|
+
textarea: {
|
|
122
|
+
placeholder: 'กรุณาใส่ข้อมูล...',
|
|
123
|
+
},
|
|
124
|
+
tableCol: {
|
|
125
|
+
indexLabel: 'หมายเลขซีเรียล',
|
|
126
|
+
},
|
|
127
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
calendar: {
|
|
3
|
+
placeholder: 'Vui lòng chọn',
|
|
4
|
+
title: 'Chọn ngày',
|
|
5
|
+
day: 'Ngày',
|
|
6
|
+
week: 'Tuần',
|
|
7
|
+
month: 'Tháng',
|
|
8
|
+
confirm: 'Xác nhận',
|
|
9
|
+
startTime: 'Thời gian bắt đầu',
|
|
10
|
+
endTime: 'Thời gian kết thúc',
|
|
11
|
+
to: 'đến',
|
|
12
|
+
timeFormat: 'YY-MM-DD HH:mm:ss',
|
|
13
|
+
dateFormat: 'YYYY-MM-DD',
|
|
14
|
+
weekFormat: (year: number, week: number) => `Tuần thứ ${week} năm ${year}`,
|
|
15
|
+
startWeek: 'Tuần bắt đầu',
|
|
16
|
+
endWeek: 'Tuần kết thúc',
|
|
17
|
+
startMonth: 'Tháng bắt đầu',
|
|
18
|
+
endMonth: 'Tháng kết thúc',
|
|
19
|
+
monthFormat: 'Tháng YYYY MM',
|
|
20
|
+
},
|
|
21
|
+
calendarView: {
|
|
22
|
+
startTime: 'Bắt đầu',
|
|
23
|
+
endTime: 'Kết thúc',
|
|
24
|
+
weeks: { sun: 'CN', mon: 'T2', tue: 'T3', wed: 'T4', thu: 'T5', fri: 'T6', sat: 'T7' },
|
|
25
|
+
rangePrompt: (maxRange: number) => `Không thể chọn quá ${maxRange} ngày`,
|
|
26
|
+
rangePromptWeek: (maxRange: number) => `Không thể chọn quá ${maxRange} tuần`,
|
|
27
|
+
rangePromptMonth: (maxRange: number) => `Không thể chọn quá ${maxRange} tháng`,
|
|
28
|
+
monthTitle: 'Tháng YYYY M',
|
|
29
|
+
yearTitle: 'Năm YYYY',
|
|
30
|
+
month: 'MM',
|
|
31
|
+
hour: (value: number) => `${value} giờ`,
|
|
32
|
+
minute: (value: number) => `${value} phút`,
|
|
33
|
+
second: (value: number) => `${value} giây`,
|
|
34
|
+
},
|
|
35
|
+
collapse: { expand: 'Mở rộng', retract: 'Thu gọn' },
|
|
36
|
+
colPicker: { title: 'Vui lòng chọn', placeholder: 'Vui lòng chọn', select: 'Vui lòng chọn' },
|
|
37
|
+
datetimePicker: {
|
|
38
|
+
start: 'Thời gian bắt đầu',
|
|
39
|
+
end: 'Thời gian kết thúc',
|
|
40
|
+
to: 'đến',
|
|
41
|
+
placeholder: 'Vui lòng chọn',
|
|
42
|
+
confirm: 'Hoàn thành',
|
|
43
|
+
cancel: 'Hủy bỏ',
|
|
44
|
+
},
|
|
45
|
+
loadmore: {
|
|
46
|
+
loading: 'Đang tải...',
|
|
47
|
+
finished: 'Đã tải xong',
|
|
48
|
+
error: 'Tải thất bại',
|
|
49
|
+
retry: 'Nhấp để thử lại',
|
|
50
|
+
},
|
|
51
|
+
messageBox: {
|
|
52
|
+
inputPlaceholder: 'Vui lòng nhập',
|
|
53
|
+
confirm: 'Xác nhận',
|
|
54
|
+
cancel: 'Hủy bỏ',
|
|
55
|
+
inputNoValidate: 'Dữ liệu không hợp lệ',
|
|
56
|
+
},
|
|
57
|
+
numberKeyboard: { confirm: 'Hoàn thành' },
|
|
58
|
+
pagination: {
|
|
59
|
+
prev: 'Trang trước',
|
|
60
|
+
next: 'Trang sau',
|
|
61
|
+
page: (value: number) => `Trang hiện tại: ${value}`,
|
|
62
|
+
total: (total: number) => `Tổng số dữ liệu: ${total}`,
|
|
63
|
+
size: (size: number) => `Kích thước trang: ${size}`,
|
|
64
|
+
},
|
|
65
|
+
picker: { cancel: 'Hủy bỏ', done: 'Hoàn thành', placeholder: 'Vui lòng chọn' },
|
|
66
|
+
imgCropper: { confirm: 'Hoàn thành', cancel: 'Hủy bỏ' },
|
|
67
|
+
search: { search: 'Tìm kiếm', cancel: 'Hủy bỏ' },
|
|
68
|
+
steps: {
|
|
69
|
+
wait: 'Chưa bắt đầu',
|
|
70
|
+
finished: 'Đã hoàn thành',
|
|
71
|
+
process: 'Đang tiến hành',
|
|
72
|
+
failed: 'Thất bại',
|
|
73
|
+
},
|
|
74
|
+
tabs: { all: 'Tất cả' },
|
|
75
|
+
upload: { error: 'Tải lên thất bại' },
|
|
76
|
+
input: { placeholder: 'Vui lòng nhập...' },
|
|
77
|
+
selectPicker: {
|
|
78
|
+
title: 'Vui lòng chọn',
|
|
79
|
+
placeholder: 'Vui lòng chọn',
|
|
80
|
+
select: 'Xác nhận',
|
|
81
|
+
confirm: 'Xác nhận',
|
|
82
|
+
filterPlaceholder: 'Tìm kiếm',
|
|
83
|
+
},
|
|
84
|
+
tag: { placeholder: 'Vui lòng nhập', add: 'thêm' },
|
|
85
|
+
textarea: { placeholder: 'Vui lòng nhập...' },
|
|
86
|
+
tableCol: {
|
|
87
|
+
indexLabel: 'Số sê-ri',
|
|
88
|
+
},
|
|
89
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
calendar: {
|
|
3
|
+
placeholder: '请选择',
|
|
4
|
+
title: '选择日期',
|
|
5
|
+
day: '日',
|
|
6
|
+
week: '周',
|
|
7
|
+
month: '月',
|
|
8
|
+
confirm: '确定',
|
|
9
|
+
startTime: '开始时间',
|
|
10
|
+
endTime: '结束时间',
|
|
11
|
+
to: '至',
|
|
12
|
+
timeFormat: 'YY年MM月DD日 HH:mm:ss',
|
|
13
|
+
dateFormat: 'YYYY年MM月DD日',
|
|
14
|
+
weekFormat: (year: number, week: number) => `${year} 第 ${week} 周`,
|
|
15
|
+
startWeek: '开始周',
|
|
16
|
+
endWeek: '结束周',
|
|
17
|
+
startMonth: '开始月',
|
|
18
|
+
endMonth: '结束月',
|
|
19
|
+
monthFormat: 'YYYY年MM月',
|
|
20
|
+
},
|
|
21
|
+
calendarView: {
|
|
22
|
+
startTime: '开始',
|
|
23
|
+
endTime: '结束',
|
|
24
|
+
weeks: {
|
|
25
|
+
sun: '日',
|
|
26
|
+
mon: '一',
|
|
27
|
+
tue: '二',
|
|
28
|
+
wed: '三',
|
|
29
|
+
thu: '四',
|
|
30
|
+
fri: '五',
|
|
31
|
+
sat: '六',
|
|
32
|
+
},
|
|
33
|
+
rangePrompt: (maxRange: number) => `选择天数不能超过${maxRange}天`,
|
|
34
|
+
rangePromptWeek: (maxRange: number) => `选择周数不能超过${maxRange}周`,
|
|
35
|
+
rangePromptMonth: (maxRange: number) => `选择月份不能超过${maxRange}个月`,
|
|
36
|
+
monthTitle: 'YYYY年M月',
|
|
37
|
+
yearTitle: 'YYYY年',
|
|
38
|
+
month: 'M月',
|
|
39
|
+
hour: (value: number) => `${value}时`,
|
|
40
|
+
minute: (value: number) => `${value}分`,
|
|
41
|
+
second: (value: number) => `${value}秒`,
|
|
42
|
+
},
|
|
43
|
+
collapse: {
|
|
44
|
+
expand: '展开',
|
|
45
|
+
retract: '收起',
|
|
46
|
+
},
|
|
47
|
+
colPicker: {
|
|
48
|
+
title: '请选择',
|
|
49
|
+
placeholder: '请选择',
|
|
50
|
+
select: '请选择',
|
|
51
|
+
},
|
|
52
|
+
datetimePicker: {
|
|
53
|
+
start: '开始时间',
|
|
54
|
+
end: '结束时间',
|
|
55
|
+
to: '至',
|
|
56
|
+
placeholder: '请选择',
|
|
57
|
+
confirm: '完成',
|
|
58
|
+
cancel: '取消',
|
|
59
|
+
},
|
|
60
|
+
loadmore: {
|
|
61
|
+
loading: '正在努力加载中...',
|
|
62
|
+
finished: '已加载完毕',
|
|
63
|
+
error: '加载失败',
|
|
64
|
+
retry: '点击重试',
|
|
65
|
+
},
|
|
66
|
+
messageBox: {
|
|
67
|
+
inputPlaceholder: '请输入',
|
|
68
|
+
confirm: '确定',
|
|
69
|
+
cancel: '取消',
|
|
70
|
+
inputNoValidate: '输入的数据不合法',
|
|
71
|
+
},
|
|
72
|
+
numberKeyboard: {
|
|
73
|
+
confirm: '完成',
|
|
74
|
+
},
|
|
75
|
+
pagination: {
|
|
76
|
+
prev: '上一页',
|
|
77
|
+
next: '下一页',
|
|
78
|
+
page: (value: number) => `当前页:${value}`,
|
|
79
|
+
total: (total: number) => `当前数据:${total}条`,
|
|
80
|
+
size: (size: number) => `分页大小:${size}`,
|
|
81
|
+
},
|
|
82
|
+
picker: {
|
|
83
|
+
cancel: '取消',
|
|
84
|
+
done: '完成',
|
|
85
|
+
placeholder: '请选择',
|
|
86
|
+
},
|
|
87
|
+
imgCropper: {
|
|
88
|
+
confirm: '完成',
|
|
89
|
+
cancel: '取消',
|
|
90
|
+
},
|
|
91
|
+
search: {
|
|
92
|
+
search: '搜索',
|
|
93
|
+
cancel: '取消',
|
|
94
|
+
},
|
|
95
|
+
steps: {
|
|
96
|
+
wait: '未开始',
|
|
97
|
+
finished: '已完成',
|
|
98
|
+
process: '进行中',
|
|
99
|
+
failed: '失败',
|
|
100
|
+
},
|
|
101
|
+
tabs: {
|
|
102
|
+
all: '全部',
|
|
103
|
+
},
|
|
104
|
+
upload: {
|
|
105
|
+
error: '上传失败',
|
|
106
|
+
},
|
|
107
|
+
input: {
|
|
108
|
+
placeholder: '请输入...',
|
|
109
|
+
},
|
|
110
|
+
selectPicker: {
|
|
111
|
+
title: '请选择',
|
|
112
|
+
placeholder: '请选择',
|
|
113
|
+
select: '请选择',
|
|
114
|
+
confirm: '确认',
|
|
115
|
+
filterPlaceholder: '搜索',
|
|
116
|
+
},
|
|
117
|
+
tag: {
|
|
118
|
+
placeholder: '请输入',
|
|
119
|
+
add: '新增标签',
|
|
120
|
+
},
|
|
121
|
+
textarea: {
|
|
122
|
+
placeholder: '请输入...',
|
|
123
|
+
},
|
|
124
|
+
tableCol: {
|
|
125
|
+
indexLabel: '序号',
|
|
126
|
+
},
|
|
127
|
+
}
|