@blueking/date-picker 2.0.0-beta.24 → 2.0.0-beta.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/date-picker",
3
- "version": "2.0.0-beta.24",
3
+ "version": "2.0.0-beta.25",
4
4
  "description": "蓝鲸监控平台日期时间选择",
5
5
  "license": "MIT",
6
6
  "author": "Tencent BlueKing",
@@ -26999,6 +26999,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26999
26999
  var _a;
27000
27000
  return ((_a = props2.commonUseList) == null ? void 0 : _a.length) ? props2.commonUseList : commonDateList;
27001
27001
  });
27002
+ const dateDetailDisplayString = computed(() => {
27003
+ var _a;
27004
+ const commonDate = commonDateUseList.value.find((item) => {
27005
+ var _a2, _b, _c, _d;
27006
+ return Array(item.id) && ((_b = (_a2 = item.id).join) == null ? void 0 : _b.call(_a2, "_")) === ((_d = (_c = dateDetail.value) == null ? void 0 : _c.dateValue) == null ? void 0 : _d.join("_"));
27007
+ });
27008
+ if (commonDate) {
27009
+ return commonDate.name;
27010
+ }
27011
+ return (_a = dateDetail.value) == null ? void 0 : _a.toDisplayString();
27012
+ });
27002
27013
  useDatePickerProvider({
27003
27014
  commonUseList: commonDateUseList,
27004
27015
  format,
@@ -27147,7 +27158,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27147
27158
  createElementVNode(
27148
27159
  "span",
27149
27160
  null,
27150
- toDisplayString(dateDetail.value.toDisplayString()),
27161
+ toDisplayString(dateDetailDisplayString.value),
27151
27162
  1
27152
27163
  /* TEXT */
27153
27164
  ),
@@ -34016,6 +34016,17 @@ ${$(r2)}`), n2;
34016
34016
  var _a;
34017
34017
  return ((_a = props2.commonUseList) == null ? void 0 : _a.length) ? props2.commonUseList : commonDateList;
34018
34018
  });
34019
+ const dateDetailDisplayString = computed(() => {
34020
+ var _a;
34021
+ const commonDate = commonDateUseList.value.find((item) => {
34022
+ var _a2, _b, _c, _d;
34023
+ return Array(item.id) && ((_b = (_a2 = item.id).join) == null ? void 0 : _b.call(_a2, "_")) === ((_d = (_c = dateDetail.value) == null ? void 0 : _c.dateValue) == null ? void 0 : _d.join("_"));
34024
+ });
34025
+ if (commonDate) {
34026
+ return commonDate.name;
34027
+ }
34028
+ return (_a = dateDetail.value) == null ? void 0 : _a.toDisplayString();
34029
+ });
34019
34030
  useDatePickerProvider({
34020
34031
  commonUseList: commonDateUseList,
34021
34032
  format,
@@ -34164,7 +34175,7 @@ ${$(r2)}`), n2;
34164
34175
  createBaseVNode(
34165
34176
  "span",
34166
34177
  null,
34167
- toDisplayString(dateDetail.value.toDisplayString()),
34178
+ toDisplayString(dateDetailDisplayString.value),
34168
34179
  1
34169
34180
  /* TEXT */
34170
34181
  ),
@@ -27014,6 +27014,17 @@ ${$(r2)}`), n2;
27014
27014
  var _a;
27015
27015
  return ((_a = props2.commonUseList) == null ? void 0 : _a.length) ? props2.commonUseList : commonDateList;
27016
27016
  });
27017
+ const dateDetailDisplayString = __WEBPACK_EXTERNAL_MODULE_vue__.computed(() => {
27018
+ var _a;
27019
+ const commonDate = commonDateUseList.value.find((item) => {
27020
+ var _a2, _b, _c, _d;
27021
+ return Array(item.id) && ((_b = (_a2 = item.id).join) == null ? void 0 : _b.call(_a2, "_")) === ((_d = (_c = dateDetail.value) == null ? void 0 : _c.dateValue) == null ? void 0 : _d.join("_"));
27022
+ });
27023
+ if (commonDate) {
27024
+ return commonDate.name;
27025
+ }
27026
+ return (_a = dateDetail.value) == null ? void 0 : _a.toDisplayString();
27027
+ });
27017
27028
  useDatePickerProvider({
27018
27029
  commonUseList: commonDateUseList,
27019
27030
  format,
@@ -27162,7 +27173,7 @@ ${$(r2)}`), n2;
27162
27173
  __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode(
27163
27174
  "span",
27164
27175
  null,
27165
- __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString(dateDetail.value.toDisplayString()),
27176
+ __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString(dateDetailDisplayString.value),
27166
27177
  1
27167
27178
  /* TEXT */
27168
27179
  ),
@@ -4084,6 +4084,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4084
4084
  var _a;
4085
4085
  return ((_a = props.commonUseList) == null ? void 0 : _a.length) ? props.commonUseList : commonDateList;
4086
4086
  });
4087
+ const dateDetailDisplayString = computed(() => {
4088
+ var _a;
4089
+ const commonDate = commonDateUseList.value.find((item) => {
4090
+ var _a2, _b, _c, _d;
4091
+ return Array(item.id) && ((_b = (_a2 = item.id).join) == null ? void 0 : _b.call(_a2, "_")) === ((_d = (_c = dateDetail.value) == null ? void 0 : _c.dateValue) == null ? void 0 : _d.join("_"));
4092
+ });
4093
+ if (commonDate) {
4094
+ return commonDate.name;
4095
+ }
4096
+ return (_a = dateDetail.value) == null ? void 0 : _a.toDisplayString();
4097
+ });
4087
4098
  useDatePickerProvider({
4088
4099
  commonUseList: commonDateUseList,
4089
4100
  format,
@@ -4232,7 +4243,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4232
4243
  createElementVNode(
4233
4244
  "span",
4234
4245
  null,
4235
- toDisplayString(dateDetail.value.toDisplayString()),
4246
+ toDisplayString(dateDetailDisplayString.value),
4236
4247
  1
4237
4248
  /* TEXT */
4238
4249
  ),
@@ -27617,6 +27617,17 @@ ${$(r2)}`), n2;
27617
27617
  var _a;
27618
27618
  return ((_a = props2.commonUseList) == null ? void 0 : _a.length) ? props2.commonUseList : commonDateList;
27619
27619
  });
27620
+ const dateDetailDisplayString = __WEBPACK_EXTERNAL_MODULE_vue__.computed(() => {
27621
+ var _a;
27622
+ const commonDate = commonDateUseList.value.find((item) => {
27623
+ var _a2, _b, _c, _d;
27624
+ return Array(item.id) && ((_b = (_a2 = item.id).join) == null ? void 0 : _b.call(_a2, "_")) === ((_d = (_c = dateDetail.value) == null ? void 0 : _c.dateValue) == null ? void 0 : _d.join("_"));
27625
+ });
27626
+ if (commonDate) {
27627
+ return commonDate.name;
27628
+ }
27629
+ return (_a = dateDetail.value) == null ? void 0 : _a.toDisplayString();
27630
+ });
27620
27631
  useDatePickerProvider({
27621
27632
  commonUseList: commonDateUseList,
27622
27633
  format,
@@ -27765,7 +27776,7 @@ ${$(r2)}`), n2;
27765
27776
  __WEBPACK_EXTERNAL_MODULE_vue__.createElementVNode(
27766
27777
  "span",
27767
27778
  null,
27768
- __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString(dateDetail.value.toDisplayString()),
27779
+ __WEBPACK_EXTERNAL_MODULE_vue__.toDisplayString(dateDetailDisplayString.value),
27769
27780
  1
27770
27781
  /* TEXT */
27771
27782
  ),
@@ -4080,6 +4080,17 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4080
4080
  var _a;
4081
4081
  return ((_a = props.commonUseList) == null ? void 0 : _a.length) ? props.commonUseList : commonDateList;
4082
4082
  });
4083
+ const dateDetailDisplayString = vue.computed(() => {
4084
+ var _a;
4085
+ const commonDate = commonDateUseList.value.find((item) => {
4086
+ var _a2, _b, _c, _d;
4087
+ return Array(item.id) && ((_b = (_a2 = item.id).join) == null ? void 0 : _b.call(_a2, "_")) === ((_d = (_c = dateDetail.value) == null ? void 0 : _c.dateValue) == null ? void 0 : _d.join("_"));
4088
+ });
4089
+ if (commonDate) {
4090
+ return commonDate.name;
4091
+ }
4092
+ return (_a = dateDetail.value) == null ? void 0 : _a.toDisplayString();
4093
+ });
4083
4094
  useDatePickerProvider({
4084
4095
  commonUseList: commonDateUseList,
4085
4096
  format,
@@ -4228,7 +4239,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4228
4239
  vue.createElementVNode(
4229
4240
  "span",
4230
4241
  null,
4231
- vue.toDisplayString(dateDetail.value.toDisplayString()),
4242
+ vue.toDisplayString(dateDetailDisplayString.value),
4232
4243
  1
4233
4244
  /* TEXT */
4234
4245
  ),