@ray-js/smart-ui 1.1.0 → 1.2.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.
|
@@ -164,6 +164,27 @@ export interface SmartCalendarProps extends SmartCalendarRangeProps, SmartCalend
|
|
|
164
164
|
* 日期格式化函数
|
|
165
165
|
*/
|
|
166
166
|
formatter?: (day: Day) => Day;
|
|
167
|
+
/**
|
|
168
|
+
* 语言包, 具体字段如下
|
|
169
|
+
* @param {string} subFormatter - 副标题的日期格式
|
|
170
|
+
* @param {string[]} shortWeekDays - 周的名称
|
|
171
|
+
* @param {string} rangeStart - 范围选择的起始文字
|
|
172
|
+
* @param {string} rangeEnd - 范围选择的结束文字
|
|
173
|
+
* @version 1.2.0
|
|
174
|
+
* @example {
|
|
175
|
+
shortWeekDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
|
176
|
+
subFormatter: 'YYYY-MM',
|
|
177
|
+
rangeStart: 'Start',
|
|
178
|
+
rangeEnd: 'End',
|
|
179
|
+
}
|
|
180
|
+
* @default {}
|
|
181
|
+
*/
|
|
182
|
+
locale?: {
|
|
183
|
+
subFormatter?: string;
|
|
184
|
+
shortWeekDays?: string[];
|
|
185
|
+
rangeStart?: string;
|
|
186
|
+
rangeEnd?: string;
|
|
187
|
+
};
|
|
167
188
|
/**
|
|
168
189
|
* 是否以弹层的形式展示日历
|
|
169
190
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"author": "MiniApp Team",
|
|
5
5
|
"description": "轻量、可靠的智能小程序 UI 组件库",
|
|
6
6
|
"scripts": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@ray-js/components-ty-slider": "^0.2.44",
|
|
39
39
|
"@ray-js/components-ty-progress-bar": "^0.1.1",
|
|
40
40
|
"@ray-js/components-ty-progress-circle": "^0.1.6",
|
|
41
|
-
"@tuya-miniapp/smart-ui": "^1.
|
|
41
|
+
"@tuya-miniapp/smart-ui": "^1.2.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@changesets/cli": "^2.27.1",
|