vft 0.0.197 → 0.0.201
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/dist/index.css +1 -1
- package/es/components/md-container/md-container.vue2.js +27 -27
- package/es/components/row/index.d.ts +0 -2
- package/es/components/row/row.vue.d.ts +1 -11
- package/es/components/row/types.d.ts +10 -0
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/ns-cover.js +14 -13
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/row/index.d.ts +0 -2
- package/lib/components/row/row.vue.d.ts +1 -11
- package/lib/components/row/types.d.ts +10 -0
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/utils/ns-cover.cjs +1 -1
- package/package.json +5 -5
- package/theme-style/index.css +1 -1
- package/theme-style/src/button.scss +43 -43
- package/theme-style/src/common/var.scss +2 -1
- package/theme-style/src/mixins/_button.scss +3 -3
- package/theme-style/src/super-form.scss +2 -2
- package/theme-style/src/tabs.scss +1 -1
- package/theme-style/vft-button.css +1 -1
- package/theme-style/vft-checkbox-button.css +1 -1
- package/theme-style/vft-radio-button.css +1 -1
- package/theme-style/vft-super-form.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as V, getCurrentInstance as A, computed as _, onMounted as P, nextTick as
|
|
1
|
+
import { defineComponent as V, getCurrentInstance as A, computed as _, onMounted as P, nextTick as I, openBlock as n, createElementBlock as l, normalizeClass as a, unref as t, createBlock as C, createCommentVNode as x, createElementVNode as r, toDisplayString as k, createVNode as s, Fragment as R, renderList as $, withCtx as B, createTextVNode as H, renderSlot as M } from "vue";
|
|
2
2
|
import "../alert/index.js";
|
|
3
3
|
import "../avatar/index.js";
|
|
4
4
|
import "../backtop/index.js";
|
|
@@ -63,7 +63,7 @@ import "../space/index.js";
|
|
|
63
63
|
import "../switch/index.js";
|
|
64
64
|
import "../table/index.js";
|
|
65
65
|
import "../tabs/index.js";
|
|
66
|
-
import { VftTag as
|
|
66
|
+
import { VftTag as U } from "../tag/index.js";
|
|
67
67
|
import "../time-picker/index.js";
|
|
68
68
|
import "../tooltip/index.js";
|
|
69
69
|
import "../tree/index.js";
|
|
@@ -83,20 +83,20 @@ import "../carousel/index.js";
|
|
|
83
83
|
import "../timeline/index.js";
|
|
84
84
|
import "../md-code-demo/index.js";
|
|
85
85
|
import "../md-code-tabs/index.js";
|
|
86
|
-
import { VftMdComment as
|
|
86
|
+
import { VftMdComment as Y } from "../md-comment/index.js";
|
|
87
87
|
import "./index.js";
|
|
88
88
|
import "../md-tabs/index.js";
|
|
89
89
|
import "../md-vue-playground/index.js";
|
|
90
90
|
import "@vueuse/core";
|
|
91
|
-
import { primaryColor as
|
|
91
|
+
import { primaryColor as G } from "../../utils/ns-cover.js";
|
|
92
92
|
import "lodash";
|
|
93
|
-
import { useNamespace as
|
|
93
|
+
import { useNamespace as K } from "../../hooks/use-namespace/index.js";
|
|
94
94
|
import "@popperjs/core";
|
|
95
95
|
import "../../hooks/use-z-index/index.js";
|
|
96
96
|
import "../message/index.js";
|
|
97
97
|
import "../infinite-scroll/index.js";
|
|
98
98
|
import "../progress-i/index.js";
|
|
99
|
-
import { useRouterHelper as
|
|
99
|
+
import { useRouterHelper as Q } from "@vft/router";
|
|
100
100
|
import { usePhotoSwipe as W, useEventListener as X } from "@vft/use";
|
|
101
101
|
import Z from "./toc.js";
|
|
102
102
|
import { useCopyCode as tt } from "./use/useCopyCode.js";
|
|
@@ -108,7 +108,7 @@ const et = { class: "info-container" }, rt = {
|
|
|
108
108
|
}, mt = { class: "infos" }, pt = {
|
|
109
109
|
class: "reading",
|
|
110
110
|
title: "阅读量"
|
|
111
|
-
},
|
|
111
|
+
}, nt = ["data-path"], at = /* @__PURE__ */ r("ins", {
|
|
112
112
|
class: "adsbygoogle",
|
|
113
113
|
style: { display: "block", "text-align": "center" },
|
|
114
114
|
"data-ad-layout": "in-article",
|
|
@@ -117,19 +117,19 @@ const et = { class: "info-container" }, rt = {
|
|
|
117
117
|
"data-ad-slot": "6525439078"
|
|
118
118
|
}, null, -1), st = V({
|
|
119
119
|
name: "vft-md-container"
|
|
120
|
-
}),
|
|
120
|
+
}), ai = /* @__PURE__ */ V({
|
|
121
121
|
...st,
|
|
122
122
|
props: {
|
|
123
123
|
tocList: {}
|
|
124
124
|
},
|
|
125
125
|
setup(c) {
|
|
126
|
-
const m =
|
|
126
|
+
const m = K("md-container"), b = A(), d = _(() => c.tocList && c.tocList !== "undefined" ? JSON.parse(c.tocList) : ""), { initPhotoSwipe: w } = W(`.${m.e("content")} img`);
|
|
127
127
|
w(), ot({}), tt();
|
|
128
128
|
const u = b.appContext.config.globalProperties.$router, e = u.currentRoute.value;
|
|
129
129
|
P(() => {
|
|
130
|
-
|
|
130
|
+
I(() => {
|
|
131
131
|
setTimeout(() => {
|
|
132
|
-
q(e.hash);
|
|
132
|
+
q(encodeURI(e.hash));
|
|
133
133
|
});
|
|
134
134
|
const i = document.querySelectorAll(".item.expand"), p = document.querySelectorAll(
|
|
135
135
|
"div.language-vue"
|
|
@@ -140,7 +140,7 @@ const et = { class: "info-container" }, rt = {
|
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
|
-
const L =
|
|
143
|
+
const L = G(), D = location.pathname, { go: S } = Q(u);
|
|
144
144
|
function E(i) {
|
|
145
145
|
S("/?classify=" + i);
|
|
146
146
|
}
|
|
@@ -150,36 +150,36 @@ const et = { class: "info-container" }, rt = {
|
|
|
150
150
|
});
|
|
151
151
|
return (i, p) => {
|
|
152
152
|
var o, f, g, h, y;
|
|
153
|
-
return
|
|
154
|
-
class:
|
|
153
|
+
return n(), l("div", {
|
|
154
|
+
class: a([t(m).b(), t(m).is("api", N.value)])
|
|
155
155
|
}, [
|
|
156
|
-
d.value ? (
|
|
156
|
+
d.value ? (n(), C(t(Z), {
|
|
157
157
|
key: 0,
|
|
158
158
|
items: d.value,
|
|
159
159
|
route: t(e)
|
|
160
160
|
}, null, 8, ["items", "route"])) : x("", !0),
|
|
161
161
|
r("div", {
|
|
162
|
-
class:
|
|
162
|
+
class: a(t(m).e("header"))
|
|
163
163
|
}, [
|
|
164
164
|
r("h1", {
|
|
165
|
-
class:
|
|
165
|
+
class: a(t(m).e("title"))
|
|
166
166
|
}, k((o = t(e).meta) == null ? void 0 : o.title), 3),
|
|
167
167
|
r("div", et, [
|
|
168
|
-
(g = (f = t(e).meta) == null ? void 0 : f.category) != null && g.length ? (
|
|
168
|
+
(g = (f = t(e).meta) == null ? void 0 : f.category) != null && g.length ? (n(), l("div", rt, [
|
|
169
169
|
s(t(T), {
|
|
170
170
|
size: 14,
|
|
171
171
|
color: t(L),
|
|
172
172
|
icon: "icon-category"
|
|
173
173
|
}, null, 8, ["color"]),
|
|
174
|
-
(
|
|
174
|
+
(n(!0), l(R, null, $((h = t(e).meta) == null ? void 0 : h.category, (v, z) => (n(), C(t(U), {
|
|
175
175
|
size: "small",
|
|
176
176
|
class: "tag",
|
|
177
177
|
type: t(F)(t(it), 1)[0],
|
|
178
178
|
key: z,
|
|
179
179
|
onClick: (ct) => E(v)
|
|
180
180
|
}, {
|
|
181
|
-
default:
|
|
182
|
-
|
|
181
|
+
default: B(() => [
|
|
182
|
+
H(k(v), 1)
|
|
183
183
|
]),
|
|
184
184
|
_: 2
|
|
185
185
|
}, 1032, ["type", "onClick"]))), 128))
|
|
@@ -204,22 +204,22 @@ const et = { class: "info-container" }, rt = {
|
|
|
204
204
|
r("div", {
|
|
205
205
|
class: "waline-pageview-count lh-1",
|
|
206
206
|
"data-path": t(D)
|
|
207
|
-
}, "0", 8,
|
|
207
|
+
}, "0", 8, nt)
|
|
208
208
|
])
|
|
209
209
|
])
|
|
210
210
|
])
|
|
211
211
|
], 2),
|
|
212
212
|
r("div", {
|
|
213
|
-
class:
|
|
213
|
+
class: a(t(m).e("content"))
|
|
214
214
|
}, [
|
|
215
|
-
|
|
215
|
+
M(i.$slots, "default")
|
|
216
216
|
], 2),
|
|
217
|
-
s(t(
|
|
218
|
-
|
|
217
|
+
s(t(Y)),
|
|
218
|
+
at
|
|
219
219
|
], 2);
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
export {
|
|
224
|
-
|
|
224
|
+
ai as default
|
|
225
225
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type RowProps } from './row.vue';
|
|
2
1
|
export declare const VftRow: import("vft/es/utils").SFCWithInstall<{
|
|
3
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
3
|
tag: {
|
|
@@ -70,5 +69,4 @@ export declare const VftRow: import("vft/es/utils").SFCWithInstall<{
|
|
|
70
69
|
})> & Record<string, any>;
|
|
71
70
|
export * from './constants';
|
|
72
71
|
export * from './types';
|
|
73
|
-
export { type RowProps };
|
|
74
72
|
export default VftRow;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface RowProps {
|
|
3
|
-
/** 自定义元素标签 */
|
|
4
|
-
tag?: string;
|
|
5
|
-
/** 栅格间隔 */
|
|
6
|
-
gutter?: number;
|
|
7
|
-
/** flex 布局下的水平排列方式 */
|
|
8
|
-
justify?: RowJustify;
|
|
9
|
-
/** flex 布局下的垂直排列方式 */
|
|
10
|
-
align?: RowAlign;
|
|
11
|
-
}
|
|
1
|
+
import type { RowProps } from './types';
|
|
12
2
|
declare function __VLS_template(): {
|
|
13
3
|
default?(_: {}): any;
|
|
14
4
|
};
|
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
export type RowJustify = 'start' | 'center' | 'end' | 'space-around' | 'space-between' | 'space-evenly';
|
|
2
2
|
export type RowAlign = 'top' | 'middle' | 'bottom';
|
|
3
|
+
export interface RowProps {
|
|
4
|
+
/** 自定义元素标签 */
|
|
5
|
+
tag?: string;
|
|
6
|
+
/** 栅格间隔 */
|
|
7
|
+
gutter?: number;
|
|
8
|
+
/** flex 布局下的水平排列方式 */
|
|
9
|
+
justify?: RowJustify;
|
|
10
|
+
/** flex 布局下的垂直排列方式 */
|
|
11
|
+
align?: RowAlign;
|
|
12
|
+
}
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
package/es/utils/ns-cover.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { useGlobalConfig as
|
|
2
|
-
import { cssVarValue as i, generateCssVars as r, isObject as m, setStyle as o, mixColor as
|
|
1
|
+
import { useGlobalConfig as l } from "../components/config-provider/hooks/use-global-config.js";
|
|
2
|
+
import { cssVarValue as i, generateCssVars as r, isObject as m, setStyle as o, mixColor as t } from "@vft/utils";
|
|
3
3
|
import { unref as a } from "vue";
|
|
4
|
-
const c =
|
|
5
|
-
function g(e,
|
|
6
|
-
return r(e,
|
|
4
|
+
const c = l("namespace"), V = (e, s = document.documentElement, f = !0) => i(e, s, a(c), f), p = () => V("primary-color");
|
|
5
|
+
function g(e, s) {
|
|
6
|
+
return r(e, s, a(c));
|
|
7
7
|
}
|
|
8
|
-
function v(e,
|
|
8
|
+
function v(e, s, f = "", u = document.documentElement) {
|
|
9
9
|
let n;
|
|
10
10
|
m(e) ? n = e : n = {
|
|
11
|
-
[e]:
|
|
12
|
-
}, o(g(n, f), "",
|
|
11
|
+
[e]: s
|
|
12
|
+
}, o(g(n, f), "", u, !1);
|
|
13
13
|
}
|
|
14
14
|
function E(e) {
|
|
15
15
|
o(
|
|
16
16
|
r(
|
|
17
17
|
{
|
|
18
|
-
"light-3":
|
|
19
|
-
"light-5":
|
|
20
|
-
"light-7":
|
|
21
|
-
"light-8":
|
|
22
|
-
"light-9":
|
|
18
|
+
"light-3": t(e, "#fff", 0.7),
|
|
19
|
+
"light-5": t(e, "#fff", 0.5),
|
|
20
|
+
"light-7": t(e, "#fff", 0.3),
|
|
21
|
+
"light-8": t(e, "#fff", 0.2),
|
|
22
|
+
"light-9": t(e, "#fff", 0.1),
|
|
23
|
+
"dark-2": t(e, "#fff", 0.8)
|
|
23
24
|
},
|
|
24
25
|
"primary-color",
|
|
25
26
|
"vft"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../alert/index.cjs");require("../avatar/index.cjs");require("../backtop/index.cjs");require("../button/index.cjs");require("../card/index.cjs");require("../check-tag/index.cjs");require("../checkbox/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../clamp-tooltip/index.cjs");require("../col/index.cjs");require("../collapse-transition/index.cjs");require("../color-picker/index.cjs");require("../config-provider/index.cjs");require("../container/index.cjs");const o=require("@vft/utils");require("../context-menu/context-menu.vue2.cjs");require("../date-picker/index.cjs");require("../date-time-select/index.cjs");require("../descriptions/index.cjs");require("../dialog/index.cjs");require("../divider/index.cjs");require("../drawer/index.cjs");require("../dropdown/index.cjs");require("../empty/index.cjs");require("../exception/index.cjs");require("../footer-layout/index.cjs");require("../form/index.cjs");require("../full-screen/index.cjs");require("../header-layout/index.cjs");require("../horizontal-menu/index.cjs");const p=require("../icon/index.cjs"),N=require("../icon-text/index.cjs");require("../iframe-layout/index.cjs");require("../image/index.cjs");require("../image-viewer/index.cjs");require("../input/index.cjs");require("../input-number/index.cjs");require("../link/index.cjs");require("../list-cell/index.cjs");require("../logo/index.cjs");require("../menu/index.cjs");require("../multiple-tabs/index.cjs");require("../overlay/index.cjs");require("../page-wrapper/index.cjs");require("../pagination/index.cjs");require("../popconfirm/index.cjs");require("../popover/index.cjs");require("../popper/index.cjs");require("../qrcode/index.cjs");require("../radio/index.cjs");require("../result/index.cjs");require("../router-view-content/index.cjs");require("../row/index.cjs");require("../scrollbar/index.cjs");require("../search/index.cjs");require("../select/index.cjs");require("../side-menu/index.cjs");require("../skeleton/index.cjs");require("../slider/index.cjs");require("../space/index.cjs");require("../switch/index.cjs");require("../table/index.cjs");require("../tabs/index.cjs");const E=require("../tag/index.cjs");require("../time-picker/index.cjs");require("../tooltip/index.cjs");require("../tree/index.cjs");require("../verify-code/index.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/fixed-size-list.cjs");require("../virtual-list/props.cjs");require("../steps/index.cjs");require("../autocomplete/index.cjs");require("../modal/index.cjs");require("../progress/index.cjs");require("../super-form/index.cjs");require("../upload/index.cjs");require("../carousel/index.cjs");require("../timeline/index.cjs");require("../md-code-demo/index.cjs");require("../md-code-tabs/index.cjs");const T=require("../md-comment/index.cjs");require("./index.cjs");require("../md-tabs/index.cjs");require("../md-vue-playground/index.cjs");require("@vueuse/core");const b=require("../../utils/ns-cover.cjs");require("lodash");const B=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("../message/index.cjs");require("../infinite-scroll/index.cjs");require("../progress-i/index.cjs");const S=require("@vft/router"),g=require("@vft/use"),L=require("./toc.cjs"),$=require("./use/useCopyCode.cjs"),w=require("./use/useActiveHeaderLinks.cjs"),z=require("./utils.cjs"),D={class:"info-container"},A={key:0,class:"left"},P={class:"infos"},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../alert/index.cjs");require("../avatar/index.cjs");require("../backtop/index.cjs");require("../button/index.cjs");require("../card/index.cjs");require("../check-tag/index.cjs");require("../checkbox/index.cjs");require("../clamp/index.cjs");require("../clamp-toggle/index.cjs");require("../clamp-tooltip/index.cjs");require("../col/index.cjs");require("../collapse-transition/index.cjs");require("../color-picker/index.cjs");require("../config-provider/index.cjs");require("../container/index.cjs");const o=require("@vft/utils");require("../context-menu/context-menu.vue2.cjs");require("../date-picker/index.cjs");require("../date-time-select/index.cjs");require("../descriptions/index.cjs");require("../dialog/index.cjs");require("../divider/index.cjs");require("../drawer/index.cjs");require("../dropdown/index.cjs");require("../empty/index.cjs");require("../exception/index.cjs");require("../footer-layout/index.cjs");require("../form/index.cjs");require("../full-screen/index.cjs");require("../header-layout/index.cjs");require("../horizontal-menu/index.cjs");const p=require("../icon/index.cjs"),N=require("../icon-text/index.cjs");require("../iframe-layout/index.cjs");require("../image/index.cjs");require("../image-viewer/index.cjs");require("../input/index.cjs");require("../input-number/index.cjs");require("../link/index.cjs");require("../list-cell/index.cjs");require("../logo/index.cjs");require("../menu/index.cjs");require("../multiple-tabs/index.cjs");require("../overlay/index.cjs");require("../page-wrapper/index.cjs");require("../pagination/index.cjs");require("../popconfirm/index.cjs");require("../popover/index.cjs");require("../popper/index.cjs");require("../qrcode/index.cjs");require("../radio/index.cjs");require("../result/index.cjs");require("../router-view-content/index.cjs");require("../row/index.cjs");require("../scrollbar/index.cjs");require("../search/index.cjs");require("../select/index.cjs");require("../side-menu/index.cjs");require("../skeleton/index.cjs");require("../slider/index.cjs");require("../space/index.cjs");require("../switch/index.cjs");require("../table/index.cjs");require("../tabs/index.cjs");const E=require("../tag/index.cjs");require("../time-picker/index.cjs");require("../tooltip/index.cjs");require("../tree/index.cjs");require("../verify-code/index.cjs");require("../virtual-list/components/dynamic-size-grid.cjs");require("../virtual-list/components/dynamic-size-list.cjs");require("../virtual-list/components/fixed-size-grid.cjs");require("../virtual-list/components/fixed-size-list.cjs");require("../virtual-list/props.cjs");require("../steps/index.cjs");require("../autocomplete/index.cjs");require("../modal/index.cjs");require("../progress/index.cjs");require("../super-form/index.cjs");require("../upload/index.cjs");require("../carousel/index.cjs");require("../timeline/index.cjs");require("../md-code-demo/index.cjs");require("../md-code-tabs/index.cjs");const T=require("../md-comment/index.cjs");require("./index.cjs");require("../md-tabs/index.cjs");require("../md-vue-playground/index.cjs");require("@vueuse/core");const b=require("../../utils/ns-cover.cjs");require("lodash");const B=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");require("../message/index.cjs");require("../infinite-scroll/index.cjs");require("../progress-i/index.cjs");const S=require("@vft/router"),g=require("@vft/use"),L=require("./toc.cjs"),$=require("./use/useCopyCode.cjs"),w=require("./use/useActiveHeaderLinks.cjs"),z=require("./utils.cjs"),D={class:"info-container"},A={key:0,class:"left"},P={class:"infos"},I={class:"reading",title:"阅读量"},M=["data-path"],H=e.createElementVNode("ins",{class:"adsbygoogle",style:{display:"block","text-align":"center"},"data-ad-layout":"in-article","data-ad-format":"fluid","data-ad-client":"ca-pub-4046301015031382","data-ad-slot":"6525439078"},null,-1),R=e.defineComponent({name:"vft-md-container"}),O=e.defineComponent({...R,props:{tocList:{}},setup(a){const u=B.useNamespace("md-container"),y=e.getCurrentInstance(),s=e.computed(()=>a.tocList&&a.tocList!=="undefined"?JSON.parse(a.tocList):""),{initPhotoSwipe:h}=g.usePhotoSwipe(`.${u.e("content")} img`);h(),w.useActiveHeaderLinks({}),$.useCopyCode();const c=y.appContext.config.globalProperties.$router,i=c.currentRoute.value;e.onMounted(()=>{e.nextTick(()=>{setTimeout(()=>{o.jumpElement(encodeURI(i.hash))});const t=document.querySelectorAll(".item.expand"),n=document.querySelectorAll("div.language-vue");for(let r=0;r<t.length;r++)g.useEventListener(t[r],"click",()=>{n[r].offsetHeight===0?(n[r].style.height="auto",n[r].style.visibility="visible"):(n[r].style.height="0px",n[r].style.visibility="hidden")})})});const v=b.primaryColor(),C=location.pathname,{go:_}=S.useRouterHelper(c);function V(t){_("/?classify="+t)}const k=e.computed(()=>{var t;return(t=i.meta.category)==null?void 0:t.includes("api")});return(t,n)=>{var r,l,q,d,m;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(u).b(),e.unref(u).is("api",k.value)])},[s.value?(e.openBlock(),e.createBlock(e.unref(L.default),{key:0,items:s.value,route:e.unref(i)},null,8,["items","route"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(u).e("header"))},[e.createElementVNode("h1",{class:e.normalizeClass(e.unref(u).e("title"))},e.toDisplayString((r=e.unref(i).meta)==null?void 0:r.title),3),e.createElementVNode("div",D,[(q=(l=e.unref(i).meta)==null?void 0:l.category)!=null&&q.length?(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(e.unref(p.VftIcon),{size:14,color:e.unref(v),icon:"icon-category"},null,8,["color"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((d=e.unref(i).meta)==null?void 0:d.category,(f,x)=>(e.openBlock(),e.createBlock(e.unref(E.VftTag),{size:"small",class:"tag",type:e.unref(o.getRandomElementForArr)(e.unref(z.COMP_TYPE),1)[0],key:x,onClick:j=>V(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f),1)]),_:2},1032,["type","onClick"]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",P,[e.createVNode(e.unref(N.VftIconText),{title:"发布时间",icon:"icon-date",size:12,class:"mr-10px",distance:5,text:e.unref(o.formatToDateTime)(((m=e.unref(i).meta)!=null&&m.date?new Date(e.unref(i).meta.date).getTime():new Date().getTime())-e.unref(o.getDayTimestamp)())},null,8,["text"]),e.createElementVNode("div",I,[e.createVNode(e.unref(p.VftIcon),{icon:"icon-reading",size:14,class:"mr-5px"}),e.createElementVNode("div",{class:"waline-pageview-count lh-1","data-path":e.unref(C)},"0",8,M)])])])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(u).e("content"))},[e.renderSlot(t.$slots,"default")],2),e.createVNode(e.unref(T.VftMdComment)),H],2)}}});exports.default=O;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type RowProps } from './row.vue';
|
|
2
1
|
export declare const VftRow: import("vft/es/utils").SFCWithInstall<{
|
|
3
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
3
|
tag: {
|
|
@@ -70,5 +69,4 @@ export declare const VftRow: import("vft/es/utils").SFCWithInstall<{
|
|
|
70
69
|
})> & Record<string, any>;
|
|
71
70
|
export * from './constants';
|
|
72
71
|
export * from './types';
|
|
73
|
-
export { type RowProps };
|
|
74
72
|
export default VftRow;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface RowProps {
|
|
3
|
-
/** 自定义元素标签 */
|
|
4
|
-
tag?: string;
|
|
5
|
-
/** 栅格间隔 */
|
|
6
|
-
gutter?: number;
|
|
7
|
-
/** flex 布局下的水平排列方式 */
|
|
8
|
-
justify?: RowJustify;
|
|
9
|
-
/** flex 布局下的垂直排列方式 */
|
|
10
|
-
align?: RowAlign;
|
|
11
|
-
}
|
|
1
|
+
import type { RowProps } from './types';
|
|
12
2
|
declare function __VLS_template(): {
|
|
13
3
|
default?(_: {}): any;
|
|
14
4
|
};
|
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
export type RowJustify = 'start' | 'center' | 'end' | 'space-around' | 'space-between' | 'space-evenly';
|
|
2
2
|
export type RowAlign = 'top' | 'middle' | 'bottom';
|
|
3
|
+
export interface RowProps {
|
|
4
|
+
/** 自定义元素标签 */
|
|
5
|
+
tag?: string;
|
|
6
|
+
/** 栅格间隔 */
|
|
7
|
+
gutter?: number;
|
|
8
|
+
/** flex 布局下的水平排列方式 */
|
|
9
|
+
justify?: RowJustify;
|
|
10
|
+
/** flex 布局下的垂直排列方式 */
|
|
11
|
+
align?: RowAlign;
|
|
12
|
+
}
|
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.201";exports.version=e;
|
package/lib/package.json.d.ts
CHANGED
package/lib/utils/ns-cover.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../components/config-provider/hooks/use-global-config.cjs"),s=require("@vft/utils"),n=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../components/config-provider/hooks/use-global-config.cjs"),s=require("@vft/utils"),n=require("vue"),f=i.useGlobalConfig("namespace"),l=(e,t=document.documentElement,r=!0)=>s.cssVarValue(e,t,n.unref(f),r),c=()=>l("primary-color");function a(e,t){return s.generateCssVars(e,t,n.unref(f))}function m(e,t,r="",u=document.documentElement){let o;s.isObject(e)?o=e:o={[e]:t},s.setStyle(a(o,r),"",u,!1)}function C(e){s.setStyle(s.generateCssVars({"light-3":s.mixColor(e,"#fff",.7),"light-5":s.mixColor(e,"#fff",.5),"light-7":s.mixColor(e,"#fff",.3),"light-8":s.mixColor(e,"#fff",.2),"light-9":s.mixColor(e,"#fff",.1),"dark-2":s.mixColor(e,"#fff",.8)},"primary-color","vft"),"",document.documentElement,!1)}exports.cssVarValue=l;exports.generateCssVars=a;exports.primaryColor=c;exports.setCssVar=m;exports.setPrimaryColorCssvars=C;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.201",
|
|
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
|
+
"@vft/router": "0.0.49",
|
|
59
|
+
"@vft/store": "0.0.37",
|
|
57
60
|
"@vft/use": "0.0.50",
|
|
58
61
|
"@vft/utils": "0.0.93",
|
|
59
|
-
"@vft/directives": "0.0.29"
|
|
60
|
-
"@vft/router": "0.0.49",
|
|
61
|
-
"@vft/constants": "0.0.65",
|
|
62
|
-
"@vft/store": "0.0.37"
|
|
62
|
+
"@vft/directives": "0.0.29"
|
|
63
63
|
},
|
|
64
64
|
"vetur": {
|
|
65
65
|
"tags": "tags.json",
|