@wfrog/vc-ui 1.13.5 → 1.13.7

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.
@@ -2,7 +2,7 @@ import './index.css'
2
2
  import { ElLoadingDirective } from 'element-plus/es';
3
3
  import 'element-plus/es/components/base/style/css';
4
4
  import 'element-plus/es/components/loading/style/css';
5
- import { defineComponent, useTemplateRef, ref, computed, watch, onUnmounted, createBlock, openBlock, resolveDynamicComponent, unref, isRef, withCtx, withDirectives, mergeProps, renderSlot, createCommentVNode, createTextVNode, createElementVNode, normalizeClass, toDisplayString } from 'vue';
5
+ import { defineComponent, useTemplateRef, ref, computed, watch, onUnmounted, createBlock, openBlock, resolveDynamicComponent, unref, isRef, createSlots, withCtx, withDirectives, mergeProps, renderSlot, createCommentVNode, createTextVNode, createElementVNode, normalizeClass, toDisplayString } from 'vue';
6
6
  import { ElForm } from 'element-plus';
7
7
  import { C as Component$3 } from '../button/button.mjs';
8
8
  import { C as Component$1 } from '../dialog/dialog.mjs';
@@ -70,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
70
70
  return openBlock(), createBlock(resolveDynamicComponent(unref(component)), {
71
71
  modelValue: unref(modalVisible),
72
72
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modalVisible) ? modalVisible.value = $event : null)
73
- }, {
73
+ }, createSlots({
74
74
  title: withCtx(({ close }) => [
75
75
  createElementVNode("div", {
76
76
  class: normalizeClass(_ctx.$style["header-container"])
@@ -85,8 +85,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
85
85
  ])
86
86
  ], 2)
87
87
  ]),
88
- footer: withCtx(() => [
89
- renderSlot(_ctx.$slots, "action"),
88
+ "footer-action": withCtx(() => [
89
+ renderSlot(_ctx.$slots, "footer-action"),
90
90
  unref(isEditing) ? (openBlock(), createBlock(Component$3, {
91
91
  key: 0,
92
92
  disabled: __props.disabled,
@@ -146,14 +146,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
146
146
  [_directive_loading, __props.loading]
147
147
  ])
148
148
  ]),
149
- _: 3
150
- }, 8, ["modelValue"]);
149
+ _: 2
150
+ }, [
151
+ _ctx.$slots["footer-extra"] ? {
152
+ name: "footer-extra",
153
+ fn: withCtx(() => [
154
+ renderSlot(_ctx.$slots, "footer-extra")
155
+ ]),
156
+ key: "0"
157
+ } : void 0
158
+ ]), 1032, ["modelValue"]);
151
159
  };
152
160
  }
153
161
  });
154
162
 
155
- /* unplugin-vue-components disabled */const icon = "_icon_1tmmn_1";
156
- const form = "_form_1tmmn_6";
163
+ /* unplugin-vue-components disabled */const icon = "_icon_1qm7i_1";
164
+ const form = "_form_1qm7i_6";
157
165
  const style0 = {
158
166
  icon: icon,
159
167
  form: form
@@ -6,7 +6,8 @@ declare function __VLS_template(): {
6
6
  title?(_: {
7
7
  close: (() => void) | (() => void);
8
8
  }): any;
9
- action?(_: {}): any;
9
+ 'footer-extra'?(_: {}): any;
10
+ 'footer-action'?(_: {}): any;
10
11
  };
11
12
  refs: {
12
13
  formRef: ({
@@ -1,15 +1,15 @@
1
1
  /* source: src/components/explorer-modal-form/explorer-modal-form.vue */
2
- ._icon_1tmmn_1 {
2
+ ._icon_1qm7i_1 {
3
3
  margin-right: 4px;
4
4
  font-size: var(--el-font-size-extra-large);
5
5
  }
6
- ._form_1tmmn_6 {
6
+ ._form_1qm7i_6 {
7
7
  display: flex;
8
8
  flex-grow: 1;
9
- align-items: flex-start;
10
9
  flex-direction: column;
10
+ align-items: flex-start;
11
11
  }
12
- ._form_1tmmn_6 > .el-row {
13
- width: 100%;
12
+ ._form_1qm7i_6 > .el-row {
14
13
  margin: 0 !important;
14
+ width: 100%;
15
15
  }
@@ -198,6 +198,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
198
198
  treeRef,
199
199
  setActive: (value, shouldAutoExpandParent = true) => {
200
200
  treeRef.value?.setCurrentKey(value, shouldAutoExpandParent);
201
+ actived.value = value;
201
202
  }
202
203
  });
203
204
  onBeforeUnmount(() => {
@@ -2040,7 +2040,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerTreeProps,
2040
2040
  readonly showCheckbox: boolean;
2041
2041
  readonly highlightCurrent: boolean;
2042
2042
  }> | null>>;
2043
- setActive: (value: string | number | null | undefined, shouldAutoExpandParent?: boolean) => void;
2043
+ setActive: (value: string | number | undefined, shouldAutoExpandParent?: boolean) => void;
2044
2044
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2045
2045
  create: (value: string | number, node: Node) => any;
2046
2046
  modify: (value: string | number, node: Node) => any;
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  emits: ["click"],
25
25
  setup(__props, { emit: __emit }) {
26
26
  useCssVars((_ctx) => ({
27
- "v3d30eb40": `${_ctx.noEdit ? 4 : 0}px`
27
+ "ceed908e": `${_ctx.noEdit ? 4 : 0}px`
28
28
  }));
29
29
  const props = __props;
30
30
  const emits = __emit;
@@ -41,23 +41,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  class: normalizeClass(_ctx.$style["form-item"])
42
42
  }, {
43
43
  label: withCtx(() => [
44
- createElementVNode("span", {
45
- class: normalizeClass(_ctx.$style["label-container"])
44
+ createElementVNode("div", {
45
+ class: normalizeClass(_ctx.$style["label-wrapper"])
46
46
  }, [
47
- __props.noEdit ? (openBlock(), createBlock(Component$1, {
48
- key: 0,
49
- content: "创建后无法修改",
50
- "offset-y": "0px",
51
- icon: "carbon:locked",
52
- "icon-class": _ctx.$style["no-edit-icon"]
53
- }, null, 8, ["icon-class"])) : createCommentVNode("", true),
54
47
  createElementVNode("span", {
55
- class: normalizeClass(_ctx.$style.label)
56
- }, toDisplayString(__props.label), 3),
57
- createVNode(Component$1, mergeProps(unref(infoTooltipProps), {
58
- "offset-y": "0px",
59
- onClick: handleClick
60
- }), null, 16)
48
+ class: normalizeClass(_ctx.$style["label-container"])
49
+ }, [
50
+ __props.noEdit ? (openBlock(), createBlock(Component$1, {
51
+ key: 0,
52
+ content: "创建后无法修改",
53
+ "offset-y": "0px",
54
+ icon: "carbon:locked",
55
+ "icon-class": _ctx.$style["no-edit-icon"]
56
+ }, null, 8, ["icon-class"])) : createCommentVNode("", true),
57
+ createElementVNode("span", {
58
+ class: normalizeClass(_ctx.$style.label)
59
+ }, toDisplayString(__props.label), 3),
60
+ createVNode(Component$1, mergeProps(unref(infoTooltipProps), {
61
+ "offset-y": "0px",
62
+ onClick: handleClick
63
+ }), null, 16)
64
+ ], 2),
65
+ createElementVNode("div", {
66
+ class: normalizeClass(_ctx.$style["label-extra"])
67
+ }, [
68
+ renderSlot(_ctx.$slots, "label-extra")
69
+ ], 2)
61
70
  ], 2)
62
71
  ]),
63
72
  default: withCtx(() => [
@@ -72,11 +81,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
81
  }
73
82
  });
74
83
 
75
- /* unplugin-vue-components disabled */const label = "_label_wfdaa_5";
84
+ /* unplugin-vue-components disabled */const label = "_label_1ti9k_1";
76
85
  const style0 = {
77
- "form-item": "_form-item_wfdaa_1",
78
- "label-container": "_label-container_wfdaa_5",
79
- "no-edit-icon": "_no-edit-icon_wfdaa_11",
86
+ "form-item": "_form-item_1ti9k_1",
87
+ "label-extra": "_label-extra_1ti9k_1",
88
+ "label-wrapper": "_label-wrapper_1ti9k_13",
89
+ "label-container": "_label-container_1ti9k_19",
90
+ "no-edit-icon": "_no-edit-icon_1ti9k_25",
80
91
  label: label
81
92
  };
82
93
 
@@ -2,6 +2,7 @@ import { IFormItemProps } from './form-item';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
5
+ 'label-extra'?(_: {}): any;
5
6
  default?(_: {}): any;
6
7
  error?(_: {}): any;
7
8
  };
@@ -1,16 +1,30 @@
1
1
  /* source: src/components/form-item/form-item.vue */
2
- ._form-item_wfdaa_1 .el-form-item__label {
2
+ ._form-item_1ti9k_1 ._label-extra_1ti9k_1 {
3
+ display: none;
4
+ }
5
+ ._form-item_1ti9k_1 .el-form-item__label {
6
+ display: flex;
7
+ }
8
+ ._form-item_1ti9k_1.el-form-item--label-top label {
9
+ width: auto;
10
+ }
11
+ ._form-item_1ti9k_1.el-form-item--label-top ._label-extra_1ti9k_1 {
3
12
  display: flex;
4
13
  }
5
- ._label-container_wfdaa_5 {
14
+ ._form-item_1ti9k_1.el-form-item--label-top ._label-wrapper_1ti9k_13 {
15
+ display: flex;
16
+ flex-grow: 1;
17
+ justify-content: space-between;
18
+ }
19
+ ._label-container_1ti9k_19 {
6
20
  display: inline-flex;
7
- align-items: center;
8
21
  justify-content: center;
22
+ align-items: center;
9
23
  }
10
- ._no-edit-icon_wfdaa_11 {
24
+ ._no-edit-icon_1ti9k_25 {
11
25
  color: var(--el-color-warning);
12
26
  }
13
- ._label_wfdaa_5 {
27
+ ._label_1ti9k_1 {
14
28
  margin-right: 4px;
15
- margin-left: var(--v3d30eb40);
29
+ margin-left: var(--ceed908e);
16
30
  }
package/dist/es/index.mjs CHANGED
@@ -164,7 +164,7 @@ const __vite_glob_0_50 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePr
164
164
  default: _sfc_main$8
165
165
  }, Symbol.toStringTag, { value: 'Module' }));
166
166
 
167
- const version = "1.13.5";
167
+ const version = "1.13.7";
168
168
 
169
169
  const modules = /* #__PURE__ */ Object.assign({"./components/awesome-icon/awesome-icon.vue": __vite_glob_0_0,"./components/backbottom/backbottom.vue": __vite_glob_0_1,"./components/button/button.vue": __vite_glob_0_2,"./components/chat-container/chat-container.vue": __vite_glob_0_3,"./components/choice-boolean/choice-boolean.vue": __vite_glob_0_4,"./components/choice/choice.vue": __vite_glob_0_5,"./components/color-switch/color-switch.vue": __vite_glob_0_6,"./components/config-provider/config-provider.vue": __vite_glob_0_7,"./components/cropper/cropper.vue": __vite_glob_0_8,"./components/currency/currency.vue": __vite_glob_0_9,"./components/dark-switch/dark-switch.vue": __vite_glob_0_10,"./components/daterange-picker/daterange-picker.vue": __vite_glob_0_11,"./components/dialog-camera-upload/dialog-camera-upload.vue": __vite_glob_0_12,"./components/dialog-map-point/dialog-map-point.vue": __vite_glob_0_13,"./components/dialog-upload-images/dialog-upload-images.vue": __vite_glob_0_14,"./components/dialog/dialog.vue": __vite_glob_0_15,"./components/drag-verify/drag-verify.vue": __vite_glob_0_16,"./components/drawer/drawer.vue": __vite_glob_0_17,"./components/easy-pagination/easy-pagination.vue": __vite_glob_0_18,"./components/el-icon/el-icon.vue": __vite_glob_0_19,"./components/explorer-column-table/explorer-column-table.vue": __vite_glob_0_20,"./components/explorer-container/explorer-container.vue": __vite_glob_0_21,"./components/explorer-filter/explorer-filter.vue": __vite_glob_0_22,"./components/explorer-footer/explorer-footer.vue": __vite_glob_0_23,"./components/explorer-form/explorer-form.vue": __vite_glob_0_24,"./components/explorer-list/explorer-list.vue": __vite_glob_0_25,"./components/explorer-modal-form/explorer-modal-form.vue": __vite_glob_0_26,"./components/explorer-panel/explorer-panel.vue": __vite_glob_0_27,"./components/explorer-query/explorer-query.vue": __vite_glob_0_28,"./components/explorer-table/explorer-table.vue": __vite_glob_0_29,"./components/explorer-tools/explorer-tools.vue": __vite_glob_0_30,"./components/explorer-tree/explorer-tree.vue": __vite_glob_0_31,"./components/explorer/explorer.vue": __vite_glob_0_32,"./components/flag/flag.vue": __vite_glob_0_33,"./components/form-item/form-item.vue": __vite_glob_0_34,"./components/gen-input/gen-input.vue": __vite_glob_0_35,"./components/icon-picker/icon-picker.vue": __vite_glob_0_36,"./components/icon/icon.vue": __vite_glob_0_37,"./components/iconify-icon/iconify-icon.vue": __vite_glob_0_38,"./components/image/image.vue": __vite_glob_0_39,"./components/info-tooltip/info-tooltip.vue": __vite_glob_0_40,"./components/input-number/input-number.vue": __vite_glob_0_41,"./components/input/input.vue": __vite_glob_0_42,"./components/pca-picker/pca-picker.vue": __vite_glob_0_43,"./components/qr-code/qr-code.vue": __vite_glob_0_44,"./components/screenfull/screenfull.vue": __vite_glob_0_45,"./components/scrollbar/scrollbar.vue": __vite_glob_0_46,"./components/select/select.vue": __vite_glob_0_47,"./components/single-player/single-player.vue": __vite_glob_0_48,"./components/splitter-panel/splitter-panel.vue": __vite_glob_0_49,"./components/splitter/splitter.vue": __vite_glob_0_50,"./components/svg-icon/svg-icon.vue": __vite_glob_0_51,"./components/switch/switch.vue": __vite_glob_0_52,"./components/sync-scroll-container/sync-scroll-container.vue": __vite_glob_0_53,"./components/tags/tags.vue": __vite_glob_0_54,"./components/text-ellipsis/text-ellipsis.vue": __vite_glob_0_55,"./components/thousand-input/thousand-input.vue": __vite_glob_0_56,"./components/tinymce/tinymce.vue": __vite_glob_0_57,"./components/transfer-panel/transfer-panel.vue": __vite_glob_0_58,"./components/transfer/transfer.vue": __vite_glob_0_59,"./components/tree-picker/tree-picker.vue": __vite_glob_0_60,"./components/tree-select/tree-select.vue": __vite_glob_0_61,"./components/upload-file/upload-file.vue": __vite_glob_0_62});
170
170
  const upper = (_, letter) => letter.toUpperCase();