vft 0.0.158 → 0.0.159
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/es/components/clamp-tooltip/clamp-tooltip.vue2.js +19 -19
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/clamp-tooltip/clamp-tooltip.vue2.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +4 -4
- package/web-types.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { createReusableTemplate as
|
|
3
|
-
import { VftClamp as
|
|
4
|
-
|
|
1
|
+
import { defineComponent as f, ref as c, openBlock as t, createElementBlock as u, Fragment as d, createVNode as l, unref as e, withCtx as r, mergeProps as m, createBlock as i } from "vue";
|
|
2
|
+
import { createReusableTemplate as _ } from "@vueuse/core";
|
|
3
|
+
import { VftClamp as k } from "../clamp/index.js";
|
|
4
|
+
import { VftTooltip as y } from "../tooltip/index.js";
|
|
5
|
+
const x = /* @__PURE__ */ f({
|
|
5
6
|
__name: "clamp-tooltip",
|
|
6
7
|
props: {
|
|
7
8
|
showTooltip: { type: Boolean },
|
|
@@ -15,34 +16,33 @@ const v = /* @__PURE__ */ c({
|
|
|
15
16
|
location: {}
|
|
16
17
|
},
|
|
17
18
|
setup(B) {
|
|
18
|
-
const p =
|
|
19
|
-
return (
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
l(o(s), null, {
|
|
19
|
+
const p = c(), [s, a] = _();
|
|
20
|
+
return (o, C) => {
|
|
21
|
+
var n;
|
|
22
|
+
return t(), u(d, null, [
|
|
23
|
+
l(e(s), null, {
|
|
24
24
|
default: r(() => [
|
|
25
|
-
l(
|
|
25
|
+
l(e(k), m({
|
|
26
26
|
ref_key: "clampRef",
|
|
27
27
|
ref: p
|
|
28
|
-
},
|
|
28
|
+
}, o.$props), null, 16)
|
|
29
29
|
]),
|
|
30
30
|
_: 1
|
|
31
31
|
}),
|
|
32
|
-
|
|
32
|
+
o.showTooltip ? (t(), i(e(y), m({
|
|
33
33
|
key: 0,
|
|
34
|
-
disabled: !((
|
|
35
|
-
content:
|
|
36
|
-
},
|
|
34
|
+
disabled: !((n = p.value) != null && n.isClamped),
|
|
35
|
+
content: o.text
|
|
36
|
+
}, o.tooltipCfg), {
|
|
37
37
|
default: r(() => [
|
|
38
|
-
l(
|
|
38
|
+
l(e(a))
|
|
39
39
|
]),
|
|
40
40
|
_: 1
|
|
41
|
-
}, 16, ["disabled", "content"])) : (t(), i(
|
|
41
|
+
}, 16, ["disabled", "content"])) : (t(), i(e(a), { key: 1 }))
|
|
42
42
|
], 64);
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
x as default
|
|
48
48
|
};
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@vueuse/core"),p=require("../clamp/index.cjs"),i=require("../tooltip/index.cjs"),c=e.defineComponent({__name:"clamp-tooltip",props:{showTooltip:{type:Boolean},tooltipCfg:{},text:{},maxHeight:{},maxLines:{},expanded:{type:Boolean},ellipsis:{},autoResize:{type:Boolean},location:{}},setup(s){const o=e.ref(),[r,l]=a.createReusableTemplate();return(t,u)=>{var n;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(r),null,{default:e.withCtx(()=>[e.createVNode(e.unref(p.VftClamp),e.mergeProps({ref_key:"clampRef",ref:o},t.$props),null,16)]),_:1}),t.showTooltip?(e.openBlock(),e.createBlock(e.unref(i.VftTooltip),e.mergeProps({key:0,disabled:!((n=o.value)!=null&&n.isClamped),content:t.text},t.tooltipCfg),{default:e.withCtx(()=>[e.createVNode(e.unref(l))]),_:1},16,["disabled","content"])):(e.openBlock(),e.createBlock(e.unref(l),{key:1}))],64)}}});exports.default=c;
|
package/lib/package.json.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.159";exports.version=e;
|
package/lib/package.json.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.159",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"qrcode": "1.5.3",
|
|
55
55
|
"resize-detector": "0.3.0",
|
|
56
56
|
"sortablejs": "1.15.0",
|
|
57
|
-
"@vft/constants": "0.0.65",
|
|
58
57
|
"@vft/router": "0.0.41",
|
|
59
|
-
"@vft/use": "0.0.42",
|
|
60
58
|
"@vft/utils": "0.0.61",
|
|
61
59
|
"@vft/store": "0.0.33",
|
|
62
|
-
"@vft/
|
|
60
|
+
"@vft/use": "0.0.42",
|
|
61
|
+
"@vft/directives": "0.0.28",
|
|
62
|
+
"@vft/constants": "0.0.65"
|
|
63
63
|
},
|
|
64
64
|
"vetur": {
|
|
65
65
|
"tags": "tags.json",
|