@fuxishi/el-cron-picker 1.0.1 → 1.0.2

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
@@ -46,3 +46,4 @@ import "@fuxishi/el-cron-picker/dist/el-cron-picker.css"
46
46
  ## 更新日志
47
47
 
48
48
  v-1.0.1 解决无 tooltip 问题
49
+ v-1.0.2 解决宽度问题
@@ -6,6 +6,8 @@ declare const _default: import('vue').DefineComponent<ElCronPickerProps, {}, {},
6
6
  }>, {
7
7
  type: import('../types/ElCronPicker').ElCronPickerType;
8
8
  modelValue: string;
9
+ placeholder: string;
9
10
  isVerify: boolean;
11
+ width: string;
10
12
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
13
  export default _default;
@@ -1,2 +1,2 @@
1
- .border-container[data-v-cdb8f8e4]{border:1px solid #eee;border-radius:5px;margin-bottom:10px;padding:10px}.el-radio-group[data-v-cdb8f8e4]{flex-direction:column;align-items:flex-start;display:flex}.el-radio-group .el-radio[data-v-cdb8f8e4]{margin:0 0 8px}.time-tag[data-v-cdb8f8e4]{margin-top:5px;margin-right:5px}.icon-span[data-v-ef7e1e25],.icon-span[data-v-ef7e1e25] svg{width:16px;height:16px}.el-drawer-header-custom{margin:0!important}
1
+ .border-container[data-v-f471c3c4]{border:1px solid #eee;border-radius:5px;margin-bottom:10px;padding:10px}.el-radio-group[data-v-f471c3c4]{flex-direction:column;align-items:flex-start;display:flex}.el-radio-group .el-radio[data-v-f471c3c4]{margin:0 0 8px}.time-tag[data-v-f471c3c4]{margin-top:5px;margin-right:5px}.icon-span[data-v-c7646e2c],.icon-span[data-v-c7646e2c] svg{width:16px;height:16px}.el-drawer-header-custom{margin:0!important}
2
2
  /*$vite$:1*/
@@ -39106,7 +39106,7 @@ var _hoisted_1$1 = { class: "border-container" }, _hoisted_2$1 = { class: "borde
39106
39106
  let n = e.__vccOpts || e;
39107
39107
  for (let [e, r] of t) n[e] = r;
39108
39108
  return n;
39109
- }, ElCronConfig_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ElCronConfig_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-cdb8f8e4"]]), _hoisted_1 = { style: {
39109
+ }, ElCronConfig_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ElCronConfig_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f471c3c4"]]), _hoisted_1 = { style: {
39110
39110
  display: "flex",
39111
39111
  "justify-content": "end"
39112
39112
  } }, _hoisted_2 = { style: { display: "inline-block" } }, _hoisted_3 = ["innerHTML"], _hoisted_4 = { key: 2 }, _hoisted_5 = { style: {
@@ -39121,7 +39121,9 @@ var _hoisted_1$1 = { class: "border-container" }, _hoisted_2$1 = { class: "borde
39121
39121
  type: Boolean,
39122
39122
  default: !1
39123
39123
  },
39124
- icon: {}
39124
+ icon: {},
39125
+ placeholder: { default: "请输入Cron表达式" },
39126
+ width: { default: "800px" }
39125
39127
  },
39126
39128
  emits: ["update:modelValue"],
39127
39129
  setup(e, { emit: t }) {
@@ -39143,16 +39145,17 @@ var _hoisted_1$1 = { class: "border-container" }, _hoisted_2$1 = { class: "borde
39143
39145
  key: 0,
39144
39146
  visible: J.value,
39145
39147
  placement: "bottom-start",
39146
- width: "480",
39148
+ width: e.width,
39147
39149
  trigger: "click"
39148
39150
  }, {
39149
39151
  reference: withCtx(() => [createVNode(i, {
39150
39152
  modelValue: z.value,
39151
39153
  "onUpdate:modelValue": r[0] ||= (e) => z.value = e,
39154
+ placeholder: e.placeholder,
39152
39155
  onClick: r[1] ||= () => {
39153
39156
  e.type === "popover" && !e.icon && LZ();
39154
39157
  }
39155
- }, null, 8, ["modelValue"])]),
39158
+ }, null, 8, ["modelValue", "placeholder"])]),
39156
39159
  default: withCtx(() => [createVNode(ElCronConfig_default, {
39157
39160
  modelValue: z.value,
39158
39161
  "onUpdate:modelValue": r[2] ||= (e) => z.value = e,
@@ -39168,10 +39171,11 @@ var _hoisted_1$1 = { class: "border-container" }, _hoisted_2$1 = { class: "borde
39168
39171
  _: 1
39169
39172
  })])]),
39170
39173
  _: 1
39171
- }, 8, ["visible"])) : (openBlock(), createBlock(i, {
39174
+ }, 8, ["visible", "width"])) : (openBlock(), createBlock(i, {
39172
39175
  key: 1,
39173
39176
  modelValue: z.value,
39174
39177
  "onUpdate:modelValue": r[8] ||= (e) => z.value = e,
39178
+ placeholder: e.placeholder,
39175
39179
  onClick: r[9] ||= () => {
39176
39180
  e.type !== "popover" && !e.icon && LZ();
39177
39181
  }
@@ -39182,7 +39186,7 @@ var _hoisted_1$1 = { class: "border-container" }, _hoisted_2$1 = { class: "borde
39182
39186
  visible: J.value,
39183
39187
  placement: "bottom-end",
39184
39188
  trigger: "click",
39185
- width: "480"
39189
+ width: e.width
39186
39190
  }, {
39187
39191
  reference: withCtx(() => [createElementVNode("div", _hoisted_2, [createVNode(zZ, { content: "Cron表达式" }, {
39188
39192
  default: withCtx(() => [createVNode(V, { onClick: LZ }, {
@@ -39211,7 +39215,7 @@ var _hoisted_1$1 = { class: "border-container" }, _hoisted_2$1 = { class: "borde
39211
39215
  _: 1
39212
39216
  })])]),
39213
39217
  _: 1
39214
- }, 8, ["visible"])) : createCommentVNode("", !0), e.type === "popover" ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(zZ, { content: "Cron表达式" }, {
39218
+ }, 8, ["visible", "width"])) : createCommentVNode("", !0), e.type === "popover" ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(zZ, { content: "Cron表达式" }, {
39215
39219
  default: withCtx(() => [createVNode(V, { onClick: LZ }, {
39216
39220
  default: withCtx(() => [isVNode(e.icon) ? (openBlock(), createBlock(resolveDynamicComponent(e.icon), { key: 0 })) : unref(isSvg)(e.icon) ? (openBlock(), createElementBlock("span", {
39217
39221
  key: 1,
@@ -39224,7 +39228,7 @@ var _hoisted_1$1 = { class: "border-container" }, _hoisted_2$1 = { class: "borde
39224
39228
  _: 1
39225
39229
  })]))]),
39226
39230
  key: "0"
39227
- } : void 0]), 1032, ["modelValue"])),
39231
+ } : void 0]), 1032, ["modelValue", "placeholder"])),
39228
39232
  createElementVNode("div", null, [e.isVerify && L.value ? (openBlock(), createBlock(BZ, {
39229
39233
  key: 0,
39230
39234
  type: "danger",
@@ -39238,7 +39242,7 @@ var _hoisted_1$1 = { class: "border-container" }, _hoisted_2$1 = { class: "borde
39238
39242
  modelValue: FZ.value,
39239
39243
  "onUpdate:modelValue": r[13] ||= (e) => FZ.value = e,
39240
39244
  title: "Cron配置",
39241
- width: "500px",
39245
+ width: e.width,
39242
39246
  "align-center": "",
39243
39247
  "close-on-click-modal": !1,
39244
39248
  "close-on-press-escape": !1
@@ -39259,14 +39263,14 @@ var _hoisted_1$1 = { class: "border-container" }, _hoisted_2$1 = { class: "borde
39259
39263
  _: 1
39260
39264
  })]),
39261
39265
  _: 1
39262
- }, 8, ["modelValue"])) : createCommentVNode("", !0),
39266
+ }, 8, ["modelValue", "width"])) : createCommentVNode("", !0),
39263
39267
  e.type === "drawer" ? (openBlock(), createBlock(UZ, {
39264
39268
  key: 3,
39265
39269
  modelValue: IZ.value,
39266
39270
  "onUpdate:modelValue": r[17] ||= (e) => IZ.value = e,
39267
39271
  title: "Cron配置",
39268
- width: "500px",
39269
39272
  "align-center": "",
39273
+ size: e.width,
39270
39274
  "close-on-click-modal": !1,
39271
39275
  "close-on-press-escape": !1,
39272
39276
  "header-class": "el-drawer-header-custom"
@@ -39287,9 +39291,9 @@ var _hoisted_1$1 = { class: "border-container" }, _hoisted_2$1 = { class: "borde
39287
39291
  _: 1
39288
39292
  })]),
39289
39293
  _: 1
39290
- }, 8, ["modelValue"])) : createCommentVNode("", !0)
39294
+ }, 8, ["modelValue", "size"])) : createCommentVNode("", !0)
39291
39295
  ], 64);
39292
39296
  };
39293
39297
  }
39294
- }), ElCronPicker_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ElCronPicker_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-ef7e1e25"]]);
39298
+ }), ElCronPicker_default = /* @__PURE__ */ __plugin_vue_export_helper_default(ElCronPicker_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c7646e2c"]]);
39295
39299
  export { ElCronConfig_default as ElCronConfig, ElCronPicker_default as ElCronPicker };