tang-ui-x 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1003 -0
- package/components/TActionSheet/index.uvue +15 -2
- package/components/TCheckboxGroup/index.uvue +30 -11
- package/components/TCheckboxGroup/type.uts +10 -0
- package/components/TCollapse/index.uvue +1 -1
- package/components/TCollapse/type.uts +3 -1
- package/components/TCollapseItem/index.uvue +22 -26
- package/components/TDialog/index.uvue +19 -4
- package/components/TEmpty/index.uvue +28 -14
- package/components/TForm/index.uvue +394 -392
- package/components/TForm/type.uts +90 -80
- package/components/TInput/index.uvue +24 -5
- package/components/TInput/type.uts +10 -0
- package/components/TPicker/index.uvue +26 -6
- package/components/TRadioGroup/index.uvue +32 -12
- package/components/TRadioGroup/type.uts +7 -0
- package/components/TSearchBar/index.uvue +19 -4
- package/composables/i18n/error.uts +82 -0
- package/composables/i18n/index.uts +188 -0
- package/composables/i18n/manager-demo.uts +104 -0
- package/composables/i18n/manager.test.uts +182 -0
- package/composables/i18n/manager.uts +531 -0
- package/composables/i18n/register-demo.uts +125 -0
- package/composables/i18n/task22-verification.uts +198 -0
- package/composables/i18n/task23-verification.uts +343 -0
- package/composables/i18n/task8-demo.uts +93 -0
- package/composables/i18n/task8-verification.uts +98 -0
- package/composables/i18n/test-task23.uts +9 -0
- package/composables/i18n/types.uts +46 -0
- package/composables/i18n/useI18n-verification.uts +105 -0
- package/composables/i18n/validation-demo.uts +45 -0
- package/composables/i18n/validation-test.uts +106 -0
- package/composables/useI18n.uts +77 -0
- package/index.uts +23 -0
- package/locales/cross-platform-verification.uts +510 -0
- package/locales/en-US/actionSheet.json +3 -0
- package/locales/en-US/common.json +17 -0
- package/locales/en-US/dialog.json +5 -0
- package/locales/en-US/empty.json +6 -0
- package/locales/en-US/errorState.json +5 -0
- package/locales/en-US/examplePages.json +1236 -0
- package/locales/en-US/examples.json +218 -0
- package/locales/en-US/form.json +18 -0
- package/locales/en-US/input.json +3 -0
- package/locales/en-US/list.json +5 -0
- package/locales/en-US/loading.json +3 -0
- package/locales/en-US/navBar.json +4 -0
- package/locales/en-US/noticeBar.json +3 -0
- package/locales/en-US/picker.json +5 -0
- package/locales/en-US/searchBar.json +4 -0
- package/locales/en-US/textarea.json +3 -0
- package/locales/en-US/toast.json +6 -0
- package/locales/index.uts +79 -0
- package/locales/init-verification.uts +101 -0
- package/locales/loader.uts +251 -0
- package/locales/run-verification.uts +16 -0
- package/locales/zh-CN/actionSheet.json +3 -0
- package/locales/zh-CN/common.json +17 -0
- package/locales/zh-CN/dialog.json +5 -0
- package/locales/zh-CN/empty.json +6 -0
- package/locales/zh-CN/errorState.json +5 -0
- package/locales/zh-CN/examplePages.json +1236 -0
- package/locales/zh-CN/examples.json +218 -0
- package/locales/zh-CN/form.json +18 -0
- package/locales/zh-CN/input.json +3 -0
- package/locales/zh-CN/list.json +5 -0
- package/locales/zh-CN/loading.json +3 -0
- package/locales/zh-CN/navBar.json +4 -0
- package/locales/zh-CN/noticeBar.json +3 -0
- package/locales/zh-CN/picker.json +5 -0
- package/locales/zh-CN/searchBar.json +4 -0
- package/locales/zh-CN/textarea.json +3 -0
- package/locales/zh-CN/toast.json +6 -0
- package/locales/zh-TW/actionSheet.json +3 -0
- package/locales/zh-TW/common.json +15 -0
- package/locales/zh-TW/dialog.json +5 -0
- package/locales/zh-TW/empty.json +6 -0
- package/locales/zh-TW/errorState.json +5 -0
- package/locales/zh-TW/examplePages.json +705 -0
- package/locales/zh-TW/examples.json +218 -0
- package/locales/zh-TW/form.json +18 -0
- package/locales/zh-TW/input.json +3 -0
- package/locales/zh-TW/list.json +5 -0
- package/locales/zh-TW/loading.json +3 -0
- package/locales/zh-TW/navBar.json +4 -0
- package/locales/zh-TW/noticeBar.json +3 -0
- package/locales/zh-TW/picker.json +5 -0
- package/locales/zh-TW/searchBar.json +4 -0
- package/locales/zh-TW/textarea.json +3 -0
- package/locales/zh-TW/toast.json +6 -0
- package/package.json +3 -2
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
{
|
|
2
|
+
"groups": {
|
|
3
|
+
"basic": "基礎組件",
|
|
4
|
+
"layout": "佈局組件",
|
|
5
|
+
"form": "表單組件",
|
|
6
|
+
"display": "數據展示",
|
|
7
|
+
"feedback": "反饋組件",
|
|
8
|
+
"navigation": "導航組件",
|
|
9
|
+
"tools": "測試工具"
|
|
10
|
+
},
|
|
11
|
+
"components": {
|
|
12
|
+
"TButton": {
|
|
13
|
+
"name": "按鈕",
|
|
14
|
+
"enName": "Button",
|
|
15
|
+
"description": "按鈕用於觸發操作"
|
|
16
|
+
},
|
|
17
|
+
"TIcon": {
|
|
18
|
+
"name": "圖標",
|
|
19
|
+
"enName": "Icon",
|
|
20
|
+
"description": "語義化圖標"
|
|
21
|
+
},
|
|
22
|
+
"TText": {
|
|
23
|
+
"name": "文本",
|
|
24
|
+
"enName": "Text",
|
|
25
|
+
"description": "文本展示組件"
|
|
26
|
+
},
|
|
27
|
+
"TImage": {
|
|
28
|
+
"name": "圖片",
|
|
29
|
+
"enName": "Image",
|
|
30
|
+
"description": "增強的圖片組件"
|
|
31
|
+
},
|
|
32
|
+
"TDivider": {
|
|
33
|
+
"name": "分割線",
|
|
34
|
+
"enName": "Divider",
|
|
35
|
+
"description": "內容分割線"
|
|
36
|
+
},
|
|
37
|
+
"TCard": {
|
|
38
|
+
"name": "卡片",
|
|
39
|
+
"enName": "Card",
|
|
40
|
+
"description": "卡片容器"
|
|
41
|
+
},
|
|
42
|
+
"TList": {
|
|
43
|
+
"name": "列表",
|
|
44
|
+
"enName": "List",
|
|
45
|
+
"description": "列表展示"
|
|
46
|
+
},
|
|
47
|
+
"TCell": {
|
|
48
|
+
"name": "單元格",
|
|
49
|
+
"enName": "Cell",
|
|
50
|
+
"description": "單元格組件"
|
|
51
|
+
},
|
|
52
|
+
"TGrid": {
|
|
53
|
+
"name": "宮格",
|
|
54
|
+
"enName": "Grid",
|
|
55
|
+
"description": "宮格佈局"
|
|
56
|
+
},
|
|
57
|
+
"TRow/TCol": {
|
|
58
|
+
"name": "柵格",
|
|
59
|
+
"enName": "Layout",
|
|
60
|
+
"description": "24柵格佈局"
|
|
61
|
+
},
|
|
62
|
+
"TInput": {
|
|
63
|
+
"name": "輸入框",
|
|
64
|
+
"enName": "Input",
|
|
65
|
+
"description": "文本輸入"
|
|
66
|
+
},
|
|
67
|
+
"TTextarea": {
|
|
68
|
+
"name": "多行輸入",
|
|
69
|
+
"enName": "Textarea",
|
|
70
|
+
"description": "多行文本輸入"
|
|
71
|
+
},
|
|
72
|
+
"TSearchBar": {
|
|
73
|
+
"name": "搜索框",
|
|
74
|
+
"enName": "SearchBar",
|
|
75
|
+
"description": "搜索輸入框"
|
|
76
|
+
},
|
|
77
|
+
"TNumberInput": {
|
|
78
|
+
"name": "數字輸入",
|
|
79
|
+
"enName": "NumberInput",
|
|
80
|
+
"description": "數字輸入框"
|
|
81
|
+
},
|
|
82
|
+
"TSwitch": {
|
|
83
|
+
"name": "開關",
|
|
84
|
+
"enName": "Switch",
|
|
85
|
+
"description": "開關選擇器"
|
|
86
|
+
},
|
|
87
|
+
"TCheckbox": {
|
|
88
|
+
"name": "複選框",
|
|
89
|
+
"enName": "Checkbox",
|
|
90
|
+
"description": "多選框"
|
|
91
|
+
},
|
|
92
|
+
"TCheckboxGroup": {
|
|
93
|
+
"name": "複選組",
|
|
94
|
+
"enName": "CheckboxGroup",
|
|
95
|
+
"description": "複選框組"
|
|
96
|
+
},
|
|
97
|
+
"TRadioButton": {
|
|
98
|
+
"name": "單選",
|
|
99
|
+
"enName": "Radio",
|
|
100
|
+
"description": "單選按鈕"
|
|
101
|
+
},
|
|
102
|
+
"TRadioGroup": {
|
|
103
|
+
"name": "單選組",
|
|
104
|
+
"enName": "RadioGroup",
|
|
105
|
+
"description": "單選框組"
|
|
106
|
+
},
|
|
107
|
+
"TSelect": {
|
|
108
|
+
"name": "選擇器",
|
|
109
|
+
"enName": "Select",
|
|
110
|
+
"description": "下拉選擇"
|
|
111
|
+
},
|
|
112
|
+
"TPicker": {
|
|
113
|
+
"name": "通用選擇器",
|
|
114
|
+
"enName": "Picker",
|
|
115
|
+
"description": "多列數據選擇"
|
|
116
|
+
},
|
|
117
|
+
"TSlider": {
|
|
118
|
+
"name": "滑塊",
|
|
119
|
+
"enName": "Slider",
|
|
120
|
+
"description": "滑動選擇器"
|
|
121
|
+
},
|
|
122
|
+
"TRate": {
|
|
123
|
+
"name": "評分",
|
|
124
|
+
"enName": "Rate",
|
|
125
|
+
"description": "評分組件"
|
|
126
|
+
},
|
|
127
|
+
"TForm": {
|
|
128
|
+
"name": "表單",
|
|
129
|
+
"enName": "Form",
|
|
130
|
+
"description": "表單組件"
|
|
131
|
+
},
|
|
132
|
+
"Tags": {
|
|
133
|
+
"name": "標籤",
|
|
134
|
+
"enName": "Tags",
|
|
135
|
+
"description": "標記分類"
|
|
136
|
+
},
|
|
137
|
+
"TBadge": {
|
|
138
|
+
"name": "徽標",
|
|
139
|
+
"enName": "Badge",
|
|
140
|
+
"description": "數字角標"
|
|
141
|
+
},
|
|
142
|
+
"TAvatar": {
|
|
143
|
+
"name": "頭像",
|
|
144
|
+
"enName": "Avatar",
|
|
145
|
+
"description": "用戶頭像"
|
|
146
|
+
},
|
|
147
|
+
"TProgress": {
|
|
148
|
+
"name": "進度條",
|
|
149
|
+
"enName": "Progress",
|
|
150
|
+
"description": "進度指示器"
|
|
151
|
+
},
|
|
152
|
+
"TNoticeBar": {
|
|
153
|
+
"name": "通知欄",
|
|
154
|
+
"enName": "NoticeBar",
|
|
155
|
+
"description": "滾動通知"
|
|
156
|
+
},
|
|
157
|
+
"TCollapse": {
|
|
158
|
+
"name": "折疊面板",
|
|
159
|
+
"enName": "Collapse",
|
|
160
|
+
"description": "可折疊內容區域"
|
|
161
|
+
},
|
|
162
|
+
"TSwiper": {
|
|
163
|
+
"name": "輪播圖",
|
|
164
|
+
"enName": "Swiper",
|
|
165
|
+
"description": "圖片/內容輪播"
|
|
166
|
+
},
|
|
167
|
+
"TEmpty": {
|
|
168
|
+
"name": "空狀態",
|
|
169
|
+
"enName": "Empty",
|
|
170
|
+
"description": "空數據展示"
|
|
171
|
+
},
|
|
172
|
+
"TErrorState": {
|
|
173
|
+
"name": "錯誤狀態",
|
|
174
|
+
"enName": "Error",
|
|
175
|
+
"description": "錯誤提示"
|
|
176
|
+
},
|
|
177
|
+
"TLoading": {
|
|
178
|
+
"name": "加載",
|
|
179
|
+
"enName": "Loading",
|
|
180
|
+
"description": "加載狀態"
|
|
181
|
+
},
|
|
182
|
+
"TToast": {
|
|
183
|
+
"name": "輕提示",
|
|
184
|
+
"enName": "Toast",
|
|
185
|
+
"description": "輕量級提示"
|
|
186
|
+
},
|
|
187
|
+
"TDialog": {
|
|
188
|
+
"name": "對話框",
|
|
189
|
+
"enName": "Dialog",
|
|
190
|
+
"description": "模態對話框"
|
|
191
|
+
},
|
|
192
|
+
"TPopup": {
|
|
193
|
+
"name": "彈出層",
|
|
194
|
+
"enName": "Popup",
|
|
195
|
+
"description": "彈出層容器"
|
|
196
|
+
},
|
|
197
|
+
"TActionSheet": {
|
|
198
|
+
"name": "動作面板",
|
|
199
|
+
"enName": "ActionSheet",
|
|
200
|
+
"description": "底部動作面板"
|
|
201
|
+
},
|
|
202
|
+
"Tabs": {
|
|
203
|
+
"name": "標籤頁",
|
|
204
|
+
"enName": "Tabs",
|
|
205
|
+
"description": "選項卡切換"
|
|
206
|
+
},
|
|
207
|
+
"TNavBar": {
|
|
208
|
+
"name": "導航欄",
|
|
209
|
+
"enName": "NavBar",
|
|
210
|
+
"description": "頂部導航欄"
|
|
211
|
+
},
|
|
212
|
+
"I18nDemo": {
|
|
213
|
+
"name": "多語言測試",
|
|
214
|
+
"enName": "I18n",
|
|
215
|
+
"description": "國際化多語言功能演示"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"inputPlaceholder": "請輸入{label}",
|
|
3
|
+
"selectPlaceholder": "請選擇",
|
|
4
|
+
"datePlaceholder": "請選擇日期",
|
|
5
|
+
"timePlaceholder": "請選擇時間",
|
|
6
|
+
"required": "此項為必填項",
|
|
7
|
+
"invalid": "格式不正確",
|
|
8
|
+
"minLength": "長度不能少於{min}個字符",
|
|
9
|
+
"maxLength": "長度不能超過{max}個字符",
|
|
10
|
+
"email": "請輸入有效的郵箱地址",
|
|
11
|
+
"phone": "請輸入有效的手機號碼",
|
|
12
|
+
"url": "請輸入有效的網址",
|
|
13
|
+
"requiredError": "請輸入{label}",
|
|
14
|
+
"submitButton": "提交",
|
|
15
|
+
"resetButton": "重設",
|
|
16
|
+
"validationFailed": "表單驗證失敗",
|
|
17
|
+
"submitFailed": "表單提交失敗"
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tang-ui-x",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "UniApp X UI 组件库 - 基于 uni-app x 的移动端 UI 组件库",
|
|
5
5
|
"main": "index.uts",
|
|
6
6
|
"module": "index.uts",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"utils",
|
|
12
12
|
"types",
|
|
13
13
|
"style",
|
|
14
|
+
"locales",
|
|
14
15
|
"uni.scss",
|
|
15
16
|
"index.uts",
|
|
16
17
|
"README.md",
|
|
@@ -46,4 +47,4 @@
|
|
|
46
47
|
"build": "echo 'Build completed'",
|
|
47
48
|
"version": "pnpm run build"
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
|
+
}
|