@wfrog/vc-ui 1.6.0 → 1.6.1

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.
@@ -0,0 +1,14 @@
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ data: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
7
+ data: {
8
+ type: ObjectConstructor;
9
+ default: () => {};
10
+ };
11
+ }>> & Readonly<{}>, {
12
+ data: Record<string, any>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,19 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {
5
+ direction: string;
6
+ }): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -54,12 +54,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
54
  }
55
55
  });
56
56
 
57
- /* unplugin-vue-components disabled */const header = "_header_1sfkk_8";
58
- const icon = "_icon_1sfkk_26";
57
+ /* unplugin-vue-components disabled */const header = "_header_4odhg_8";
58
+ const icon = "_icon_4odhg_26";
59
59
  const style0 = {
60
- "explorer-container": "_explorer-container_1sfkk_1",
60
+ "explorer-container": "_explorer-container_4odhg_1",
61
61
  header: header,
62
- "header-container": "_header-container_1sfkk_22",
62
+ "header-container": "_header-container_4odhg_22",
63
63
  icon: icon
64
64
  };
65
65
 
@@ -1,11 +1,11 @@
1
1
  /* source: src/components/explorer-container/explorer-container.vue */
2
- ._explorer-container_1sfkk_1 {
2
+ ._explorer-container_4odhg_1 {
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  flex-grow: 1;
6
6
  height: 100px;
7
7
  }
8
- ._header_1sfkk_8 {
8
+ ._header_4odhg_8 {
9
9
  display: flex;
10
10
  align-items: center;
11
11
  justify-content: space-between;
@@ -18,9 +18,11 @@
18
18
  flex-wrap: wrap;
19
19
  row-gap: 8px;
20
20
  }
21
- ._header-container_1sfkk_22 {
22
- font-size: 1.2em;
21
+ ._header-container_4odhg_22 {
22
+ font-size: var(--el-font-size-medium);
23
23
  }
24
- ._icon_1sfkk_26 {
24
+ ._icon_4odhg_26 {
25
25
  margin-right: 4px;
26
+ font-size: 1.1em;
27
+ transform: translateY(1px);
26
28
  }
@@ -12,8 +12,8 @@ export interface IExplorerFormProps {
12
12
  autoInitial?: boolean;
13
13
  defaultEditing?: boolean;
14
14
  labelPosition?: FormProps['labelPosition'];
15
- onCancel?: () => void | Promise<void> | (() => void | Promise<void>);
16
- onSave?: (data: Record<string, any>) => void | Promise<void> | (() => void | Promise<void>);
15
+ onCancel?: () => void | Promise<void> | Promise<() => void | Promise<void>>;
16
+ onSave?: (data: Record<string, any>) => void | Promise<void> | Promise<() => void | Promise<void>>;
17
17
  }
18
18
  export interface IExplorerFormEmits {
19
19
  (e: 'clickEdit'): void;
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  } }
26
26
  },
27
27
  emits: ["clickEdit"],
28
- setup(__props, { emit: __emit }) {
28
+ setup(__props, { expose: __expose, emit: __emit }) {
29
29
  const props = __props;
30
30
  const emits = __emit;
31
31
  const isEditing = ref(false);
@@ -66,6 +66,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
66
  const initialValuesWatch = watch(() => props.initialValues, () => {
67
67
  props.initialValues && formRef.value?.setInitialValues(props.initialValues);
68
68
  }, { immediate: true, deep: true });
69
+ __expose({
70
+ toggleIsEditing: (val) => {
71
+ isEditing.value = val ?? !isEditing.value;
72
+ }
73
+ });
69
74
  onBeforeUnmount(() => {
70
75
  initialValuesWatch.stop();
71
76
  autoInitialWatch.stop();
@@ -156,13 +161,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
156
161
  }
157
162
  });
158
163
 
159
- /* unplugin-vue-components disabled */const header = "_header_gacal_8";
160
- const icon = "_icon_gacal_25";
161
- const actions = "_actions_gacal_29";
164
+ /* unplugin-vue-components disabled */const header = "_header_19l5u_8";
165
+ const icon = "_icon_19l5u_25";
166
+ const actions = "_actions_19l5u_31";
162
167
  const style0 = {
163
- "explorer-form": "_explorer-form_gacal_1",
168
+ "explorer-form": "_explorer-form_19l5u_1",
164
169
  header: header,
165
- "header-container": "_header-container_gacal_21",
170
+ "header-container": "_header-container_19l5u_21",
166
171
  icon: icon,
167
172
  actions: actions
168
173
  };
@@ -192,14 +192,16 @@ declare function __VLS_template(): {
192
192
  rootEl: HTMLDivElement;
193
193
  };
194
194
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
195
- declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
195
+ declare const __VLS_component: import('vue').DefineComponent<IExplorerFormProps, {
196
+ toggleIsEditing: (val?: boolean) => void;
197
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
196
198
  clickEdit: () => any;
197
199
  }, string, import('vue').PublicProps, Readonly<IExplorerFormProps> & Readonly<{
198
200
  onClickEdit?: (() => any) | undefined;
199
201
  }>, {
200
202
  icon: string;
201
- onCancel: () => void | Promise<void> | (() => void | Promise<void>);
202
- onSave: (data: Record<string, any>) => void | Promise<void> | (() => void | Promise<void>);
203
+ onCancel: () => void | Promise<void> | Promise<() => void | Promise<void>>;
204
+ onSave: (data: Record<string, any>) => void | Promise<void> | Promise<() => void | Promise<void>>;
203
205
  labelPosition: import('element-plus').FormProps["labelPosition"];
204
206
  autoInitial: boolean;
205
207
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -1,11 +1,11 @@
1
1
  /* source: src/components/explorer-form/explorer-form.vue */
2
- ._explorer-form_gacal_1 {
2
+ ._explorer-form_19l5u_1 {
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  flex-grow: 1;
6
6
  height: 100px;
7
7
  }
8
- ._header_gacal_8 {
8
+ ._header_19l5u_8 {
9
9
  display: flex;
10
10
  align-items: center;
11
11
  justify-content: space-between;
@@ -17,17 +17,19 @@
17
17
  flex-wrap: wrap;
18
18
  row-gap: 8px;
19
19
  }
20
- ._header-container_gacal_21 {
21
- font-size: 1.2em;
20
+ ._header-container_19l5u_21 {
21
+ font-size: var(--el-font-size-medium);
22
22
  }
23
- ._icon_gacal_25 {
23
+ ._icon_19l5u_25 {
24
24
  margin-right: 4px;
25
+ font-size: 1.1em;
26
+ transform: translateY(1px);
25
27
  }
26
- ._actions_gacal_29 {
28
+ ._actions_19l5u_31 {
27
29
  display: flex;
28
30
  align-items: center;
29
31
  gap: 8px;
30
32
  }
31
- ._actions_gacal_29 .el-button {
33
+ ._actions_19l5u_31 .el-button {
32
34
  margin-left: 0 !important;
33
35
  }
@@ -149,13 +149,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
149
149
  }
150
150
  });
151
151
 
152
- /* unplugin-vue-components disabled */const tree = "_tree_10nwy_1";
153
- const node = "_node_10nwy_24";
154
- const label = "_label_10nwy_34";
155
- const icon = "_icon_10nwy_40";
156
- const actions = "_actions_10nwy_44";
157
- const remove = "_remove_10nwy_57";
158
- const loading = "_loading_10nwy_61";
152
+ /* unplugin-vue-components disabled */const tree = "_tree_bglx3_1";
153
+ const node = "_node_bglx3_24";
154
+ const label = "_label_bglx3_34";
155
+ const icon = "_icon_bglx3_41";
156
+ const actions = "_actions_bglx3_45";
157
+ const remove = "_remove_bglx3_58";
158
+ const loading = "_loading_bglx3_62";
159
159
  const style0 = {
160
160
  tree: tree,
161
161
  node: node,
@@ -1,27 +1,27 @@
1
1
  /* source: src/components/explorer-tree/explorer-tree.vue */
2
- ._tree_10nwy_1 .el-tree-node__content {
2
+ ._tree_bglx3_1 .el-tree-node__content {
3
3
  display: flex;
4
4
  align-items: center;
5
5
  }
6
- ._tree_10nwy_1 .el-tree-node__content:hover {
6
+ ._tree_bglx3_1 .el-tree-node__content:hover {
7
7
  background-color: var(--el-color-primary-light-9);
8
8
  }
9
- ._tree_10nwy_1 .el-tree-node__content:hover .vc-actions {
9
+ ._tree_bglx3_1 .el-tree-node__content:hover .vc-actions {
10
10
  display: inline-flex;
11
11
  }
12
- ._tree_10nwy_1 .is-current > .el-tree-node__content {
12
+ ._tree_bglx3_1 .is-current > .el-tree-node__content {
13
13
  color: var(--el-color-primary);
14
14
  background-color: var(--el-color-primary-light-9);
15
15
  }
16
- ._tree_10nwy_1 .el-tree__empty-block {
16
+ ._tree_bglx3_1 .el-tree__empty-block {
17
17
  text-align: left;
18
18
  min-height: unset;
19
19
  padding: 4px 8px;
20
20
  }
21
- ._tree_10nwy_1 .el-tree__empty-text {
21
+ ._tree_bglx3_1 .el-tree__empty-text {
22
22
  position: static;
23
23
  }
24
- ._node_10nwy_24 {
24
+ ._node_bglx3_24 {
25
25
  display: flex;
26
26
  justify-content: space-between;
27
27
  align-items: center;
@@ -30,30 +30,31 @@
30
30
  box-sizing: border-box;
31
31
  width: 100px;
32
32
  }
33
- ._label_10nwy_34 {
33
+ ._label_bglx3_34 {
34
34
  overflow: hidden;
35
35
  text-overflow: ellipsis;
36
36
  white-space: nowrap;
37
+ transform: translateY(-1px);
37
38
  }
38
- ._icon_10nwy_40 {
39
+ ._icon_bglx3_41 {
39
40
  margin-right: 4px;
40
41
  }
41
- ._actions_10nwy_44 {
42
+ ._actions_bglx3_45 {
42
43
  display: none;
43
44
  column-gap: 4px;
44
45
  }
45
- ._actions_10nwy_44 > button {
46
+ ._actions_bglx3_45 > button {
46
47
  margin-left: 0 !important;
47
48
  font-size: 1.2em;
48
49
  border: 1px solid var(--el-border-color-light) !important;
49
50
  }
50
- ._actions_10nwy_44 > button:hover {
51
+ ._actions_bglx3_45 > button:hover {
51
52
  border-color: var(--el-border-color-dark) !important;
52
53
  }
53
- ._remove_10nwy_57 {
54
+ ._remove_bglx3_58 {
54
55
  transform: translateY(-1px);
55
56
  }
56
- ._loading_10nwy_61 {
57
+ ._loading_bglx3_62 {
57
58
  padding: 4px 8px;
58
59
  display: flex;
59
60
  align-items: center;
package/dist/es/index.mjs CHANGED
@@ -150,7 +150,7 @@ const __vite_glob_0_46 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePr
150
150
  default: _sfc_main$8
151
151
  }, Symbol.toStringTag, { value: 'Module' }));
152
152
 
153
- const version = "1.6.0";
153
+ const version = "1.6.1";
154
154
 
155
155
  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-switcher/color-switcher.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-switcher/dark-switcher.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-panel/explorer-panel.vue": __vite_glob_0_26,"./components/explorer-query/explorer-query.vue": __vite_glob_0_27,"./components/explorer-table/explorer-table.vue": __vite_glob_0_28,"./components/explorer-tools/explorer-tools.vue": __vite_glob_0_29,"./components/explorer-tree/explorer-tree.vue": __vite_glob_0_30,"./components/explorer/explorer.vue": __vite_glob_0_31,"./components/flag/flag.vue": __vite_glob_0_32,"./components/icon-picker/icon-picker.vue": __vite_glob_0_33,"./components/icon/icon.vue": __vite_glob_0_34,"./components/iconify-icon/iconify-icon.vue": __vite_glob_0_35,"./components/image/image.vue": __vite_glob_0_36,"./components/input-number/input-number.vue": __vite_glob_0_37,"./components/input/input.vue": __vite_glob_0_38,"./components/pca-picker/pca-picker.vue": __vite_glob_0_39,"./components/qr-code/qr-code.vue": __vite_glob_0_40,"./components/screenfull/screenfull.vue": __vite_glob_0_41,"./components/scrollbar/scrollbar.vue": __vite_glob_0_42,"./components/select/select.vue": __vite_glob_0_43,"./components/single-player/single-player.vue": __vite_glob_0_44,"./components/splitter-panel/splitter-panel.vue": __vite_glob_0_45,"./components/splitter/splitter.vue": __vite_glob_0_46,"./components/svg-icon/svg-icon.vue": __vite_glob_0_47,"./components/switch/switch.vue": __vite_glob_0_48,"./components/sync-scroll-container/sync-scroll-container.vue": __vite_glob_0_49,"./components/tags/tags.vue": __vite_glob_0_50,"./components/text-ellipsis/text-ellipsis.vue": __vite_glob_0_51,"./components/thousand-input/thousand-input.vue": __vite_glob_0_52,"./components/tinymce/tinymce.vue": __vite_glob_0_53,"./components/tree-picker/tree-picker.vue": __vite_glob_0_54,"./components/upload-file/upload-file.vue": __vite_glob_0_55});
156
156
  const upper = (_, letter) => letter.toUpperCase();
package/dist/index.css CHANGED
@@ -577,13 +577,13 @@ div._main_m9nss_1 ._header_m9nss_48 {
577
577
  padding: 0 11px !important;
578
578
  }
579
579
  /* source: src/components/explorer-container/explorer-container.vue */
580
- ._explorer-container_1sfkk_1 {
580
+ ._explorer-container_4odhg_1 {
581
581
  display: flex;
582
582
  flex-direction: column;
583
583
  flex-grow: 1;
584
584
  height: 100px;
585
585
  }
586
- ._header_1sfkk_8 {
586
+ ._header_4odhg_8 {
587
587
  display: flex;
588
588
  align-items: center;
589
589
  justify-content: space-between;
@@ -596,11 +596,13 @@ div._main_m9nss_1 ._header_m9nss_48 {
596
596
  flex-wrap: wrap;
597
597
  row-gap: 8px;
598
598
  }
599
- ._header-container_1sfkk_22 {
600
- font-size: 1.2em;
599
+ ._header-container_4odhg_22 {
600
+ font-size: var(--el-font-size-medium);
601
601
  }
602
- ._icon_1sfkk_26 {
602
+ ._icon_4odhg_26 {
603
603
  margin-right: 4px;
604
+ font-size: 1.1em;
605
+ transform: translateY(1px);
604
606
  }
605
607
  /* source: src/components/explorer-filter/explorer-filter.vue */
606
608
  ._explorer-filter_1l5g5_1 {
@@ -617,13 +619,13 @@ div._main_m9nss_1 ._header_m9nss_48 {
617
619
  padding-top: var(--v2844fd33);
618
620
  }
619
621
  /* source: src/components/explorer-form/explorer-form.vue */
620
- ._explorer-form_gacal_1 {
622
+ ._explorer-form_19l5u_1 {
621
623
  display: flex;
622
624
  flex-direction: column;
623
625
  flex-grow: 1;
624
626
  height: 100px;
625
627
  }
626
- ._header_gacal_8 {
628
+ ._header_19l5u_8 {
627
629
  display: flex;
628
630
  align-items: center;
629
631
  justify-content: space-between;
@@ -635,18 +637,20 @@ div._main_m9nss_1 ._header_m9nss_48 {
635
637
  flex-wrap: wrap;
636
638
  row-gap: 8px;
637
639
  }
638
- ._header-container_gacal_21 {
639
- font-size: 1.2em;
640
+ ._header-container_19l5u_21 {
641
+ font-size: var(--el-font-size-medium);
640
642
  }
641
- ._icon_gacal_25 {
643
+ ._icon_19l5u_25 {
642
644
  margin-right: 4px;
645
+ font-size: 1.1em;
646
+ transform: translateY(1px);
643
647
  }
644
- ._actions_gacal_29 {
648
+ ._actions_19l5u_31 {
645
649
  display: flex;
646
650
  align-items: center;
647
651
  gap: 8px;
648
652
  }
649
- ._actions_gacal_29 .el-button {
653
+ ._actions_19l5u_31 .el-button {
650
654
  margin-left: 0 !important;
651
655
  }
652
656
  /* source: src/components/explorer-list/explorer-list.vue */
@@ -835,29 +839,29 @@ div._main_m9nss_1 ._header_m9nss_48 {
835
839
  z-index: 9999 !important;
836
840
  }
837
841
  /* source: src/components/explorer-tree/explorer-tree.vue */
838
- ._tree_10nwy_1 .el-tree-node__content {
842
+ ._tree_bglx3_1 .el-tree-node__content {
839
843
  display: flex;
840
844
  align-items: center;
841
845
  }
842
- ._tree_10nwy_1 .el-tree-node__content:hover {
846
+ ._tree_bglx3_1 .el-tree-node__content:hover {
843
847
  background-color: var(--el-color-primary-light-9);
844
848
  }
845
- ._tree_10nwy_1 .el-tree-node__content:hover .vc-actions {
849
+ ._tree_bglx3_1 .el-tree-node__content:hover .vc-actions {
846
850
  display: inline-flex;
847
851
  }
848
- ._tree_10nwy_1 .is-current > .el-tree-node__content {
852
+ ._tree_bglx3_1 .is-current > .el-tree-node__content {
849
853
  color: var(--el-color-primary);
850
854
  background-color: var(--el-color-primary-light-9);
851
855
  }
852
- ._tree_10nwy_1 .el-tree__empty-block {
856
+ ._tree_bglx3_1 .el-tree__empty-block {
853
857
  text-align: left;
854
858
  min-height: unset;
855
859
  padding: 4px 8px;
856
860
  }
857
- ._tree_10nwy_1 .el-tree__empty-text {
861
+ ._tree_bglx3_1 .el-tree__empty-text {
858
862
  position: static;
859
863
  }
860
- ._node_10nwy_24 {
864
+ ._node_bglx3_24 {
861
865
  display: flex;
862
866
  justify-content: space-between;
863
867
  align-items: center;
@@ -866,30 +870,31 @@ div._main_m9nss_1 ._header_m9nss_48 {
866
870
  box-sizing: border-box;
867
871
  width: 100px;
868
872
  }
869
- ._label_10nwy_34 {
873
+ ._label_bglx3_34 {
870
874
  overflow: hidden;
871
875
  text-overflow: ellipsis;
872
876
  white-space: nowrap;
877
+ transform: translateY(-1px);
873
878
  }
874
- ._icon_10nwy_40 {
879
+ ._icon_bglx3_41 {
875
880
  margin-right: 4px;
876
881
  }
877
- ._actions_10nwy_44 {
882
+ ._actions_bglx3_45 {
878
883
  display: none;
879
884
  column-gap: 4px;
880
885
  }
881
- ._actions_10nwy_44 > button {
886
+ ._actions_bglx3_45 > button {
882
887
  margin-left: 0 !important;
883
888
  font-size: 1.2em;
884
889
  border: 1px solid var(--el-border-color-light) !important;
885
890
  }
886
- ._actions_10nwy_44 > button:hover {
891
+ ._actions_bglx3_45 > button:hover {
887
892
  border-color: var(--el-border-color-dark) !important;
888
893
  }
889
- ._remove_10nwy_57 {
894
+ ._remove_bglx3_58 {
890
895
  transform: translateY(-1px);
891
896
  }
892
- ._loading_10nwy_61 {
897
+ ._loading_bglx3_62 {
893
898
  padding: 4px 8px;
894
899
  display: flex;
895
900
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfrog/vc-ui",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "packageManager": "pnpm@10.20.0",
5
5
  "description": "vue3 组件库 vc-ui",
6
6
  "author": "wellfrog",