bm-admin-ui 1.0.84-alpha → 1.0.85-alpha

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.
Files changed (73) hide show
  1. package/es/components/attachment/index.d.ts +3 -3
  2. package/es/components/attachment/src/attachment.vue.d.ts +3 -3
  3. package/es/components/breadcrumb/index.d.ts +7 -7
  4. package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -7
  5. package/es/components/button/index.d.ts +6 -6
  6. package/es/components/button/src/button.vue.d.ts +6 -6
  7. package/es/components/edit-form/index.d.ts +4 -4
  8. package/es/components/edit-form/index.js +1 -1
  9. package/es/components/edit-form/src/edit-form.vue.d.ts +4 -4
  10. package/es/components/feedback/index.d.ts +12 -12
  11. package/es/components/feedback/src/bmAlert.vue.d.ts +6 -6
  12. package/es/components/feedback/src/bmModal.vue.d.ts +6 -6
  13. package/es/components/float-table/index.js +62 -54
  14. package/es/components/flow-designer/index.js +1 -1
  15. package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +8 -8
  16. package/es/components/form-create/index.js +70 -10
  17. package/es/components/search-filter/src/form-select-all.vue.d.ts +6 -6
  18. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +3 -3
  19. package/es/components/select-all/index.d.ts +6 -6
  20. package/es/components/select-all/src/selectAll.vue.d.ts +6 -6
  21. package/es/components/staffs-selector/index.d.ts +8 -8
  22. package/es/components/staffs-selector/index.js +2 -2
  23. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
  24. package/es/components/videoView/index.d.ts +1 -1
  25. package/es/components/videoView/src/videoView.vue.d.ts +1 -1
  26. package/lib/components/attachment/index.d.ts +3 -3
  27. package/lib/components/attachment/src/attachment.vue.d.ts +3 -3
  28. package/lib/components/breadcrumb/index.d.ts +7 -7
  29. package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -7
  30. package/lib/components/button/index.d.ts +6 -6
  31. package/lib/components/button/src/button.vue.d.ts +6 -6
  32. package/lib/components/edit-form/index.d.ts +4 -4
  33. package/lib/components/edit-form/index.js +1 -1
  34. package/lib/components/edit-form/src/edit-form.vue.d.ts +4 -4
  35. package/lib/components/feedback/index.d.ts +12 -12
  36. package/lib/components/feedback/src/bmAlert.vue.d.ts +6 -6
  37. package/lib/components/feedback/src/bmModal.vue.d.ts +6 -6
  38. package/lib/components/float-table/index.js +62 -54
  39. package/lib/components/flow-designer/index.js +1 -1
  40. package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +8 -8
  41. package/lib/components/form-create/index.js +68 -8
  42. package/lib/components/search-filter/src/form-select-all.vue.d.ts +6 -6
  43. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +3 -3
  44. package/lib/components/select-all/index.d.ts +6 -6
  45. package/lib/components/select-all/src/selectAll.vue.d.ts +6 -6
  46. package/lib/components/staffs-selector/index.d.ts +8 -8
  47. package/lib/components/staffs-selector/index.js +2 -2
  48. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
  49. package/lib/components/videoView/index.d.ts +1 -1
  50. package/lib/components/videoView/src/videoView.vue.d.ts +1 -1
  51. package/package.json +34 -34
  52. package/theme-chalk/form-create.css +1 -1
  53. package/theme-chalk/index.css +1 -1
  54. package/types/components/attachment/index.d.ts +3 -3
  55. package/types/components/attachment/src/attachment.vue.d.ts +3 -3
  56. package/types/components/breadcrumb/index.d.ts +7 -7
  57. package/types/components/breadcrumb/src/breadcrumb.vue.d.ts +7 -7
  58. package/types/components/button/index.d.ts +6 -6
  59. package/types/components/button/src/button.vue.d.ts +6 -6
  60. package/types/components/edit-form/index.d.ts +4 -4
  61. package/types/components/edit-form/src/edit-form.vue.d.ts +4 -4
  62. package/types/components/feedback/index.d.ts +12 -12
  63. package/types/components/feedback/src/bmAlert.vue.d.ts +6 -6
  64. package/types/components/feedback/src/bmModal.vue.d.ts +6 -6
  65. package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +8 -8
  66. package/types/components/search-filter/src/form-select-all.vue.d.ts +6 -6
  67. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +3 -3
  68. package/types/components/select-all/index.d.ts +6 -6
  69. package/types/components/select-all/src/selectAll.vue.d.ts +6 -6
  70. package/types/components/staffs-selector/index.d.ts +8 -8
  71. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
  72. package/types/components/videoView/index.d.ts +1 -1
  73. package/types/components/videoView/src/videoView.vue.d.ts +1 -1
@@ -4,7 +4,7 @@ import { Empty } from 'ant-design-vue';
4
4
  import { VXETable } from 'vxe-table';
5
5
 
6
6
  /**!
7
- * Sortable 1.14.0
7
+ * Sortable 1.15.0
8
8
  * @author RubaXa <trash@rubaxa.org>
9
9
  * @author owenm <owen23355@gmail.com>
10
10
  * @license MIT
@@ -132,7 +132,7 @@ function _objectWithoutProperties(source, excluded) {
132
132
  return target;
133
133
  }
134
134
 
135
- var version = "1.14.0";
135
+ var version = "1.15.0";
136
136
 
137
137
  function userAgent(pattern) {
138
138
  if (typeof window !== 'undefined' && window.navigator) {
@@ -1053,11 +1053,11 @@ supportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in
1053
1053
  return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
1054
1054
  },
1055
1055
 
1056
- /**
1057
- * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
1058
- * @param {Number} x X position
1059
- * @param {Number} y Y position
1060
- * @return {HTMLElement} Element of the first found nearest Sortable
1056
+ /**
1057
+ * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.
1058
+ * @param {Number} x X position
1059
+ * @param {Number} y Y position
1060
+ * @return {HTMLElement} Element of the first found nearest Sortable
1061
1061
  */
1062
1062
  _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
1063
1063
  var ret;
@@ -1123,7 +1123,7 @@ _detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {
1123
1123
  }; // #1184 fix - Prevent click event on fallback if dragged but item not changed position
1124
1124
 
1125
1125
 
1126
- if (documentExists) {
1126
+ if (documentExists && !ChromeForAndroid) {
1127
1127
  document.addEventListener('click', function (evt) {
1128
1128
  if (ignoreNextClick) {
1129
1129
  evt.preventDefault();
@@ -1165,10 +1165,10 @@ var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
1165
1165
  dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1166
1166
  }
1167
1167
  };
1168
- /**
1169
- * @class Sortable
1170
- * @param {HTMLElement} el
1171
- * @param {Object} [options]
1168
+ /**
1169
+ * @class Sortable
1170
+ * @param {HTMLElement} el
1171
+ * @param {Object} [options]
1172
1172
  */
1173
1173
 
1174
1174
 
@@ -1742,6 +1742,7 @@ Sortable.prototype =
1742
1742
 
1743
1743
  if (!Sortable.eventCanceled) {
1744
1744
  cloneEl = clone(dragEl);
1745
+ cloneEl.removeAttribute("id");
1745
1746
  cloneEl.draggable = false;
1746
1747
  cloneEl.style['will-change'] = '';
1747
1748
 
@@ -1983,7 +1984,14 @@ Sortable.prototype =
1983
1984
 
1984
1985
  if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
1985
1986
  capture();
1986
- el.appendChild(dragEl);
1987
+
1988
+ if (elLastChild && elLastChild.nextSibling) {
1989
+ // the last draggable element is not the last node
1990
+ el.insertBefore(dragEl, elLastChild.nextSibling);
1991
+ } else {
1992
+ el.appendChild(dragEl);
1993
+ }
1994
+
1987
1995
  parentEl = el; // actualization
1988
1996
 
1989
1997
  changed();
@@ -2306,9 +2314,9 @@ Sortable.prototype =
2306
2314
  }
2307
2315
  },
2308
2316
 
2309
- /**
2310
- * Serializes the item into an array of string.
2311
- * @returns {String[]}
2317
+ /**
2318
+ * Serializes the item into an array of string.
2319
+ * @returns {String[]}
2312
2320
  */
2313
2321
  toArray: function toArray() {
2314
2322
  var order = [],
@@ -2329,9 +2337,9 @@ Sortable.prototype =
2329
2337
  return order;
2330
2338
  },
2331
2339
 
2332
- /**
2333
- * Sorts the elements according to the array.
2334
- * @param {String[]} order order of the items
2340
+ /**
2341
+ * Sorts the elements according to the array.
2342
+ * @param {String[]} order order of the items
2335
2343
  */
2336
2344
  sort: function sort(order, useAnimation) {
2337
2345
  var items = {},
@@ -2353,29 +2361,29 @@ Sortable.prototype =
2353
2361
  useAnimation && this.animateAll();
2354
2362
  },
2355
2363
 
2356
- /**
2357
- * Save the current sorting
2364
+ /**
2365
+ * Save the current sorting
2358
2366
  */
2359
2367
  save: function save() {
2360
2368
  var store = this.options.store;
2361
2369
  store && store.set && store.set(this);
2362
2370
  },
2363
2371
 
2364
- /**
2365
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
2366
- * @param {HTMLElement} el
2367
- * @param {String} [selector] default: `options.draggable`
2368
- * @returns {HTMLElement|null}
2372
+ /**
2373
+ * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
2374
+ * @param {HTMLElement} el
2375
+ * @param {String} [selector] default: `options.draggable`
2376
+ * @returns {HTMLElement|null}
2369
2377
  */
2370
2378
  closest: function closest$1(el, selector) {
2371
2379
  return closest(el, selector || this.options.draggable, this.el, false);
2372
2380
  },
2373
2381
 
2374
- /**
2375
- * Set/get option
2376
- * @param {string} name
2377
- * @param {*} [value]
2378
- * @returns {*}
2382
+ /**
2383
+ * Set/get option
2384
+ * @param {string} name
2385
+ * @param {*} [value]
2386
+ * @returns {*}
2379
2387
  */
2380
2388
  option: function option(name, value) {
2381
2389
  var options = this.options;
@@ -2397,8 +2405,8 @@ Sortable.prototype =
2397
2405
  }
2398
2406
  },
2399
2407
 
2400
- /**
2401
- * Destroy
2408
+ /**
2409
+ * Destroy
2402
2410
  */
2403
2411
  destroy: function destroy() {
2404
2412
  pluginEvent('destroy', this);
@@ -2575,11 +2583,11 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
2575
2583
 
2576
2584
  return 0;
2577
2585
  }
2578
- /**
2579
- * Gets the direction dragEl must be swapped relative to target in order to make it
2580
- * seem that dragEl has been "inserted" into that element's position
2581
- * @param {HTMLElement} target The target whose position dragEl is being inserted at
2582
- * @return {Number} Direction dragEl must be swapped
2586
+ /**
2587
+ * Gets the direction dragEl must be swapped relative to target in order to make it
2588
+ * seem that dragEl has been "inserted" into that element's position
2589
+ * @param {HTMLElement} target The target whose position dragEl is being inserted at
2590
+ * @return {Number} Direction dragEl must be swapped
2583
2591
  */
2584
2592
 
2585
2593
 
@@ -2590,11 +2598,11 @@ function _getInsertDirection(target) {
2590
2598
  return -1;
2591
2599
  }
2592
2600
  }
2593
- /**
2594
- * Generate id
2595
- * @param {HTMLElement} el
2596
- * @returns {String}
2597
- * @private
2601
+ /**
2602
+ * Generate id
2603
+ * @param {HTMLElement} el
2604
+ * @returns {String}
2605
+ * @private
2598
2606
  */
2599
2607
 
2600
2608
 
@@ -2658,18 +2666,18 @@ Sortable.utils = {
2658
2666
  detectDirection: _detectDirection,
2659
2667
  getChild: getChild
2660
2668
  };
2661
- /**
2662
- * Get the Sortable instance of an element
2663
- * @param {HTMLElement} element The element
2664
- * @return {Sortable|undefined} The instance of Sortable
2669
+ /**
2670
+ * Get the Sortable instance of an element
2671
+ * @param {HTMLElement} element The element
2672
+ * @return {Sortable|undefined} The instance of Sortable
2665
2673
  */
2666
2674
 
2667
2675
  Sortable.get = function (element) {
2668
2676
  return element[expando];
2669
2677
  };
2670
- /**
2671
- * Mount a plugin to Sortable
2672
- * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
2678
+ /**
2679
+ * Mount a plugin to Sortable
2680
+ * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted
2673
2681
  */
2674
2682
 
2675
2683
 
@@ -2688,10 +2696,10 @@ Sortable.mount = function () {
2688
2696
  PluginManager.mount(plugin);
2689
2697
  });
2690
2698
  };
2691
- /**
2692
- * Create sortable instance
2693
- * @param {HTMLElement} el
2694
- * @param {Object} [options]
2699
+ /**
2700
+ * Create sortable instance
2701
+ * @param {HTMLElement} el
2702
+ * @param {Object} [options]
2695
2703
  */
2696
2704
 
2697
2705
 
@@ -257,7 +257,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
257
257
  createElementVNode("span", {
258
258
  class: normalizeClass(["opeator", { active: __props.isCustom }])
259
259
  }, [
260
- createCommentVNode(' <CopyOutlined\n @click.stop="\n () => {\n copyCallback()\n }\n " />&nbsp;\u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
260
+ createCommentVNode(' <CopyOutlined\r\n @click.stop="\r\n () => {\r\n copyCallback()\r\n }\r\n " />&nbsp;\u6682\u65F6\u5173\u95ED\u590D\u5236\u8282\u70B9 '),
261
261
  createVNode(unref(CloseOutlined), {
262
262
  onClick: _cache[0] || (_cache[0] = () => {
263
263
  __props.deleteCallback();
@@ -50,9 +50,9 @@ declare const _default: import("vue").DefineComponent<{
50
50
  default: () => void;
51
51
  };
52
52
  }>> & {}>>;
53
- CloseOutlined: import("@ant-design/icons-vue/lib/icons/CloseOutlined").CloseOutlinedIconType;
54
- RightOutlined: import("@ant-design/icons-vue/lib/icons/RightOutlined").RightOutlinedIconType;
55
- Tag: {
53
+ readonly CloseOutlined: import("@ant-design/icons-vue/lib/icons/CloseOutlined").CloseOutlinedIconType;
54
+ readonly RightOutlined: import("@ant-design/icons-vue/lib/icons/RightOutlined").RightOutlinedIconType;
55
+ readonly Tag: {
56
56
  new (...args: any[]): {
57
57
  $: import("vue").ComponentInternalInstance;
58
58
  $data: {};
@@ -88,8 +88,8 @@ declare const _default: import("vue").DefineComponent<{
88
88
  $slots: Readonly<{
89
89
  [name: string]: import("vue").Slot;
90
90
  }>;
91
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
92
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
91
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
92
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
93
93
  $emit: (event: string, ...args: any[]) => void;
94
94
  $el: any;
95
95
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -114,7 +114,7 @@ declare const _default: import("vue").DefineComponent<{
114
114
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
115
115
  visible: boolean;
116
116
  closable: boolean;
117
- }> & {
117
+ }, {}, string> & {
118
118
  beforeCreate?: (() => void) | (() => void)[] | undefined;
119
119
  created?: (() => void) | (() => void)[] | undefined;
120
120
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -129,7 +129,7 @@ declare const _default: import("vue").DefineComponent<{
129
129
  unmounted?: (() => void) | (() => void)[] | undefined;
130
130
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
131
131
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
132
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
132
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
133
133
  };
134
134
  $forceUpdate: () => void;
135
135
  $nextTick: typeof import("vue").nextTick;
@@ -179,7 +179,7 @@ declare const _default: import("vue").DefineComponent<{
179
179
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
180
180
  visible: boolean;
181
181
  closable: boolean;
182
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
182
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
183
183
  readonly CheckableTag: import("vue").DefineComponent<{
184
184
  prefixCls: StringConstructor;
185
185
  checked: {
@@ -1,11 +1,11 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { h, defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, nextTick, ref, createVNode, normalizeStyle, normalizeClass, reactive, watch, createElementVNode, createCommentVNode, createSlots, inject, createStaticVNode, provide, resolveComponent } from 'vue';
2
+ import { h, defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, nextTick, ref, createVNode, normalizeStyle, withModifiers, createElementVNode, createCommentVNode, normalizeClass, reactive, watch, createSlots, inject, createStaticVNode, provide, resolveComponent } from 'vue';
3
3
  import { Input, InputNumber, RadioGroup, Radio, Select, DatePicker, RangePicker, message, Modal, Layout, LayoutSider, Tree, LayoutContent, Button, Row, Col, Pagination, FormItemRest, Divider, Tabs, TabPane, Cascader } from 'ant-design-vue';
4
4
  import dayjs from 'dayjs';
5
5
  import Picture from 'bm-admin-ui/es/components/upload';
6
6
  import BmStaffsSelector from 'bm-admin-ui/es/components/staffs-selector';
7
7
  import { BmTagsDisplay, BmFloatTable } from 'bm-admin-ui/es/components';
8
- import { SearchOutlined, CheckCircleFilled, PlusOutlined } from '@ant-design/icons-vue';
8
+ import { EyeOutlined, SearchOutlined, CheckCircleFilled, PlusOutlined } from '@ant-design/icons-vue';
9
9
  import { cloneDeep, floor, debounce } from 'lodash-es';
10
10
  import customParseFormat from 'dayjs/plugin/customParseFormat';
11
11
  import { isNull } from 'bm-admin-ui/es/utils/isNull';
@@ -1027,9 +1027,12 @@ var people = {
1027
1027
  },
1028
1028
  };
1029
1029
 
1030
+ const _hoisted_1$6 = ["onClick"];
1031
+ const _hoisted_2$6 = ["onClick"];
1032
+ const _hoisted_3$5 = { class: "box" };
1030
1033
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
1031
1034
  __name: "temp-content",
1032
- props: ["content"],
1035
+ props: ["content", "preview"],
1033
1036
  setup(__props) {
1034
1037
  const props = __props;
1035
1038
  const layers = computed(() => {
@@ -1052,6 +1055,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1052
1055
  }
1053
1056
  return "";
1054
1057
  });
1058
+ const picPreview = ref(false);
1059
+ function triggerPreview() {
1060
+ picPreview.value = !picPreview.value;
1061
+ }
1055
1062
  return (_ctx, _cache) => {
1056
1063
  return openBlock(), createElementBlock("div", {
1057
1064
  class: "bm-fc-rect-outer",
@@ -1059,13 +1066,45 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1059
1066
  unref(layerBackGround) ? { backgroundImage: `url('${unref(layerBackGround)}')` } : {}
1060
1067
  )
1061
1068
  }, [
1069
+ props?.preview ? (openBlock(), createElementBlock("div", {
1070
+ key: 0,
1071
+ class: "mask-hover",
1072
+ onClick: withModifiers(triggerPreview, ["stop"])
1073
+ }, [
1074
+ createElementVNode("p", null, [
1075
+ createVNode(unref(EyeOutlined)),
1076
+ createTextVNode("\xA0\u9884\u89C8")
1077
+ ])
1078
+ ], 8, _hoisted_1$6)) : createCommentVNode("v-if", true),
1062
1079
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(layers), (layer) => {
1063
1080
  return openBlock(), createElementBlock("div", {
1064
1081
  key: layer.uuid,
1065
1082
  class: normalizeClass(["bm-fc-rect", { "is-ele": layer.backgroundImage }]),
1066
1083
  style: normalizeStyle(layer)
1067
- }, null, 6);
1068
- }), 128))
1084
+ }, toDisplayString(layer.name), 7);
1085
+ }), 128)),
1086
+ __props.preview && picPreview.value ? (openBlock(), createElementBlock("div", {
1087
+ key: 1,
1088
+ class: "bm-fc-rect-wrapper",
1089
+ onClick: withModifiers(triggerPreview, ["self"])
1090
+ }, [
1091
+ createElementVNode("div", _hoisted_3$5, [
1092
+ createElementVNode("div", {
1093
+ class: "bm-fc-rect-outer",
1094
+ style: normalizeStyle(
1095
+ unref(layerBackGround) ? { backgroundImage: `url('${unref(layerBackGround)}')` } : {}
1096
+ )
1097
+ }, [
1098
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(layers), (layer) => {
1099
+ return openBlock(), createElementBlock("div", {
1100
+ key: layer.uuid,
1101
+ class: normalizeClass(["bm-fc-rect", { "is-ele": layer.backgroundImage }]),
1102
+ style: normalizeStyle(layer)
1103
+ }, toDisplayString(layer.name), 7);
1104
+ }), 128))
1105
+ ], 4)
1106
+ ])
1107
+ ], 8, _hoisted_2$6)) : createCommentVNode("v-if", true)
1069
1108
  ], 4);
1070
1109
  };
1071
1110
  }
@@ -19454,6 +19493,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
19454
19493
  }
19455
19494
  return tableRule;
19456
19495
  }
19496
+ function getTempContentWithName(tempData) {
19497
+ if (tempData?.coverageArr) {
19498
+ try {
19499
+ return JSON.stringify(
19500
+ tempData?.coverageArr?.map((arr) => {
19501
+ const style = JSON.parse(arr?.extraValues);
19502
+ style.name = ![98, 99].includes(+arr?.fieldType) ? arr.name : "";
19503
+ return style;
19504
+ })
19505
+ );
19506
+ } catch (e) {
19507
+ throw Error("\u6A21\u677F\u6570\u636E\u5B57\u6BB5\u9519\u8BEF");
19508
+ }
19509
+ }
19510
+ return [];
19511
+ }
19457
19512
  props.value && initValue(props.value);
19458
19513
  props.extraConfig.materialTemp.getDict().then((data) => {
19459
19514
  measrueDicts.value = data;
@@ -19654,7 +19709,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
19654
19709
  pane.tempSelected.content ? (openBlock(), createBlock(TempContent, {
19655
19710
  key: 0,
19656
19711
  class: "bm-fc-form-item__temp-content",
19657
- content: pane.tempSelected.content
19712
+ content: getTempContentWithName(pane.tempSelected),
19713
+ preview: true
19658
19714
  }, null, 8, ["content"])) : (openBlock(), createElementBlock("span", _hoisted_9$2, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"))
19659
19715
  ]),
19660
19716
  _: 2
@@ -20001,9 +20057,11 @@ var product = {
20001
20057
  on: {
20002
20058
  change(inject, value) {
20003
20059
  inject.self.props.defalutValue = value;
20004
- inject.api.form[inject.self.field] = value;
20005
20060
  nextTick(() => {
20006
- inject.api.validateField(inject.self.field);
20061
+ inject.api.form[inject.self.field] = value;
20062
+ setTimeout(() => {
20063
+ inject.api.validateField(inject.self.field);
20064
+ });
20007
20065
  });
20008
20066
  },
20009
20067
  },
@@ -20028,9 +20086,11 @@ var product = {
20028
20086
  on: {
20029
20087
  change(inject, value) {
20030
20088
  inject.self.props.defalutValue = value;
20031
- inject.api.form[inject.self.field] = value;
20032
20089
  nextTick(() => {
20033
- inject.api.validateField(inject.self.field);
20090
+ inject.api.form[inject.self.field] = value;
20091
+ setTimeout(() => {
20092
+ inject.api.validateField(inject.self.field);
20093
+ });
20034
20094
  });
20035
20095
  },
20036
20096
  },
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
32
32
  }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
33
  [key: string]: any;
34
34
  }>;
35
- ASelect: {
35
+ readonly ASelect: {
36
36
  new (...args: any[]): {
37
37
  $: import("vue").ComponentInternalInstance;
38
38
  $data: {};
@@ -212,8 +212,8 @@ declare const _default: import("vue").DefineComponent<{
212
212
  $slots: Readonly<{
213
213
  [name: string]: import("vue").Slot;
214
214
  }>;
215
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
216
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
215
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
216
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
217
217
  $emit: (event: string, ...args: any[]) => void;
218
218
  $el: any;
219
219
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -382,7 +382,7 @@ declare const _default: import("vue").DefineComponent<{
382
382
  defaultActiveFirstOption: boolean;
383
383
  labelInValue: boolean;
384
384
  bordered: boolean;
385
- }> & {
385
+ }, {}, string> & {
386
386
  beforeCreate?: (() => void) | (() => void)[] | undefined;
387
387
  created?: (() => void) | (() => void)[] | undefined;
388
388
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -397,7 +397,7 @@ declare const _default: import("vue").DefineComponent<{
397
397
  unmounted?: (() => void) | (() => void)[] | undefined;
398
398
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
399
399
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
400
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
400
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
401
401
  };
402
402
  $forceUpdate: () => void;
403
403
  $nextTick: typeof import("vue").nextTick;
@@ -721,7 +721,7 @@ declare const _default: import("vue").DefineComponent<{
721
721
  defaultActiveFirstOption: boolean;
722
722
  labelInValue: boolean;
723
723
  bordered: boolean;
724
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
724
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
725
725
  readonly Option: import("ant-design-vue/lib/vc-select/Option").OptionFC;
726
726
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
727
727
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
@@ -71,9 +71,9 @@ declare const _default: import("vue").DefineComponent<{
71
71
  handleExpandBtnChange: () => void;
72
72
  handleSubmit: () => void;
73
73
  handleReset: () => void;
74
- DownOutlined: import("@ant-design/icons-vue/lib/icons/DownOutlined").DownOutlinedIconType;
75
- UpOutlined: import("@ant-design/icons-vue/lib/icons/UpOutlined").UpOutlinedIconType;
76
- SearchOutlined: import("@ant-design/icons-vue/lib/icons/SearchOutlined").SearchOutlinedIconType;
74
+ readonly DownOutlined: import("@ant-design/icons-vue/lib/icons/DownOutlined").DownOutlinedIconType;
75
+ readonly UpOutlined: import("@ant-design/icons-vue/lib/icons/UpOutlined").UpOutlinedIconType;
76
+ readonly SearchOutlined: import("@ant-design/icons-vue/lib/icons/SearchOutlined").SearchOutlinedIconType;
77
77
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "reset" | "expand")[], "submit" | "reset" | "expand", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
78
78
  showExpandBtn: {
79
79
  type: BooleanConstructor;
@@ -40,7 +40,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
40
40
  }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
41
  [key: string]: any;
42
42
  }>;
43
- ASelect: {
43
+ readonly ASelect: {
44
44
  new (...args: any[]): {
45
45
  $: import("vue").ComponentInternalInstance;
46
46
  $data: {};
@@ -220,8 +220,8 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
220
220
  $slots: Readonly<{
221
221
  [name: string]: import("vue").Slot;
222
222
  }>;
223
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
224
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
223
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
224
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
225
225
  $emit: (event: string, ...args: any[]) => void;
226
226
  $el: any;
227
227
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -390,7 +390,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
390
390
  defaultActiveFirstOption: boolean;
391
391
  labelInValue: boolean;
392
392
  bordered: boolean;
393
- }> & {
393
+ }, {}, string> & {
394
394
  beforeCreate?: (() => void) | (() => void)[] | undefined;
395
395
  created?: (() => void) | (() => void)[] | undefined;
396
396
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -405,7 +405,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
405
405
  unmounted?: (() => void) | (() => void)[] | undefined;
406
406
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
407
407
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
408
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
408
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
409
409
  };
410
410
  $forceUpdate: () => void;
411
411
  $nextTick: typeof import("vue").nextTick;
@@ -729,7 +729,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
729
729
  defaultActiveFirstOption: boolean;
730
730
  labelInValue: boolean;
731
731
  bordered: boolean;
732
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
732
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
733
733
  readonly Option: import("ant-design-vue/lib/vc-select/Option").OptionFC;
734
734
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
735
735
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
40
40
  }) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
41
  [key: string]: any;
42
42
  }>;
43
- ASelect: {
43
+ readonly ASelect: {
44
44
  new (...args: any[]): {
45
45
  $: import("vue").ComponentInternalInstance;
46
46
  $data: {};
@@ -220,8 +220,8 @@ declare const _default: import("vue").DefineComponent<{
220
220
  $slots: Readonly<{
221
221
  [name: string]: import("vue").Slot;
222
222
  }>;
223
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
224
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
223
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
224
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
225
225
  $emit: (event: string, ...args: any[]) => void;
226
226
  $el: any;
227
227
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -390,7 +390,7 @@ declare const _default: import("vue").DefineComponent<{
390
390
  defaultActiveFirstOption: boolean;
391
391
  labelInValue: boolean;
392
392
  bordered: boolean;
393
- }> & {
393
+ }, {}, string> & {
394
394
  beforeCreate?: (() => void) | (() => void)[] | undefined;
395
395
  created?: (() => void) | (() => void)[] | undefined;
396
396
  beforeMount?: (() => void) | (() => void)[] | undefined;
@@ -405,7 +405,7 @@ declare const _default: import("vue").DefineComponent<{
405
405
  unmounted?: (() => void) | (() => void)[] | undefined;
406
406
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
407
407
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
408
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[] | undefined;
408
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[] | undefined;
409
409
  };
410
410
  $forceUpdate: () => void;
411
411
  $nextTick: typeof import("vue").nextTick;
@@ -729,7 +729,7 @@ declare const _default: import("vue").DefineComponent<{
729
729
  defaultActiveFirstOption: boolean;
730
730
  labelInValue: boolean;
731
731
  bordered: boolean;
732
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
732
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & {
733
733
  readonly Option: import("ant-design-vue/lib/vc-select/Option").OptionFC;
734
734
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
735
735
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";