@blueking/date-picker 0.0.19 → 0.0.21

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.
@@ -25,7 +25,10 @@ declare const _default: import("vue").DefineComponent<{
25
25
  timezone: {
26
26
  type: import("vue").PropType<string>;
27
27
  };
28
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ }, {
29
+ handleHidePanel: () => void;
30
+ handleShowPanel: () => void;
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
32
  "update:modelValue": (value: string[] | DateValue | undefined, info: {
30
33
  dayjs: dayjs.Dayjs;
31
34
  formatText: string;
@@ -56065,7 +56065,7 @@ const getTimezoneDetails = () => {
56065
56065
  defaultTimezoneList.push({
56066
56066
  ...option,
56067
56067
  ...info,
56068
- label: `${t("浏览器时间")} ${info.label}`
56068
+ label: info.label
56069
56069
  });
56070
56070
  }
56071
56071
  return info;
@@ -56142,7 +56142,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
56142
56142
  "is-selected": item.label === _ctx.value
56143
56143
  })
56144
56144
  }, [
56145
- createBaseVNode("span", _hoisted_1$2, toDisplayString(item.label), 1),
56145
+ createBaseVNode("span", _hoisted_1$2, toDisplayString(unref(t)("浏览器时间")) + " " + toDisplayString(item.label), 1),
56146
56146
  createBaseVNode("span", _hoisted_2$2, toDisplayString(item.country) + ", " + toDisplayString(item.abbreviation), 1),
56147
56147
  createBaseVNode("span", _hoisted_3$2, toDisplayString(item.utc), 1)
56148
56148
  ], 2)
@@ -56375,7 +56375,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56375
56375
  version: { default: "1.0" }
56376
56376
  },
56377
56377
  emits: ["update:modelValue", "update:timezone"],
56378
- setup(__props, { emit: __emit }) {
56378
+ setup(__props, { expose: __expose, emit: __emit }) {
56379
56379
  dayjs.locale({
56380
56380
  ...lang === "en" ? en : cn,
56381
56381
  weekStart: 1
@@ -56424,6 +56424,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56424
56424
  };
56425
56425
  const handleTimezoneChange = (val, info) => {
56426
56426
  emits("update:timezone", val, { ...info });
56427
+ handleHidden();
56427
56428
  };
56428
56429
  const handleHidden = () => {
56429
56430
  datePanelShow.value = false;
@@ -56454,6 +56455,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56454
56455
  handleHidden();
56455
56456
  }
56456
56457
  };
56458
+ __expose({
56459
+ handleHidePanel: () => {
56460
+ datePanelShow.value = false;
56461
+ },
56462
+ handleShowPanel: () => {
56463
+ datePanelShow.value = true;
56464
+ }
56465
+ });
56457
56466
  return (_ctx, _cache) => {
56458
56467
  return openBlock(), createElementBlock("div", {
56459
56468
  class: normalizeClass({
@@ -56570,6 +56579,7 @@ const vue2 = {
56570
56579
  emit2("update:timezone", ...arguments);
56571
56580
  emit2("timezoneChange", ...arguments);
56572
56581
  },
56582
+ ref: "datePickerRef",
56573
56583
  timezone: this.timezone || props.timezone,
56574
56584
  version: this.version || props.version
56575
56585
  });
@@ -56590,6 +56600,16 @@ const vue2 = {
56590
56600
  unWatchStack: []
56591
56601
  };
56592
56602
  },
56603
+ methods: {
56604
+ handleHidePanel() {
56605
+ var _a2, _b, _c, _d, _e2;
56606
+ (_e2 = (_d = (_c = (_b = (_a2 = this.app) == null ? void 0 : _a2._instance) == null ? void 0 : _b.refs) == null ? void 0 : _c.datePickerRef) == null ? void 0 : _d.handleHidePanel) == null ? void 0 : _e2.call(_d);
56607
+ },
56608
+ handleShowPanel() {
56609
+ var _a2, _b, _c, _d, _e2;
56610
+ (_e2 = (_d = (_c = (_b = (_a2 = this.app) == null ? void 0 : _a2._instance) == null ? void 0 : _b.refs) == null ? void 0 : _c.datePickerRef) == null ? void 0 : _d.handleShowPanel) == null ? void 0 : _e2.call(_d);
56611
+ }
56612
+ },
56593
56613
  mounted() {
56594
56614
  var _a2;
56595
56615
  (_a2 = this.app) == null ? void 0 : _a2.mount(this.$el);
@@ -55461,7 +55461,7 @@ const getTimezoneDetails = () => {
55461
55461
  defaultTimezoneList.push({
55462
55462
  ...option,
55463
55463
  ...info,
55464
- label: `${t("浏览器时间")} ${info.label}`
55464
+ label: info.label
55465
55465
  });
55466
55466
  }
55467
55467
  return info;
@@ -55538,7 +55538,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
55538
55538
  "is-selected": item.label === _ctx.value
55539
55539
  })
55540
55540
  }, [
55541
- createBaseVNode("span", _hoisted_1$2, toDisplayString(item.label), 1),
55541
+ createBaseVNode("span", _hoisted_1$2, toDisplayString(unref(t)("浏览器时间")) + " " + toDisplayString(item.label), 1),
55542
55542
  createBaseVNode("span", _hoisted_2$2, toDisplayString(item.country) + ", " + toDisplayString(item.abbreviation), 1),
55543
55543
  createBaseVNode("span", _hoisted_3$2, toDisplayString(item.utc), 1)
55544
55544
  ], 2)
@@ -55771,7 +55771,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55771
55771
  version: { default: "1.0" }
55772
55772
  },
55773
55773
  emits: ["update:modelValue", "update:timezone"],
55774
- setup(__props, { emit: __emit }) {
55774
+ setup(__props, { expose: __expose, emit: __emit }) {
55775
55775
  dayjs.locale({
55776
55776
  ...lang === "en" ? en : cn$1,
55777
55777
  weekStart: 1
@@ -55820,6 +55820,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55820
55820
  };
55821
55821
  const handleTimezoneChange = (val, info) => {
55822
55822
  emits("update:timezone", val, { ...info });
55823
+ handleHidden();
55823
55824
  };
55824
55825
  const handleHidden = () => {
55825
55826
  datePanelShow.value = false;
@@ -55850,6 +55851,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55850
55851
  handleHidden();
55851
55852
  }
55852
55853
  };
55854
+ __expose({
55855
+ handleHidePanel: () => {
55856
+ datePanelShow.value = false;
55857
+ },
55858
+ handleShowPanel: () => {
55859
+ datePanelShow.value = true;
55860
+ }
55861
+ });
55853
55862
  return (_ctx, _cache) => {
55854
55863
  return openBlock(), createElementBlock("div", {
55855
55864
  class: normalizeClass({
@@ -55966,6 +55975,7 @@ const vue2 = {
55966
55975
  emit2("update:timezone", ...arguments);
55967
55976
  emit2("timezoneChange", ...arguments);
55968
55977
  },
55978
+ ref: "datePickerRef",
55969
55979
  timezone: this.timezone || props.timezone,
55970
55980
  version: this.version || props.version
55971
55981
  });
@@ -55986,6 +55996,16 @@ const vue2 = {
55986
55996
  unWatchStack: []
55987
55997
  };
55988
55998
  },
55999
+ methods: {
56000
+ handleHidePanel() {
56001
+ var _a2, _b, _c, _d, _e2;
56002
+ (_e2 = (_d = (_c = (_b = (_a2 = this.app) == null ? void 0 : _a2._instance) == null ? void 0 : _b.refs) == null ? void 0 : _c.datePickerRef) == null ? void 0 : _d.handleHidePanel) == null ? void 0 : _e2.call(_d);
56003
+ },
56004
+ handleShowPanel() {
56005
+ var _a2, _b, _c, _d, _e2;
56006
+ (_e2 = (_d = (_c = (_b = (_a2 = this.app) == null ? void 0 : _a2._instance) == null ? void 0 : _b.refs) == null ? void 0 : _c.datePickerRef) == null ? void 0 : _d.handleShowPanel) == null ? void 0 : _e2.call(_d);
56007
+ }
56008
+ },
55989
56009
  mounted() {
55990
56010
  var _a2;
55991
56011
  (_a2 = this.app) == null ? void 0 : _a2.mount(this.$el);
@@ -47502,7 +47502,7 @@ const getTimezoneDetails = () => {
47502
47502
  defaultTimezoneList.push({
47503
47503
  ...option,
47504
47504
  ...info,
47505
- label: `${t("浏览器时间")} ${info.label}`
47505
+ label: info.label
47506
47506
  });
47507
47507
  }
47508
47508
  return info;
@@ -47579,7 +47579,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
47579
47579
  "is-selected": item.label === _ctx.value
47580
47580
  })
47581
47581
  }, [
47582
- createElementVNode("span", _hoisted_1$2, toDisplayString(item.label), 1),
47582
+ createElementVNode("span", _hoisted_1$2, toDisplayString(unref(t)("浏览器时间")) + " " + toDisplayString(item.label), 1),
47583
47583
  createElementVNode("span", _hoisted_2$2, toDisplayString(item.country) + ", " + toDisplayString(item.abbreviation), 1),
47584
47584
  createElementVNode("span", _hoisted_3$2, toDisplayString(item.utc), 1)
47585
47585
  ], 2)
@@ -47812,7 +47812,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47812
47812
  version: { default: "1.0" }
47813
47813
  },
47814
47814
  emits: ["update:modelValue", "update:timezone"],
47815
- setup(__props, { emit: __emit }) {
47815
+ setup(__props, { expose: __expose, emit: __emit }) {
47816
47816
  dayjs.locale({
47817
47817
  ...lang === "en" ? en : cn,
47818
47818
  weekStart: 1
@@ -47861,6 +47861,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47861
47861
  };
47862
47862
  const handleTimezoneChange = (val, info) => {
47863
47863
  emits("update:timezone", val, { ...info });
47864
+ handleHidden();
47864
47865
  };
47865
47866
  const handleHidden = () => {
47866
47867
  datePanelShow.value = false;
@@ -47891,6 +47892,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47891
47892
  handleHidden();
47892
47893
  }
47893
47894
  };
47895
+ __expose({
47896
+ handleHidePanel: () => {
47897
+ datePanelShow.value = false;
47898
+ },
47899
+ handleShowPanel: () => {
47900
+ datePanelShow.value = true;
47901
+ }
47902
+ });
47894
47903
  return (_ctx, _cache) => {
47895
47904
  return openBlock(), createElementBlock("div", {
47896
47905
  class: normalizeClass({
@@ -2593,7 +2593,7 @@ const getTimezoneDetails = () => {
2593
2593
  defaultTimezoneList.push({
2594
2594
  ...option,
2595
2595
  ...info,
2596
- label: `${t("浏览器时间")} ${info.label}`
2596
+ label: info.label
2597
2597
  });
2598
2598
  }
2599
2599
  return info;
@@ -2670,7 +2670,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2670
2670
  "is-selected": item.label === _ctx.value
2671
2671
  })
2672
2672
  }, [
2673
- createElementVNode("span", _hoisted_1$2, toDisplayString(item.label), 1),
2673
+ createElementVNode("span", _hoisted_1$2, toDisplayString(unref(t)("浏览器时间")) + " " + toDisplayString(item.label), 1),
2674
2674
  createElementVNode("span", _hoisted_2$2, toDisplayString(item.country) + ", " + toDisplayString(item.abbreviation), 1),
2675
2675
  createElementVNode("span", _hoisted_3$2, toDisplayString(item.utc), 1)
2676
2676
  ], 2)
@@ -2903,7 +2903,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2903
2903
  version: { default: "1.0" }
2904
2904
  },
2905
2905
  emits: ["update:modelValue", "update:timezone"],
2906
- setup(__props, { emit: __emit }) {
2906
+ setup(__props, { expose: __expose, emit: __emit }) {
2907
2907
  dayjs.locale({
2908
2908
  ...lang === "en" ? en : cn,
2909
2909
  weekStart: 1
@@ -2952,6 +2952,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2952
2952
  };
2953
2953
  const handleTimezoneChange = (val, info) => {
2954
2954
  emits("update:timezone", val, { ...info });
2955
+ handleHidden();
2955
2956
  };
2956
2957
  const handleHidden = () => {
2957
2958
  datePanelShow.value = false;
@@ -2982,6 +2983,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2982
2983
  handleHidden();
2983
2984
  }
2984
2985
  };
2986
+ __expose({
2987
+ handleHidePanel: () => {
2988
+ datePanelShow.value = false;
2989
+ },
2990
+ handleShowPanel: () => {
2991
+ datePanelShow.value = true;
2992
+ }
2993
+ });
2985
2994
  return (_ctx, _cache) => {
2986
2995
  return openBlock(), createElementBlock("div", {
2987
2996
  class: normalizeClass({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/date-picker",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "蓝鲸监控平台日期时间选择",
5
5
  "license": "MIT",
6
6
  "author": "Tencent BlueKing",