starfish-form-custom 1.0.53 → 1.0.55

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.
@@ -11,7 +11,7 @@ import 'element-plus/es/components/button/style/css';
11
11
  import 'element-plus/es/components/tooltip/style/css';
12
12
  import { defineComponent, inject, ref, getCurrentInstance, reactive, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, createBlock, withCtx, createTextVNode, createVNode, Fragment, renderList, withModifiers } from 'vue';
13
13
  import { Codemirror } from 'vue-codemirror';
14
- import { _ as _export_sfc } from './main-88db9ea9.mjs';
14
+ import { _ as _export_sfc } from './main-055afe58.mjs';
15
15
  import 'element-plus/es/components/icon/style/css';
16
16
  import 'element-plus/es/components/checkbox/style/css';
17
17
  import '@element-plus/icons-vue';
@@ -1,10 +1,10 @@
1
1
  import { ElTooltip } from 'element-plus/es';
2
2
  import 'element-plus/es/components/base/style/css';
3
3
  import 'element-plus/es/components/tooltip/style/css';
4
- import { defineComponent, ref, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createCommentVNode, toDisplayString, createBlock, withCtx, withModifiers, createVNode } from 'vue';
4
+ import { defineComponent, ref, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createCommentVNode, createVNode, withCtx, toDisplayString, createBlock, withModifiers } from 'vue';
5
5
  import { QuillEditor } from '@vueup/vue-quill';
6
6
  import '@vueup/vue-quill/dist/vue-quill.snow.css';
7
- import { _ as _export_sfc, g as getFormConfig, f as fieldProps, u as useWatch } from './main-88db9ea9.mjs';
7
+ import { _ as _export_sfc, g as getFormConfig, f as fieldProps, u as useWatch } from './main-055afe58.mjs';
8
8
  import 'element-plus/es/components/icon/style/css';
9
9
  import 'element-plus/es/components/input/style/css';
10
10
  import 'element-plus/es/components/checkbox/style/css';
@@ -191,7 +191,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
191
191
  style: normalizeStyle({ width: _ctx.labelWidth + "px" })
192
192
  }, [
193
193
  _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" ? (openBlock(), createElementBlock("span", _hoisted_2, "*")) : createCommentVNode("", true),
194
- createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
194
+ createVNode(_component_el_tooltip, {
195
+ disabled: _ctx.item.data.label.length <= 6,
196
+ content: _ctx.item.data.label + _ctx.suffix,
197
+ placement: "top"
198
+ }, {
199
+ default: withCtx(() => [
200
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1)
201
+ ]),
202
+ _: 1
203
+ }, 8, ["disabled", "content"]),
195
204
  _ctx.item.data.tip && !_ctx.readonly ? (openBlock(), createBlock(_component_el_tooltip, {
196
205
  key: 1,
197
206
  class: "item",
@@ -231,6 +240,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
231
240
  ], 4)
232
241
  ], 10, _hoisted_1);
233
242
  }
234
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4f6b6c10"]]);
243
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-34acb2a2"]]);
235
244
 
236
245
  export { index as default };
@@ -13,9 +13,9 @@ import 'element-plus/es/components/dropdown-item/style/css';
13
13
  import 'element-plus/es/components/button/style/css';
14
14
  import 'element-plus/es/components/tooltip/style/css';
15
15
  import { defineComponent, getCurrentInstance, inject, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, createTextVNode, Fragment, renderList } from 'vue';
16
- import { _ as _export_sfc, a as _, f as fieldProps, r as ruleList, b as ruleJsonData } from './main-88db9ea9.mjs';
16
+ import { _ as _export_sfc, a as _, f as fieldProps, r as ruleList, b as ruleJsonData } from './main-055afe58.mjs';
17
17
  import { Delete } from '@element-plus/icons-vue';
18
- import Dynamicform from './starfish-form-94702b50.mjs';
18
+ import Dynamicform from './starfish-form-80e66adf.mjs';
19
19
  import { Codemirror } from 'vue-codemirror';
20
20
  import 'element-plus/es/components/input/style/css';
21
21
  import 'element-plus/es/components/checkbox/style/css';
@@ -6,7 +6,7 @@ import 'element-plus/es/components/button/style/css';
6
6
  import 'element-plus/es/components/main/style/css';
7
7
  import 'element-plus/es/components/tooltip/style/css';
8
8
  import { defineComponent, ref, onMounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, createVNode, createTextVNode } from 'vue';
9
- import { _ as _export_sfc, a as _, g as getFormConfig, f as fieldProps, u as useWatch } from './main-88db9ea9.mjs';
9
+ import { _ as _export_sfc, a as _, g as getFormConfig, f as fieldProps, u as useWatch } from './main-055afe58.mjs';
10
10
  import JSONEditor from 'jsoneditor';
11
11
  import 'element-plus/es/components/icon/style/css';
12
12
  import 'element-plus/es/components/input/style/css';
@@ -4,7 +4,7 @@ import 'element-plus/es/components/icon/style/css';
4
4
  import 'element-plus/es/components/input/style/css';
5
5
  import 'element-plus/es/components/checkbox/style/css';
6
6
  import 'element-plus/es/components/tooltip/style/css';
7
- import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, Fragment, renderList, createVNode, withDirectives, inject, computed, ref, createTextVNode, getCurrentInstance, watch, vShow, resolveDynamicComponent, nextTick, reactive, defineAsyncComponent } from 'vue';
7
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode, createBlock, withCtx, Fragment, renderList, createVNode, withDirectives, inject, computed, ref, createTextVNode, getCurrentInstance, watch, onMounted, vShow, resolveDynamicComponent, nextTick, reactive, defineAsyncComponent } from 'vue';
8
8
  import { SemiSelect, Top, Bottom, Delete, Edit } from '@element-plus/icons-vue';
9
9
  import 'element-plus/es/components/loading/style/css';
10
10
  import 'element-plus/es/components/dropdown/style/css';
@@ -509,7 +509,7 @@ function getMoren(fieldName, component, label) {
509
509
  data: {
510
510
  fieldName: "placeholder",
511
511
  tip: "",
512
- label: "输入占位文字",
512
+ label: "占位文字",
513
513
  placeholder: "请输入占位文字",
514
514
  showRule: "{}",
515
515
  required: false,
@@ -902,7 +902,7 @@ function getMoren(fieldName, component, label) {
902
902
  data: {
903
903
  fieldName,
904
904
  tip: "",
905
- label: label ? label : "输入占位文字",
905
+ label: label ? label : "占位文字",
906
906
  placeholder: "请输入占位文字",
907
907
  showRule: "{}",
908
908
  required: false,
@@ -1216,7 +1216,10 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
1216
1216
  class: "top",
1217
1217
  onClick: ($event) => _ctx.handleTop(index)
1218
1218
  }, [
1219
- createVNode(_component_el_icon, { size: 12 }, {
1219
+ createVNode(_component_el_icon, {
1220
+ size: 12,
1221
+ style: { "color": "#fff" }
1222
+ }, {
1220
1223
  default: withCtx(() => [
1221
1224
  createVNode(_component_Top)
1222
1225
  ]),
@@ -1227,7 +1230,10 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
1227
1230
  class: "bottom",
1228
1231
  onClick: ($event) => _ctx.handleBottom(index)
1229
1232
  }, [
1230
- createVNode(_component_el_icon, { size: 12 }, {
1233
+ createVNode(_component_el_icon, {
1234
+ size: 12,
1235
+ style: { "color": "#fff" }
1236
+ }, {
1231
1237
  default: withCtx(() => [
1232
1238
  createVNode(_component_Bottom)
1233
1239
  ]),
@@ -1445,7 +1451,10 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
1445
1451
  class: "top",
1446
1452
  onClick: ($event) => _ctx.handleTop(index)
1447
1453
  }, [
1448
- createVNode(_component_el_icon, { size: 12 }, {
1454
+ createVNode(_component_el_icon, {
1455
+ size: 12,
1456
+ style: { "color": "#fff" }
1457
+ }, {
1449
1458
  default: withCtx(() => [
1450
1459
  createVNode(_component_Top)
1451
1460
  ]),
@@ -1456,7 +1465,10 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
1456
1465
  class: "bottom",
1457
1466
  onClick: ($event) => _ctx.handleBottom(index)
1458
1467
  }, [
1459
- createVNode(_component_el_icon, { size: 12 }, {
1468
+ createVNode(_component_el_icon, {
1469
+ size: 12,
1470
+ style: { "color": "#fff" }
1471
+ }, {
1460
1472
  default: withCtx(() => [
1461
1473
  createVNode(_component_Bottom)
1462
1474
  ]),
@@ -2094,7 +2106,16 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
2094
2106
  style: normalizeStyle({ width: _ctx.labelWidth + "px" })
2095
2107
  }, [
2096
2108
  _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" && !_ctx.search ? (openBlock(), createElementBlock("span", _hoisted_1$k, "*")) : createCommentVNode("", true),
2097
- createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
2109
+ createVNode(_component_el_tooltip, {
2110
+ disabled: _ctx.item.data.label.length <= 6,
2111
+ content: _ctx.item.data.label + _ctx.suffix,
2112
+ placement: "top"
2113
+ }, {
2114
+ default: withCtx(() => [
2115
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1)
2116
+ ]),
2117
+ _: 1
2118
+ }, 8, ["disabled", "content"]),
2098
2119
  _ctx.item.data.tip && !_ctx.readonly && !_ctx.search ? (openBlock(), createBlock(_component_el_tooltip, {
2099
2120
  key: 1,
2100
2121
  class: "item",
@@ -2270,7 +2291,10 @@ const _sfc_main$i = defineComponent({
2270
2291
  formConfig: getFormConfig("Date", [
2271
2292
  { fieldName: "default", component: "DateTime" },
2272
2293
  { fieldName: "placeholder", component: "Text" },
2273
- { fieldName: "format", component: "Selected" },
2294
+ {
2295
+ fieldName: "format",
2296
+ component: "Selected"
2297
+ },
2274
2298
  { fieldName: "state", component: "Radio" }
2275
2299
  ]),
2276
2300
  actionType: ["onChange"],
@@ -2279,11 +2303,12 @@ const _sfc_main$i = defineComponent({
2279
2303
  },
2280
2304
  setup(props) {
2281
2305
  useWatch(props);
2306
+ const previewValue = ref("");
2282
2307
  const getPickerType = (format) => {
2283
2308
  if (!format)
2284
2309
  return "date";
2285
2310
  const formatTypeMap = {
2286
- "YYYY": "year",
2311
+ YYYY: "year",
2287
2312
  "YYYY-MM": "month",
2288
2313
  "YYYY-MM-DD": "date",
2289
2314
  "YYYY-MM-DD HH": "datetime",
@@ -2299,27 +2324,62 @@ const _sfc_main$i = defineComponent({
2299
2324
  return dateValue;
2300
2325
  }
2301
2326
  if (dateValue instanceof Date) {
2302
- const year = dateValue.getFullYear();
2303
- const month = String(dateValue.getMonth() + 1).padStart(2, "0");
2304
- const day = String(dateValue.getDate()).padStart(2, "0");
2305
- const hours = String(dateValue.getHours()).padStart(2, "0");
2306
- const minutes = String(dateValue.getMinutes()).padStart(2, "0");
2307
- const seconds = String(dateValue.getSeconds()).padStart(2, "0");
2308
- const formatMap = {
2309
- "YYYY": `${year}`,
2310
- "YYYY-MM": `${year}-${month}`,
2311
- "YYYY-MM-DD": `${year}-${month}-${day}`,
2312
- "YYYY-MM-DD HH": `${year}-${month}-${day} ${hours}`,
2313
- "YYYY-MM-DD HH:mm": `${year}-${month}-${day} ${hours}:${minutes}`,
2314
- "YYYY-MM-DD HH:mm:ss": `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
2315
- };
2316
- return formatMap[format] || `${year}-${month}-${day}`;
2327
+ return formatDateToString(dateValue, format);
2317
2328
  }
2318
2329
  return String(dateValue);
2319
2330
  };
2331
+ const formatDateToString = (date, format) => {
2332
+ const year = date.getFullYear();
2333
+ const month = String(date.getMonth() + 1).padStart(2, "0");
2334
+ const day = String(date.getDate()).padStart(2, "0");
2335
+ const hours = String(date.getHours()).padStart(2, "0");
2336
+ const minutes = String(date.getMinutes()).padStart(2, "0");
2337
+ const seconds = String(date.getSeconds()).padStart(2, "0");
2338
+ const formatMap = {
2339
+ YYYY: `${year}`,
2340
+ "YYYY-MM": `${year}-${month}`,
2341
+ "YYYY-MM-DD": `${year}-${month}-${day}`,
2342
+ "YYYY-MM-DD HH": `${year}-${month}-${day} ${hours}`,
2343
+ "YYYY-MM-DD HH:mm": `${year}-${month}-${day} ${hours}:${minutes}`,
2344
+ "YYYY-MM-DD HH:mm:ss": `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`
2345
+ };
2346
+ return formatMap[format] || `${year}-${month}-${day}`;
2347
+ };
2348
+ const handlePreviewChange = (val) => {
2349
+ props.item.data.default = val;
2350
+ };
2351
+ const updatePreviewValue = () => {
2352
+ if (props.drag && props.item.data.default) {
2353
+ if (props.item.data.default instanceof Date) {
2354
+ previewValue.value = formatDateToString(props.item.data.default, props.item.data.format || "YYYY-MM-DD");
2355
+ } else {
2356
+ previewValue.value = props.item.data.default;
2357
+ }
2358
+ } else {
2359
+ previewValue.value = "";
2360
+ }
2361
+ };
2362
+ watch(
2363
+ () => props.item.data.default,
2364
+ () => {
2365
+ updatePreviewValue();
2366
+ },
2367
+ { deep: true }
2368
+ );
2369
+ watch(
2370
+ () => props.item.data.format,
2371
+ () => {
2372
+ updatePreviewValue();
2373
+ }
2374
+ );
2375
+ onMounted(() => {
2376
+ updatePreviewValue();
2377
+ });
2320
2378
  return {
2379
+ previewValue,
2321
2380
  getPickerType,
2322
- formatReadonlyDate
2381
+ formatReadonlyDate,
2382
+ handlePreviewChange
2323
2383
  };
2324
2384
  }
2325
2385
  });
@@ -2332,14 +2392,27 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
2332
2392
  const _component_el_tooltip = ElTooltip;
2333
2393
  const _component_el_date_picker = ElDatePicker;
2334
2394
  return openBlock(), createElementBlock("div", {
2335
- class: normalizeClass(["starfish-formitem", { formCover: _ctx.drag, "starfish-vertical": _ctx.labelalign != "top", [_ctx.item.data.csslist?.join(" ")]: !!_ctx.item.data.csslist }])
2395
+ class: normalizeClass(["starfish-formitem", {
2396
+ formCover: _ctx.drag,
2397
+ "starfish-vertical": _ctx.labelalign != "top",
2398
+ [_ctx.item.data.csslist?.join(" ")]: !!_ctx.item.data.csslist
2399
+ }])
2336
2400
  }, [
2337
2401
  createElementVNode("div", {
2338
2402
  class: normalizeClass(["label", "label_" + _ctx.labelalign]),
2339
2403
  style: normalizeStyle({ width: _ctx.labelWidth + "px" })
2340
2404
  }, [
2341
2405
  _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" && !_ctx.search ? (openBlock(), createElementBlock("span", _hoisted_1$i, "*")) : createCommentVNode("", true),
2342
- createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
2406
+ createVNode(_component_el_tooltip, {
2407
+ disabled: _ctx.item.data.label.length <= 6,
2408
+ content: _ctx.item.data.label + _ctx.suffix,
2409
+ placement: "top"
2410
+ }, {
2411
+ default: withCtx(() => [
2412
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1)
2413
+ ]),
2414
+ _: 1
2415
+ }, 8, ["disabled", "content"]),
2343
2416
  _ctx.item.data.tip && !_ctx.readonly && !_ctx.search ? (openBlock(), createBlock(_component_el_tooltip, {
2344
2417
  key: 1,
2345
2418
  class: "item",
@@ -2359,8 +2432,8 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
2359
2432
  }, [
2360
2433
  _ctx.drag ? (openBlock(), createBlock(_component_el_date_picker, {
2361
2434
  key: 0,
2362
- modelValue: _ctx.item.data.default,
2363
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.item.data.default = $event),
2435
+ modelValue: _ctx.previewValue,
2436
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.previewValue = $event),
2364
2437
  style: { "width": "320px" },
2365
2438
  type: _ctx.getPickerType(_ctx.item.data.format),
2366
2439
  format: _ctx.item.data.format,
@@ -2368,8 +2441,9 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
2368
2441
  placeholder: _ctx.item.data.placeholder,
2369
2442
  size: _ctx.size,
2370
2443
  disabled: _ctx.item.data.state === "disabled",
2371
- readonly: _ctx.item.data.state === "readonly"
2372
- }, null, 8, ["modelValue", "type", "format", "value-format", "placeholder", "size", "disabled", "readonly"])) : createCommentVNode("", true),
2444
+ readonly: _ctx.item.data.state === "readonly",
2445
+ onChange: _ctx.handlePreviewChange
2446
+ }, null, 8, ["modelValue", "type", "format", "value-format", "placeholder", "size", "disabled", "readonly", "onChange"])) : createCommentVNode("", true),
2373
2447
  !_ctx.drag && (_ctx.item.data.state === "readonly" || _ctx.readonly) ? (openBlock(), createElementBlock("span", _hoisted_2$a, toDisplayString(_ctx.formatReadonlyDate(_ctx.data[_ctx.item.data.fieldName], _ctx.item.data.format)), 1)) : !_ctx.drag ? (openBlock(), createBlock(_component_el_date_picker, {
2374
2448
  key: 2,
2375
2449
  modelValue: _ctx.data[_ctx.item.data.fieldName],
@@ -2568,7 +2642,16 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
2568
2642
  style: normalizeStyle({ width: _ctx.labelWidth + "px" })
2569
2643
  }, [
2570
2644
  _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" && !_ctx.search ? (openBlock(), createElementBlock("span", _hoisted_1$g, "*")) : createCommentVNode("", true),
2571
- createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
2645
+ createVNode(_component_el_tooltip, {
2646
+ disabled: _ctx.item.data.label.length < 6,
2647
+ content: _ctx.item.data.label + _ctx.suffix,
2648
+ placement: "top"
2649
+ }, {
2650
+ default: withCtx(() => [
2651
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1)
2652
+ ]),
2653
+ _: 1
2654
+ }, 8, ["disabled", "content"]),
2572
2655
  _ctx.item.data.tip && !_ctx.readonly && !_ctx.search ? (openBlock(), createBlock(_component_el_tooltip, {
2573
2656
  key: 1,
2574
2657
  class: "item",
@@ -2668,7 +2751,16 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
2668
2751
  style: normalizeStyle({ width: _ctx.labelWidth + "px" })
2669
2752
  }, [
2670
2753
  _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" ? (openBlock(), createElementBlock("span", _hoisted_1$f, "*")) : createCommentVNode("", true),
2671
- createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
2754
+ createVNode(_component_el_tooltip, {
2755
+ disabled: _ctx.item.data.label.length <= 6,
2756
+ content: _ctx.item.data.label + _ctx.suffix,
2757
+ placement: "top"
2758
+ }, {
2759
+ default: withCtx(() => [
2760
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1)
2761
+ ]),
2762
+ _: 1
2763
+ }, 8, ["disabled", "content"]),
2672
2764
  _ctx.item.data.tip && !_ctx.readonly ? (openBlock(), createBlock(_component_el_tooltip, {
2673
2765
  key: 1,
2674
2766
  class: "item",
@@ -3234,7 +3326,16 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
3234
3326
  style: normalizeStyle({ width: _ctx.labelWidth + "px" })
3235
3327
  }, [
3236
3328
  _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" && !_ctx.search ? (openBlock(), createElementBlock("span", _hoisted_1$e, "*")) : createCommentVNode("", true),
3237
- createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
3329
+ createVNode(_component_el_tooltip, {
3330
+ disabled: _ctx.item.data.label.length <= 6,
3331
+ content: _ctx.item.data.label + _ctx.suffix,
3332
+ placement: "top"
3333
+ }, {
3334
+ default: withCtx(() => [
3335
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1)
3336
+ ]),
3337
+ _: 1
3338
+ }, 8, ["disabled", "content"]),
3238
3339
  _ctx.item.data.tip && !_ctx.readonly && !_ctx.search ? (openBlock(), createBlock(_component_el_tooltip, {
3239
3340
  key: 1,
3240
3341
  class: "item",
@@ -3369,7 +3470,16 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
3369
3470
  style: normalizeStyle({ width: _ctx.labelWidth + "px" })
3370
3471
  }, [
3371
3472
  _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" && !_ctx.search ? (openBlock(), createElementBlock("span", _hoisted_1$d, "*")) : createCommentVNode("", true),
3372
- createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
3473
+ createVNode(_component_el_tooltip, {
3474
+ disabled: _ctx.item.data.label.length <= 6,
3475
+ content: _ctx.item.data.label + _ctx.suffix,
3476
+ placement: "top"
3477
+ }, {
3478
+ default: withCtx(() => [
3479
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1)
3480
+ ]),
3481
+ _: 1
3482
+ }, 8, ["disabled", "content"]),
3373
3483
  _ctx.item.data.tip && !_ctx.readonly && !_ctx.search ? (openBlock(), createBlock(_component_el_tooltip, {
3374
3484
  key: 1,
3375
3485
  class: "item",
@@ -3395,6 +3505,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
3395
3505
  placeholder: _ctx.item.data.placeholder,
3396
3506
  multiple: "",
3397
3507
  "collapse-tags": "",
3508
+ clearable: "",
3398
3509
  disabled: _ctx.item.data.state === "disabled" || _ctx.item.data.state === "readonly",
3399
3510
  size: _ctx.size
3400
3511
  }, {
@@ -3416,6 +3527,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
3416
3527
  placeholder: _ctx.item.data.placeholder,
3417
3528
  multiple: "",
3418
3529
  "collapse-tags": "",
3530
+ clearable: "",
3419
3531
  size: _ctx.size,
3420
3532
  disabled: _ctx.item.data.state === "disabled" || _ctx.item.data.state === "readonly",
3421
3533
  onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.execFunc("onFocus")),
@@ -3690,7 +3802,16 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
3690
3802
  style: normalizeStyle({ width: _ctx.labelWidth + "px" })
3691
3803
  }, [
3692
3804
  _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" ? (openBlock(), createElementBlock("span", _hoisted_1$a, "*")) : createCommentVNode("", true),
3693
- createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
3805
+ createVNode(_component_el_tooltip, {
3806
+ disabled: _ctx.item.data.label.length <= 6,
3807
+ content: _ctx.item.data.label + _ctx.suffix,
3808
+ placement: "top"
3809
+ }, {
3810
+ default: withCtx(() => [
3811
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1)
3812
+ ]),
3813
+ _: 1
3814
+ }, 8, ["disabled", "content"]),
3694
3815
  _ctx.item.data.tip && !_ctx.readonly ? (openBlock(), createBlock(_component_el_tooltip, {
3695
3816
  key: 1,
3696
3817
  class: "item",
@@ -3783,7 +3904,16 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
3783
3904
  style: normalizeStyle({ width: _ctx.labelWidth + "px" })
3784
3905
  }, [
3785
3906
  _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" && !_ctx.search ? (openBlock(), createElementBlock("span", _hoisted_1$9, "*")) : createCommentVNode("", true),
3786
- createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
3907
+ createVNode(_component_el_tooltip, {
3908
+ disabled: _ctx.item.data.label.length <= 6,
3909
+ content: _ctx.item.data.label + _ctx.suffix,
3910
+ placement: "top"
3911
+ }, {
3912
+ default: withCtx(() => [
3913
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1)
3914
+ ]),
3915
+ _: 1
3916
+ }, 8, ["disabled", "content"]),
3787
3917
  _ctx.item.data.tip && !_ctx.readonly && !_ctx.search ? (openBlock(), createBlock(_component_el_tooltip, {
3788
3918
  key: 1,
3789
3919
  class: "item",
@@ -3892,7 +4022,16 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
3892
4022
  style: normalizeStyle({ width: _ctx.labelWidth + "px" })
3893
4023
  }, [
3894
4024
  _ctx.item.data.required && !_ctx.readonly && _ctx.item.data.state !== "readonly" && !_ctx.search ? (openBlock(), createElementBlock("span", _hoisted_1$8, "*")) : createCommentVNode("", true),
3895
- createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1),
4025
+ createVNode(_component_el_tooltip, {
4026
+ disabled: _ctx.item.data.label.length <= 6,
4027
+ content: _ctx.item.data.label + _ctx.suffix,
4028
+ placement: "top"
4029
+ }, {
4030
+ default: withCtx(() => [
4031
+ createElementVNode("label", null, toDisplayString(_ctx.item.data.label) + toDisplayString(_ctx.suffix), 1)
4032
+ ]),
4033
+ _: 1
4034
+ }, 8, ["disabled", "content"]),
3896
4035
  _ctx.item.data.tip && !_ctx.readonly && !_ctx.search ? (openBlock(), createBlock(_component_el_tooltip, {
3897
4036
  key: 1,
3898
4037
  class: "item",
@@ -5404,7 +5543,7 @@ Object.keys(files).forEach((fileName) => {
5404
5543
  }
5405
5544
  });
5406
5545
  const RichText = defineAsyncComponent({
5407
- loader: () => import('./index-6f9f3f97.mjs'),
5546
+ loader: () => import('./index-7e313d34.mjs'),
5408
5547
  loadingComponent: Loading
5409
5548
  });
5410
5549
  RichText.ControlType = "RichText";
@@ -5413,7 +5552,7 @@ RichText.icon = "icon-textEdit";
5413
5552
  RichText.formConfig = getFormConfig("RichText");
5414
5553
  utilFuns[RichText.ControlType] = RichText;
5415
5554
  const jsonEditor = defineAsyncComponent({
5416
- loader: () => import('./index-4f19c2c9.mjs'),
5555
+ loader: () => import('./index-82fc2652.mjs'),
5417
5556
  loadingComponent: Loading
5418
5557
  });
5419
5558
  jsonEditor.ControlType = "JsonEditor";
@@ -5423,14 +5562,14 @@ jsonEditor.formConfig = getFormConfig("JsonEditor", [{ fieldName: "default", com
5423
5562
  jsonEditor.rule = _.getJsonValidate();
5424
5563
  utilFuns[jsonEditor.ControlType] = jsonEditor;
5425
5564
  const formAction = defineAsyncComponent({
5426
- loader: () => import('./formAction-f7f0619b.mjs'),
5565
+ loader: () => import('./formAction-3c4a5c7d.mjs'),
5427
5566
  loadingComponent: Loading
5428
5567
  });
5429
5568
  formAction.ControlType = "FormAction";
5430
5569
  formAction.isHide = true;
5431
5570
  utilFuns[formAction.ControlType] = formAction;
5432
5571
  const Rule = defineAsyncComponent({
5433
- loader: () => import('./index-3abf514f.mjs'),
5572
+ loader: () => import('./index-7f8ebbb8.mjs'),
5434
5573
  loadingComponent: Loading
5435
5574
  });
5436
5575
  Rule.ControlType = "Rule";
@@ -5439,7 +5578,7 @@ utilFuns[Rule.ControlType] = Rule;
5439
5578
  const install = (app) => {
5440
5579
  app.config.globalProperties.$formcomponents = utilFuns;
5441
5580
  };
5442
- const Dynamicform = defineAsyncComponent(() => import('./starfish-form-94702b50.mjs'));
5581
+ const Dynamicform = defineAsyncComponent(() => import('./starfish-form-80e66adf.mjs'));
5443
5582
  const main = {
5444
5583
  install
5445
5584
  };
@@ -3,7 +3,7 @@ import 'element-plus/es/components/base/style/css';
3
3
  import 'element-plus/es/components/form/style/css';
4
4
  import 'element-plus/es/components/form-item/style/css';
5
5
  import { defineComponent, getCurrentInstance, ref, onMounted, openBlock, createElementBlock, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, resolveDynamicComponent, createCommentVNode, toRaw } from 'vue';
6
- import { _ as _export_sfc } from './main-88db9ea9.mjs';
6
+ import { _ as _export_sfc } from './main-055afe58.mjs';
7
7
  import 'element-plus/es/components/icon/style/css';
8
8
  import 'element-plus/es/components/input/style/css';
9
9
  import 'element-plus/es/components/checkbox/style/css';
@@ -1,4 +1,4 @@
1
- export { D as Dynamicform, m as default } from './main-88db9ea9.mjs';
1
+ export { D as Dynamicform, m as default } from './main-055afe58.mjs';
2
2
  import 'vue';
3
3
  import 'element-plus/es';
4
4
  import 'element-plus/es/components/base/style/css';
package/dist/style.css CHANGED
@@ -424,15 +424,15 @@
424
424
  width: 100%;
425
425
  min-height: 60px;
426
426
  height: 100%;
427
- }.rich-text-editor[data-v-4f6b6c10] {
427
+ }.rich-text-editor[data-v-34acb2a2] {
428
428
  min-height: 200px;
429
429
  position: relative;
430
430
  z-index: 1;
431
431
  }
432
- [data-v-4f6b6c10] .editor-content {
432
+ [data-v-34acb2a2] .editor-content {
433
433
  min-height: 200px;
434
434
  }
435
- [data-v-4f6b6c10] .editor-content .ql-toolbar {
435
+ [data-v-34acb2a2] .editor-content .ql-toolbar {
436
436
  z-index: 100;
437
437
  background: white;
438
438
  border: 1px solid #ccc;
@@ -440,7 +440,7 @@
440
440
  border-top-right-radius: 4px;
441
441
  position: relative;
442
442
  }
443
- [data-v-4f6b6c10] .editor-content .ql-container {
443
+ [data-v-34acb2a2] .editor-content .ql-container {
444
444
  border: 1px solid #ccc;
445
445
  border-top: none;
446
446
  border-bottom-left-radius: 4px;
@@ -448,7 +448,7 @@
448
448
  min-height: 200px;
449
449
  z-index: 99;
450
450
  }
451
- [data-v-4f6b6c10] .shape .rich-text-editor {
451
+ [data-v-34acb2a2] .shape .rich-text-editor {
452
452
  pointer-events: auto !important;
453
453
  }.cm-gutters.cm-gutters-before {
454
454
  background: #133F63;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starfish-form-custom",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "main": "dist/starfish-form.mjs",
5
5
  "style": "dist/style.css",
6
6
  "module": "dist/starfish-form.mjs",
@@ -34,10 +34,10 @@
34
34
  <el-icon :size="12" style="color: #fff"><SemiSelect /></el-icon>
35
35
  </div>
36
36
  <div class="top" @click="handleTop(index)">
37
- <el-icon :size="12"><Top /></el-icon>
37
+ <el-icon :size="12" style="color: #fff"><Top /></el-icon>
38
38
  </div>
39
39
  <div class="bottom" @click="handleBottom(index)">
40
- <el-icon :size="12"><Bottom /></el-icon>
40
+ <el-icon :size="12" style="color: #fff"><Bottom /></el-icon>
41
41
  </div>
42
42
  </div>
43
43
  </div>
@@ -34,10 +34,10 @@
34
34
  <el-icon :size="12" style="color: #fff"><SemiSelect /></el-icon>
35
35
  </div>
36
36
  <div class="top" @click="handleTop(index)">
37
- <el-icon :size="12"><Top /></el-icon>
37
+ <el-icon :size="12" style="color: #fff"><Top /></el-icon>
38
38
  </div>
39
39
  <div class="bottom" @click="handleBottom(index)">
40
- <el-icon :size="12"><Bottom /></el-icon>
40
+ <el-icon :size="12" style="color: #fff"><Bottom /></el-icon>
41
41
  </div>
42
42
  </div>
43
43
  </div>
@@ -2,7 +2,9 @@
2
2
  <div class="starfish-formitem" :class="{ formCover: drag, 'starfish-vertical': labelalign != 'top', [item.data.csslist?.join(' ')]: !!item.data.csslist}">
3
3
  <div class="label" :class="'label_' + labelalign" :style="{width: labelWidth + 'px'}">
4
4
  <span v-if="item.data.required && !readonly && item.data.state !== 'readonly' && !search" class="item_require">*</span>
5
- <label>{{ item.data.label }}{{suffix}}</label>
5
+ <el-tooltip :disabled="item.data.label.length <= 6" :content="item.data.label + suffix" placement="top">
6
+ <label>{{ item.data.label }}{{suffix}}</label>
7
+ </el-tooltip>
6
8
  <el-tooltip v-if="item.data.tip && !readonly && !search" class="item" effect="dark" :content="item.data.tip" placement="top">
7
9
  <span class="tip iconfontui icon-tishi"></span>
8
10
  </el-tooltip>