@blueking/date-picker 0.0.18 → 0.0.20

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: "datePicker",
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;
56606
+ (_d = (_c = (_b = (_a2 = this.app) == null ? void 0 : _a2.$refs) == null ? void 0 : _b.datePicker) == null ? void 0 : _c.handleHidePanel) == null ? void 0 : _d.call(_c);
56607
+ },
56608
+ handleShowPanel() {
56609
+ var _a2, _b, _c, _d;
56610
+ (_d = (_c = (_b = (_a2 = this.app) == null ? void 0 : _a2.$refs) == null ? void 0 : _b.datePicker) == null ? void 0 : _c.handleShowPanel) == null ? void 0 : _d.call(_c);
56611
+ }
56612
+ },
56593
56613
  mounted() {
56594
56614
  var _a2;
56595
56615
  (_a2 = this.app) == null ? void 0 : _a2.mount(this.$el);