vft 0.0.84 → 0.0.85
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/table/columns.js +10 -0
- package/es/components/table/table.vue2.js +121 -154
- package/es/package.json.js +1 -1
- package/lib/components/table/columns.cjs +1 -0
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +1 -1
- package/tags.json +1 -1
- package/theme-style/index.css +1 -1
- package/theme-style/src/table.scss +105 -66
- package/theme-style/vft-table.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VftEmpty as
|
|
3
|
-
import { VftPagination as
|
|
4
|
-
import { useNamespace as
|
|
1
|
+
import { defineComponent as V, useAttrs as Y, ref as c, computed as H, watch as y, createVNode as p, reactive as J, onMounted as K, resolveComponent as Q, openBlock as C, createElementBlock as U, normalizeClass as b, unref as n, createBlock as L, mergeProps as x, createCommentVNode as P, createSlots as Z, withCtx as R, withDirectives as _, createElementVNode as O, vShow as ee } from "vue";
|
|
2
|
+
import { VftEmpty as te } from "../empty/index.js";
|
|
3
|
+
import { VftPagination as W } from "../pagination/index.js";
|
|
4
|
+
import { useNamespace as ae } from "../../hooks/use-namespace/index.js";
|
|
5
5
|
import "@popperjs/core";
|
|
6
6
|
import "lodash";
|
|
7
7
|
import "../../hooks/use-z-index/index.js";
|
|
8
|
-
import { useDebounceFn as
|
|
8
|
+
import { useDebounceFn as le, useResizeObserver as ne } from "@vueuse/core";
|
|
9
9
|
import "@vft/utils";
|
|
10
10
|
import "../../utils/ns-cover.js";
|
|
11
|
-
import
|
|
12
|
-
import { EmptyEnum as
|
|
13
|
-
const
|
|
11
|
+
import I from "vxe-table";
|
|
12
|
+
import { EmptyEnum as oe } from "../empty/constants.js";
|
|
13
|
+
const r = (
|
|
14
14
|
/* hoist-static*/
|
|
15
|
-
|
|
16
|
-
),
|
|
17
|
-
name:
|
|
18
|
-
}),
|
|
19
|
-
...
|
|
15
|
+
ae("table")
|
|
16
|
+
), re = V({
|
|
17
|
+
name: r.b()
|
|
18
|
+
}), Ce = /* @__PURE__ */ V({
|
|
19
|
+
...re,
|
|
20
20
|
props: {
|
|
21
21
|
maxHeight: null,
|
|
22
22
|
columns: null,
|
|
23
|
-
|
|
23
|
+
data: {
|
|
24
24
|
default: []
|
|
25
25
|
},
|
|
26
26
|
loading: {
|
|
@@ -50,86 +50,53 @@ const c = (
|
|
|
50
50
|
pageOptions: null
|
|
51
51
|
},
|
|
52
52
|
emits: ["page-change", "sort-change", "update:pageNum"],
|
|
53
|
-
setup(
|
|
53
|
+
setup(e, {
|
|
54
54
|
expose: q,
|
|
55
|
-
emit:
|
|
55
|
+
emit: d
|
|
56
56
|
}) {
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
const T = Y(), $ = c(0), i = c(), A = le(() => D(), 120), S = H(() => e.pagePlacement.startsWith("bottom"));
|
|
58
|
+
y([() => e.loading, () => e.data, () => e.columns], () => {
|
|
59
|
+
A();
|
|
60
60
|
}, {
|
|
61
61
|
immediate: !0
|
|
62
62
|
});
|
|
63
|
-
function
|
|
64
|
-
|
|
63
|
+
function D() {
|
|
64
|
+
g.data = e.data, w(e.pageNum);
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
I.renderer.add("Encrypt", {
|
|
67
67
|
// 加密模板
|
|
68
|
-
renderDefault(
|
|
68
|
+
renderDefault(t, a) {
|
|
69
69
|
const {
|
|
70
|
-
row:
|
|
71
|
-
column:
|
|
72
|
-
} =
|
|
70
|
+
row: l,
|
|
71
|
+
column: f
|
|
72
|
+
} = a;
|
|
73
73
|
return p("span", {
|
|
74
74
|
class: "line-clamp",
|
|
75
|
-
innerHTML:
|
|
75
|
+
innerHTML: l[f.field] || "-"
|
|
76
76
|
}, null);
|
|
77
77
|
}
|
|
78
|
-
}),
|
|
79
|
-
// 展开收起
|
|
80
|
-
renderDefault(e, l) {
|
|
81
|
-
const {
|
|
82
|
-
row: n,
|
|
83
|
-
column: o
|
|
84
|
-
} = l;
|
|
85
|
-
return o.showOverflow = null, p(L("vftClampToggle"), {
|
|
86
|
-
autoResize: !0,
|
|
87
|
-
maxLines: 2,
|
|
88
|
-
text: n[o.field],
|
|
89
|
-
title: n[o.field],
|
|
90
|
-
toggleText: ["展开", "收起"],
|
|
91
|
-
onClampChange: (i) => X(l)
|
|
92
|
-
}, null);
|
|
93
|
-
}
|
|
94
|
-
}), E.formats.mixin({
|
|
78
|
+
}), I.formats.mixin({
|
|
95
79
|
showEmpty({
|
|
96
|
-
cellValue:
|
|
80
|
+
cellValue: t
|
|
97
81
|
}) {
|
|
98
|
-
return
|
|
82
|
+
return t || "-";
|
|
99
83
|
}
|
|
100
84
|
});
|
|
101
|
-
function G(
|
|
102
|
-
|
|
85
|
+
function G(t) {
|
|
86
|
+
d("page-change", t), d("update:pageNum", t);
|
|
103
87
|
}
|
|
104
|
-
const
|
|
105
|
-
const {
|
|
106
|
-
rowid: n
|
|
107
|
-
} = e;
|
|
108
|
-
Z(() => {
|
|
109
|
-
const o = document.getElementsByClassName("vxe-body--row"), i = [];
|
|
110
|
-
for (var u = 0; u < o.length; u++)
|
|
111
|
-
o[u].getAttribute("rowid") === n && i.push(o[u]);
|
|
112
|
-
setTimeout(() => {
|
|
113
|
-
if (i.length > 1) {
|
|
114
|
-
const g = i[0].clientHeight, Q = i[1].clientHeight;
|
|
115
|
-
g !== Q && (i[1].style.height = g + "px");
|
|
116
|
-
}
|
|
117
|
-
}, 1);
|
|
118
|
-
});
|
|
119
|
-
}, j = x(() => t.columns.filter((e) => (e && e.type !== "seq" && !e.formatter && !e.slots && !e.cellRender && (e.cellRender = {
|
|
120
|
-
name: "Encrypt"
|
|
121
|
-
}), e))), F = () => ({
|
|
88
|
+
const M = () => ({
|
|
122
89
|
maxHeight: "88px",
|
|
123
90
|
height: "44px"
|
|
124
|
-
}),
|
|
125
|
-
var
|
|
91
|
+
}), X = (t) => {
|
|
92
|
+
var l;
|
|
126
93
|
const {
|
|
127
|
-
column:
|
|
128
|
-
} =
|
|
94
|
+
column: a
|
|
95
|
+
} = t;
|
|
129
96
|
return {
|
|
130
|
-
maxHeight: ((
|
|
97
|
+
maxHeight: ((l = a == null ? void 0 : a.cellRender) == null ? void 0 : l.name) === "Clamp" ? "max-content" : "44px"
|
|
131
98
|
};
|
|
132
|
-
},
|
|
99
|
+
}, g = J({
|
|
133
100
|
autoResize: !0,
|
|
134
101
|
sortConfig: {
|
|
135
102
|
trigger: "cell",
|
|
@@ -137,17 +104,17 @@ const c = (
|
|
|
137
104
|
defaultSort: {
|
|
138
105
|
field: "",
|
|
139
106
|
order: "desc",
|
|
140
|
-
...
|
|
107
|
+
...e.defaultSort
|
|
141
108
|
},
|
|
142
109
|
orders: ["desc", "asc", null]
|
|
143
110
|
},
|
|
144
111
|
seqConfig: {
|
|
145
|
-
startIndex:
|
|
112
|
+
startIndex: $.value
|
|
146
113
|
},
|
|
147
114
|
cellClassName: "cellClass",
|
|
148
115
|
rowClassName: "rowClass",
|
|
149
|
-
cellStyle:
|
|
150
|
-
rowStyle:
|
|
116
|
+
cellStyle: X,
|
|
117
|
+
rowStyle: M,
|
|
151
118
|
headerRowClassName: "headerRowClass",
|
|
152
119
|
headerAlign: "center",
|
|
153
120
|
columnConfig: {
|
|
@@ -163,115 +130,115 @@ const c = (
|
|
|
163
130
|
scrollX: {
|
|
164
131
|
enabled: !1
|
|
165
132
|
},
|
|
166
|
-
...
|
|
167
|
-
...
|
|
168
|
-
}),
|
|
169
|
-
|
|
133
|
+
...e.tableConfig,
|
|
134
|
+
...T
|
|
135
|
+
}), j = (t) => {
|
|
136
|
+
d("sort-change", t);
|
|
170
137
|
};
|
|
171
|
-
|
|
172
|
-
|
|
138
|
+
y(() => e.pageNum, (t) => {
|
|
139
|
+
w(t);
|
|
173
140
|
});
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
},
|
|
177
|
-
let
|
|
178
|
-
const
|
|
179
|
-
var
|
|
180
|
-
return ((
|
|
141
|
+
const w = (t) => {
|
|
142
|
+
g.seqConfig && (g.seqConfig.startIndex = (t - 1) * e.pageSize);
|
|
143
|
+
}, u = c(), k = c();
|
|
144
|
+
let h = c(!1), o = c(null), m = c(null);
|
|
145
|
+
const s = H(() => {
|
|
146
|
+
var t;
|
|
147
|
+
return ((t = e.sticky) == null ? void 0 : t.getContainer) || document.documentElement || document.body;
|
|
181
148
|
});
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
(
|
|
185
|
-
|
|
149
|
+
y(() => [i, e.sticky], () => {
|
|
150
|
+
var t, a, l;
|
|
151
|
+
(t = i.value) != null && t.$el && e.sticky && ((a = s.value) == null || a.removeEventListener("scroll", v), (l = s.value) == null || l.addEventListener("scroll", v), setTimeout(() => {
|
|
152
|
+
N();
|
|
186
153
|
}, 50));
|
|
187
154
|
}, {
|
|
188
155
|
immediate: !0,
|
|
189
156
|
deep: !0
|
|
190
157
|
});
|
|
191
|
-
function
|
|
192
|
-
if (!
|
|
158
|
+
function N() {
|
|
159
|
+
if (!o.value || !m.value || (v(), !h.value))
|
|
193
160
|
return;
|
|
194
|
-
const
|
|
195
|
-
|
|
161
|
+
const t = o.value.clientWidth, a = m.value.offsetWidth;
|
|
162
|
+
u.value.style.width = t - 1 + "px", k.value.style.width = a + "px";
|
|
196
163
|
}
|
|
197
|
-
function
|
|
198
|
-
var
|
|
199
|
-
if (!((
|
|
164
|
+
function v() {
|
|
165
|
+
var z, E, B;
|
|
166
|
+
if (!((z = i.value) != null && z.$el) || !o.value || !s.value)
|
|
200
167
|
return;
|
|
201
|
-
const
|
|
202
|
-
top:
|
|
203
|
-
bottom:
|
|
204
|
-
} =
|
|
205
|
-
|
|
168
|
+
const t = ((E = s.value) == null ? void 0 : E.clientHeight) || window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, {
|
|
169
|
+
top: a,
|
|
170
|
+
bottom: l
|
|
171
|
+
} = o.value.getBoundingClientRect(), f = ((B = s.value) == null ? void 0 : B.getBoundingClientRect().top) || document.body.getBoundingClientRect().top;
|
|
172
|
+
h.value = a < t && l > t && l - f > t, u.value.scrollLeft = o.value.scrollLeft;
|
|
206
173
|
}
|
|
207
|
-
const
|
|
208
|
-
var
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}),
|
|
213
|
-
|
|
174
|
+
const F = () => {
|
|
175
|
+
var a;
|
|
176
|
+
const t = (a = i.value) == null ? void 0 : a.$el;
|
|
177
|
+
t && (o.value = t.querySelector(".vxe-table--body-wrapper"), m.value = t.querySelector(".vxe-table--body"), !(!o.value && !m.value) && (o.value.addEventListener("scroll", function(l) {
|
|
178
|
+
u.value.scrollLeft = l.target.scrollLeft;
|
|
179
|
+
}), u.value.addEventListener("scroll", function(l) {
|
|
180
|
+
o.value.scrollLeft = l.target.scrollLeft;
|
|
214
181
|
})));
|
|
215
182
|
};
|
|
216
|
-
return
|
|
217
|
-
|
|
183
|
+
return K(() => {
|
|
184
|
+
e.sticky && (F(), ne(i, () => N()));
|
|
218
185
|
}), q({
|
|
219
|
-
table:
|
|
220
|
-
}), (
|
|
221
|
-
const
|
|
222
|
-
return
|
|
223
|
-
class:
|
|
224
|
-
}, [
|
|
186
|
+
table: i
|
|
187
|
+
}), (t, a) => {
|
|
188
|
+
const l = Q("vxe-grid");
|
|
189
|
+
return C(), U("div", {
|
|
190
|
+
class: b(n(r).b())
|
|
191
|
+
}, [n(S) ? P("", !0) : (C(), L(n(W), x({
|
|
225
192
|
key: 0,
|
|
226
|
-
class: [
|
|
193
|
+
class: [n(r).e("pager"), n(r).m("pager-" + e.pagePlacement)],
|
|
227
194
|
layout: "prev, pager, next"
|
|
228
|
-
},
|
|
229
|
-
total:
|
|
230
|
-
"page-size":
|
|
231
|
-
onCurrentChange:
|
|
232
|
-
"current-page":
|
|
233
|
-
}), null, 16, ["class", "total", "page-size", "current-page"])), p(
|
|
195
|
+
}, e.pageOptions, {
|
|
196
|
+
total: e.total,
|
|
197
|
+
"page-size": e.pageSize,
|
|
198
|
+
onCurrentChange: a[0] || (a[0] = (f) => d("page-change", e.pageNum)),
|
|
199
|
+
"current-page": e.pageNum
|
|
200
|
+
}), null, 16, ["class", "total", "page-size", "current-page"])), p(l, x({
|
|
234
201
|
ref_key: "xGrid",
|
|
235
|
-
ref:
|
|
236
|
-
},
|
|
237
|
-
height:
|
|
238
|
-
"max-height":
|
|
239
|
-
columns:
|
|
240
|
-
data:
|
|
202
|
+
ref: i
|
|
203
|
+
}, g, {
|
|
204
|
+
height: e.height,
|
|
205
|
+
"max-height": e.maxHeight,
|
|
206
|
+
columns: e.columns,
|
|
207
|
+
data: e.data,
|
|
241
208
|
"auto-resize": "",
|
|
242
|
-
loading:
|
|
209
|
+
loading: e.loading,
|
|
243
210
|
resizable: "",
|
|
244
|
-
onSortChange:
|
|
245
|
-
}),
|
|
246
|
-
empty:
|
|
247
|
-
type:
|
|
211
|
+
onSortChange: j
|
|
212
|
+
}), Z({
|
|
213
|
+
empty: R(() => [p(n(te), {
|
|
214
|
+
type: n(oe).NO_DATA
|
|
248
215
|
}, null, 8, ["type"])]),
|
|
249
216
|
_: 2
|
|
250
|
-
}, [
|
|
217
|
+
}, [e.sticky ? {
|
|
251
218
|
name: "bottom",
|
|
252
|
-
fn:
|
|
219
|
+
fn: R(() => [_(O("div", {
|
|
253
220
|
ref_key: "stickyScroll",
|
|
254
|
-
ref:
|
|
255
|
-
class:
|
|
256
|
-
}, [
|
|
221
|
+
ref: u,
|
|
222
|
+
class: b(n(r).e("sticky-scroll-warpper"))
|
|
223
|
+
}, [O("div", {
|
|
257
224
|
ref_key: "stickyScrollBar",
|
|
258
|
-
ref:
|
|
259
|
-
class:
|
|
260
|
-
}, null, 2)], 2), [[
|
|
225
|
+
ref: k,
|
|
226
|
+
class: b(n(r).e("sticky-scroll-bar"))
|
|
227
|
+
}, null, 2)], 2), [[ee, n(h)]])]),
|
|
261
228
|
key: "0"
|
|
262
|
-
} : void 0]), 1040, ["height", "max-height", "columns", "data", "loading"]),
|
|
229
|
+
} : void 0]), 1040, ["height", "max-height", "columns", "data", "loading"]), n(S) ? (C(), L(n(W), x({
|
|
263
230
|
key: 1,
|
|
264
|
-
class: [
|
|
231
|
+
class: [n(r).e("pager"), n(r).m("pager-" + e.pagePlacement)],
|
|
265
232
|
layout: "prev, pager, next"
|
|
266
|
-
},
|
|
267
|
-
total:
|
|
268
|
-
"page-size":
|
|
233
|
+
}, e.pageOptions, {
|
|
234
|
+
total: e.total,
|
|
235
|
+
"page-size": e.pageSize,
|
|
269
236
|
onCurrentChange: G,
|
|
270
|
-
"current-page":
|
|
271
|
-
}), null, 16, ["class", "total", "page-size", "current-page"])) :
|
|
237
|
+
"current-page": e.pageNum
|
|
238
|
+
}), null, 16, ["class", "total", "page-size", "current-page"])) : P("", !0)], 2);
|
|
272
239
|
};
|
|
273
240
|
}
|
|
274
241
|
});
|
|
275
242
|
export {
|
|
276
|
-
|
|
243
|
+
Ce as default
|
|
277
244
|
};
|
package/es/package.json.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={type:"seq",title:"序号",width:70,fixed:"left",align:"center"};exports.INDEX=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("../empty/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),W=require("../empty/index.cjs"),w=require("../pagination/index.cjs"),$=require("../../hooks/use-namespace/index.cjs");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.cjs");const k=require("@vueuse/core");require("@vft/utils");require("../../utils/ns-cover.cjs");const N=require("vxe-table"),I=require("../empty/constants.cjs"),o=$.useNamespace("table"),T=e.defineComponent({name:o.b()}),A=e.defineComponent({...T,props:{maxHeight:null,columns:null,data:{default:[]},loading:{type:Boolean,default:!1},height:null,pageSize:{default:50},pageNum:{default:1},total:null,defaultSort:{default:{}},tableConfig:{default:{}},sticky:{type:[Boolean,Object]},pagePlacement:{default:"bottom-right"},pageOptions:null},emits:["page-change","sort-change","update:pageNum"],setup(t,{expose:q,emit:s}){const z=e.useAttrs(),B=e.ref(0),u=e.ref(),E=k.useDebounceFn(()=>P(),120),v=e.computed(()=>t.pagePlacement.startsWith("bottom"));e.watch([()=>t.loading,()=>t.data,()=>t.columns],()=>{E()},{immediate:!0});function P(){d.data=t.data,y(t.pageNum)}N.renderer.add("Encrypt",{renderDefault(n,a){const{row:l,column:m}=a;return e.createVNode("span",{class:"line-clamp",innerHTML:l[m.field]||"-"},null)}}),N.formats.mixin({showEmpty({cellValue:n}){return n||"-"}});function H(n){s("page-change",n),s("update:pageNum",n)}const L=()=>({maxHeight:"88px",height:"44px"}),V=n=>{var l;const{column:a}=n;return{maxHeight:((l=a==null?void 0:a.cellRender)==null?void 0:l.name)==="Clamp"?"max-content":"44px"}},d=e.reactive({autoResize:!0,sortConfig:{trigger:"cell",remote:!0,defaultSort:{field:"",order:"desc",...t.defaultSort},orders:["desc","asc",null]},seqConfig:{startIndex:B.value},cellClassName:"cellClass",rowClassName:"rowClass",cellStyle:V,rowStyle:L,headerRowClassName:"headerRowClass",headerAlign:"center",columnConfig:{resizable:!0},rowConfig:{isHover:!0},scrollY:{mode:"wheel"},scrollX:{enabled:!1},...t.tableConfig,...z}),O=n=>{s("sort-change",n)};e.watch(()=>t.pageNum,n=>{y(n)});const y=n=>{d.seqConfig&&(d.seqConfig.startIndex=(n-1)*t.pageSize)},i=e.ref(),C=e.ref();let f=e.ref(!1),r=e.ref(null),g=e.ref(null);const c=e.computed(()=>{var n;return((n=t.sticky)==null?void 0:n.getContainer)||document.documentElement||document.body});e.watch(()=>[u,t.sticky],()=>{var n,a,l;(n=u.value)!=null&&n.$el&&t.sticky&&((a=c.value)==null||a.removeEventListener("scroll",h),(l=c.value)==null||l.addEventListener("scroll",h),setTimeout(()=>{p()},50))},{immediate:!0,deep:!0});function p(){if(!r.value||!g.value||(h(),!f.value))return;const n=r.value.clientWidth,a=g.value.offsetWidth;i.value.style.width=n-1+"px",C.value.style.width=a+"px"}function h(){var b,x,S;if(!((b=u.value)!=null&&b.$el)||!r.value||!c.value)return;const n=((x=c.value)==null?void 0:x.clientHeight)||window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,{top:a,bottom:l}=r.value.getBoundingClientRect(),m=((S=c.value)==null?void 0:S.getBoundingClientRect().top)||document.body.getBoundingClientRect().top;f.value=a<n&&l>n&&l-m>n,i.value.scrollLeft=r.value.scrollLeft}const R=()=>{var a;const n=(a=u.value)==null?void 0:a.$el;n&&(r.value=n.querySelector(".vxe-table--body-wrapper"),g.value=n.querySelector(".vxe-table--body"),!(!r.value&&!g.value)&&(r.value.addEventListener("scroll",function(l){i.value.scrollLeft=l.target.scrollLeft}),i.value.addEventListener("scroll",function(l){r.value.scrollLeft=l.target.scrollLeft})))};return e.onMounted(()=>{t.sticky&&(R(),k.useResizeObserver(u,()=>p()))}),q({table:u}),(n,a)=>{const l=e.resolveComponent("vxe-grid");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).b())},[e.unref(v)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(w.VftPagination),e.mergeProps({key:0,class:[e.unref(o).e("pager"),e.unref(o).m("pager-"+t.pagePlacement)],layout:"prev, pager, next"},t.pageOptions,{total:t.total,"page-size":t.pageSize,onCurrentChange:a[0]||(a[0]=m=>s("page-change",t.pageNum)),"current-page":t.pageNum}),null,16,["class","total","page-size","current-page"])),e.createVNode(l,e.mergeProps({ref_key:"xGrid",ref:u},d,{height:t.height,"max-height":t.maxHeight,columns:t.columns,data:t.data,"auto-resize":"",loading:t.loading,resizable:"",onSortChange:O}),e.createSlots({empty:e.withCtx(()=>[e.createVNode(e.unref(W.VftEmpty),{type:e.unref(I.EmptyEnum).NO_DATA},null,8,["type"])]),_:2},[t.sticky?{name:"bottom",fn:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"stickyScroll",ref:i,class:e.normalizeClass(e.unref(o).e("sticky-scroll-warpper"))},[e.createElementVNode("div",{ref_key:"stickyScrollBar",ref:C,class:e.normalizeClass(e.unref(o).e("sticky-scroll-bar"))},null,2)],2),[[e.vShow,e.unref(f)]])]),key:"0"}:void 0]),1040,["height","max-height","columns","data","loading"]),e.unref(v)?(e.openBlock(),e.createBlock(e.unref(w.VftPagination),e.mergeProps({key:1,class:[e.unref(o).e("pager"),e.unref(o).m("pager-"+t.pagePlacement)],layout:"prev, pager, next"},t.pageOptions,{total:t.total,"page-size":t.pageSize,onCurrentChange:H,"current-page":t.pageNum}),null,16,["class","total","page-size","current-page"])):e.createCommentVNode("",!0)],2)}}});exports.default=A;
|
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.85";exports.version=e;
|
package/package.json
CHANGED
package/tags.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"vft-alert":{"attributes":["title","type","description","closable","center","close-text","show-icon","effect"],"description":"提示 用于页面中展示重要的提示信息。\n\n[Docs](https://wflynn.cn/pages/alert#alert)"},"vft-avatar":{"attributes":["icon","size","shape","src","src-set","alt","fit"],"description":"Avatar 组件可以用来代表人物或对象, 支持使用图片、图标或者文字作为 Avatar。\n\n[Docs](https://wflynn.cn/pages/avatar#avatar)"},"vft-backtop":{"attributes":["target","visibility-height","right","bottom"],"description":"返回页面顶部的操作按钮。\n\n[Docs](https://wflynn.cn/pages/backtop#backtop)"},"vft-button":{"attributes":["size","type","plain","text","bg","link<VersionTag version=\"2.2.1\" />","round","circle","loading","loading-icon","disabled","icon","autofocus","native-type","auto-insert-space","color","dark"],"description":"常用的操作按钮。\n\n[Docs](https://wflynn.cn/pages/button#button)"},"vft-button-group":{"description":"[Docs](https://wflynn.cn/pages/button#buttongroup)"},"vft-card":{"attributes":["header","body-style","shadow"],"description":"将信息聚合在卡片容器中展示。\n\n[Docs](https://wflynn.cn/pages/card#card)"},"vft-checkbox":{"attributes":["model-value / v-model","label","true-label","false-label","disabled","border","size","name","checked","indeterminate","validate-event","tabindex","id","controls ^(a11y)","change"],"description":"在一组备选项中进行多选。\n\n[Docs](https://wflynn.cn/pages/checkbox#checkbox)"},"vft-checkbox-group":{"attributes":["model-value / v-model","size","disabled","min","max","label","text-color","fill","tag","validate-event","change"],"description":"[Docs](https://wflynn.cn/pages/checkbox#checkboxgroup)"},"vft-checkbox-button":{"attributes":["label","true-label","false-label","disabled","name","checked"],"description":"[Docs](https://wflynn.cn/pages/checkbox#checkboxbutton)"},"vft-color-picker":{"attributes":["model-value / v-model","disabled","size","show-alpha","color-format","popper-class","predefine","validate-event","tabindex","label<A11yTag/>","id","change","active-change"],"description":"用于颜色选择,支持多种格式。\n\n[Docs](https://wflynn.cn/pages/color-picker#colorpicker)"},"vft-config-provider":{"attributes":["locale","size","zIndex","namespace","button","message","experimental-features"],"description":"Config Provider 被用来提供全局的配置选项,让你的配置能够在全局都能够被访问到。\n\n[Docs](https://wflynn.cn/pages/config-provider#config-provider)"},"vft-container":{"attributes":["direction"],"description":"[Docs](https://wflynn.cn/pages/container#container)"},"vft-header":{"attributes":["height"],"description":"[Docs](https://wflynn.cn/pages/container#header)"},"vft-aside":{"attributes":["width"],"description":"[Docs](https://wflynn.cn/pages/container#aside)"},"vft-main":{"description":"[Docs](https://wflynn.cn/pages/container#main)"},"vft-footer":{"attributes":["height"],"description":"[Docs](https://wflynn.cn/pages/container#footer)"},"vft-date-picker":{"attributes":["model-value / v-model","readonly","disabled","size","editable","clearable","placeholder","start-placeholder","end-placeholder","type","format","popper-class","popper-options","range-separator","default-value","default-time","value-format","id","name","unlink-panels","prefix-icon","clear-icon","validate-event","disabled-date","shortcuts","cell-class-name","teleported","change","blur","focus","calendar-change","panel-change","visible-change"],"description":"用于选择或输入日期\n\n[Docs](https://wflynn.cn/pages/date-picker#datepicker)"},"vft-date-time-picker":{"attributes":["model-value / v-model","readonly","disabled","editable","clearable","size","placeholder","start-placeholder","end-placeholder","time-arrow-control","type","format","popper-class","range-separator","default-value","default-time","value-format","id","name","unlink-panels","prefix-icon","clear-icon","shortcuts","disabled-date","cell-class-name","teleported","change","blur","focus","calendar-change","visible-change"],"description":"在同一个选择器里选择日期和时间\n\n[Docs](https://wflynn.cn/pages/datetime-picker#datetimepicker)"},"vft-descriptions":{"attributes":["border","column","direction","size","title","extra"],"description":"列表形式展示多个字段。\n\n[Docs](https://wflynn.cn/pages/descriptions#descriptions)"},"vft-descriptions-item":{"attributes":["label","span","width","min-width","align","label-align","class-name","label-class-name"],"description":"[Docs](https://wflynn.cn/pages/descriptions#descriptions-item)"},"vft-dialog":{"attributes":["model-value / v-model","title","width","fullscreen","top","modal","append-to-body","lock-scroll","open-delay","close-delay","close-on-click-modal","close-on-press-escape","show-close","before-close","draggable","center","align-center","destroy-on-close","open","opened","close","closed","open-auto-focus","close-auto-focus"],"description":"在保留当前页面状态的情况下,告知用户并承载相关操作。\n\n[Docs](https://wflynn.cn/pages/dialog#dialog)"},"vft-divider":{"attributes":["direction","border-style","content-position"],"description":"区隔内容的分割线。\n\n[Docs](https://wflynn.cn/pages/divider#divider)"},"vft-dropdown":{"attributes":["type","size","max-height","split-button","disabled","placement","trigger","hide-on-click","show-timeout","hide-timeout","role","tabindex","popper-class","popper-options","teleported","click","command","visible-change"],"description":"将动作或菜单折叠到下拉菜单中。\n\n[Docs](https://wflynn.cn/pages/dropdown#dropdown)"},"vft-dropdown-menu":{"description":"[Docs](https://wflynn.cn/pages/dropdown#dropdown-menu)"},"vft-dropdown-item":{"attributes":["command","disabled","divided","icon"],"description":"[Docs](https://wflynn.cn/pages/dropdown#dropdown-item)"},"vft-empty":{"attributes":["image","image-size","description"],"description":"空状态时的占位提示。\n\n[Docs](https://wflynn.cn/pages/empty#empty)"},"vft-form":{"attributes":["model","rules","inline","label-position","label-width","label-suffix","hide-required-asterisk","require-asterisk-position","show-message","inline-message","status-icon","validate-on-rule-change","size","disabled","scroll-to-error","scroll-into-view-options","validate"],"description":"表单包含 `输入框`, `单选框`, `下拉选择`, `多选框` 等用户输入的组件。 使用表单,您可以收集、验证和提交数据。\n\n[Docs](https://wflynn.cn/pages/form#form)"},"vft-form-item":{"attributes":["prop","label","label-width","required","rules","error","show-message","inline-message","size","for","validate-status"],"description":"[Docs](https://wflynn.cn/pages/form#formitem)"},"vft-icon":{"attributes":["icon","size","color","hoverColor","rotate","rotateSpeed","pointer"],"description":"图标 [图标资源地址]\n\n[Docs](https://wflynn.cn/pages/icon#icon)"},"vft-image":{"attributes":["src","fit","hide-on-click-modal","`loading` ^(2.2.3)","lazy","scroll-container","alt","referrerpolicy","preview-src-list","z-index","initial-index","close-on-press-escape","preview-teleported","load","error","switch","close"],"description":"图片容器,在保留所有原生 img 的特性下,支持懒加载,自定义占位、加载失败等\n\n[Docs](https://wflynn.cn/pages/image#image)"},"vft-image-viewer":{"attributes":["url-list","z-index","initial-index","infinite","hide-on-click-modal","teleported","zoom-rate","close","switch"],"description":"[Docs](https://wflynn.cn/pages/image#image-viewer)"},"vft-input":{"attributes":["type","model-value / v-model","maxlength","minlength","show-word-limit","placeholder","clearable","formatter","parser","show-password","disabled","size","prefix-icon","suffix-icon","rows","autosize","autocomplete","name","readonly","max","min","step","resize","autofocus","form","label ^(a11y)","tabindex","validate-event","input-style","blur","focus","change","input","clear"],"description":"通过鼠标或键盘输入字符\n\n[Docs](https://wflynn.cn/pages/input#input)"},"vft-link":{"attributes":["type","underline","disabled","href","icon"],"description":"文字超链接\n\n[Docs](https://wflynn.cn/pages/link#link)"},"vft-list-cell":{"attributes":["list","cellHeight","leftTextDistance","activeIndex","item-click"],"description":"菜单列表\n\n[Docs](https://wflynn.cn/pages/list-cell#listcell)"},"vft-menu":{"attributes":["mode","collapse","ellipsis","default-active","default-openeds","unique-opened","menu-trigger","router","collapse-transition","popper-effect","select","open","close"],"description":"为网站提供导航功能的菜单。\n\n[Docs](https://wflynn.cn/pages/menu#menu)"},"vft-sub-menu":{"attributes":["index","popper-class","show-timeout","hide-timeout","disabled","popper-append-to-body(已废弃)","teleported","popper-offset","expand-close-icon","expand-open-icon","collapse-close-icon","collapse-open-icon"],"description":"[Docs](https://wflynn.cn/pages/menu#submenu)"},"vft-menu-item":{"attributes":["index","route","disabled","click"],"description":"[Docs](https://wflynn.cn/pages/menu#menu-item)"},"vft-menu-item-group":{"attributes":["title"],"description":"[Docs](https://wflynn.cn/pages/menu#menu-item-group)"},"vft-page-wrapper":{"attributes":["title"],"description":"页面 demo 容器\n\n[Docs](https://wflynn.cn/pages/page-wrapper#pagewrapper)"},"vft-pagination":{"attributes":["small","background","page-size / v-model:page-size","default-page-size","total","page-count","pager-count","current-page / v-model:current-page","default-current-page","layout","page-sizes","popper-class","prev-text","prev-icon","next-text","next-icon","disabled","hide-on-single-page","size-change","current-change","prev-click","next-click"],"description":"当数据量过多时,使用分页分解数据。\n\n[Docs](https://wflynn.cn/pages/pagination#pagination)"},"vft-popconfirm":{"attributes":["title","confirm-button-text","cancel-button-text","confirm-button-type","cancel-button-type","icon","icon-color","hide-icon","hide-after","teleported","persistent","width"],"description":"点击某个元素弹出一个简单的气泡确认框\n\n[Docs](https://wflynn.cn/pages/popconfirm#popconfirm)"},"vft-popover":{"attributes":["trigger","title","effect","content","width","placement","disabled","visible / v-model:visible","offset","transition","show-arrow","popper-options","popper-class","popper-style","show-after","hide-after","auto-close","tabindex","teleported","persistent","show","before-enter","after-enter","hide","before-leave","after-leave"],"description":"<!-- more -->\n\n[Docs](https://wflynn.cn/pages/popover#popover)"},"vft-radio":{"attributes":["model-value / v-model","label","disabled","border","size","name","change"],"description":"在一组备选项中进行单选\n\n[Docs](https://wflynn.cn/pages/radio#radio)"},"vft-radio-group":{"attributes":["model-value / v-model","size","disabled","text-color","fill","validate-event","label ^(a11y)","name","id","change"],"description":"[Docs](https://wflynn.cn/pages/radio#radiogroup)"},"vft-radio-button":{"attributes":["label","disabled","name"],"description":"[Docs](https://wflynn.cn/pages/radio#radiobutton)"},"vft-result":{"attributes":["title","sub-title","icon"],"description":"用于对用户的操作结果或者异常状态做反馈。\n\n[Docs](https://wflynn.cn/pages/result#result)"},"vft-scrollbar":{"attributes":["height","max-height","native","wrap-style","wrap-class","view-style","view-class","noresize","tag","always","min-size","scroll"],"description":"用于替换浏览器原生滚动条。\n\n[Docs](https://wflynn.cn/pages/scrollbar#scrollbar)"},"vft-select":{"attributes":["model-value / v-model","multiple","disabled","value-key","size","clearable","collapse-tags","collapse-tags-tooltip","multiple-limit","name","effect","autocomplete","placeholder","filterable","allow-create","filter-method","remote","remote-method","remote-show-suffix","loading","loading-text","no-match-text","no-data-text","popper-class","reserve-keyword","default-first-option","popper-append-to-body ^(deprecated)","teleported","persistent","automatic-dropdown","clear-icon","fit-input-width","suffix-icon","suffix-transition ^(deprecated)","tag-type","validate-event","placement","max-collapse-tags ^(2.3.0)","change","visible-change","remove-tag","clear","blur","focus"],"description":"[Docs](https://wflynn.cn/pages/select#select)"},"vft-option-group":{"attributes":["label","disabled"],"description":"[Docs](https://wflynn.cn/pages/select#option-group)"},"vft-option":{"attributes":["value","label","disabled"],"description":"[Docs](https://wflynn.cn/pages/select#option)"},"vft-skeleton-item":{"attributes":["variant"],"description":"[Docs](https://wflynn.cn/pages/skeleton#skeletonitem)"},"vft-space":{"attributes":["alignment","class","direction","prefix-cls","style","spacer","size","wrap","fill","fill-ratio"],"description":"虽然我们拥有 [Divider 组件]\n\n[Docs](https://wflynn.cn/pages/space#space)"},"vft-switch":{"attributes":["model-value / v-model","disabled","loading","size","width","inline-prompt","active-icon","inactive-icon","active-text","inactive-text","active-value","inactive-value","active-color","inactive-color","border-color","name","validate-event","before-change","change"],"description":"表示两种相互对立的状态间的切换,多用于触发「开/关」。\n\n[Docs](https://wflynn.cn/pages/switch#switch)"},"vft-time-picker":{"attributes":["model-value / v-model","readonly","disabled","editable","clearable","size","placeholder","start-placeholder","end-placeholder","is-range","arrow-control","popper-class","range-separator","format","default-value","id","name","label ^(a11y)","prefix-icon","clear-icon","disabled-hours","disabled-minutes","disabled-seconds","teleported","tabindex","change","blur","focus","visible-change"],"description":"用于选择或输入日期\n\n[Docs](https://wflynn.cn/pages/time-picker#timepicker)"},"vft-tooltip":{"attributes":["append-to","effect","content","raw-content","placement","visible / v-model:visible","disabled","offset","transition","popper-options","show-after","show-arrow","hide-after","auto-close","popper-class","enterable","teleported","trigger","virtual-triggering","virtual-ref","trigger-keys","persistent","aria-label ^(a11y)"],"description":"常用于展示鼠标 hover 时的提示信息。\n\n[Docs](https://wflynn.cn/pages/tooltip#tooltip)"},"vft-tree-select":{"attributes":["cacheData"],"description":"含有下拉菜单的树形选择器,结合了 `vft-tree` 和 `vft-select` 两个组件的功能。\n\n[Docs](https://wflynn.cn/pages/tree-select#treeselect)"},"vft-tree":{"attributes":["data","empty-text","node-key","props","render-after-expand","load","render-content","highlight-current","default-expand-all","expand-on-click-node","check-on-click-node","auto-expand-parent","default-expanded-keys","show-checkbox","check-strictly","default-checked-keys","current-node-key","filter-node-method","accordion","indent","icon","lazy","draggable","allow-drag","allow-drop","node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse","node-drag-start","node-drag-enter","node-drag-leave","node-drag-over","node-drag-end","node-drop"],"description":"用清晰的层级结构展示信息,可展开或折叠。\n\n[Docs](https://wflynn.cn/pages/tree#tree)"},"vft-date-time-select":{"attributes":["dateList","defaultFormat","placement","change"],"description":"自定义时间选择器\n\n[Docs](https://wflynn.cn/pages/date-time-select#datetimeselect)"},"vft-horizontal-menu":{"attributes":["menus","defaultActive","defaultOpeneds","attrMapping","useRouterJump","openDisabled","disabledJudgeTurnOver","subMenuCfg","maxRowLength","open","close"],"description":"自定义时间选择器\n\n[Docs](https://wflynn.cn/pages/horizontal-menu#horizontalmenu)"},"vft-icon-text":{"attributes":["text","icon","color","hoverColor","distance","reverse","size","direction","pointer"],"description":"文字与图标组合\n\n[Docs](https://wflynn.cn/pages/icon-text#icontext)"},"vft-search":{"attributes":["modelValue","placeholder","prefixIcon","suffixIcon","clearable","clearIcon","width","activeWidth","usePopover","popoverCfg","update:modelValue","blur","focus","clear","enter","prefixClick","suffixClick","mouseenter","mouseleave","keydown","change"],"description":"搜索,以及搜索框\n\n[Docs](https://wflynn.cn/pages/search#search)"},"vft-side-menu":{"attributes":["menus","uniqueOpened","isFixedLeft","autoScrollActiveDom","collapse","defaultActive","defaultOpeneds","width","collapseWidth","height","attrMapping","extraHeight","menuTopBottomHeight","showCollapse","dragOption","dragWidthCfg","useRouterJump","openDisabled","update:collapse","update:width","dragEnd","dragWidthEnd","select","menuItemMouseenter","menuItemMouseleave"],"description":"自定义时间选择器\n\n[Docs](https://wflynn.cn/pages/side-menu#sidemenu)"}}
|
|
1
|
+
{"vft-alert":{"attributes":["title","type","description","closable","center","close-text","show-icon","effect"],"description":"提示 用于页面中展示重要的提示信息。\n\n[Docs](https://wflynn.cn/pages/alert#alert)"},"vft-avatar":{"attributes":["icon","size","shape","src","src-set","alt","fit"],"description":"Avatar 组件可以用来代表人物或对象, 支持使用图片、图标或者文字作为 Avatar。\n\n[Docs](https://wflynn.cn/pages/avatar#avatar)"},"vft-backtop":{"attributes":["target","visibility-height","right","bottom"],"description":"返回页面顶部的操作按钮。\n\n[Docs](https://wflynn.cn/pages/backtop#backtop)"},"vft-button":{"attributes":["size","type","plain","text","bg","link<VersionTag version=\"2.2.1\" />","round","circle","loading","loading-icon","disabled","icon","autofocus","native-type","auto-insert-space","color","dark"],"description":"常用的操作按钮。\n\n[Docs](https://wflynn.cn/pages/button#button)"},"vft-button-group":{"description":"[Docs](https://wflynn.cn/pages/button#buttongroup)"},"vft-card":{"attributes":["header","body-style","shadow"],"description":"将信息聚合在卡片容器中展示。\n\n[Docs](https://wflynn.cn/pages/card#card)"},"vft-checkbox":{"attributes":["model-value / v-model","label","true-label","false-label","disabled","border","size","name","checked","indeterminate","validate-event","tabindex","id","controls ^(a11y)","change"],"description":"在一组备选项中进行多选。\n\n[Docs](https://wflynn.cn/pages/checkbox#checkbox)"},"vft-checkbox-group":{"attributes":["model-value / v-model","size","disabled","min","max","label","text-color","fill","tag","validate-event","change"],"description":"[Docs](https://wflynn.cn/pages/checkbox#checkboxgroup)"},"vft-checkbox-button":{"attributes":["label","true-label","false-label","disabled","name","checked"],"description":"[Docs](https://wflynn.cn/pages/checkbox#checkboxbutton)"},"vft-color-picker":{"attributes":["model-value / v-model","disabled","size","show-alpha","color-format","popper-class","predefine","validate-event","tabindex","label<A11yTag/>","id","change","active-change"],"description":"用于颜色选择,支持多种格式。\n\n[Docs](https://wflynn.cn/pages/color-picker#colorpicker)"},"vft-config-provider":{"attributes":["locale","size","zIndex","namespace","button","message","experimental-features"],"description":"Config Provider 被用来提供全局的配置选项,让你的配置能够在全局都能够被访问到。\n\n[Docs](https://wflynn.cn/pages/config-provider#config-provider)"},"vft-container":{"attributes":["direction"],"description":"[Docs](https://wflynn.cn/pages/container#container)"},"vft-header":{"attributes":["height"],"description":"[Docs](https://wflynn.cn/pages/container#header)"},"vft-aside":{"attributes":["width"],"description":"[Docs](https://wflynn.cn/pages/container#aside)"},"vft-main":{"description":"[Docs](https://wflynn.cn/pages/container#main)"},"vft-footer":{"attributes":["height"],"description":"[Docs](https://wflynn.cn/pages/container#footer)"},"vft-date-picker":{"attributes":["model-value / v-model","readonly","disabled","size","editable","clearable","placeholder","start-placeholder","end-placeholder","type","format","popper-class","popper-options","range-separator","default-value","default-time","value-format","id","name","unlink-panels","prefix-icon","clear-icon","validate-event","disabled-date","shortcuts","cell-class-name","teleported","change","blur","focus","calendar-change","panel-change","visible-change"],"description":"用于选择或输入日期\n\n[Docs](https://wflynn.cn/pages/date-picker#datepicker)"},"vft-date-time-picker":{"attributes":["model-value / v-model","readonly","disabled","editable","clearable","size","placeholder","start-placeholder","end-placeholder","time-arrow-control","type","format","popper-class","range-separator","default-value","default-time","value-format","id","name","unlink-panels","prefix-icon","clear-icon","shortcuts","disabled-date","cell-class-name","teleported","change","blur","focus","calendar-change","visible-change"],"description":"在同一个选择器里选择日期和时间\n\n[Docs](https://wflynn.cn/pages/datetime-picker#datetimepicker)"},"vft-descriptions":{"attributes":["border","column","direction","size","title","extra"],"description":"列表形式展示多个字段。\n\n[Docs](https://wflynn.cn/pages/descriptions#descriptions)"},"vft-descriptions-item":{"attributes":["label","span","width","min-width","align","label-align","class-name","label-class-name"],"description":"[Docs](https://wflynn.cn/pages/descriptions#descriptions-item)"},"vft-dialog":{"attributes":["model-value / v-model","title","width","fullscreen","top","modal","append-to-body","lock-scroll","open-delay","close-delay","close-on-click-modal","close-on-press-escape","show-close","before-close","draggable","center","align-center","destroy-on-close","open","opened","close","closed","open-auto-focus","close-auto-focus"],"description":"在保留当前页面状态的情况下,告知用户并承载相关操作。\n\n[Docs](https://wflynn.cn/pages/dialog#dialog)"},"vft-divider":{"attributes":["direction","border-style","content-position"],"description":"区隔内容的分割线。\n\n[Docs](https://wflynn.cn/pages/divider#divider)"},"vft-dropdown":{"attributes":["type","size","max-height","split-button","disabled","placement","trigger","hide-on-click","show-timeout","hide-timeout","role","tabindex","popper-class","popper-options","teleported","click","command","visible-change"],"description":"将动作或菜单折叠到下拉菜单中。\n\n[Docs](https://wflynn.cn/pages/dropdown#dropdown)"},"vft-dropdown-menu":{"description":"[Docs](https://wflynn.cn/pages/dropdown#dropdown-menu)"},"vft-dropdown-item":{"attributes":["command","disabled","divided","icon"],"description":"[Docs](https://wflynn.cn/pages/dropdown#dropdown-item)"},"vft-empty":{"attributes":["image","image-size","description"],"description":"空状态时的占位提示。\n\n[Docs](https://wflynn.cn/pages/empty#empty)"},"vft-form":{"attributes":["model","rules","inline","label-position","label-width","label-suffix","hide-required-asterisk","require-asterisk-position","show-message","inline-message","status-icon","validate-on-rule-change","size","disabled","scroll-to-error","scroll-into-view-options","validate"],"description":"表单包含 `输入框`, `单选框`, `下拉选择`, `多选框` 等用户输入的组件。 使用表单,您可以收集、验证和提交数据。\n\n[Docs](https://wflynn.cn/pages/form#form)"},"vft-form-item":{"attributes":["prop","label","label-width","required","rules","error","show-message","inline-message","size","for","validate-status"],"description":"[Docs](https://wflynn.cn/pages/form#formitem)"},"vft-icon":{"attributes":["icon","size","color","hoverColor","rotate","rotateSpeed","pointer"],"description":"图标 [图标资源地址]\n\n[Docs](https://wflynn.cn/pages/icon#icon)"},"vft-image":{"attributes":["src","fit","hide-on-click-modal","`loading` ^(2.2.3)","lazy","scroll-container","alt","referrerpolicy","preview-src-list","z-index","initial-index","close-on-press-escape","preview-teleported","load","error","switch","close"],"description":"图片容器,在保留所有原生 img 的特性下,支持懒加载,自定义占位、加载失败等\n\n[Docs](https://wflynn.cn/pages/image#image)"},"vft-image-viewer":{"attributes":["url-list","z-index","initial-index","infinite","hide-on-click-modal","teleported","zoom-rate","close","switch"],"description":"[Docs](https://wflynn.cn/pages/image#image-viewer)"},"vft-input":{"attributes":["type","model-value / v-model","maxlength","minlength","show-word-limit","placeholder","clearable","formatter","parser","show-password","disabled","size","prefix-icon","suffix-icon","rows","autosize","autocomplete","name","readonly","max","min","step","resize","autofocus","form","label ^(a11y)","tabindex","validate-event","input-style","blur","focus","change","input","clear"],"description":"通过鼠标或键盘输入字符\n\n[Docs](https://wflynn.cn/pages/input#input)"},"vft-link":{"attributes":["type","underline","disabled","href","icon"],"description":"文字超链接\n\n[Docs](https://wflynn.cn/pages/link#link)"},"vft-list-cell":{"attributes":["list","cellHeight","leftTextDistance","activeIndex","item-click"],"description":"菜单列表\n\n[Docs](https://wflynn.cn/pages/list-cell#listcell)"},"vft-menu":{"attributes":["mode","collapse","ellipsis","default-active","default-openeds","unique-opened","menu-trigger","router","collapse-transition","popper-effect","select","open","close"],"description":"为网站提供导航功能的菜单。\n\n[Docs](https://wflynn.cn/pages/menu#menu)"},"vft-sub-menu":{"attributes":["index","popper-class","show-timeout","hide-timeout","disabled","popper-append-to-body(已废弃)","teleported","popper-offset","expand-close-icon","expand-open-icon","collapse-close-icon","collapse-open-icon"],"description":"[Docs](https://wflynn.cn/pages/menu#submenu)"},"vft-menu-item":{"attributes":["index","route","disabled","click"],"description":"[Docs](https://wflynn.cn/pages/menu#menu-item)"},"vft-menu-item-group":{"attributes":["title"],"description":"[Docs](https://wflynn.cn/pages/menu#menu-item-group)"},"vft-page-wrapper":{"attributes":["title"],"description":"页面 demo 容器\n\n[Docs](https://wflynn.cn/pages/page-wrapper#pagewrapper)"},"vft-pagination":{"attributes":["small","background","page-size / v-model:page-size","default-page-size","total","page-count","pager-count","current-page / v-model:current-page","default-current-page","layout","page-sizes","popper-class","prev-text","prev-icon","next-text","next-icon","disabled","hide-on-single-page","size-change","current-change","prev-click","next-click"],"description":"当数据量过多时,使用分页分解数据。\n\n[Docs](https://wflynn.cn/pages/pagination#pagination)"},"vft-popconfirm":{"attributes":["title","confirm-button-text","cancel-button-text","confirm-button-type","cancel-button-type","icon","icon-color","hide-icon","hide-after","teleported","persistent","width"],"description":"点击某个元素弹出一个简单的气泡确认框\n\n[Docs](https://wflynn.cn/pages/popconfirm#popconfirm)"},"vft-popover":{"attributes":["trigger","title","effect","content","width","placement","disabled","visible / v-model:visible","offset","transition","show-arrow","popper-options","popper-class","popper-style","show-after","hide-after","auto-close","tabindex","teleported","persistent","show","before-enter","after-enter","hide","before-leave","after-leave"],"description":"<!-- more -->\n\n[Docs](https://wflynn.cn/pages/popover#popover)"},"vft-radio":{"attributes":["model-value / v-model","label","disabled","border","size","name","change"],"description":"在一组备选项中进行单选\n\n[Docs](https://wflynn.cn/pages/radio#radio)"},"vft-radio-group":{"attributes":["model-value / v-model","size","disabled","text-color","fill","validate-event","label ^(a11y)","name","id","change"],"description":"[Docs](https://wflynn.cn/pages/radio#radiogroup)"},"vft-radio-button":{"attributes":["label","disabled","name"],"description":"[Docs](https://wflynn.cn/pages/radio#radiobutton)"},"vft-result":{"attributes":["title","sub-title","icon"],"description":"用于对用户的操作结果或者异常状态做反馈。\n\n[Docs](https://wflynn.cn/pages/result#result)"},"vft-scrollbar":{"attributes":["height","max-height","native","wrap-style","wrap-class","view-style","view-class","noresize","tag","always","min-size","scroll"],"description":"用于替换浏览器原生滚动条。\n\n[Docs](https://wflynn.cn/pages/scrollbar#scrollbar)"},"vft-select":{"attributes":["model-value / v-model","multiple","disabled","value-key","size","clearable","collapse-tags","collapse-tags-tooltip","multiple-limit","name","effect","autocomplete","placeholder","filterable","allow-create","filter-method","remote","remote-method","remote-show-suffix","loading","loading-text","no-match-text","no-data-text","popper-class","reserve-keyword","default-first-option","popper-append-to-body ^(deprecated)","teleported","persistent","automatic-dropdown","clear-icon","fit-input-width","suffix-icon","suffix-transition ^(deprecated)","tag-type","validate-event","placement","max-collapse-tags ^(2.3.0)","change","visible-change","remove-tag","clear","blur","focus"],"description":"[Docs](https://wflynn.cn/pages/select#select)"},"vft-option-group":{"attributes":["label","disabled"],"description":"[Docs](https://wflynn.cn/pages/select#option-group)"},"vft-option":{"attributes":["value","label","disabled"],"description":"[Docs](https://wflynn.cn/pages/select#option)"},"vft-skeleton-item":{"attributes":["variant"],"description":"[Docs](https://wflynn.cn/pages/skeleton#skeletonitem)"},"vft-space":{"attributes":["alignment","class","direction","prefix-cls","style","spacer","size","wrap","fill","fill-ratio"],"description":"虽然我们拥有 [Divider 组件]\n\n[Docs](https://wflynn.cn/pages/space#space)"},"vft-switch":{"attributes":["model-value / v-model","disabled","loading","size","width","inline-prompt","active-icon","inactive-icon","active-text","inactive-text","active-value","inactive-value","active-color","inactive-color","border-color","name","validate-event","before-change","change"],"description":"表示两种相互对立的状态间的切换,多用于触发「开/关」。\n\n[Docs](https://wflynn.cn/pages/switch#switch)"},"vft-table":{"attributes":["maxHeight","columns","data","loading","height","pageSize","pageNum","total","defaultSort","tableConfig","sticky","pagePlacement","pageOptions","update:modelValue","blur","focus","clear","enter","prefixClick","suffixClick","mouseenter","mouseleave","keydown","change"],"description":"表格\n\n[Docs](https://wflynn.cn/pages/table#table)"},"vft-time-picker":{"attributes":["model-value / v-model","readonly","disabled","editable","clearable","size","placeholder","start-placeholder","end-placeholder","is-range","arrow-control","popper-class","range-separator","format","default-value","id","name","label ^(a11y)","prefix-icon","clear-icon","disabled-hours","disabled-minutes","disabled-seconds","teleported","tabindex","change","blur","focus","visible-change"],"description":"用于选择或输入日期\n\n[Docs](https://wflynn.cn/pages/time-picker#timepicker)"},"vft-tooltip":{"attributes":["append-to","effect","content","raw-content","placement","visible / v-model:visible","disabled","offset","transition","popper-options","show-after","show-arrow","hide-after","auto-close","popper-class","enterable","teleported","trigger","virtual-triggering","virtual-ref","trigger-keys","persistent","aria-label ^(a11y)"],"description":"常用于展示鼠标 hover 时的提示信息。\n\n[Docs](https://wflynn.cn/pages/tooltip#tooltip)"},"vft-tree-select":{"attributes":["cacheData"],"description":"含有下拉菜单的树形选择器,结合了 `vft-tree` 和 `vft-select` 两个组件的功能。\n\n[Docs](https://wflynn.cn/pages/tree-select#treeselect)"},"vft-tree":{"attributes":["data","empty-text","node-key","props","render-after-expand","load","render-content","highlight-current","default-expand-all","expand-on-click-node","check-on-click-node","auto-expand-parent","default-expanded-keys","show-checkbox","check-strictly","default-checked-keys","current-node-key","filter-node-method","accordion","indent","icon","lazy","draggable","allow-drag","allow-drop","node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse","node-drag-start","node-drag-enter","node-drag-leave","node-drag-over","node-drag-end","node-drop"],"description":"用清晰的层级结构展示信息,可展开或折叠。\n\n[Docs](https://wflynn.cn/pages/tree#tree)"},"vft-date-time-select":{"attributes":["dateList","defaultFormat","placement","change"],"description":"自定义时间选择器\n\n[Docs](https://wflynn.cn/pages/date-time-select#datetimeselect)"},"vft-horizontal-menu":{"attributes":["menus","defaultActive","defaultOpeneds","attrMapping","useRouterJump","openDisabled","disabledJudgeTurnOver","subMenuCfg","maxRowLength","open","close"],"description":"自定义时间选择器\n\n[Docs](https://wflynn.cn/pages/horizontal-menu#horizontalmenu)"},"vft-icon-text":{"attributes":["text","icon","color","hoverColor","distance","reverse","size","direction","pointer"],"description":"文字与图标组合\n\n[Docs](https://wflynn.cn/pages/icon-text#icontext)"},"vft-search":{"attributes":["modelValue","placeholder","prefixIcon","suffixIcon","clearable","clearIcon","width","activeWidth","usePopover","popoverCfg","update:modelValue","blur","focus","clear","enter","prefixClick","suffixClick","mouseenter","mouseleave","keydown","change"],"description":"搜索,以及搜索框\n\n[Docs](https://wflynn.cn/pages/search#search)"},"vft-side-menu":{"attributes":["menus","uniqueOpened","isFixedLeft","autoScrollActiveDom","collapse","defaultActive","defaultOpeneds","width","collapseWidth","height","attrMapping","extraHeight","menuTopBottomHeight","showCollapse","dragOption","dragWidthCfg","useRouterJump","openDisabled","update:collapse","update:width","dragEnd","dragWidthEnd","select","menuItemMouseenter","menuItemMouseleave"],"description":"自定义时间选择器\n\n[Docs](https://wflynn.cn/pages/side-menu#sidemenu)"}}
|