@lingshugroup/web-plus 1.7.3 → 1.7.5
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.
- package/lib/index/index.cjs +1 -1
- package/lib/index/index.js +20 -18
- package/lib/index/index.js.br +0 -0
- package/lib/index/index.js.gz +0 -0
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/packages/ls-components/components/_constants/token/index.cjs +1 -1
- package/lib/packages/ls-components/components/_constants/token/index.js +3 -2
- package/lib/packages/ls-components/components/editor/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/editor/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/index/index.cjs +1 -1
- package/lib/packages/ls-components/components/index/index.js +21 -19
- package/lib/packages/ls-components/components/index/index.js.br +0 -0
- package/lib/packages/ls-components/components/index/index.js.gz +0 -0
- package/lib/packages/ls-components/components/menu/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/menu/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/menu/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js +63 -59
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/menu/MenuItem.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/menu/MenuItem.vue/index.js +76 -53
- package/lib/packages/ls-components/components/menu/MenuItem.vue/index.js.br +0 -0
- package/lib/packages/ls-components/components/menu/MenuItem.vue/index.js.gz +0 -0
- package/lib/packages/ls-components/components/menu/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/menu/types/index.js +16 -4
- package/lib/packages/ls-components/components/menu/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/menu/types/index.js.gz +0 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index.cjs +1 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index.js +7 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index2.cjs +1 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index2.js +77 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/tooltip/types/index.cjs +1 -0
- package/lib/packages/ls-components/components/tooltip/types/index.js +22 -0
- package/lib/tooltip/index.cjs +1 -0
- package/lib/tooltip/index.js +12 -0
- package/lib/types/components/_constants/token.d.ts +1 -0
- package/lib/types/components/menu/Index.vue.d.ts +6 -0
- package/lib/types/components/menu/MenuItem.vue.d.ts +3 -0
- package/lib/types/components/menu/index.d.ts +12 -0
- package/lib/types/components/menu/types.d.ts +3 -0
- package/lib/types/components/tooltip/Index.vue.d.ts +37 -0
- package/lib/types/components/tooltip/index.d.ts +6 -0
- package/lib/types/components/tooltip/types.d.ts +7 -0
- package/package.json +5 -1
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-610acd0b"]]);exports.default=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var v=Object.defineProperty;var u=(r,o)=>v(r,"name",{value:o,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),y=,/* empty css */S=,/* empty css */a=,/* empty css */w=,/* empty css */_=e.defineComponent({name:"LSTooltip"}),C=e.defineComponent({..._,props:S.lsTooltipProps,setup(r){const o=r,p=y.useNamespace("tooltip").b(),s=e.ref(!1),i=e.ref(),d=e.useAttrs(),c=e.computed(()=>{const t=o.width;let n="100%";return(t.endsWith("%")||t.endsWith("px"))&&!a.isEmpty(parseInt(t))?n=t:a.isEmpty(Number(t))||(n=`${t}px`),{width:n}}),f=e.computed(()=>d.content||""),m=e.computed(()=>{const t=o.lineClamp>1?Object.assign({height:"auto"},c.value):{width:"auto",height:0},n=o.fontSize;n&&(t.fontSize=`${n}px`);const l=o.lineHeight;return l&&(t.lineHeight=`${l}px`),t});function h(){g()}u(h,"onMouseEnter");async function g(){if(await e.nextTick(),i.value){const t=i.value.getBoundingClientRect(),n=i.value.querySelector(".temp-content").getBoundingClientRect();o.lineClamp<=1?n.width>t.width?s.value=!0:s.value=!1:n.height>t.height?s.value=!0:s.value=!1}}return u(g,"updateTooltip"),(t,n)=>{const l=w.ElTooltip;return e.openBlock(),e.createElementBlock("div",{ref_key:"lsTooltipRef",ref:i,class:e.normalizeClass(e.unref(p)),style:e.normalizeStyle(e.unref(c)),onMouseenter:h},[e.createElementVNode("div",{class:"temp-content",style:e.normalizeStyle(e.unref(m))},e.toDisplayString(e.unref(f)),5),e.createVNode(l,e.mergeProps({disabled:!e.unref(s)},t.$attrs),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),content:e.withCtx(()=>[e.renderSlot(t.$slots,"content",{},void 0,!0)]),_:3},16,["disabled"])],38)}}});exports.default=C;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var a = (r, o) => T(r, "name", { value: o, configurable: !0 });
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
import { defineComponent as g, ref as u, useAttrs as $, computed as c, openBlock as b, createElementBlock as x, normalizeClass as z, unref as s, normalizeStyle as m, createElementVNode as E, toDisplayString as k, createVNode as B, mergeProps as N, withCtx as f, renderSlot as d, nextTick as R } from "vue";
|
|
7
|
+
import { useNamespace as W } from "../../_hooks/useNamespace/index.js";
|
|
8
|
+
import { lsTooltipProps as H } from "../types/index.js";
|
|
9
|
+
import { isEmpty as h } from "../../_utils/utils/index.js";
|
|
10
|
+
import { ElTooltip as M } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/tooltip/index/index.js";
|
|
11
|
+
const P = g({
|
|
12
|
+
name: "LSTooltip"
|
|
13
|
+
}), J = /* @__PURE__ */ g({
|
|
14
|
+
...P,
|
|
15
|
+
props: H,
|
|
16
|
+
setup(r) {
|
|
17
|
+
const o = r, v = W("tooltip").b(), n = u(!1), i = u(), w = $(), p = c(() => {
|
|
18
|
+
const t = o.width;
|
|
19
|
+
let e = "100%";
|
|
20
|
+
return (t.endsWith("%") || t.endsWith("px")) && !h(parseInt(t)) ? e = t : h(Number(t)) || (e = `${t}px`), {
|
|
21
|
+
width: e
|
|
22
|
+
};
|
|
23
|
+
}), y = c(() => w.content || ""), _ = c(() => {
|
|
24
|
+
const t = o.lineClamp > 1 ? Object.assign(
|
|
25
|
+
{
|
|
26
|
+
height: "auto"
|
|
27
|
+
},
|
|
28
|
+
p.value
|
|
29
|
+
) : {
|
|
30
|
+
width: "auto",
|
|
31
|
+
height: 0
|
|
32
|
+
}, e = o.fontSize;
|
|
33
|
+
e && (t.fontSize = `${e}px`);
|
|
34
|
+
const l = o.lineHeight;
|
|
35
|
+
return l && (t.lineHeight = `${l}px`), t;
|
|
36
|
+
});
|
|
37
|
+
function C() {
|
|
38
|
+
S();
|
|
39
|
+
}
|
|
40
|
+
a(C, "onMouseEnter");
|
|
41
|
+
async function S() {
|
|
42
|
+
if (await R(), i.value) {
|
|
43
|
+
const t = i.value.getBoundingClientRect(), e = i.value.querySelector(".temp-content").getBoundingClientRect();
|
|
44
|
+
o.lineClamp <= 1 ? e.width > t.width ? n.value = !0 : n.value = !1 : e.height > t.height ? n.value = !0 : n.value = !1;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return a(S, "updateTooltip"), (t, e) => {
|
|
48
|
+
const l = M;
|
|
49
|
+
return b(), x("div", {
|
|
50
|
+
ref_key: "lsTooltipRef",
|
|
51
|
+
ref: i,
|
|
52
|
+
class: z(s(v)),
|
|
53
|
+
style: m(s(p)),
|
|
54
|
+
onMouseenter: C
|
|
55
|
+
}, [
|
|
56
|
+
E("div", {
|
|
57
|
+
class: "temp-content",
|
|
58
|
+
style: m(s(_))
|
|
59
|
+
}, k(s(y)), 5),
|
|
60
|
+
B(l, N({
|
|
61
|
+
disabled: !s(n)
|
|
62
|
+
}, t.$attrs), {
|
|
63
|
+
default: f(() => [
|
|
64
|
+
d(t.$slots, "default", {}, void 0, !0)
|
|
65
|
+
]),
|
|
66
|
+
content: f(() => [
|
|
67
|
+
d(t.$slots, "content", {}, void 0, !0)
|
|
68
|
+
]),
|
|
69
|
+
_: 3
|
|
70
|
+
}, 16, ["disabled"])
|
|
71
|
+
], 38);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
J as default
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_utils/runtime/index.cjs"),t=e.buildProps({width:{type:[Number,String],default:"100%"},fontSize:{type:Number,default:null},lineClamp:{type:Number,default:1},lineHeight:{type:Number,default:null}});exports.lsTooltipProps=t;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { buildProps as e } from "../../_utils/runtime/index.js";
|
|
2
|
+
const l = e({
|
|
3
|
+
width: {
|
|
4
|
+
type: [Number, String],
|
|
5
|
+
default: "100%"
|
|
6
|
+
},
|
|
7
|
+
fontSize: {
|
|
8
|
+
type: Number,
|
|
9
|
+
default: null
|
|
10
|
+
},
|
|
11
|
+
lineClamp: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 1
|
|
14
|
+
},
|
|
15
|
+
lineHeight: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: null
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
l as lsTooltipProps
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=Object.defineProperty;var o=(e,l)=>n(e,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../packages/ls-components/components/tooltip/Index.vue/index.cjs"),u=require("../packages/ls-components/components/_utils/config/index.cjs"),a=Object.assign(t.default,{install:o((e,l)=>{u.setGlobalConfig(e,l),t.default.name&&e.component(t.default.name,t.default)},"install")});exports.default=a;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e = Object.defineProperty;
|
|
2
|
+
var n = (o, i) => e(o, "name", { value: i, configurable: !0 });
|
|
3
|
+
import t from "../packages/ls-components/components/tooltip/Index.vue/index.js";
|
|
4
|
+
import { setGlobalConfig as l } from "../packages/ls-components/components/_utils/config/index.js";
|
|
5
|
+
const f = Object.assign(t, {
|
|
6
|
+
install: /* @__PURE__ */ n((o, i) => {
|
|
7
|
+
l(o, i), t.name && o.component(t.name, t);
|
|
8
|
+
}, "install")
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
f as default
|
|
12
|
+
};
|
|
@@ -144,6 +144,8 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
144
144
|
}, unknown, unknown, () => never[], boolean>;
|
|
145
145
|
hoverColor: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
146
146
|
isDefineClick: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
147
|
+
showTooltip: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
148
|
+
fontSize: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
147
149
|
}>, {
|
|
148
150
|
lsComMenuRef: globalThis.Ref<any, any>;
|
|
149
151
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -182,12 +184,16 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
182
184
|
}, unknown, unknown, () => never[], boolean>;
|
|
183
185
|
hoverColor: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
184
186
|
isDefineClick: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
187
|
+
showTooltip: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
188
|
+
fontSize: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
185
189
|
}>> & Readonly<{}>, {
|
|
186
190
|
menuConfigList: MenuBaseType[];
|
|
187
191
|
needPermission: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
188
192
|
permissionList: (string | number)[];
|
|
189
193
|
hoverColor: string;
|
|
190
194
|
isDefineClick: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
195
|
+
showTooltip: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
196
|
+
fontSize: number;
|
|
191
197
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
192
198
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
193
199
|
export default _default;
|
|
@@ -27,6 +27,7 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
27
27
|
}, unknown, unknown, () => never[], boolean>;
|
|
28
28
|
item: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
29
29
|
isDefineClick: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
30
|
+
showTooltip: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
30
31
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
31
32
|
needPermission: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
32
33
|
permissionList: EpPropFinalized<{
|
|
@@ -47,11 +48,13 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
47
48
|
}, unknown, unknown, () => never[], boolean>;
|
|
48
49
|
item: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
49
50
|
isDefineClick: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
51
|
+
showTooltip: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
50
52
|
}>> & Readonly<{}>, {
|
|
51
53
|
item: Record<string, any>;
|
|
52
54
|
needPermission: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
53
55
|
permissionList: (string | number)[];
|
|
54
56
|
isDefineClick: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
57
|
+
showTooltip: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
55
58
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
56
59
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
57
60
|
export default _default;
|
|
@@ -38,6 +38,8 @@ declare const LSMenu: {
|
|
|
38
38
|
}, unknown, unknown, () => never[], boolean>;
|
|
39
39
|
hoverColor: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
40
40
|
isDefineClick: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
41
|
+
showTooltip: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
42
|
+
fontSize: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
41
43
|
}>> & Readonly<{}>, {
|
|
42
44
|
lsComMenuRef: globalThis.Ref<any, any>;
|
|
43
45
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
@@ -46,6 +48,8 @@ declare const LSMenu: {
|
|
|
46
48
|
permissionList: (string | number)[];
|
|
47
49
|
hoverColor: string;
|
|
48
50
|
isDefineClick: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
51
|
+
showTooltip: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
52
|
+
fontSize: number;
|
|
49
53
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
50
54
|
P: {};
|
|
51
55
|
B: {};
|
|
@@ -89,6 +93,8 @@ declare const LSMenu: {
|
|
|
89
93
|
}, unknown, unknown, () => never[], boolean>;
|
|
90
94
|
hoverColor: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
91
95
|
isDefineClick: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
96
|
+
showTooltip: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
97
|
+
fontSize: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
92
98
|
}>> & Readonly<{}>, {
|
|
93
99
|
lsComMenuRef: globalThis.Ref<any, any>;
|
|
94
100
|
}, {}, {}, {}, {
|
|
@@ -97,6 +103,8 @@ declare const LSMenu: {
|
|
|
97
103
|
permissionList: (string | number)[];
|
|
98
104
|
hoverColor: string;
|
|
99
105
|
isDefineClick: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
106
|
+
showTooltip: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
107
|
+
fontSize: number;
|
|
100
108
|
}>;
|
|
101
109
|
__isFragment?: never;
|
|
102
110
|
__isTeleport?: never;
|
|
@@ -137,6 +145,8 @@ declare const LSMenu: {
|
|
|
137
145
|
}, unknown, unknown, () => never[], boolean>;
|
|
138
146
|
hoverColor: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
139
147
|
isDefineClick: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
148
|
+
showTooltip: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
149
|
+
fontSize: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
140
150
|
}>> & Readonly<{}>, {
|
|
141
151
|
lsComMenuRef: globalThis.Ref<any, any>;
|
|
142
152
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
@@ -145,6 +155,8 @@ declare const LSMenu: {
|
|
|
145
155
|
permissionList: (string | number)[];
|
|
146
156
|
hoverColor: string;
|
|
147
157
|
isDefineClick: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
158
|
+
showTooltip: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
159
|
+
fontSize: number;
|
|
148
160
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
149
161
|
$slots: Partial<Record<string, (_: {}) => any>>;
|
|
150
162
|
}) & {
|
|
@@ -80,6 +80,8 @@ export declare const lsMenuProps: {
|
|
|
80
80
|
}, unknown, unknown, () => never[], boolean>;
|
|
81
81
|
hoverColor: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
82
82
|
isDefineClick: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
83
|
+
showTooltip: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
84
|
+
fontSize: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
83
85
|
};
|
|
84
86
|
export declare const lsMenuItemProps: {
|
|
85
87
|
needPermission: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
@@ -101,4 +103,5 @@ export declare const lsMenuItemProps: {
|
|
|
101
103
|
}, unknown, unknown, () => never[], boolean>;
|
|
102
104
|
item: EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
103
105
|
isDefineClick: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
106
|
+
showTooltip: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
104
107
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { EpPropFinalized, EpPropMergeType } from '../_utils/types';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
content?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {
|
|
10
|
+
lsTooltipRef: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
16
|
+
width: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
17
|
+
fontSize: EpPropFinalized<NumberConstructor, unknown, unknown, null, boolean>;
|
|
18
|
+
lineClamp: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
19
|
+
lineHeight: EpPropFinalized<NumberConstructor, unknown, unknown, null, boolean>;
|
|
20
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
21
|
+
width: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
22
|
+
fontSize: EpPropFinalized<NumberConstructor, unknown, unknown, null, boolean>;
|
|
23
|
+
lineClamp: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
24
|
+
lineHeight: EpPropFinalized<NumberConstructor, unknown, unknown, null, boolean>;
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
26
|
+
width: EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
27
|
+
fontSize: number;
|
|
28
|
+
lineClamp: number;
|
|
29
|
+
lineHeight: number;
|
|
30
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
31
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EpPropFinalized } from '../_utils/types';
|
|
2
|
+
export declare const lsTooltipProps: {
|
|
3
|
+
width: EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
4
|
+
fontSize: EpPropFinalized<NumberConstructor, unknown, unknown, null, boolean>;
|
|
5
|
+
lineClamp: EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
6
|
+
lineHeight: EpPropFinalized<NumberConstructor, unknown, unknown, null, boolean>;
|
|
7
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingshugroup/web-plus",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"description": "零数科技前端UI组件库(Vue3)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index/index.cjs",
|
|
@@ -127,6 +127,10 @@
|
|
|
127
127
|
"import": "./lib/tree/index.js",
|
|
128
128
|
"require": "./lib/tree/index.cjs"
|
|
129
129
|
},
|
|
130
|
+
"./tooltip": {
|
|
131
|
+
"import": "./lib/tooltip/index.js",
|
|
132
|
+
"require": "./lib/tooltip/index.cjs"
|
|
133
|
+
},
|
|
130
134
|
"./index.css": "./lib/index.css"
|
|
131
135
|
},
|
|
132
136
|
"scripts": {
|