yc-design-vue 1.7.9 → 1.8.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.
Files changed (166) hide show
  1. package/es/Calendar/Calendar.vue.js +15 -14
  2. package/es/Calendar/CalendarMonth.vue.d.ts +1 -1
  3. package/es/Calendar/CalendarMonth.vue.js +11 -1
  4. package/es/Calendar/CalendarYear.vue.js +20 -16
  5. package/es/ColorPicker/ColorList.vue.js +4 -2
  6. package/es/ColorPicker/ColorPanel.vue.js +6 -4
  7. package/es/ConfigProvider/index.d.ts +3 -0
  8. package/es/ConfigProvider/index.vue.d.ts +1 -0
  9. package/es/ConfigProvider/index.vue.js +13 -2
  10. package/es/ConfigProvider/type.d.ts +1 -0
  11. package/es/Drawer/Drawer.vue.js +6 -4
  12. package/es/Drawer/DrawerService.vue.js +2 -2
  13. package/es/Empty/index.vue.js +11 -4
  14. package/es/Image/Image.vue.js +4 -2
  15. package/es/Image/ImagePreviewToolbar.vue.js +13 -29
  16. package/es/Input/InputSuffix.vue.js +2 -2
  17. package/es/Layout/hooks/useTheme.js +0 -1
  18. package/es/Modal/Modal.vue.js +6 -4
  19. package/es/Modal/ModalService.vue.js +2 -2
  20. package/es/Pagination/Pagination.vue.js +5 -3
  21. package/es/Pagination/hooks/useContext.d.ts +5 -0
  22. package/es/Pagination/hooks/useContext.js +5 -2
  23. package/es/Popconfirm/index.vue.js +6 -4
  24. package/es/Typography/TypographyBase.vue.js +5 -4
  25. package/es/Watermark/index.d.ts +3 -3
  26. package/es/Watermark/index.vue.d.ts +1 -1
  27. package/es/_shared/icons/IconEyeClose.vue.js +21 -1
  28. package/es/_shared/icons/IconEyeClose.vue2.js +1 -21
  29. package/es/_shared/icons/IconEyeOpen.vue.js +18 -1
  30. package/es/_shared/icons/IconEyeOpen.vue2.js +1 -18
  31. package/es/_shared/locale/i18n.d.ts +256 -0
  32. package/es/_shared/locale/i18n.js +40 -0
  33. package/es/_shared/locale/lang/ar-eg.d.ts +205 -0
  34. package/es/_shared/locale/lang/ar-eg.js +153 -0
  35. package/es/_shared/locale/lang/de-de.d.ts +205 -0
  36. package/es/_shared/locale/lang/de-de.js +153 -0
  37. package/es/_shared/locale/lang/en-us.d.ts +253 -0
  38. package/es/_shared/locale/lang/en-us.js +158 -0
  39. package/es/_shared/locale/lang/es-es.d.ts +205 -0
  40. package/es/_shared/locale/lang/es-es.js +153 -0
  41. package/es/_shared/locale/lang/fr-fr.d.ts +205 -0
  42. package/es/_shared/locale/lang/fr-fr.js +153 -0
  43. package/es/_shared/locale/lang/id-id.d.ts +205 -0
  44. package/es/_shared/locale/lang/id-id.js +153 -0
  45. package/es/_shared/locale/lang/it-it.d.ts +205 -0
  46. package/es/_shared/locale/lang/it-it.js +153 -0
  47. package/es/_shared/locale/lang/ja-jp.d.ts +253 -0
  48. package/es/_shared/locale/lang/ja-jp.js +201 -0
  49. package/es/_shared/locale/lang/km-kh.d.ts +205 -0
  50. package/es/_shared/locale/lang/km-kh.js +153 -0
  51. package/es/_shared/locale/lang/ko-kr.d.ts +205 -0
  52. package/es/_shared/locale/lang/ko-kr.js +153 -0
  53. package/es/_shared/locale/lang/ms-my.d.ts +205 -0
  54. package/es/_shared/locale/lang/ms-my.js +153 -0
  55. package/es/_shared/locale/lang/nl-nl.d.ts +253 -0
  56. package/es/_shared/locale/lang/nl-nl.js +201 -0
  57. package/es/_shared/locale/lang/pt-pt.d.ts +205 -0
  58. package/es/_shared/locale/lang/pt-pt.js +153 -0
  59. package/es/_shared/locale/lang/ru-ru.d.ts +253 -0
  60. package/es/_shared/locale/lang/ru-ru.js +201 -0
  61. package/es/_shared/locale/lang/th-th.d.ts +205 -0
  62. package/es/_shared/locale/lang/th-th.js +153 -0
  63. package/es/_shared/locale/lang/vi-vn.d.ts +205 -0
  64. package/es/_shared/locale/lang/vi-vn.js +153 -0
  65. package/es/_shared/locale/lang/zh-cn.d.ts +253 -0
  66. package/es/_shared/locale/lang/zh-cn.js +201 -0
  67. package/es/_shared/locale/lang/zh-tw.d.ts +253 -0
  68. package/es/_shared/locale/lang/zh-tw.js +201 -0
  69. package/es/_shared/utils/time.js +1 -1
  70. package/es/index.js +2 -0
  71. package/es/node_modules/@intlify/core-base/dist/core-base.js +1129 -0
  72. package/es/node_modules/@intlify/message-compiler/dist/message-compiler.js +65 -0
  73. package/es/node_modules/@intlify/shared/dist/shared.js +199 -0
  74. package/es/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +1381 -0
  75. package/es/node_modules/@vue/devtools-api/lib/esm/const.js +6 -0
  76. package/es/node_modules/@vue/devtools-api/lib/esm/env.js +12 -0
  77. package/es/node_modules/@vue/devtools-api/lib/esm/index.js +26 -0
  78. package/es/node_modules/@vue/devtools-api/lib/esm/proxy.js +103 -0
  79. package/es/node_modules/@vue/devtools-api/lib/esm/time.js +25 -0
  80. package/es/node_modules/b-validate/es/is.js +27 -0
  81. package/es/node_modules/b-validate/es/locale/en-US.js +50 -0
  82. package/es/node_modules/b-validate/es/rules/base.js +86 -0
  83. package/es/node_modules/b-validate/es/util.js +25 -0
  84. package/lib/Calendar/Calendar.vue.js +1 -1
  85. package/lib/Calendar/CalendarMonth.vue.d.ts +1 -1
  86. package/lib/Calendar/CalendarMonth.vue.js +1 -1
  87. package/lib/Calendar/CalendarYear.vue.js +1 -1
  88. package/lib/ColorPicker/ColorList.vue.js +1 -1
  89. package/lib/ColorPicker/ColorPanel.vue.js +1 -1
  90. package/lib/ConfigProvider/index.d.ts +3 -0
  91. package/lib/ConfigProvider/index.vue.d.ts +1 -0
  92. package/lib/ConfigProvider/index.vue.js +1 -1
  93. package/lib/ConfigProvider/type.d.ts +1 -0
  94. package/lib/Drawer/Drawer.vue.js +1 -1
  95. package/lib/Drawer/DrawerService.vue.js +1 -1
  96. package/lib/Empty/index.vue.js +1 -1
  97. package/lib/Image/Image.vue.js +1 -1
  98. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  99. package/lib/Input/InputSuffix.vue.js +1 -1
  100. package/lib/Modal/Modal.vue.js +1 -1
  101. package/lib/Modal/ModalService.vue.js +1 -1
  102. package/lib/Pagination/Pagination.vue.js +1 -1
  103. package/lib/Pagination/hooks/useContext.d.ts +5 -0
  104. package/lib/Pagination/hooks/useContext.js +1 -1
  105. package/lib/Popconfirm/index.vue.js +1 -1
  106. package/lib/Typography/TypographyBase.vue.js +1 -1
  107. package/lib/Watermark/index.d.ts +3 -3
  108. package/lib/Watermark/index.vue.d.ts +1 -1
  109. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  110. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  111. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  112. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  113. package/lib/_shared/locale/i18n.d.ts +256 -0
  114. package/lib/_shared/locale/i18n.js +1 -0
  115. package/lib/_shared/locale/lang/ar-eg.d.ts +205 -0
  116. package/lib/_shared/locale/lang/ar-eg.js +1 -0
  117. package/lib/_shared/locale/lang/de-de.d.ts +205 -0
  118. package/lib/_shared/locale/lang/de-de.js +1 -0
  119. package/lib/_shared/locale/lang/en-us.d.ts +253 -0
  120. package/lib/_shared/locale/lang/en-us.js +1 -0
  121. package/lib/_shared/locale/lang/es-es.d.ts +205 -0
  122. package/lib/_shared/locale/lang/es-es.js +1 -0
  123. package/lib/_shared/locale/lang/fr-fr.d.ts +205 -0
  124. package/lib/_shared/locale/lang/fr-fr.js +1 -0
  125. package/lib/_shared/locale/lang/id-id.d.ts +205 -0
  126. package/lib/_shared/locale/lang/id-id.js +1 -0
  127. package/lib/_shared/locale/lang/it-it.d.ts +205 -0
  128. package/lib/_shared/locale/lang/it-it.js +1 -0
  129. package/lib/_shared/locale/lang/ja-jp.d.ts +253 -0
  130. package/lib/_shared/locale/lang/ja-jp.js +1 -0
  131. package/lib/_shared/locale/lang/km-kh.d.ts +205 -0
  132. package/lib/_shared/locale/lang/km-kh.js +1 -0
  133. package/lib/_shared/locale/lang/ko-kr.d.ts +205 -0
  134. package/lib/_shared/locale/lang/ko-kr.js +1 -0
  135. package/lib/_shared/locale/lang/ms-my.d.ts +205 -0
  136. package/lib/_shared/locale/lang/ms-my.js +1 -0
  137. package/lib/_shared/locale/lang/nl-nl.d.ts +253 -0
  138. package/lib/_shared/locale/lang/nl-nl.js +1 -0
  139. package/lib/_shared/locale/lang/pt-pt.d.ts +205 -0
  140. package/lib/_shared/locale/lang/pt-pt.js +1 -0
  141. package/lib/_shared/locale/lang/ru-ru.d.ts +253 -0
  142. package/lib/_shared/locale/lang/ru-ru.js +1 -0
  143. package/lib/_shared/locale/lang/th-th.d.ts +205 -0
  144. package/lib/_shared/locale/lang/th-th.js +1 -0
  145. package/lib/_shared/locale/lang/vi-vn.d.ts +205 -0
  146. package/lib/_shared/locale/lang/vi-vn.js +1 -0
  147. package/lib/_shared/locale/lang/zh-cn.d.ts +253 -0
  148. package/lib/_shared/locale/lang/zh-cn.js +1 -0
  149. package/lib/_shared/locale/lang/zh-tw.d.ts +253 -0
  150. package/lib/_shared/locale/lang/zh-tw.js +1 -0
  151. package/lib/_shared/utils/time.js +1 -1
  152. package/lib/index.js +1 -1
  153. package/lib/node_modules/@intlify/core-base/dist/core-base.js +1 -0
  154. package/lib/node_modules/@intlify/message-compiler/dist/message-compiler.js +6 -0
  155. package/lib/node_modules/@intlify/shared/dist/shared.js +7 -0
  156. package/lib/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +1 -0
  157. package/lib/node_modules/@vue/devtools-api/lib/esm/const.js +1 -0
  158. package/lib/node_modules/@vue/devtools-api/lib/esm/env.js +1 -0
  159. package/lib/node_modules/@vue/devtools-api/lib/esm/index.js +1 -0
  160. package/lib/node_modules/@vue/devtools-api/lib/esm/proxy.js +1 -0
  161. package/lib/node_modules/@vue/devtools-api/lib/esm/time.js +1 -0
  162. package/lib/node_modules/b-validate/es/is.js +1 -0
  163. package/lib/node_modules/b-validate/es/locale/en-US.js +1 -0
  164. package/lib/node_modules/b-validate/es/rules/base.js +1 -0
  165. package/lib/node_modules/b-validate/es/util.js +1 -0
  166. package/package.json +3 -2
@@ -0,0 +1,201 @@
1
+ const calendarLang = {
2
+ formatYear: "YYYY 年",
3
+ formatMonth: "YYYY 年 MM 月",
4
+ today: "今天",
5
+ view: {
6
+ month: "月",
7
+ year: "年",
8
+ week: "周",
9
+ day: "日"
10
+ },
11
+ month: {
12
+ long: {
13
+ January: "一月",
14
+ February: "二月",
15
+ March: "三月",
16
+ April: "四月",
17
+ May: "五月",
18
+ June: "六月",
19
+ July: "七月",
20
+ August: "八月",
21
+ September: "九月",
22
+ October: "十月",
23
+ November: "十一月",
24
+ December: "十二月"
25
+ },
26
+ short: {
27
+ January: "一月",
28
+ February: "二月",
29
+ March: "三月",
30
+ April: "四月",
31
+ May: "五月",
32
+ June: "六月",
33
+ July: "七月",
34
+ August: "八月",
35
+ September: "九月",
36
+ October: "十月",
37
+ November: "十一月",
38
+ December: "十二月"
39
+ }
40
+ },
41
+ week: {
42
+ long: {
43
+ self: "周",
44
+ monday: "周一",
45
+ tuesday: "周二",
46
+ wednesday: "周三",
47
+ thursday: "周四",
48
+ friday: "周五",
49
+ saturday: "周六",
50
+ sunday: "周日"
51
+ },
52
+ short: {
53
+ self: "周",
54
+ monday: "一",
55
+ tuesday: "二",
56
+ wednesday: "三",
57
+ thursday: "四",
58
+ friday: "五",
59
+ saturday: "六",
60
+ sunday: "日"
61
+ }
62
+ }
63
+ };
64
+ const lang = {
65
+ empty: {
66
+ description: "暂无数据"
67
+ },
68
+ drawer: {
69
+ okText: "确定",
70
+ cancelText: "取消"
71
+ },
72
+ popconfirm: {
73
+ okText: "确定",
74
+ cancelText: "取消"
75
+ },
76
+ modal: {
77
+ okText: "确定",
78
+ cancelText: "取消"
79
+ },
80
+ pagination: {
81
+ goto: "前往",
82
+ page: "页",
83
+ countPerPage: "条/页",
84
+ total: "共 {0} 条"
85
+ },
86
+ calendar: calendarLang,
87
+ image: {
88
+ loading: "加载中"
89
+ },
90
+ imagePreview: {
91
+ fullScreen: "全屏",
92
+ rotateRight: "向右旋转",
93
+ rotateLeft: "向左旋转",
94
+ zoomIn: "放大",
95
+ zoomOut: "缩小",
96
+ originalSize: "原始尺寸"
97
+ },
98
+ typography: {
99
+ copied: "已复制",
100
+ copy: "复制",
101
+ expand: "展开",
102
+ collapse: "折叠",
103
+ edit: "编辑"
104
+ },
105
+ colorPicker: {
106
+ history: "最近使用颜色",
107
+ preset: "系统预设颜色",
108
+ empty: "暂无"
109
+ },
110
+ table: {
111
+ okText: "确定",
112
+ resetText: "重置"
113
+ },
114
+ upload: {
115
+ start: "开始",
116
+ cancel: "取消",
117
+ delete: "删除",
118
+ retry: "点击重试",
119
+ buttonText: "点击上传",
120
+ preview: "预览",
121
+ drag: "点击或拖拽文件到此处上传",
122
+ dragHover: "释放文件并开始上传",
123
+ error: "上传失败"
124
+ },
125
+ datePicker: {
126
+ view: calendarLang.view,
127
+ month: calendarLang.month,
128
+ week: calendarLang.week,
129
+ placeholder: {
130
+ date: "请选择日期",
131
+ week: "请选择周",
132
+ month: "请选择月份",
133
+ year: "请选择年份",
134
+ quarter: "请选择季度",
135
+ time: "请选择时间"
136
+ },
137
+ rangePlaceholder: {
138
+ date: ["开始日期", "结束日期"],
139
+ week: ["开始周", "结束周"],
140
+ month: ["开始月份", "结束月份"],
141
+ year: ["开始年份", "结束年份"],
142
+ quarter: ["开始季度", "结束季度"],
143
+ time: ["开始时间", "结束时间"]
144
+ },
145
+ selectTime: "选择时间",
146
+ today: "今天",
147
+ now: "此刻",
148
+ ok: "确定"
149
+ },
150
+ form: {
151
+ validateMessages: {
152
+ required: "#{field} 是必填项",
153
+ type: {
154
+ string: "#{field} 不是合法的文本类型",
155
+ number: "#{field} 不是合法的数字类型",
156
+ boolean: "#{field} 不是合法的布尔类型",
157
+ array: "#{field} 不是合法的数组类型",
158
+ object: "#{field} 不是合法的对象类型",
159
+ url: "#{field} 不是合法的 url 地址",
160
+ email: "#{field} 不是合法的邮箱地址",
161
+ ip: "#{field} 不是合法的 IP 地址"
162
+ },
163
+ number: {
164
+ min: "`#{value}` 小于最小值 `#{min}`",
165
+ max: "`#{value}` 大于最大值 `#{max}`",
166
+ equal: "`#{value}` 不等于 `#{equal}`",
167
+ range: "`#{value}` 不在 `#{min} ~ #{max}` 范围内",
168
+ positive: "`#{value}` 不是正数",
169
+ negative: "`#{value}` 不是负数"
170
+ },
171
+ array: {
172
+ length: "`#{field}` 个数不等于 #{length}",
173
+ minLength: "`#{field}` 个数最少为 #{minLength}",
174
+ maxLength: "`#{field}` 个数最多为 #{maxLength}",
175
+ includes: "#{field} 不包含 #{includes}",
176
+ deepEqual: "#{field} 不等于 #{deepEqual}",
177
+ empty: "`#{field}` 不是空数组"
178
+ },
179
+ string: {
180
+ minLength: "字符数最少为 #{minLength}",
181
+ maxLength: "字符数最多为 #{maxLength}",
182
+ length: "字符数必须是 #{length}",
183
+ match: "`#{value}` 不符合模式 #{pattern}",
184
+ uppercase: "`#{value}` 必须全大写",
185
+ lowercase: "`#{value}` 必须全小写"
186
+ },
187
+ object: {
188
+ deepEqual: "`#{field}` 不等于期望值",
189
+ hasKeys: "`#{field}` 不包含必须字段",
190
+ empty: "`#{field}` 不是对象"
191
+ },
192
+ boolean: {
193
+ true: "期望是 `true`",
194
+ false: "期望是 `false`"
195
+ }
196
+ }
197
+ }
198
+ };
199
+ export {
200
+ lang as default
201
+ };
@@ -0,0 +1,253 @@
1
+ declare const lang: {
2
+ empty: {
3
+ description: string;
4
+ };
5
+ drawer: {
6
+ okText: string;
7
+ cancelText: string;
8
+ };
9
+ popconfirm: {
10
+ okText: string;
11
+ cancelText: string;
12
+ };
13
+ modal: {
14
+ okText: string;
15
+ cancelText: string;
16
+ };
17
+ pagination: {
18
+ goto: string;
19
+ page: string;
20
+ countPerPage: string;
21
+ total: string;
22
+ };
23
+ table: {
24
+ okText: string;
25
+ resetText: string;
26
+ };
27
+ upload: {
28
+ start: string;
29
+ cancel: string;
30
+ delete: string;
31
+ retry: string;
32
+ buttonText: string;
33
+ preview: string;
34
+ drag: string;
35
+ dragHover: string;
36
+ error: string;
37
+ };
38
+ calendar: {
39
+ formatYear: string;
40
+ formatMonth: string;
41
+ today: string;
42
+ view: {
43
+ month: string;
44
+ year: string;
45
+ week: string;
46
+ day: string;
47
+ };
48
+ month: {
49
+ long: {
50
+ January: string;
51
+ February: string;
52
+ March: string;
53
+ April: string;
54
+ May: string;
55
+ June: string;
56
+ July: string;
57
+ August: string;
58
+ September: string;
59
+ October: string;
60
+ November: string;
61
+ December: string;
62
+ };
63
+ short: {
64
+ January: string;
65
+ February: string;
66
+ March: string;
67
+ April: string;
68
+ May: string;
69
+ June: string;
70
+ July: string;
71
+ August: string;
72
+ September: string;
73
+ October: string;
74
+ November: string;
75
+ December: string;
76
+ };
77
+ };
78
+ week: {
79
+ long: {
80
+ self: string;
81
+ monday: string;
82
+ tuesday: string;
83
+ wednesday: string;
84
+ thursday: string;
85
+ friday: string;
86
+ saturday: string;
87
+ sunday: string;
88
+ };
89
+ short: {
90
+ self: string;
91
+ monday: string;
92
+ tuesday: string;
93
+ wednesday: string;
94
+ thursday: string;
95
+ friday: string;
96
+ saturday: string;
97
+ sunday: string;
98
+ };
99
+ };
100
+ };
101
+ datePicker: {
102
+ view: {
103
+ month: string;
104
+ year: string;
105
+ week: string;
106
+ day: string;
107
+ };
108
+ month: {
109
+ long: {
110
+ January: string;
111
+ February: string;
112
+ March: string;
113
+ April: string;
114
+ May: string;
115
+ June: string;
116
+ July: string;
117
+ August: string;
118
+ September: string;
119
+ October: string;
120
+ November: string;
121
+ December: string;
122
+ };
123
+ short: {
124
+ January: string;
125
+ February: string;
126
+ March: string;
127
+ April: string;
128
+ May: string;
129
+ June: string;
130
+ July: string;
131
+ August: string;
132
+ September: string;
133
+ October: string;
134
+ November: string;
135
+ December: string;
136
+ };
137
+ };
138
+ week: {
139
+ long: {
140
+ self: string;
141
+ monday: string;
142
+ tuesday: string;
143
+ wednesday: string;
144
+ thursday: string;
145
+ friday: string;
146
+ saturday: string;
147
+ sunday: string;
148
+ };
149
+ short: {
150
+ self: string;
151
+ monday: string;
152
+ tuesday: string;
153
+ wednesday: string;
154
+ thursday: string;
155
+ friday: string;
156
+ saturday: string;
157
+ sunday: string;
158
+ };
159
+ };
160
+ placeholder: {
161
+ date: string;
162
+ week: string;
163
+ month: string;
164
+ year: string;
165
+ quarter: string;
166
+ time: string;
167
+ };
168
+ rangePlaceholder: {
169
+ date: string[];
170
+ week: string[];
171
+ month: string[];
172
+ year: string[];
173
+ quarter: string[];
174
+ time: string[];
175
+ };
176
+ selectTime: string;
177
+ today: string;
178
+ now: string;
179
+ ok: string;
180
+ };
181
+ image: {
182
+ loading: string;
183
+ };
184
+ imagePreview: {
185
+ fullScreen: string;
186
+ rotateRight: string;
187
+ rotateLeft: string;
188
+ zoomIn: string;
189
+ zoomOut: string;
190
+ originalSize: string;
191
+ };
192
+ typography: {
193
+ copied: string;
194
+ copy: string;
195
+ expand: string;
196
+ collapse: string;
197
+ edit: string;
198
+ };
199
+ form: {
200
+ validateMessages: {
201
+ required: string;
202
+ type: {
203
+ string: string;
204
+ number: string;
205
+ boolean: string;
206
+ array: string;
207
+ object: string;
208
+ url: string;
209
+ email: string;
210
+ ip: string;
211
+ };
212
+ number: {
213
+ min: string;
214
+ max: string;
215
+ equal: string;
216
+ range: string;
217
+ positive: string;
218
+ negative: string;
219
+ };
220
+ array: {
221
+ length: string;
222
+ minLength: string;
223
+ maxLength: string;
224
+ includes: string;
225
+ deepEqual: string;
226
+ empty: string;
227
+ };
228
+ string: {
229
+ minLength: string;
230
+ maxLength: string;
231
+ length: string;
232
+ match: string;
233
+ uppercase: string;
234
+ lowercase: string;
235
+ };
236
+ object: {
237
+ deepEqual: string;
238
+ hasKeys: string;
239
+ empty: string;
240
+ };
241
+ boolean: {
242
+ true: string;
243
+ false: string;
244
+ };
245
+ };
246
+ };
247
+ colorPicker: {
248
+ history: string;
249
+ preset: string;
250
+ empty: string;
251
+ };
252
+ };
253
+ export default lang;
@@ -0,0 +1,201 @@
1
+ const calendarLang = {
2
+ formatYear: "YYYY 年",
3
+ formatMonth: "YYYY 年 MM 月",
4
+ today: "今天",
5
+ view: {
6
+ month: "月",
7
+ year: "年",
8
+ week: "周",
9
+ day: "日"
10
+ },
11
+ month: {
12
+ long: {
13
+ January: "一月",
14
+ February: "二月",
15
+ March: "三月",
16
+ April: "四月",
17
+ May: "五月",
18
+ June: "六月",
19
+ July: "七月",
20
+ August: "八月",
21
+ September: "九月",
22
+ October: "十月",
23
+ November: "十一月",
24
+ December: "十二月"
25
+ },
26
+ short: {
27
+ January: "一月",
28
+ February: "二月",
29
+ March: "三月",
30
+ April: "四月",
31
+ May: "五月",
32
+ June: "六月",
33
+ July: "七月",
34
+ August: "八月",
35
+ September: "九月",
36
+ October: "十月",
37
+ November: "十一月",
38
+ December: "十二月"
39
+ }
40
+ },
41
+ week: {
42
+ long: {
43
+ self: "周",
44
+ monday: "周一",
45
+ tuesday: "周二",
46
+ wednesday: "周三",
47
+ thursday: "周四",
48
+ friday: "周五",
49
+ saturday: "周六",
50
+ sunday: "周日"
51
+ },
52
+ short: {
53
+ self: "周",
54
+ monday: "一",
55
+ tuesday: "二",
56
+ wednesday: "三",
57
+ thursday: "四",
58
+ friday: "五",
59
+ saturday: "六",
60
+ sunday: "日"
61
+ }
62
+ }
63
+ };
64
+ const lang = {
65
+ empty: {
66
+ description: "無資料"
67
+ },
68
+ drawer: {
69
+ okText: "確認",
70
+ cancelText: "取消"
71
+ },
72
+ popconfirm: {
73
+ okText: "確認",
74
+ cancelText: "取消"
75
+ },
76
+ modal: {
77
+ okText: "確認",
78
+ cancelText: "取消"
79
+ },
80
+ pagination: {
81
+ goto: "前往",
82
+ page: "頁",
83
+ countPerPage: "項/頁",
84
+ total: "共 {0} 項"
85
+ },
86
+ table: {
87
+ okText: "確認",
88
+ resetText: "重置"
89
+ },
90
+ upload: {
91
+ start: "開始",
92
+ cancel: "取消",
93
+ delete: "删除",
94
+ retry: "點擊重試",
95
+ buttonText: "點擊上傳",
96
+ preview: "預覽",
97
+ drag: "點擊或拖拽文件到此處上傳",
98
+ dragHover: "釋放文件並開始上傳",
99
+ error: "上傳失敗"
100
+ },
101
+ calendar: calendarLang,
102
+ datePicker: {
103
+ view: calendarLang.view,
104
+ month: calendarLang.month,
105
+ week: calendarLang.week,
106
+ placeholder: {
107
+ date: "請選擇日期",
108
+ week: "請選擇周",
109
+ month: "請選擇月份",
110
+ year: "請選擇年份",
111
+ quarter: "請選擇季度",
112
+ time: "請選擇時間"
113
+ },
114
+ rangePlaceholder: {
115
+ date: ["開始日期", "結束日期"],
116
+ week: ["開始周", "結束周"],
117
+ month: ["開始月份", "結束月份"],
118
+ year: ["開始年份", "結束年份"],
119
+ quarter: ["開始季度", "結束季度"],
120
+ time: ["開始時間", "結束時間"]
121
+ },
122
+ selectTime: "選擇時間",
123
+ today: "今天",
124
+ now: "此刻",
125
+ ok: "確認"
126
+ },
127
+ image: {
128
+ loading: "載入中"
129
+ },
130
+ imagePreview: {
131
+ fullScreen: "全屏",
132
+ rotateRight: "向右旋轉",
133
+ rotateLeft: "向左旋轉",
134
+ zoomIn: "放大",
135
+ zoomOut: "縮小",
136
+ originalSize: "原始尺寸"
137
+ },
138
+ typography: {
139
+ copied: "已複製",
140
+ copy: "複製",
141
+ expand: "展開",
142
+ collapse: "折疊",
143
+ edit: "編輯"
144
+ },
145
+ form: {
146
+ validateMessages: {
147
+ required: "#{field} 是必填項",
148
+ type: {
149
+ string: "#{value} 不是合法的文本類型",
150
+ number: "#{value} 不是合法的數字類型",
151
+ boolean: "#{value} 不是合法的布爾類型",
152
+ array: "#{value} 不是合法的數組類型",
153
+ object: "#{value} 不是合法的對像類型",
154
+ url: "#{value} 不是合法的 url 地址",
155
+ email: "#{value} 不是合法的郵箱地址",
156
+ ip: "#{value} 不是合法的 IP 地址"
157
+ },
158
+ number: {
159
+ min: "`#{value}` 小於最小值 `#{min}`",
160
+ max: "`#{value}` 大於最大值 `#{max}`",
161
+ equal: "`#{value}` 不等於 `#{equal}`",
162
+ range: "`#{value}` 不在 `#{min} ~ #{max}` 範圍內",
163
+ positive: "`#{value}` 不是正數",
164
+ negative: "`#{value}` 不是負數"
165
+ },
166
+ array: {
167
+ length: "`#{value}` 個數不等於 #{length}",
168
+ minLength: "`#{value}` 個數最少為 #{minLength}",
169
+ maxLength: "`#{value}` 個數最多為 #{maxLength}",
170
+ includes: "#{value} 不包含 #{includes}",
171
+ deepEqual: "#{value} 不等於 #{deepEqual}",
172
+ empty: "`#{value}` 不是空數組"
173
+ },
174
+ string: {
175
+ minLength: "字符數最少為 #{minLength}",
176
+ maxLength: "字符數最多為 #{maxLength}",
177
+ length: "`#{value}` 字符數不等於 #{length}",
178
+ match: "`#{value}` 不符合模式 #{pattern}",
179
+ uppercase: "`#{value}` 不是全大寫",
180
+ lowercase: "`#{value}` 不是全小寫"
181
+ },
182
+ object: {
183
+ deepEqual: "`#{value}` 不等於 #{deepEqual}",
184
+ hasKeys: "`#{value}` 不包含字段 #{keys}",
185
+ empty: "`#{value}` 不是對象"
186
+ },
187
+ boolean: {
188
+ true: "期望是 `true`",
189
+ false: "期望是 `false`"
190
+ }
191
+ }
192
+ },
193
+ colorPicker: {
194
+ history: "最近使用顏色",
195
+ preset: "系統預設顏色",
196
+ empty: "暫無"
197
+ }
198
+ };
199
+ export {
200
+ lang as default
201
+ };
@@ -28,7 +28,7 @@ const generateMonthCalendar = (year, month) => {
28
28
  day: date.date(),
29
29
  month: date.month(),
30
30
  year: date.year(),
31
- fullDate: date.format("YYYY/MM/DD"),
31
+ fullDate: date.format("{ 0 }/MM/DD"),
32
32
  isCurrentMonth
33
33
  });
34
34
  if (row.length === 7) {
package/es/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import i18n from "./_shared/locale/i18n.js";
1
2
  /* empty css */
2
3
  import Affix from "./Affix/index.js";
3
4
  import Alert from "./Alert/index.js";
@@ -254,6 +255,7 @@ const index = {
254
255
  TypographyTitle: _sfc_main$1,
255
256
  TypographyParagraph: _sfc_main,
256
257
  install: (app) => {
258
+ app.use(i18n);
257
259
  for (const key of Object.keys(components)) {
258
260
  app.use(components[key]);
259
261
  }