tang-ui-x 1.1.0 → 1.1.2

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.
Files changed (89) hide show
  1. package/README.md +1003 -0
  2. package/components/TActionSheet/index.uvue +15 -2
  3. package/components/TCollapse/index.uvue +1 -1
  4. package/components/TCollapse/type.uts +3 -1
  5. package/components/TCollapseItem/index.uvue +22 -26
  6. package/components/TDialog/index.uvue +19 -4
  7. package/components/TEmpty/index.uvue +28 -14
  8. package/components/TForm/index.uvue +60 -26
  9. package/components/TForm/type.uts +4 -0
  10. package/components/TInput/index.uvue +24 -5
  11. package/components/TInput/type.uts +10 -0
  12. package/components/TPicker/index.uvue +26 -6
  13. package/components/TRadioButton/README.md +117 -0
  14. package/components/TRadioButton/index.uvue +69 -64
  15. package/components/TSearchBar/index.uvue +19 -4
  16. package/composables/i18n/error.uts +82 -0
  17. package/composables/i18n/index.uts +188 -0
  18. package/composables/i18n/manager-demo.uts +104 -0
  19. package/composables/i18n/manager.test.uts +182 -0
  20. package/composables/i18n/manager.uts +336 -0
  21. package/composables/i18n/register-demo.uts +125 -0
  22. package/composables/i18n/task22-verification.uts +198 -0
  23. package/composables/i18n/task23-verification.uts +343 -0
  24. package/composables/i18n/task8-demo.uts +93 -0
  25. package/composables/i18n/task8-verification.uts +98 -0
  26. package/composables/i18n/test-task23.uts +9 -0
  27. package/composables/i18n/types.uts +46 -0
  28. package/composables/i18n/useI18n-verification.uts +105 -0
  29. package/composables/i18n/validation-demo.uts +45 -0
  30. package/composables/i18n/validation-test.uts +106 -0
  31. package/composables/useI18n.uts +77 -0
  32. package/index.uts +23 -0
  33. package/locales/cross-platform-verification.uts +510 -0
  34. package/locales/en-US/actionSheet.json +3 -0
  35. package/locales/en-US/common.json +10 -0
  36. package/locales/en-US/dialog.json +5 -0
  37. package/locales/en-US/empty.json +5 -0
  38. package/locales/en-US/errorState.json +5 -0
  39. package/locales/en-US/examplePages.json +1236 -0
  40. package/locales/en-US/examples.json +218 -0
  41. package/locales/en-US/form.json +11 -0
  42. package/locales/en-US/input.json +3 -0
  43. package/locales/en-US/list.json +5 -0
  44. package/locales/en-US/loading.json +3 -0
  45. package/locales/en-US/navBar.json +4 -0
  46. package/locales/en-US/noticeBar.json +3 -0
  47. package/locales/en-US/picker.json +5 -0
  48. package/locales/en-US/searchBar.json +4 -0
  49. package/locales/en-US/textarea.json +3 -0
  50. package/locales/en-US/toast.json +6 -0
  51. package/locales/index.uts +79 -0
  52. package/locales/init-verification.uts +101 -0
  53. package/locales/loader.uts +251 -0
  54. package/locales/run-verification.uts +16 -0
  55. package/locales/zh-CN/actionSheet.json +3 -0
  56. package/locales/zh-CN/common.json +10 -0
  57. package/locales/zh-CN/dialog.json +5 -0
  58. package/locales/zh-CN/empty.json +5 -0
  59. package/locales/zh-CN/errorState.json +5 -0
  60. package/locales/zh-CN/examplePages.json +1236 -0
  61. package/locales/zh-CN/examples.json +218 -0
  62. package/locales/zh-CN/form.json +11 -0
  63. package/locales/zh-CN/input.json +3 -0
  64. package/locales/zh-CN/list.json +5 -0
  65. package/locales/zh-CN/loading.json +3 -0
  66. package/locales/zh-CN/navBar.json +4 -0
  67. package/locales/zh-CN/noticeBar.json +3 -0
  68. package/locales/zh-CN/picker.json +5 -0
  69. package/locales/zh-CN/searchBar.json +4 -0
  70. package/locales/zh-CN/textarea.json +3 -0
  71. package/locales/zh-CN/toast.json +6 -0
  72. package/locales/zh-TW/actionSheet.json +3 -0
  73. package/locales/zh-TW/common.json +8 -0
  74. package/locales/zh-TW/dialog.json +5 -0
  75. package/locales/zh-TW/empty.json +5 -0
  76. package/locales/zh-TW/errorState.json +5 -0
  77. package/locales/zh-TW/examplePages.json +705 -0
  78. package/locales/zh-TW/examples.json +218 -0
  79. package/locales/zh-TW/form.json +11 -0
  80. package/locales/zh-TW/input.json +3 -0
  81. package/locales/zh-TW/list.json +5 -0
  82. package/locales/zh-TW/loading.json +3 -0
  83. package/locales/zh-TW/navBar.json +4 -0
  84. package/locales/zh-TW/noticeBar.json +3 -0
  85. package/locales/zh-TW/picker.json +5 -0
  86. package/locales/zh-TW/searchBar.json +4 -0
  87. package/locales/zh-TW/textarea.json +3 -0
  88. package/locales/zh-TW/toast.json +6 -0
  89. package/package.json +49 -47
@@ -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,11 @@
1
+ {
2
+ "inputPlaceholder": "請輸入{label}",
3
+ "selectPlaceholder": "請選擇",
4
+ "datePlaceholder": "請選擇日期",
5
+ "timePlaceholder": "請選擇時間",
6
+ "requiredError": "請輸入{label}",
7
+ "submitButton": "提交",
8
+ "resetButton": "重設",
9
+ "validationFailed": "表單驗證失敗",
10
+ "submitFailed": "表單提交失敗"
11
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "placeholder": "請輸入"
3
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "loadingText": "載入中...",
3
+ "finishedText": "沒有更多了",
4
+ "errorText": "載入失敗,點擊重試"
5
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "text": "載入中..."
3
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "backText": "返回",
3
+ "title": "標題"
4
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "closeText": "關閉"
3
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "title": "請選擇",
3
+ "confirmText": "確定",
4
+ "cancelText": "取消"
5
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "placeholder": "請輸入搜尋關鍵字",
3
+ "cancelText": "取消"
4
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "placeholder": "請輸入內容"
3
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "loading": "載入中...",
3
+ "success": "操作成功",
4
+ "fail": "操作失敗",
5
+ "info": "提示"
6
+ }
package/package.json CHANGED
@@ -1,48 +1,50 @@
1
- {
2
- "name": "tang-ui-x",
3
- "version": "1.1.0",
4
- "description": "UniApp X UI 组件库 - 基于 uni-app x 的移动端 UI 组件库",
5
- "main": "index.uts",
6
- "module": "index.uts",
7
- "types": "types/index.d.ts",
8
- "files": [
9
- "components",
10
- "composables",
11
- "utils",
12
- "types",
13
- "style",
14
- "uni.scss",
15
- "index.uts",
16
- "README.md",
17
- "LICENSE"
18
- ],
19
- "keywords": [
20
- "uniapp",
21
- "uni-app-x",
22
- "uniapp-x",
23
- "ui",
24
- "components",
25
- "mobile",
26
- "vue3",
27
- "typescript",
28
- "tang-ui"
29
- ],
30
- "author": "sugar258596",
31
- "license": "MIT",
32
- "repository": {
33
- "type": "git",
34
- "url": "https://github.com/sugar258596/tang-ui.git"
35
- },
36
- "bugs": {
37
- "url": "https://github.com/sugar258596/tang-ui/issues"
38
- },
39
- "homepage": "https://github.com/sugar258596/tang-ui#readme",
40
- "peerDependencies": {
41
- "vue": "^3.0.0"
42
- },
43
- "scripts": {
44
- "preinstall": "npx only-allow pnpm",
45
- "build": "echo 'Build completed'",
46
- "version": "pnpm run build"
47
- }
1
+ {
2
+ "name": "tang-ui-x",
3
+ "version": "1.1.2",
4
+ "description": "UniApp X UI 组件库 - 基于 uni-app x 的移动端 UI 组件库",
5
+ "main": "index.uts",
6
+ "module": "index.uts",
7
+ "types": "types/index.d.ts",
8
+ "files": [
9
+ "components",
10
+ "composables",
11
+ "utils",
12
+ "types",
13
+ "style",
14
+ "locales",
15
+ "uni.scss",
16
+ "index.uts",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "keywords": [
21
+ "uniapp",
22
+ "uni-app-x",
23
+ "uniapp-x",
24
+ "ui",
25
+ "components",
26
+ "mobile",
27
+ "vue3",
28
+ "typescript",
29
+ "tang-ui"
30
+ ],
31
+ "author": "sugar258596",
32
+ "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/sugar258596/tang-ui.git"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/sugar258596/tang-ui/issues"
39
+ },
40
+ "homepage": "https://github.com/sugar258596/tang-ui#readme",
41
+ "peerDependencies": {
42
+ "vue": "^3.0.0"
43
+ },
44
+ "scripts": {
45
+ "preinstall": "npx only-allow pnpm",
46
+ "prepublishOnly": "pnpm run build",
47
+ "build": "echo 'Build completed'",
48
+ "version": "pnpm run build"
49
+ }
48
50
  }