yuang-framework-ui-pc 1.1.121 → 1.1.122

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.
@@ -1,4 +1,4 @@
1
- import { Ref, nextTick } from 'vue';
1
+ import { Ref } from 'vue';
2
2
  import { EleTooltipInstance, EleTooltipProps } from '../ele-app/plus';
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -20,8 +20,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
20
20
  tooltipProps: Ref<Partial<import('../ele-tooltip/props').TooltipProps>, Partial<import('../ele-tooltip/props').TooltipProps>>;
21
21
  showTooltip: (text?: string, el?: HTMLElement, options?: EleTooltipProps) => void;
22
22
  hideTooltip: () => void;
23
- isBodyEmpty: Ref<boolean, boolean>;
24
- isToolsEmpty: Ref<boolean, boolean>;
25
23
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
24
  title: StringConstructor;
27
25
  subtitle: StringConstructor;
@@ -546,7 +544,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
546
544
  errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
547
545
  };
548
546
  $forceUpdate: () => void;
549
- $nextTick: typeof import('vue/dist/vue.js').nextTick;
547
+ $nextTick: typeof import('vue').nextTick;
550
548
  $watch(source: string | Function, cb: Function, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
551
549
  } & Readonly<import('vue').ExtractPropTypes<{
552
550
  readonly role: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown, "tooltip", boolean>;
@@ -978,7 +976,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
978
976
  errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
979
977
  };
980
978
  $forceUpdate: () => void;
981
- $nextTick: typeof import('vue/dist/vue.js').nextTick;
979
+ $nextTick: typeof import('vue').nextTick;
982
980
  $watch(source: string | Function, cb: Function, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
983
981
  } & Readonly<import('vue').ExtractPropTypes<{
984
982
  readonly role: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown, "tooltip", boolean>;
@@ -1405,7 +1403,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1405
1403
  errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
1406
1404
  };
1407
1405
  $forceUpdate: () => void;
1408
- $nextTick: typeof import('vue/dist/vue.js').nextTick;
1406
+ $nextTick: typeof import('vue').nextTick;
1409
1407
  $watch(source: string | Function, cb: Function, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
1410
1408
  } & Readonly<import('vue').ExtractPropTypes<{
1411
1409
  readonly role: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown, "tooltip", boolean>;
@@ -1503,7 +1501,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1503
1501
  ElIcon: import('element-plus/es/utils/index').SFCWithInstall<{
1504
1502
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
1505
1503
  readonly size: {
1506
- readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1504
+ readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 关闭提示 */args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1507
1505
  readonly required: false;
1508
1506
  readonly validator: ((val: unknown) => boolean) | undefined;
1509
1507
  __epPropKey: true;
@@ -1523,7 +1521,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1523
1521
  Defaults: {};
1524
1522
  }, Readonly<import('vue').ExtractPropTypes<{
1525
1523
  readonly size: {
1526
- readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1524
+ readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 关闭提示 */args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1527
1525
  readonly required: false;
1528
1526
  readonly validator: ((val: unknown) => boolean) | undefined;
1529
1527
  __epPropKey: true;
@@ -1540,7 +1538,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1540
1538
  __isSuspense?: never;
1541
1539
  } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
1542
1540
  readonly size: {
1543
- readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1541
+ readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 关闭提示 */args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1544
1542
  readonly required: false;
1545
1543
  readonly validator: ((val: unknown) => boolean) | undefined;
1546
1544
  __epPropKey: true;
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, shallowReactive, provide, useSlots, watch, nextTick, resolveComponent, createElementBlock, openBlock, normalizeClass, createCommentVNode, createElementVNode, createVNode, normalizeStyle, createBlock, mergeProps, withCtx, createTextVNode, toDisplayString, renderSlot } from "vue";
1
+ import { defineComponent, ref, shallowReactive, provide, resolveComponent, createElementBlock, openBlock, normalizeClass, createCommentVNode, createElementVNode, createVNode, normalizeStyle, createBlock, mergeProps, withCtx, createTextVNode, toDisplayString, renderSlot } from "vue";
2
2
  import EleTooltip from "../ele-tooltip/index";
3
3
  import EleText from "../ele-text/index";
4
4
  import { toolbarProps, TOOLBAR_KEY } from "./props";
@@ -24,33 +24,13 @@ const _sfc_main = defineComponent({
24
24
  hideTooltip
25
25
  });
26
26
  provide(TOOLBAR_KEY, toolbarProvide);
27
- const slots = useSlots();
28
- const isBodyEmpty = ref(true);
29
- const isToolsEmpty = ref(!slots.tools);
30
- const bodyRef = ref(null);
31
- const checkBodySlot = async () => {
32
- var _a, _b, _c;
33
- await nextTick();
34
- if (!bodyRef.value) return;
35
- const hasContent = !!((_b = (_a = bodyRef.value) == null ? void 0 : _a.textContent) == null ? void 0 : _b.trim()) || ((_c = bodyRef.value) == null ? void 0 : _c.children.length) > 0;
36
- isBodyEmpty.value = !hasContent;
37
- };
38
- watch(
39
- [() => slots.default],
40
- () => {
41
- checkBodySlot();
42
- },
43
- { immediate: true }
44
- );
45
27
  return {
46
28
  tooltipRef,
47
29
  virtualRef,
48
30
  tooltipContent,
49
31
  tooltipProps,
50
32
  showTooltip,
51
- hideTooltip,
52
- isBodyEmpty,
53
- isToolsEmpty
33
+ hideTooltip
54
34
  };
55
35
  }
56
36
  });
@@ -65,7 +45,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
65
45
  const _component_EleText = resolveComponent("EleText");
66
46
  const _component_EleTooltip = resolveComponent("EleTooltip");
67
47
  return openBlock(), createElementBlock("div", {
68
- class: normalizeClass(["ele-toolbar", { "is-default": "plain" !== _ctx.theme }, { "is-plain": "plain" === _ctx.theme }])
48
+ class: normalizeClass([
49
+ "ele-toolbar",
50
+ { "is-default": "plain" !== _ctx.theme },
51
+ { "is-plain": "plain" === _ctx.theme }
52
+ ])
69
53
  }, [
70
54
  _ctx.title || _ctx.subtitle ? (openBlock(), createElementBlock("div", {
71
55
  key: 0,
@@ -92,18 +76,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
92
76
  }, 16)) : createCommentVNode("", true)
93
77
  ], 4)) : createCommentVNode("", true),
94
78
  createElementVNode("div", {
95
- ref: "bodyRef",
96
- class: normalizeClass(["ele-toolbar-body", { "ele-toolbar-empty": _ctx.isBodyEmpty }]),
79
+ class: "ele-toolbar-body",
97
80
  style: normalizeStyle(_ctx.bodyStyle)
98
81
  }, [
99
82
  renderSlot(_ctx.$slots, "default")
100
- ], 6),
83
+ ], 4),
101
84
  createElementVNode("div", {
102
- class: normalizeClass(["ele-toolbar-tools", { "ele-toolbar-empty": _ctx.isToolsEmpty }]),
85
+ class: "ele-toolbar-tools",
103
86
  style: normalizeStyle(_ctx.toolsStyle)
104
87
  }, [
105
88
  renderSlot(_ctx.$slots, "tools")
106
- ], 6),
89
+ ], 4),
107
90
  createVNode(_component_EleTooltip, mergeProps({
108
91
  trigger: "hover",
109
92
  placement: "top",
@@ -40,15 +40,21 @@
40
40
  justify-content: flex-end;
41
41
  align-items: center;
42
42
  }
43
- .ele-toolbar-empty {
43
+
44
+ /* 核心:空 div 高度为 0,有内容自动恢复 */
45
+ .ele-toolbar-body:empty, .ele-toolbar-tools:empty {
44
46
  height: 0 !important;
45
47
  min-height: 0 !important;
46
- line-height: 0 !important; /* 消除行高空白 */
47
- font-size: 0 !important; /* 消除字体空白 */
48
- padding: 0 !important; /* 重置内边距 */
49
- margin: 0 !important; /* 重置外边距 */
50
- border: none !important; /* 重置边框 */
51
- overflow: hidden !important; /* 防止溢出 */
48
+ line-height: 0 !important;
49
+ font-size: 0 !important;
50
+ padding: 0 !important;
51
+ margin: 0 !important;
52
+ }
53
+
54
+ /* 有内容时的默认样式(保留你原来的) */
55
+ .ele-toolbar-body, .ele-toolbar-tools {
56
+ /* 原来的样式,比如 padding、margin 等 */
57
+ box-sizing: border-box;
52
58
  }
53
59
 
54
60
  /* 朴素风格 */
@@ -25,33 +25,13 @@ const _sfc_main = vue.defineComponent({
25
25
  hideTooltip
26
26
  });
27
27
  vue.provide(props.TOOLBAR_KEY, toolbarProvide);
28
- const slots = vue.useSlots();
29
- const isBodyEmpty = vue.ref(true);
30
- const isToolsEmpty = vue.ref(!slots.tools);
31
- const bodyRef = vue.ref(null);
32
- const checkBodySlot = async () => {
33
- var _a, _b, _c;
34
- await vue.nextTick();
35
- if (!bodyRef.value) return;
36
- const hasContent = !!((_b = (_a = bodyRef.value) == null ? void 0 : _a.textContent) == null ? void 0 : _b.trim()) || ((_c = bodyRef.value) == null ? void 0 : _c.children.length) > 0;
37
- isBodyEmpty.value = !hasContent;
38
- };
39
- vue.watch(
40
- [() => slots.default],
41
- () => {
42
- checkBodySlot();
43
- },
44
- { immediate: true }
45
- );
46
28
  return {
47
29
  tooltipRef,
48
30
  virtualRef,
49
31
  tooltipContent,
50
32
  tooltipProps,
51
33
  showTooltip,
52
- hideTooltip,
53
- isBodyEmpty,
54
- isToolsEmpty
34
+ hideTooltip
55
35
  };
56
36
  }
57
37
  });
@@ -66,7 +46,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
66
46
  const _component_EleText = vue.resolveComponent("EleText");
67
47
  const _component_EleTooltip = vue.resolveComponent("EleTooltip");
68
48
  return vue.openBlock(), vue.createElementBlock("div", {
69
- class: vue.normalizeClass(["ele-toolbar", { "is-default": "plain" !== _ctx.theme }, { "is-plain": "plain" === _ctx.theme }])
49
+ class: vue.normalizeClass([
50
+ "ele-toolbar",
51
+ { "is-default": "plain" !== _ctx.theme },
52
+ { "is-plain": "plain" === _ctx.theme }
53
+ ])
70
54
  }, [
71
55
  _ctx.title || _ctx.subtitle ? (vue.openBlock(), vue.createElementBlock("div", {
72
56
  key: 0,
@@ -93,18 +77,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
93
77
  }, 16)) : vue.createCommentVNode("", true)
94
78
  ], 4)) : vue.createCommentVNode("", true),
95
79
  vue.createElementVNode("div", {
96
- ref: "bodyRef",
97
- class: vue.normalizeClass(["ele-toolbar-body", { "ele-toolbar-empty": _ctx.isBodyEmpty }]),
80
+ class: "ele-toolbar-body",
98
81
  style: vue.normalizeStyle(_ctx.bodyStyle)
99
82
  }, [
100
83
  vue.renderSlot(_ctx.$slots, "default")
101
- ], 6),
84
+ ], 4),
102
85
  vue.createElementVNode("div", {
103
- class: vue.normalizeClass(["ele-toolbar-tools", { "ele-toolbar-empty": _ctx.isToolsEmpty }]),
86
+ class: "ele-toolbar-tools",
104
87
  style: vue.normalizeStyle(_ctx.toolsStyle)
105
88
  }, [
106
89
  vue.renderSlot(_ctx.$slots, "tools")
107
- ], 6),
90
+ ], 4),
108
91
  vue.createVNode(_component_EleTooltip, vue.mergeProps({
109
92
  trigger: "hover",
110
93
  placement: "top",
@@ -1,4 +1,4 @@
1
- import { Ref, nextTick } from 'vue';
1
+ import { Ref } from 'vue';
2
2
  import { EleTooltipInstance, EleTooltipProps } from '../ele-app/plus';
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -20,8 +20,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
20
20
  tooltipProps: Ref<Partial<import('../ele-tooltip/props').TooltipProps>, Partial<import('../ele-tooltip/props').TooltipProps>>;
21
21
  showTooltip: (text?: string, el?: HTMLElement, options?: EleTooltipProps) => void;
22
22
  hideTooltip: () => void;
23
- isBodyEmpty: Ref<boolean, boolean>;
24
- isToolsEmpty: Ref<boolean, boolean>;
25
23
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
24
  title: StringConstructor;
27
25
  subtitle: StringConstructor;
@@ -546,7 +544,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
546
544
  errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
547
545
  };
548
546
  $forceUpdate: () => void;
549
- $nextTick: typeof import('vue/dist/vue.js').nextTick;
547
+ $nextTick: typeof import('vue').nextTick;
550
548
  $watch(source: string | Function, cb: Function, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
551
549
  } & Readonly<import('vue').ExtractPropTypes<{
552
550
  readonly role: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown, "tooltip", boolean>;
@@ -978,7 +976,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
978
976
  errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
979
977
  };
980
978
  $forceUpdate: () => void;
981
- $nextTick: typeof import('vue/dist/vue.js').nextTick;
979
+ $nextTick: typeof import('vue').nextTick;
982
980
  $watch(source: string | Function, cb: Function, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
983
981
  } & Readonly<import('vue').ExtractPropTypes<{
984
982
  readonly role: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown, "tooltip", boolean>;
@@ -1405,7 +1403,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1405
1403
  errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
1406
1404
  };
1407
1405
  $forceUpdate: () => void;
1408
- $nextTick: typeof import('vue/dist/vue.js').nextTick;
1406
+ $nextTick: typeof import('vue').nextTick;
1409
1407
  $watch(source: string | Function, cb: Function, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
1410
1408
  } & Readonly<import('vue').ExtractPropTypes<{
1411
1409
  readonly role: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown, "tooltip", boolean>;
@@ -1503,7 +1501,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1503
1501
  ElIcon: import('element-plus/es/utils/index').SFCWithInstall<{
1504
1502
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
1505
1503
  readonly size: {
1506
- readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1504
+ readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 关闭提示 */args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1507
1505
  readonly required: false;
1508
1506
  readonly validator: ((val: unknown) => boolean) | undefined;
1509
1507
  __epPropKey: true;
@@ -1523,7 +1521,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1523
1521
  Defaults: {};
1524
1522
  }, Readonly<import('vue').ExtractPropTypes<{
1525
1523
  readonly size: {
1526
- readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1524
+ readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 关闭提示 */args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1527
1525
  readonly required: false;
1528
1526
  readonly validator: ((val: unknown) => boolean) | undefined;
1529
1527
  __epPropKey: true;
@@ -1540,7 +1538,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1540
1538
  __isSuspense?: never;
1541
1539
  } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
1542
1540
  readonly size: {
1543
- readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1541
+ readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<(new (... /** 关闭提示 */args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
1544
1542
  readonly required: false;
1545
1543
  readonly validator: ((val: unknown) => boolean) | undefined;
1546
1544
  __epPropKey: true;
@@ -40,15 +40,21 @@
40
40
  justify-content: flex-end;
41
41
  align-items: center;
42
42
  }
43
- .ele-toolbar-empty {
43
+
44
+ /* 核心:空 div 高度为 0,有内容自动恢复 */
45
+ .ele-toolbar-body:empty, .ele-toolbar-tools:empty {
44
46
  height: 0 !important;
45
47
  min-height: 0 !important;
46
- line-height: 0 !important; /* 消除行高空白 */
47
- font-size: 0 !important; /* 消除字体空白 */
48
- padding: 0 !important; /* 重置内边距 */
49
- margin: 0 !important; /* 重置外边距 */
50
- border: none !important; /* 重置边框 */
51
- overflow: hidden !important; /* 防止溢出 */
48
+ line-height: 0 !important;
49
+ font-size: 0 !important;
50
+ padding: 0 !important;
51
+ margin: 0 !important;
52
+ }
53
+
54
+ /* 有内容时的默认样式(保留你原来的) */
55
+ .ele-toolbar-body, .ele-toolbar-tools {
56
+ /* 原来的样式,比如 padding、margin 等 */
57
+ box-sizing: border-box;
52
58
  }
53
59
 
54
60
  /* 朴素风格 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.1.121",
3
+ "version": "1.1.122",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts --mode dev",