vft 0.0.80 → 0.0.83
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/components/button/button.vue2.js +14 -13
- package/es/components/container/aside.vue2.js +13 -19
- package/es/components/footer-layout/style/css.js +1 -0
- package/es/components/footer-layout/style/index.js +1 -0
- package/es/components/header-layout/style/css.js +5 -0
- package/es/components/header-layout/style/index.js +5 -0
- package/es/package.json.js +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/container/aside.vue2.cjs +1 -1
- package/lib/components/footer-layout/style/css.cjs +1 -1
- package/lib/components/footer-layout/style/index.cjs +1 -1
- package/lib/components/header-layout/style/css.cjs +1 -1
- package/lib/components/header-layout/style/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +7 -7
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +3 -2
- package/theme-style/src/horizontal-menu.scss +2 -2
- package/theme-style/src/side-menu.scss +1 -1
- package/theme-style/vft-horizontal-menu.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as C, computed as I, openBlock as l, createBlock as i, resolveDynamicComponent as v, mergeProps as y, unref as e, withCtx as A, createElementBlock as f, Fragment as N, renderSlot as k, normalizeClass as
|
|
2
|
-
import { VftIcon as
|
|
1
|
+
import { defineComponent as C, computed as I, openBlock as l, createBlock as i, resolveDynamicComponent as v, mergeProps as y, unref as e, withCtx as A, createElementBlock as f, Fragment as N, renderSlot as k, normalizeClass as b, normalizeProps as P, createCommentVNode as g } from "vue";
|
|
2
|
+
import { VftIcon as B } from "../icon/index.js";
|
|
3
3
|
import { useNamespace as T } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
5
5
|
import "lodash";
|
|
@@ -39,12 +39,12 @@ const o = (
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["click"],
|
|
41
41
|
setup(t, { expose: h, emit: z }) {
|
|
42
|
-
const a = t, s = I(() => V(a.icon, "icon")), S = w(a), { _ref:
|
|
42
|
+
const a = t, s = I(() => V(a.icon, "icon")), S = w(a), { _ref: c, _size: r, _type: u, _disabled: d, _props: x, shouldAddSpace: m, handleClick: $ } = j(a, z);
|
|
43
43
|
return h({
|
|
44
44
|
/** @description button html element */
|
|
45
|
-
ref:
|
|
45
|
+
ref: c,
|
|
46
46
|
/** @description button size */
|
|
47
|
-
size:
|
|
47
|
+
size: r,
|
|
48
48
|
/** @description button type */
|
|
49
49
|
type: u,
|
|
50
50
|
/** @description button disabled */
|
|
@@ -53,12 +53,12 @@ const o = (
|
|
|
53
53
|
shouldAddSpace: m
|
|
54
54
|
}), (n, E) => (l(), i(v(t.tag), y({
|
|
55
55
|
ref_key: "_ref",
|
|
56
|
-
ref:
|
|
56
|
+
ref: c
|
|
57
57
|
}, e(x), {
|
|
58
58
|
class: [
|
|
59
59
|
e(o).b(),
|
|
60
60
|
e(o).m(e(u)),
|
|
61
|
-
e(o).m(e(
|
|
61
|
+
e(o).m(e(r)),
|
|
62
62
|
e(o).is("disabled", e(d)),
|
|
63
63
|
e(o).is("loading", t.loading),
|
|
64
64
|
e(o).is("plain", t.plain),
|
|
@@ -66,7 +66,8 @@ const o = (
|
|
|
66
66
|
e(o).is("circle", t.circle),
|
|
67
67
|
e(o).is("text", t.text),
|
|
68
68
|
e(o).is("link", t.link),
|
|
69
|
-
e(o).is("has-bg", t.bg)
|
|
69
|
+
e(o).is("has-bg", t.bg),
|
|
70
|
+
e(o).is("block", t.block)
|
|
70
71
|
],
|
|
71
72
|
style: e(S),
|
|
72
73
|
onClick: e($)
|
|
@@ -75,19 +76,19 @@ const o = (
|
|
|
75
76
|
var p;
|
|
76
77
|
return [
|
|
77
78
|
t.loading ? (l(), f(N, { key: 0 }, [
|
|
78
|
-
n.$slots.loading ? k(n.$slots, "loading", { key: 0 }) : (l(), i(e(
|
|
79
|
+
n.$slots.loading ? k(n.$slots, "loading", { key: 0 }) : (l(), i(e(B), {
|
|
79
80
|
key: 1,
|
|
80
81
|
rotate: "",
|
|
81
|
-
class:
|
|
82
|
+
class: b(e(o).is("loading")),
|
|
82
83
|
icon: "ico-ep:loading"
|
|
83
84
|
}, null, 8, ["class"]))
|
|
84
|
-
], 64)) : (p = e(s)) != null && p.icon ? (l(), i(e(
|
|
85
|
+
], 64)) : (p = e(s)) != null && p.icon ? (l(), i(e(B), P(y({ key: 1 }, e(s))), null, 16)) : g("", !0),
|
|
85
86
|
n.$slots.default ? (l(), f("span", {
|
|
86
87
|
key: 2,
|
|
87
|
-
class:
|
|
88
|
+
class: b({ [e(o).em("text", "expand")]: e(m) })
|
|
88
89
|
}, [
|
|
89
90
|
k(n.$slots, "default")
|
|
90
|
-
], 2)) :
|
|
91
|
+
], 2)) : g("", !0)
|
|
91
92
|
];
|
|
92
93
|
}),
|
|
93
94
|
_: 3
|
|
@@ -1,37 +1,31 @@
|
|
|
1
|
-
import { defineComponent as r, computed as
|
|
2
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as r, computed as i, openBlock as m, createElementBlock as a, normalizeClass as l, unref as o, normalizeStyle as c, renderSlot as d } from "vue";
|
|
2
|
+
import { useNamespace as p } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
|
-
import "@vft/utils";
|
|
7
|
+
import { addUnit as u } from "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
9
|
const t = (
|
|
10
10
|
/* hoist-static*/
|
|
11
|
-
|
|
11
|
+
p("aside")
|
|
12
12
|
), f = r({
|
|
13
13
|
name: t.b()
|
|
14
|
-
}),
|
|
14
|
+
}), S = /* @__PURE__ */ r({
|
|
15
15
|
...f,
|
|
16
16
|
props: {
|
|
17
|
-
|
|
18
|
-
* @description width of the side section
|
|
19
|
-
*/
|
|
20
|
-
width: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: null
|
|
23
|
-
}
|
|
17
|
+
width: null
|
|
24
18
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
return (
|
|
28
|
-
class:
|
|
29
|
-
style: c(o(
|
|
19
|
+
setup(e) {
|
|
20
|
+
const s = i(() => e.width ? t.cssVarBlock({ width: u(e.width) }) : {});
|
|
21
|
+
return (n, h) => (m(), a("aside", {
|
|
22
|
+
class: l(o(t).b()),
|
|
23
|
+
style: c(o(s))
|
|
30
24
|
}, [
|
|
31
|
-
d(
|
|
25
|
+
d(n.$slots, "default")
|
|
32
26
|
], 6));
|
|
33
27
|
}
|
|
34
28
|
});
|
|
35
29
|
export {
|
|
36
|
-
|
|
30
|
+
S as default
|
|
37
31
|
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import "vft/theme-style/base.css";
|
|
2
2
|
import "vft/theme-style/vft-logo.css";
|
|
3
|
+
import "vft/theme-style/vft-container.css";
|
|
4
|
+
import "vft/theme-style/vft-aside.css";
|
|
5
|
+
import "vft/theme-style/vft-footer.css";
|
|
6
|
+
import "vft/theme-style/vft-header.css";
|
|
7
|
+
import "vft/theme-style/vft-main.css";
|
|
3
8
|
import "vft/theme-style/vft-header-layout.css";
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import "vft/theme-style/src/base.scss";
|
|
2
|
+
import "vft/theme-style/src/container.scss";
|
|
3
|
+
import "vft/theme-style/src/aside.scss";
|
|
4
|
+
import "vft/theme-style/src/footer.scss";
|
|
5
|
+
import "vft/theme-style/src/header.scss";
|
|
6
|
+
import "vft/theme-style/src/main.scss";
|
|
2
7
|
import "vft/theme-style/src/logo.scss";
|
|
3
8
|
import "vft/theme-style/src/header-layout.scss";
|
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"),f=require("../icon/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../icon/index.cjs"),b=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");const g=require("@vft/utils");require("../../utils/ns-cover.cjs");const C=require("./use-button.cjs"),q=require("./button-custom.cjs"),n=b.useNamespace("button"),S=e.defineComponent({name:n.b()}),z=e.defineComponent({...S,props:{tag:{default:"button"},size:null,disabled:{type:Boolean},type:null,icon:null,nativeType:{default:"button"},loading:{type:Boolean},loadingIcon:null,plain:{type:Boolean},text:{type:Boolean},link:{type:Boolean},bg:{type:Boolean},autofocus:{type:Boolean},round:{type:Boolean},circle:{type:Boolean},color:null,dark:{type:Boolean},autoInsertSpace:{type:Boolean},block:{type:Boolean}},emits:["click"],setup(o,{expose:y,emit:k}){const l=o,r=e.computed(()=>g.singleAttrToObj(l.icon,"icon")),m=q.useButtonCustomStyle(l),{_ref:u,_size:a,_type:i,_disabled:s,_props:p,shouldAddSpace:c,handleClick:B}=C.useButton(l,k);return y({ref:u,size:a,type:i,disabled:s,shouldAddSpace:c}),(t,h)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.tag),e.mergeProps({ref_key:"_ref",ref:u},e.unref(p),{class:[e.unref(n).b(),e.unref(n).m(e.unref(i)),e.unref(n).m(e.unref(a)),e.unref(n).is("disabled",e.unref(s)),e.unref(n).is("loading",o.loading),e.unref(n).is("plain",o.plain),e.unref(n).is("round",o.round),e.unref(n).is("circle",o.circle),e.unref(n).is("text",o.text),e.unref(n).is("link",o.link),e.unref(n).is("has-bg",o.bg),e.unref(n).is("block",o.block)],style:e.unref(m),onClick:e.unref(B)}),{default:e.withCtx(()=>{var d;return[o.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.$slots.loading?e.renderSlot(t.$slots,"loading",{key:0}):(e.openBlock(),e.createBlock(e.unref(f.VftIcon),{key:1,rotate:"",class:e.normalizeClass(e.unref(n).is("loading")),icon:"ico-ep:loading"},null,8,["class"]))],64)):(d=e.unref(r))!=null&&d.icon?(e.openBlock(),e.createBlock(e.unref(f.VftIcon),e.normalizeProps(e.mergeProps({key:1},e.unref(r))),null,16)):e.createCommentVNode("",!0),t.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({[e.unref(n).em("text","expand")]:e.unref(c)})},[e.renderSlot(t.$slots,"default")],2)):e.createCommentVNode("",!0)]}),_:3},16,["class","style","onClick"]))}});exports.default=z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const t=u.useNamespace("aside"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");require("@vueuse/core");const i=require("@vft/utils");require("../../utils/ns-cover.cjs");const t=u.useNamespace("aside"),o=e.defineComponent({name:t.b()}),l=e.defineComponent({...o,props:{width:null},setup(r){const n=e.computed(()=>r.width?t.cssVarBlock({width:i.addUnit(r.width)}):{});return(s,a)=>(e.openBlock(),e.createElementBlock("aside",{class:e.normalizeClass(e.unref(t).b()),style:e.normalizeStyle(e.unref(n))},[e.renderSlot(s.$slots,"default")],6))}});exports.default=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-footer-layout.css");
|
|
1
|
+
"use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-footer.css");require("vft/theme-style/vft-footer-layout.css");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/footer-layout.scss");
|
|
1
|
+
"use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/footer.scss");require("vft/theme-style/src/footer-layout.scss");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-logo.css");require("vft/theme-style/vft-header-layout.css");
|
|
1
|
+
"use strict";require("vft/theme-style/base.css");require("vft/theme-style/vft-logo.css");require("vft/theme-style/vft-container.css");require("vft/theme-style/vft-aside.css");require("vft/theme-style/vft-footer.css");require("vft/theme-style/vft-header.css");require("vft/theme-style/vft-main.css");require("vft/theme-style/vft-header-layout.css");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/logo.scss");require("vft/theme-style/src/header-layout.scss");
|
|
1
|
+
"use strict";require("vft/theme-style/src/base.scss");require("vft/theme-style/src/container.scss");require("vft/theme-style/src/aside.scss");require("vft/theme-style/src/footer.scss");require("vft/theme-style/src/header.scss");require("vft/theme-style/src/main.scss");require("vft/theme-style/src/logo.scss");require("vft/theme-style/src/header-layout.scss");
|
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.83";exports.version=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.83",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"qrcode": "1.5.1",
|
|
54
54
|
"resize-detector": "0.3.0",
|
|
55
55
|
"sortablejs": "^1.15.0",
|
|
56
|
-
"@vft/constants": "0.0.
|
|
57
|
-
"@vft/router": "0.0.
|
|
58
|
-
"@vft/store": "0.0.
|
|
59
|
-
"@vft/
|
|
60
|
-
"@vft/
|
|
61
|
-
"@vft/directives": "0.0.
|
|
56
|
+
"@vft/constants": "0.0.52",
|
|
57
|
+
"@vft/router": "0.0.22",
|
|
58
|
+
"@vft/store": "0.0.22",
|
|
59
|
+
"@vft/utils": "0.0.35",
|
|
60
|
+
"@vft/use": "0.0.25",
|
|
61
|
+
"@vft/directives": "0.0.18"
|
|
62
62
|
},
|
|
63
63
|
"vetur": {
|
|
64
64
|
"tags": "tags.json",
|