@blueking/date-picker 0.0.56 → 0.0.57
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/dist/lang/lang.d.ts +2 -1
- package/dist/vue2-full.es.js +14 -8
- package/dist/vue2-light.es.js +14 -8
- package/dist/vue3-full.es.js +3666 -3660
- package/dist/vue3-light.es.js +144 -141
- package/package.json +2 -2
package/dist/lang/lang.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare const shortTimeUnitLangData: {
|
|
|
34
34
|
};
|
|
35
35
|
export declare const langData: {
|
|
36
36
|
readonly 前: "Previous";
|
|
37
|
+
readonly 取消: "Cancel";
|
|
37
38
|
readonly 将来: "Future";
|
|
38
39
|
readonly 常用时间: "Common";
|
|
39
40
|
readonly 开始时间: "Start Time";
|
|
@@ -69,6 +70,6 @@ export type TimeUnitDateKey = keyof typeof timeUnitLangData;
|
|
|
69
70
|
export type ShortTimeUnitDateKey = keyof typeof shortTimeUnitLangData;
|
|
70
71
|
export type LangKey = keyof typeof langData;
|
|
71
72
|
export type LangValue = (typeof langData)[LangKey];
|
|
72
|
-
export declare const langValueMap: Record<LangValue, "前" | "将来" | "常用时间" | "开始时间" | "开始时间不能大于结束时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "是否清空最近使用?" | "暂无常用时间" | "暂无最近使用记录" | "最近" | "最近使用" | "未来" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)">;
|
|
73
|
+
export declare const langValueMap: Record<LangValue, "前" | "取消" | "将来" | "常用时间" | "开始时间" | "开始时间不能大于结束时间" | "支持多种时间格式自动转换" | "整" | "无匹配数据" | "日期选择" | "时区设置" | "时间格式支持" | "是否清空最近使用?" | "暂无常用时间" | "暂无最近使用记录" | "最近" | "最近使用" | "未来" | "查看支持格式" | "格式" | "此刻" | "浏览器时间" | "确定" | "示例" | "结束时间" | "自然日期" | "至今" | "请输入" | "请输入搜索(国家,城市,简称)" | "近" | "(至今)">;
|
|
73
74
|
export declare const lang: string;
|
|
74
75
|
export declare const t: (key: LangKey | NaturalDateKey | ShortTimeUnitDateKey | TimeUnitDateKey) => string;
|
package/dist/vue2-full.es.js
CHANGED
|
@@ -19316,6 +19316,7 @@ const mT = (e) => {
|
|
|
19316
19316
|
y: "年"
|
|
19317
19317
|
}, U0 = {
|
|
19318
19318
|
前: "Previous",
|
|
19319
|
+
取消: "Cancel",
|
|
19319
19320
|
将来: "Future",
|
|
19320
19321
|
常用时间: "Common",
|
|
19321
19322
|
开始时间: "Start Time",
|
|
@@ -21204,14 +21205,14 @@ const QT = JT, RT = (0, bn.defineComponent)({
|
|
|
21204
21205
|
theme: "primary"
|
|
21205
21206
|
}, {
|
|
21206
21207
|
default: function() {
|
|
21207
|
-
return [s.value.ok];
|
|
21208
|
+
return [t.confirmText || s.value.ok];
|
|
21208
21209
|
}
|
|
21209
21210
|
}), (0, bn.createVNode)(r0.default, {
|
|
21210
21211
|
onClick: u,
|
|
21211
21212
|
size: "small"
|
|
21212
21213
|
}, {
|
|
21213
21214
|
default: function() {
|
|
21214
|
-
return [s.value.cancel];
|
|
21215
|
+
return [t.cancelText || s.value.cancel];
|
|
21215
21216
|
}
|
|
21216
21217
|
})])]);
|
|
21217
21218
|
}
|
|
@@ -21880,6 +21881,8 @@ const fL = { class: "common-panel-tab" }, _3 = /* @__PURE__ */ _t({
|
|
|
21880
21881
|
trigger: "click",
|
|
21881
21882
|
width: 189,
|
|
21882
21883
|
onConfirm: n[1] || (n[1] = (r) => t.$emit("confirm")),
|
|
21884
|
+
"confirm-text": he(Ie)("确定"),
|
|
21885
|
+
"cancel-text": he(Ie)("取消"),
|
|
21883
21886
|
"ext-cls": "__bk-date-picker-popover__ __bk-date-picker-popover-delete__"
|
|
21884
21887
|
}, {
|
|
21885
21888
|
default: gt(() => [
|
|
@@ -21887,7 +21890,7 @@ const fL = { class: "common-panel-tab" }, _3 = /* @__PURE__ */ _t({
|
|
|
21887
21890
|
]),
|
|
21888
21891
|
_: 1
|
|
21889
21892
|
/* STABLE */
|
|
21890
|
-
}, 8, ["content"])) : ho("v-if", !0)
|
|
21893
|
+
}, 8, ["content", "confirm-text", "cancel-text"])) : ho("v-if", !0)
|
|
21891
21894
|
]));
|
|
21892
21895
|
}
|
|
21893
21896
|
});
|
|
@@ -22076,9 +22079,9 @@ function IL() {
|
|
|
22076
22079
|
var CL = function() {
|
|
22077
22080
|
var t = (0, jt.getCurrentInstance)(), n = t.props, r = t.emit, a = (0, jt.inject)(Sm, Et.EMPTY_OBJ), i = !(0, Et.isEmptyObj)(a), s = (0, jt.ref)(), o = (0, jt.ref)(n.checked), u = (0, jt.computed)(function() {
|
|
22078
22081
|
return i && a.props.disabled ? !0 : n.disabled;
|
|
22079
|
-
}), f = function() {
|
|
22080
|
-
var
|
|
22081
|
-
r("update:modelValue",
|
|
22082
|
+
}), f = function(c) {
|
|
22083
|
+
var p = o.value ? n.trueLabel : n.falseLabel;
|
|
22084
|
+
r("update:modelValue", p), r("change", p, c), i && a.handleChange(), (0, jt.nextTick)(function() {
|
|
22082
22085
|
s.value.checked !== o.value && (s.value.checked = o.value);
|
|
22083
22086
|
});
|
|
22084
22087
|
};
|
|
@@ -22105,7 +22108,7 @@ var CL = function() {
|
|
|
22105
22108
|
}, l = function(c) {
|
|
22106
22109
|
if (!u.value) {
|
|
22107
22110
|
var p = c.target;
|
|
22108
|
-
o.value = p.checked, f();
|
|
22111
|
+
o.value = p.checked, f(c);
|
|
22109
22112
|
}
|
|
22110
22113
|
};
|
|
22111
22114
|
return (0, jt.onMounted)(function() {
|
|
@@ -22139,8 +22142,11 @@ const _L = (0, jt.defineComponent)({
|
|
|
22139
22142
|
"update:modelValue": function(t) {
|
|
22140
22143
|
return t !== void 0;
|
|
22141
22144
|
},
|
|
22142
|
-
change: function(t) {
|
|
22145
|
+
change: function(t, n) {
|
|
22143
22146
|
return t !== void 0;
|
|
22147
|
+
},
|
|
22148
|
+
click: function(t) {
|
|
22149
|
+
return !0;
|
|
22144
22150
|
}
|
|
22145
22151
|
},
|
|
22146
22152
|
setup: function(t) {
|
package/dist/vue2-light.es.js
CHANGED
|
@@ -18694,6 +18694,7 @@ const tT = (e) => {
|
|
|
18694
18694
|
y: "年"
|
|
18695
18695
|
}, U0 = {
|
|
18696
18696
|
前: "Previous",
|
|
18697
|
+
取消: "Cancel",
|
|
18697
18698
|
将来: "Future",
|
|
18698
18699
|
常用时间: "Common",
|
|
18699
18700
|
开始时间: "Start Time",
|
|
@@ -20582,14 +20583,14 @@ const NT = OT, jT = (0, bn.defineComponent)({
|
|
|
20582
20583
|
theme: "primary"
|
|
20583
20584
|
}, {
|
|
20584
20585
|
default: function() {
|
|
20585
|
-
return [s.value.ok];
|
|
20586
|
+
return [t.confirmText || s.value.ok];
|
|
20586
20587
|
}
|
|
20587
20588
|
}), (0, bn.createVNode)(r0.default, {
|
|
20588
20589
|
onClick: u,
|
|
20589
20590
|
size: "small"
|
|
20590
20591
|
}, {
|
|
20591
20592
|
default: function() {
|
|
20592
|
-
return [s.value.cancel];
|
|
20593
|
+
return [t.cancelText || s.value.cancel];
|
|
20593
20594
|
}
|
|
20594
20595
|
})])]);
|
|
20595
20596
|
}
|
|
@@ -21258,6 +21259,8 @@ const KT = { class: "common-panel-tab" }, N3 = /* @__PURE__ */ Nt({
|
|
|
21258
21259
|
trigger: "click",
|
|
21259
21260
|
width: 189,
|
|
21260
21261
|
onConfirm: n[1] || (n[1] = (r) => t.$emit("confirm")),
|
|
21262
|
+
"confirm-text": me(we)("确定"),
|
|
21263
|
+
"cancel-text": me(we)("取消"),
|
|
21261
21264
|
"ext-cls": "__bk-date-picker-popover__ __bk-date-picker-popover-delete__"
|
|
21262
21265
|
}, {
|
|
21263
21266
|
default: ht(() => [
|
|
@@ -21265,7 +21268,7 @@ const KT = { class: "common-panel-tab" }, N3 = /* @__PURE__ */ Nt({
|
|
|
21265
21268
|
]),
|
|
21266
21269
|
_: 1
|
|
21267
21270
|
/* STABLE */
|
|
21268
|
-
}, 8, ["content"])) : vo("v-if", !0)
|
|
21271
|
+
}, 8, ["content", "confirm-text", "cancel-text"])) : vo("v-if", !0)
|
|
21269
21272
|
]));
|
|
21270
21273
|
}
|
|
21271
21274
|
});
|
|
@@ -21454,9 +21457,9 @@ function lL() {
|
|
|
21454
21457
|
var cL = function() {
|
|
21455
21458
|
var t = (0, _t.getCurrentInstance)(), n = t.props, r = t.emit, a = (0, _t.inject)(N2, Et.EMPTY_OBJ), i = !(0, Et.isEmptyObj)(a), s = (0, _t.ref)(), o = (0, _t.ref)(n.checked), u = (0, _t.computed)(function() {
|
|
21456
21459
|
return i && a.props.disabled ? !0 : n.disabled;
|
|
21457
|
-
}), d = function() {
|
|
21458
|
-
var
|
|
21459
|
-
r("update:modelValue",
|
|
21460
|
+
}), d = function(c) {
|
|
21461
|
+
var p = o.value ? n.trueLabel : n.falseLabel;
|
|
21462
|
+
r("update:modelValue", p), r("change", p, c), i && a.handleChange(), (0, _t.nextTick)(function() {
|
|
21460
21463
|
s.value.checked !== o.value && (s.value.checked = o.value);
|
|
21461
21464
|
});
|
|
21462
21465
|
};
|
|
@@ -21483,7 +21486,7 @@ var cL = function() {
|
|
|
21483
21486
|
}, l = function(c) {
|
|
21484
21487
|
if (!u.value) {
|
|
21485
21488
|
var p = c.target;
|
|
21486
|
-
o.value = p.checked, d();
|
|
21489
|
+
o.value = p.checked, d(c);
|
|
21487
21490
|
}
|
|
21488
21491
|
};
|
|
21489
21492
|
return (0, _t.onMounted)(function() {
|
|
@@ -21517,8 +21520,11 @@ const dL = (0, _t.defineComponent)({
|
|
|
21517
21520
|
"update:modelValue": function(t) {
|
|
21518
21521
|
return t !== void 0;
|
|
21519
21522
|
},
|
|
21520
|
-
change: function(t) {
|
|
21523
|
+
change: function(t, n) {
|
|
21521
21524
|
return t !== void 0;
|
|
21525
|
+
},
|
|
21526
|
+
click: function(t) {
|
|
21527
|
+
return !0;
|
|
21522
21528
|
}
|
|
21523
21529
|
},
|
|
21524
21530
|
setup: function(t) {
|