@jnrs/vue-core 1.2.40 → 1.2.42
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/AGENTS.md +234 -245
- package/CHANGELOG.md +22 -1
- package/dist/components/JnDateQuery.vue.d.ts +9 -25
- package/dist/components/index.js +1034 -1110
- package/dist/locales/en/components.d.ts +0 -3
- package/dist/locales/en/index.d.ts +0 -3
- package/dist/locales/index.js +0 -6
- package/dist/locales/zhCn/components.d.ts +0 -3
- package/dist/locales/zhCn/index.d.ts +0 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
# 发版日志
|
|
2
2
|
|
|
3
|
-
## [1.2.
|
|
3
|
+
## [1.2.42] - 2026-07-30 【latest】
|
|
4
|
+
|
|
5
|
+
### ⚠️ Breaking Changes
|
|
6
|
+
|
|
7
|
+
- `JnDateQuery`:移除 `showTypeSwitcher` prop,改用 `switcherStyle` 是否有值控制(默认 `'button-group'`)
|
|
8
|
+
- `JnDateQuery`:移除 `type` prop
|
|
9
|
+
- `JnDateQuery`:`quickButtons` 类型从 `'none'|'arrows'|'group'` 改为 `boolean`(默认 `true`),移除 `'group'` 按钮组逻辑
|
|
10
|
+
- `JnDateQuery`:`range` prop 重命名为 `isRange`
|
|
11
|
+
- `JnDateQuery`:移除 `placeholder`、`startPlaceholder`、`endPlaceholder` props
|
|
12
|
+
|
|
13
|
+
### Refactor
|
|
14
|
+
|
|
15
|
+
- `JnDateQuery`:移除 `groupButtons`、`hasGroup`、`QuickButton` 等相关逻辑
|
|
16
|
+
- `JnDateQuery`:国际化移除 `placeholder`、`startPlaceholder`、`endPlaceholder` 条目
|
|
17
|
+
|
|
18
|
+
## [1.2.41] - 2026-07-30
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- `JnDateQuery`:切换类型时 modelValue 未更新的问题,现始终基于当前日期重新计算(如本周范围、本月范围、本年范围)
|
|
23
|
+
|
|
24
|
+
## [1.2.40] - 2026-07-30
|
|
4
25
|
|
|
5
26
|
### ⚠️ Breaking Changes
|
|
6
27
|
|
|
@@ -1,29 +1,18 @@
|
|
|
1
1
|
type DateType = 'date' | 'week' | 'month' | 'year' | 'daterange';
|
|
2
|
-
type QuickButtonStyle = 'none' | 'arrows' | 'group';
|
|
3
2
|
type SwitcherStyle = 'select' | 'button-group';
|
|
4
3
|
interface Props {
|
|
5
4
|
/** v-model 绑定值(单值为 string,范围为 [string, string]) */
|
|
6
5
|
modelValue: string | [string, string];
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
switcherStyle?: SwitcherStyle;
|
|
13
|
-
/** 快捷按钮风格 */
|
|
14
|
-
quickButtons?: QuickButtonStyle;
|
|
15
|
-
/** 日期格式(仅对 range=true 的所有类型最终 modelValue,或 range=false 的 date 有效) */
|
|
6
|
+
/** 切换器风格,有值时显示切换器,为空时不显示 */
|
|
7
|
+
switcherStyle?: SwitcherStyle | '';
|
|
8
|
+
/** 是否显示左右箭头快捷按钮 */
|
|
9
|
+
quickButtons?: boolean;
|
|
10
|
+
/** 日期格式(仅对 isRange=true 的所有类型最终 modelValue,或 isRange=false 的 date 有效) */
|
|
16
11
|
valueFormat?: string;
|
|
17
12
|
/** 是否可清除 */
|
|
18
13
|
clearable?: boolean;
|
|
19
14
|
/** 尺寸 */
|
|
20
15
|
size?: '' | 'small' | 'default' | 'large';
|
|
21
|
-
/** 单值 placeholder */
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
/** 范围开始 placeholder */
|
|
24
|
-
startPlaceholder?: string;
|
|
25
|
-
/** 范围结束 placeholder */
|
|
26
|
-
endPlaceholder?: string;
|
|
27
16
|
/** 范围分隔符 */
|
|
28
17
|
rangeSeparator?: string;
|
|
29
18
|
/**
|
|
@@ -32,7 +21,7 @@ interface Props {
|
|
|
32
21
|
* - false:typeOptions 为 ['date', 'month', 'year'],modelValue 为 string
|
|
33
22
|
* @default true
|
|
34
23
|
*/
|
|
35
|
-
|
|
24
|
+
isRange?: boolean;
|
|
36
25
|
/**
|
|
37
26
|
* 是否在 modelValue 为空时自动设置默认值为当天
|
|
38
27
|
* @default true
|
|
@@ -49,17 +38,12 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
49
38
|
"onType-change"?: ((type: DateType) => any) | undefined;
|
|
50
39
|
}>, {
|
|
51
40
|
size: "" | "small" | "default" | "large";
|
|
52
|
-
type: DateType;
|
|
53
|
-
placeholder: string;
|
|
54
41
|
clearable: boolean;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
quickButtons: QuickButtonStyle;
|
|
42
|
+
switcherStyle: SwitcherStyle | "";
|
|
43
|
+
quickButtons: boolean;
|
|
58
44
|
valueFormat: string;
|
|
59
|
-
startPlaceholder: string;
|
|
60
|
-
endPlaceholder: string;
|
|
61
45
|
rangeSeparator: string;
|
|
62
|
-
|
|
46
|
+
isRange: boolean;
|
|
63
47
|
showDefault: boolean;
|
|
64
48
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
65
49
|
export default _default;
|