@blueking/date-picker 3.0.0-beta.4 → 3.0.0-beta.5

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/README.md CHANGED
@@ -195,11 +195,11 @@ export default {
195
195
 
196
196
  ```typescript
197
197
  interface ITimezoneItem {
198
- abbreviation: string; // 时区缩写
199
- country: string; // 国家名称
200
- countryCode: string; // 国家代码
198
+ abbreviation?: string; // 时区缩写
199
+ country?: string; // 国家名称
200
+ countryCode?: string; // 国家代码
201
201
  label: string; // 时区标识符(如 Asia/Shanghai)
202
- utc: string; // UTC偏移量(如 UTC+08:00)
202
+ utc?: string; // UTC偏移量(如 UTC+08:00)
203
203
  }
204
204
 
205
205
  interface ITimeZoneGroup {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/date-picker",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.5",
4
4
  "description": "蓝鲸监控平台日期时间选择",
5
5
  "license": "MIT",
6
6
  "author": "Tencent BlueKing",
@@ -1,15 +1,15 @@
1
1
  import { type ITimeZoneGroup, type ITimezoneItem } from '../utils/timezone';
2
2
  declare const _default: import("vue").DefineComponent<{
3
- timezoneOptions?: ITimeZoneGroup[];
3
+ timezoneOptions?: ITimeZoneGroup[] | ITimezoneItem[];
4
4
  value: string;
5
5
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
6
  "update:value": (value: string, info: ITimezoneItem) => any;
7
7
  }, string, import("vue").PublicProps, Readonly<{
8
- timezoneOptions?: ITimeZoneGroup[];
8
+ timezoneOptions?: ITimeZoneGroup[] | ITimezoneItem[];
9
9
  value: string;
10
10
  }> & Readonly<{
11
11
  "onUpdate:value"?: ((value: string, info: ITimezoneItem) => any) | undefined;
12
12
  }>, {
13
- timezoneOptions: ITimeZoneGroup[];
13
+ timezoneOptions: ITimeZoneGroup[] | ITimezoneItem[];
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  export default _default;
@@ -3,11 +3,11 @@ export interface ITimeZoneGroup {
3
3
  options: ITimezoneItem[];
4
4
  }
5
5
  export interface ITimezoneItem {
6
- abbreviation: string;
7
- country: string;
8
- countryCode: string;
6
+ abbreviation?: string;
7
+ country?: string;
8
+ countryCode?: string;
9
9
  label: string;
10
- utc: string;
10
+ utc?: string;
11
11
  }
12
12
  export declare const getTimezoneDetails: () => ITimeZoneGroup[];
13
13
  export declare const getTimezoneInfo: (searchIndex: string) => {
@@ -25940,8 +25940,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
25940
25940
  },
25941
25941
  [
25942
25942
  h$1("span", { class: "option-name" }, `${t("浏览器时区")} ${item.label}`),
25943
- h$1("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
25944
- h$1("span", { class: "option-utc" }, item.utc)
25943
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? h$1("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`) : null,
25944
+ (item == null ? void 0 : item.utc) ? h$1("span", { class: "option-utc" }, item.utc) : null
25945
25945
  ]
25946
25946
  )
25947
25947
  ]
@@ -25979,9 +25979,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
25979
25979
  }
25980
25980
  },
25981
25981
  [
25982
- h$1("span", { class: "option-name" }, item.label),
25983
- h$1("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
25984
- h$1("span", { class: "option-utc" }, item.utc)
25982
+ h$1("span", { class: "option-name" }, (item == null ? void 0 : item.label) || ""),
25983
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? h$1(
25984
+ "span",
25985
+ { class: "option-country" },
25986
+ `${(item == null ? void 0 : item.country) || ""}, ${(item == null ? void 0 : item.abbreviation) || ""}`
25987
+ ) : null,
25988
+ (item == null ? void 0 : item.utc) ? h$1("span", { class: "option-utc" }, item == null ? void 0 : item.utc) : null
25985
25989
  ]
25986
25990
  )
25987
25991
  ]
@@ -33511,8 +33511,8 @@ ${$(r2)}`), n2;
33511
33511
  },
33512
33512
  [
33513
33513
  h$1("span", { class: "option-name" }, `${t("浏览器时区")} ${item.label}`),
33514
- h$1("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
33515
- h$1("span", { class: "option-utc" }, item.utc)
33514
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? h$1("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`) : null,
33515
+ (item == null ? void 0 : item.utc) ? h$1("span", { class: "option-utc" }, item.utc) : null
33516
33516
  ]
33517
33517
  )
33518
33518
  ]
@@ -33550,9 +33550,13 @@ ${$(r2)}`), n2;
33550
33550
  }
33551
33551
  },
33552
33552
  [
33553
- h$1("span", { class: "option-name" }, item.label),
33554
- h$1("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
33555
- h$1("span", { class: "option-utc" }, item.utc)
33553
+ h$1("span", { class: "option-name" }, (item == null ? void 0 : item.label) || ""),
33554
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? h$1(
33555
+ "span",
33556
+ { class: "option-country" },
33557
+ `${(item == null ? void 0 : item.country) || ""}, ${(item == null ? void 0 : item.abbreviation) || ""}`
33558
+ ) : null,
33559
+ (item == null ? void 0 : item.utc) ? h$1("span", { class: "option-utc" }, item == null ? void 0 : item.utc) : null
33556
33560
  ]
33557
33561
  )
33558
33562
  ]
@@ -25955,8 +25955,8 @@ ${$(r2)}`), n2;
25955
25955
  },
25956
25956
  [
25957
25957
  __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-name" }, `${t("浏览器时区")} ${item.label}`),
25958
- __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
25959
- __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-utc" }, item.utc)
25958
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`) : null,
25959
+ (item == null ? void 0 : item.utc) ? __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-utc" }, item.utc) : null
25960
25960
  ]
25961
25961
  )
25962
25962
  ]
@@ -25994,9 +25994,13 @@ ${$(r2)}`), n2;
25994
25994
  }
25995
25995
  },
25996
25996
  [
25997
- __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-name" }, item.label),
25998
- __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
25999
- __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-utc" }, item.utc)
25997
+ __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-name" }, (item == null ? void 0 : item.label) || ""),
25998
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? __WEBPACK_EXTERNAL_MODULE_vue__.h(
25999
+ "span",
26000
+ { class: "option-country" },
26001
+ `${(item == null ? void 0 : item.country) || ""}, ${(item == null ? void 0 : item.abbreviation) || ""}`
26002
+ ) : null,
26003
+ (item == null ? void 0 : item.utc) ? __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-utc" }, item == null ? void 0 : item.utc) : null
26000
26004
  ]
26001
26005
  )
26002
26006
  ]
@@ -1558,8 +1558,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1558
1558
  },
1559
1559
  [
1560
1560
  h("span", { class: "option-name" }, `${t("浏览器时区")} ${item.label}`),
1561
- h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
1562
- h("span", { class: "option-utc" }, item.utc)
1561
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`) : null,
1562
+ (item == null ? void 0 : item.utc) ? h("span", { class: "option-utc" }, item.utc) : null
1563
1563
  ]
1564
1564
  )
1565
1565
  ]
@@ -1597,9 +1597,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1597
1597
  }
1598
1598
  },
1599
1599
  [
1600
- h("span", { class: "option-name" }, item.label),
1601
- h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
1602
- h("span", { class: "option-utc" }, item.utc)
1600
+ h("span", { class: "option-name" }, (item == null ? void 0 : item.label) || ""),
1601
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? h(
1602
+ "span",
1603
+ { class: "option-country" },
1604
+ `${(item == null ? void 0 : item.country) || ""}, ${(item == null ? void 0 : item.abbreviation) || ""}`
1605
+ ) : null,
1606
+ (item == null ? void 0 : item.utc) ? h("span", { class: "option-utc" }, item == null ? void 0 : item.utc) : null
1603
1607
  ]
1604
1608
  )
1605
1609
  ]
@@ -26529,8 +26529,8 @@ ${$(r2)}`), n2;
26529
26529
  },
26530
26530
  [
26531
26531
  __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-name" }, `${t("浏览器时区")} ${item.label}`),
26532
- __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
26533
- __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-utc" }, item.utc)
26532
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`) : null,
26533
+ (item == null ? void 0 : item.utc) ? __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-utc" }, item.utc) : null
26534
26534
  ]
26535
26535
  )
26536
26536
  ]
@@ -26568,9 +26568,13 @@ ${$(r2)}`), n2;
26568
26568
  }
26569
26569
  },
26570
26570
  [
26571
- __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-name" }, item.label),
26572
- __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
26573
- __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-utc" }, item.utc)
26571
+ __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-name" }, (item == null ? void 0 : item.label) || ""),
26572
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? __WEBPACK_EXTERNAL_MODULE_vue__.h(
26573
+ "span",
26574
+ { class: "option-country" },
26575
+ `${(item == null ? void 0 : item.country) || ""}, ${(item == null ? void 0 : item.abbreviation) || ""}`
26576
+ ) : null,
26577
+ (item == null ? void 0 : item.utc) ? __WEBPACK_EXTERNAL_MODULE_vue__.h("span", { class: "option-utc" }, item == null ? void 0 : item.utc) : null
26574
26578
  ]
26575
26579
  )
26576
26580
  ]
@@ -1554,8 +1554,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1554
1554
  },
1555
1555
  [
1556
1556
  vue.h("span", { class: "option-name" }, `${t("浏览器时区")} ${item.label}`),
1557
- vue.h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
1558
- vue.h("span", { class: "option-utc" }, item.utc)
1557
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? vue.h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`) : null,
1558
+ (item == null ? void 0 : item.utc) ? vue.h("span", { class: "option-utc" }, item.utc) : null
1559
1559
  ]
1560
1560
  )
1561
1561
  ]
@@ -1593,9 +1593,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1593
1593
  }
1594
1594
  },
1595
1595
  [
1596
- vue.h("span", { class: "option-name" }, item.label),
1597
- vue.h("span", { class: "option-country" }, `${item.country}, ${item.abbreviation}`),
1598
- vue.h("span", { class: "option-utc" }, item.utc)
1596
+ vue.h("span", { class: "option-name" }, (item == null ? void 0 : item.label) || ""),
1597
+ (item == null ? void 0 : item.country) || (item == null ? void 0 : item.abbreviation) ? vue.h(
1598
+ "span",
1599
+ { class: "option-country" },
1600
+ `${(item == null ? void 0 : item.country) || ""}, ${(item == null ? void 0 : item.abbreviation) || ""}`
1601
+ ) : null,
1602
+ (item == null ? void 0 : item.utc) ? vue.h("span", { class: "option-utc" }, item == null ? void 0 : item.utc) : null
1599
1603
  ]
1600
1604
  )
1601
1605
  ]