@fangzhongya/fang-ui 0.0.28 → 0.0.30
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/components/array/src/index.cjs +6 -9
- package/dist/components/array/src/index.js +6 -9
- package/dist/components/box/index.css +12 -12
- package/dist/components/box/index.scss +1 -6
- package/dist/components/box-local/index.css +12 -12
- package/dist/components/cascader/index.d.ts +1 -1
- package/dist/components/cascader/src/index.d.ts +2 -2
- package/dist/components/checks/src/index.cjs +4 -4
- package/dist/components/checks/src/index.js +4 -4
- package/dist/components/common/list.cjs +2 -3
- package/dist/components/common/list.js +2 -3
- package/dist/components/common/use.cjs +11 -11
- package/dist/components/common/use.js +11 -11
- package/dist/components/cs-slot/src/index.cjs +6 -6
- package/dist/components/cs-slot/src/index.js +6 -6
- package/dist/components/dialog/src/index.cjs +7 -7
- package/dist/components/dialog/src/index.js +4 -4
- package/dist/components/dialog/style/index2.scss +1 -1
- package/dist/components/edit-float/src/index2.cjs +2 -2
- package/dist/components/edit-float/src/index2.js +2 -2
- package/dist/components/forms/index.d.ts +52 -149
- package/dist/components/forms/src/index.cjs +10 -9
- package/dist/components/forms/src/index.d.ts +102 -297
- package/dist/components/forms/src/index.js +4 -3
- package/dist/components/forms/src/setup.cjs +5 -8
- package/dist/components/forms/src/setup.js +5 -8
- package/dist/components/forms/src/util.cjs +1 -2
- package/dist/components/forms/src/util.js +1 -2
- package/dist/components/forms/style/index2.scss +6 -0
- package/dist/components/forms-div/style/index2.scss +1 -0
- package/dist/components/forms-drag/src/index.cjs +2 -2
- package/dist/components/forms-drag/src/index.js +2 -2
- package/dist/components/forms-item/src/index.cjs +7 -7
- package/dist/components/forms-item/src/index.js +2 -2
- package/dist/components/forms-item/style/index2.scss +4 -0
- package/dist/components/forms-items/src/index.cjs +2 -2
- package/dist/components/forms-items/src/index.js +2 -2
- package/dist/components/forms-items/style/index2.scss +2 -0
- package/dist/components/global-config/src/index.cjs +1 -1
- package/dist/components/global-config/src/index.js +1 -1
- package/dist/components/icon-picker/src/index.cjs +4 -6
- package/dist/components/icon-picker/src/index.js +4 -6
- package/dist/components/index.cjs +16 -14
- package/dist/components/index.d.ts +5 -4
- package/dist/components/index.js +10 -8
- package/dist/components/index.scss +6 -4
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/src/index.d.ts +2 -2
- package/dist/components/input-number/index.d.ts +1 -1
- package/dist/components/input-number/src/index.d.ts +2 -2
- package/dist/components/input-select/index.d.ts +1 -1
- package/dist/components/input-select/src/index.d.ts +2 -2
- package/dist/components/input-select/src/index2.cjs +1 -1
- package/dist/components/input-select/src/index2.js +1 -1
- package/dist/components/labels/src/index2.cjs +1 -2
- package/dist/components/labels/src/index2.js +1 -2
- package/dist/components/lists/common/img.cjs +1 -1
- package/dist/components/lists/common/img.d.ts +2 -0
- package/dist/components/lists/common/img.js +1 -1
- package/dist/components/lists/common/img2.cjs +5 -8
- package/dist/components/lists/common/img2.js +6 -9
- package/dist/components/menus/src/index.cjs +2 -2
- package/dist/components/menus/src/index.js +1 -1
- package/dist/components/menus/src/menu-ll.cjs +7 -7
- package/dist/components/menus/src/menu-ll.js +2 -2
- package/dist/components/menus/style/index2.scss +5 -0
- package/dist/components/page/index.css +245 -0
- package/dist/components/page/index.d.ts +3073 -0
- package/dist/components/page/index.scss +4 -0
- package/dist/components/page/src/index.cjs +81 -99
- package/dist/components/page/src/index.d.ts +5111 -0
- package/dist/components/page/src/index.js +70 -88
- package/dist/components/page/src/set-column2.cjs +2 -2
- package/dist/components/page/src/set-column2.js +2 -2
- package/dist/components/page/style/index2.scss +9 -0
- package/dist/components/{pagin → paging}/index.cjs +3 -3
- package/dist/components/{pagin → paging}/index.css +4 -3
- package/dist/components/{pagin → paging}/index.d.ts +2 -2
- package/dist/components/{pagin → paging}/index.js +3 -3
- package/dist/components/{pagin → paging}/index.scss +3 -2
- package/dist/components/{pagin → paging}/src/index.cjs +3 -3
- package/dist/components/{pagin → paging}/src/index.js +2 -2
- package/dist/components/paging/style/index2.scss +3 -0
- package/dist/components/right-key/index.d.ts +15 -0
- package/dist/components/right-key/src/data.cjs +4 -0
- package/dist/components/right-key/src/data.d.ts +4 -0
- package/dist/components/right-key/src/data.js +4 -0
- package/dist/components/right-key/src/index.cjs +5 -1
- package/dist/components/right-key/src/index.d.ts +9 -0
- package/dist/components/right-key/src/index.js +5 -1
- package/dist/components/role-select/src/index.cjs +1 -1
- package/dist/components/role-select/src/index.js +1 -1
- package/dist/components/selector/src/index2.cjs +2 -2
- package/dist/components/selector/src/index2.js +2 -2
- package/dist/components/selects/src/index.cjs +1 -1
- package/dist/components/selects/src/index.js +1 -1
- package/dist/components/stick-window/src/index.cjs +1 -1
- package/dist/components/stick-window/src/index.js +1 -1
- package/dist/components/switchs/src/index.cjs +4 -4
- package/dist/components/switchs/src/index.js +4 -4
- package/dist/components/table-list/src/table-list.cjs +10 -15
- package/dist/components/table-list/src/table-list.js +10 -15
- package/dist/components/tables/common/pagin.cjs +40 -57
- package/dist/components/tables/common/pagin.js +40 -57
- package/dist/components/tables/common/table-but.cjs +1 -2
- package/dist/components/tables/common/table-but.js +1 -2
- package/dist/components/tables/common/table-color.cjs +4 -5
- package/dist/components/tables/common/table-color.js +4 -5
- package/dist/components/tables/common/table-list.cjs +1 -2
- package/dist/components/tables/common/table-list.js +1 -2
- package/dist/components/tables/common/util.cjs +2 -3
- package/dist/components/tables/common/util.js +2 -3
- package/dist/components/tables/index.css +12 -15
- package/dist/components/tables/index.d.ts +1730 -0
- package/dist/components/tables/index.scss +17 -23
- package/dist/components/{el-tables → tables}/src/column.cjs +3 -3
- package/dist/components/{el-tables → tables}/src/column.js +2 -2
- package/dist/components/{el-tables → tables}/src/columns.cjs +3 -3
- package/dist/components/{el-tables → tables}/src/columns.js +3 -3
- package/dist/components/{el-tables → tables}/src/columns3.cjs +6 -6
- package/dist/components/{el-tables → tables}/src/columns3.js +3 -3
- package/dist/components/tables/src/index.cjs +158 -98
- package/dist/components/tables/src/index.d.ts +3103 -0
- package/dist/components/tables/src/index.js +158 -98
- package/dist/components/tables/style/index2.scss +5 -0
- package/dist/components/tables-form/index.cjs +1 -0
- package/dist/components/tables-form/index.js +1 -0
- package/dist/components/tables-form/index.scss +0 -0
- package/dist/components/tables-form/src/columns3.cjs +1 -1
- package/dist/components/tables-form/src/columns3.js +1 -1
- package/dist/components/tables-form/src/index.cjs +4 -7
- package/dist/components/tables-form/src/index.js +4 -7
- package/dist/components/tables-form/style/index.scss.cjs +1 -0
- package/dist/components/tables-form/style/index.scss.js +1 -0
- package/dist/components/tables-form/style/index2.scss +0 -0
- package/dist/components/{el-tables → tablesp}/index.cjs +3 -3
- package/dist/components/{tables-pagin → tablesp}/index.css +10 -9
- package/dist/components/tablesp/index.d.ts +1939 -0
- package/dist/components/{el-tables → tablesp}/index.js +3 -3
- package/dist/components/{tables-pagin → tablesp}/index.scss +5 -5
- package/dist/components/{tables-pagin → tablesp}/src/index.cjs +7 -8
- package/dist/components/tablesp/src/index.d.ts +3540 -0
- package/dist/components/{tables-pagin → tablesp}/src/index.js +7 -8
- package/dist/components/tablesp/style/index2.scss +4 -0
- package/dist/components/{vxe-tables → tabless}/index.cjs +3 -3
- package/dist/components/{el-tables → tabless}/index.css +15 -12
- package/dist/components/tabless/index.d.ts +1939 -0
- package/dist/components/{vxe-tables → tabless}/index.js +3 -3
- package/dist/components/tabless/index.scss +32 -0
- package/dist/components/tabless/src/index.cjs +118 -0
- package/dist/components/tabless/src/index.d.ts +3540 -0
- package/dist/components/tabless/src/index.js +118 -0
- package/dist/components/tabless/style/index2.scss +5 -0
- package/dist/components/{tables-pagin → tablesv}/index.cjs +3 -3
- package/dist/components/{vxe-tables → tablesv}/index.css +17 -17
- package/dist/components/{vxe-tables → tablesv}/index.d.ts +2 -2
- package/dist/components/{tables-pagin → tablesv}/index.js +3 -3
- package/dist/components/{vxe-tables → tablesv}/index.scss +2 -2
- package/dist/components/{vxe-tables → tablesv}/src/columns3.cjs +1 -1
- package/dist/components/{vxe-tables → tablesv}/src/columns3.js +1 -1
- package/dist/components/{vxe-tables → tablesv}/src/index.cjs +3 -4
- package/dist/components/{vxe-tables → tablesv}/src/index.js +3 -4
- package/dist/components/tablesv/style/index2.scss +1 -0
- package/dist/components/tablesvp/index.cjs +8 -0
- package/dist/components/tablesvp/index.css +130 -0
- package/dist/components/tablesvp/index.d.ts +480 -0
- package/dist/components/tablesvp/index.js +8 -0
- package/dist/components/tablesvp/index.scss +33 -0
- package/dist/components/tablesvp/src/data.d.ts +14 -0
- package/dist/components/tablesvp/src/index.cjs +86 -0
- package/dist/components/tablesvp/src/index.d.ts +630 -0
- package/dist/components/tablesvp/src/index.js +86 -0
- package/dist/components/tablesvp/src/index2.cjs +4 -0
- package/dist/components/tablesvp/src/index2.js +4 -0
- package/dist/components/tablesvp/style/index2.scss +4 -0
- package/dist/directives/adjust/index.cjs +1 -2
- package/dist/directives/adjust/index.js +1 -2
- package/dist/expand/{chunk-B6EXENNS.cjs → chunk-P5447R3I.cjs} +5 -4
- package/dist/expand/{chunk-Y7QESZWG.js → chunk-VZAQ2FM7.js} +5 -4
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/hooks/global-config/index.cjs +2 -5
- package/dist/hooks/global-config/index.js +2 -5
- package/dist/index.cjs +34 -32
- package/dist/index.css +130 -50
- package/dist/index.js +10 -8
- package/dist/index2.css +1 -1
- package/package.json +9 -9
- package/dist/components/el-tables/index.scss +0 -26
- package/dist/components/el-tables/src/index.cjs +0 -175
- package/dist/components/el-tables/src/index.js +0 -175
- /package/dist/components/{forms-items → forms-item}/index.css +0 -0
- /package/dist/components/{pagin → paging}/src/index.d.ts +0 -0
- /package/dist/components/{el-tables → paging}/src/index2.cjs +0 -0
- /package/dist/components/{el-tables → paging}/src/index2.js +0 -0
- /package/dist/components/{el-tables → tables}/src/column.d.ts +0 -0
- /package/dist/components/{el-tables → tables}/src/columns.d.ts +0 -0
- /package/dist/components/{el-tables → tables}/src/columns2.cjs +0 -0
- /package/dist/components/{el-tables → tables}/src/columns2.js +0 -0
- /package/dist/components/{el-tables → tables}/src/data.cjs +0 -0
- /package/dist/components/{el-tables → tables}/src/data.d.ts +0 -0
- /package/dist/components/{el-tables → tables}/src/data.js +0 -0
- /package/dist/components/{tables-pagin → tablesp}/src/data.d.ts +0 -0
- /package/dist/components/{pagin → tablesp}/src/index2.cjs +0 -0
- /package/dist/components/{pagin → tablesp}/src/index2.js +0 -0
- /package/dist/components/{tables-pagin → tabless}/src/index2.cjs +0 -0
- /package/dist/components/{tables-pagin → tabless}/src/index2.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/column.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/column.d.ts +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/column.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns.d.ts +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns2.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns2.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/data.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/data.d.ts +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/data.js +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/index.d.ts +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/index2.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/index2.js +0 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createVNode, createBlock, createCommentVNode, mergeProps, toHandlers, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
+
import { Tablesv } from "../../tablesv/index.js";
|
|
3
|
+
import { Paging } from "../../paging/index.js";
|
|
4
|
+
import { dataEmit, dataProps, useInit } from "../../tables/common/pagin.js";
|
|
5
|
+
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: dataProps,
|
|
9
|
+
emits: dataEmit,
|
|
10
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
11
|
+
const cs = useCssName("tablesvp");
|
|
12
|
+
const slots = useSlots();
|
|
13
|
+
const props = __props;
|
|
14
|
+
const emit = __emit;
|
|
15
|
+
const refTable = ref();
|
|
16
|
+
const {
|
|
17
|
+
height,
|
|
18
|
+
getSelection,
|
|
19
|
+
initData,
|
|
20
|
+
getData,
|
|
21
|
+
empty,
|
|
22
|
+
loading,
|
|
23
|
+
tableList,
|
|
24
|
+
tableConfig,
|
|
25
|
+
onRadioChange,
|
|
26
|
+
onSortChange,
|
|
27
|
+
onListEvents,
|
|
28
|
+
onChange,
|
|
29
|
+
pagconfig,
|
|
30
|
+
formEvent,
|
|
31
|
+
onSizeChange,
|
|
32
|
+
onCurrentChange,
|
|
33
|
+
paginat,
|
|
34
|
+
data
|
|
35
|
+
} = useInit(props, emit, refTable);
|
|
36
|
+
__expose({
|
|
37
|
+
getSelection,
|
|
38
|
+
initData,
|
|
39
|
+
getList: getData,
|
|
40
|
+
empty
|
|
41
|
+
});
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createElementBlock("div", {
|
|
44
|
+
class: normalizeClass(unref(cs).z()),
|
|
45
|
+
style: normalizeStyle(unref(cs).vdo({ height: unref(height) }))
|
|
46
|
+
}, [
|
|
47
|
+
createVNode(unref(Tablesv), mergeProps(unref(tableConfig).config, toHandlers(unref(formEvent)), {
|
|
48
|
+
height: unref(height) == "auto" ? "auto" : "100%",
|
|
49
|
+
ref_key: "refTable",
|
|
50
|
+
ref: refTable,
|
|
51
|
+
class: [unref(cs).z("main")],
|
|
52
|
+
size: unref(tableConfig).config?.size,
|
|
53
|
+
value: unref(data).list,
|
|
54
|
+
list: unref(tableList),
|
|
55
|
+
paginat: unref(paginat),
|
|
56
|
+
loading: unref(loading),
|
|
57
|
+
options: props.options,
|
|
58
|
+
compons: props.compons,
|
|
59
|
+
onSortChange: unref(onSortChange),
|
|
60
|
+
onRadioChange: unref(onRadioChange),
|
|
61
|
+
onSelectionChange: unref(onChange),
|
|
62
|
+
onListEvents: unref(onListEvents)
|
|
63
|
+
}), createSlots({ _: 2 }, [
|
|
64
|
+
renderList(Object.keys(unref(slots)), (k, i) => {
|
|
65
|
+
return {
|
|
66
|
+
name: k,
|
|
67
|
+
fn: withCtx((scope) => [
|
|
68
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
69
|
+
])
|
|
70
|
+
};
|
|
71
|
+
})
|
|
72
|
+
]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"]),
|
|
73
|
+
unref(tableConfig).paginat?.is ? (openBlock(), createBlock(unref(Paging), mergeProps({ key: 0 }, unref(pagconfig), {
|
|
74
|
+
class: unref(cs).z("paginat"),
|
|
75
|
+
paginat: unref(paginat),
|
|
76
|
+
total: unref(data).total,
|
|
77
|
+
onSizeChange: unref(onSizeChange),
|
|
78
|
+
onCurrentChange: unref(onCurrentChange)
|
|
79
|
+
}), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : createCommentVNode("", true)
|
|
80
|
+
], 6);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
_sfc_main as default
|
|
86
|
+
};
|
|
@@ -391,7 +391,6 @@ const types = [
|
|
|
391
391
|
"bottomLeft"
|
|
392
392
|
];
|
|
393
393
|
function getAdjustObj(el, key, param) {
|
|
394
|
-
var _a;
|
|
395
394
|
key = lineToSmallHump.lineToSmallHump(key);
|
|
396
395
|
let obj = {
|
|
397
396
|
key,
|
|
@@ -403,7 +402,7 @@ function getAdjustObj(el, key, param) {
|
|
|
403
402
|
if (typeof param.adjoin == "boolean") {
|
|
404
403
|
obj.adjoin = getAdjoin(el, key);
|
|
405
404
|
} else if (typeof param.adjoin == "string") {
|
|
406
|
-
obj.adjoin =
|
|
405
|
+
obj.adjoin = el.parentElement?.querySelector(param.adjoin);
|
|
407
406
|
} else {
|
|
408
407
|
obj.adjoin = param.adjoin;
|
|
409
408
|
}
|
|
@@ -389,7 +389,6 @@ const types = [
|
|
|
389
389
|
"bottomLeft"
|
|
390
390
|
];
|
|
391
391
|
function getAdjustObj(el, key, param) {
|
|
392
|
-
var _a;
|
|
393
392
|
key = lineToSmallHump(key);
|
|
394
393
|
let obj = {
|
|
395
394
|
key,
|
|
@@ -401,7 +400,7 @@ function getAdjustObj(el, key, param) {
|
|
|
401
400
|
if (typeof param.adjoin == "boolean") {
|
|
402
401
|
obj.adjoin = getAdjoin(el, key);
|
|
403
402
|
} else if (typeof param.adjoin == "string") {
|
|
404
|
-
obj.adjoin =
|
|
403
|
+
obj.adjoin = el.parentElement?.querySelector(param.adjoin);
|
|
405
404
|
} else {
|
|
406
405
|
obj.adjoin = param.adjoin;
|
|
407
406
|
}
|
|
@@ -108,13 +108,14 @@ var config_default = {
|
|
|
108
108
|
"selects",
|
|
109
109
|
"switchs",
|
|
110
110
|
"text",
|
|
111
|
-
"
|
|
112
|
-
"pagin",
|
|
111
|
+
"paging",
|
|
113
112
|
"table-list",
|
|
114
113
|
"tables",
|
|
115
114
|
"tables-form",
|
|
116
|
-
"
|
|
117
|
-
"
|
|
115
|
+
"tablesp",
|
|
116
|
+
"tabless",
|
|
117
|
+
"tablesv",
|
|
118
|
+
"tablesvp"
|
|
118
119
|
],
|
|
119
120
|
"directives": [
|
|
120
121
|
"adjust",
|
|
@@ -108,13 +108,14 @@ var config_default = {
|
|
|
108
108
|
"selects",
|
|
109
109
|
"switchs",
|
|
110
110
|
"text",
|
|
111
|
-
"
|
|
112
|
-
"pagin",
|
|
111
|
+
"paging",
|
|
113
112
|
"table-list",
|
|
114
113
|
"tables",
|
|
115
114
|
"tables-form",
|
|
116
|
-
"
|
|
117
|
-
"
|
|
115
|
+
"tablesp",
|
|
116
|
+
"tabless",
|
|
117
|
+
"tablesv",
|
|
118
|
+
"tablesvp"
|
|
118
119
|
],
|
|
119
120
|
"directives": [
|
|
120
121
|
"adjust",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkP5447R3Icjs = require('./chunk-P5447R3I.cjs');
|
|
4
4
|
|
|
5
5
|
// expand/components.ts
|
|
6
6
|
var _humpToLine = require('@fangzhongya/utils/name/humpToLine');
|
|
@@ -29,11 +29,11 @@ function namefilter(c, name) {
|
|
|
29
29
|
function getFrom(mc, type) {
|
|
30
30
|
const filename = mc.replace(new RegExp("^" + config.prefix + "-"), "");
|
|
31
31
|
if (type == 1) {
|
|
32
|
-
if (
|
|
32
|
+
if (_chunkP5447R3Icjs.config_default.components.includes(filename)) {
|
|
33
33
|
const name = _lineToLargeHump.lineToLargeHump.call(void 0, mc);
|
|
34
34
|
const from = `${config.name}/components/${filename}/index`;
|
|
35
35
|
let sideEffects;
|
|
36
|
-
if (
|
|
36
|
+
if (_chunkP5447R3Icjs.config_default.sideEffects.includes(filename)) {
|
|
37
37
|
sideEffects = `${config.name}/components/${filename}/index.scss`;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
@@ -45,14 +45,14 @@ function getFrom(mc, type) {
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
} else {
|
|
48
|
-
if (
|
|
48
|
+
if (_chunkP5447R3Icjs.config_default.directives.includes(filename)) {
|
|
49
49
|
const name = "default";
|
|
50
50
|
const from = `${config.name}/directives/${filename}/index`;
|
|
51
51
|
return {
|
|
52
52
|
name,
|
|
53
53
|
from
|
|
54
54
|
};
|
|
55
|
-
} else if (
|
|
55
|
+
} else if (_chunkP5447R3Icjs.config_default.directives.includes("v-" + filename)) {
|
|
56
56
|
const name = "default";
|
|
57
57
|
const from = `${config.name}/directives/${"v-" + filename}/index`;
|
|
58
58
|
return {
|
package/dist/expand/config.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkP5447R3Icjs = require('./chunk-P5447R3I.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = _chunkP5447R3Icjs.config_default;
|
package/dist/expand/config.js
CHANGED
|
@@ -8,10 +8,7 @@ const { GlobalConfig } = enums.SymbolKey;
|
|
|
8
8
|
function useGlobalConfig(key, defaultValue) {
|
|
9
9
|
const config = vue.getCurrentInstance() ? vue.inject(getOnlyKey.getOnlyKey(GlobalConfig), globalConfig) : globalConfig;
|
|
10
10
|
if (key) {
|
|
11
|
-
return vue.computed(() =>
|
|
12
|
-
var _a;
|
|
13
|
-
return ((_a = config.value) == null ? void 0 : _a[key]) ?? defaultValue;
|
|
14
|
-
});
|
|
11
|
+
return vue.computed(() => config.value?.[key] ?? defaultValue);
|
|
15
12
|
} else {
|
|
16
13
|
return config;
|
|
17
14
|
}
|
|
@@ -27,7 +24,7 @@ function provideGlobalConfig(config, app, global = false) {
|
|
|
27
24
|
const provideFn = inSetup ? vue.provide : void 0;
|
|
28
25
|
const context = vue.computed(() => {
|
|
29
26
|
const cfg = vue.unref(config);
|
|
30
|
-
if (!
|
|
27
|
+
if (!oldConfig?.value) return cfg;
|
|
31
28
|
return mergeConfig(oldConfig.value, cfg);
|
|
32
29
|
});
|
|
33
30
|
if (provideFn) {
|
|
@@ -6,10 +6,7 @@ const { GlobalConfig } = SymbolKey;
|
|
|
6
6
|
function useGlobalConfig(key, defaultValue) {
|
|
7
7
|
const config = getCurrentInstance() ? inject(getOnlyKey(GlobalConfig), globalConfig) : globalConfig;
|
|
8
8
|
if (key) {
|
|
9
|
-
return computed(() =>
|
|
10
|
-
var _a;
|
|
11
|
-
return ((_a = config.value) == null ? void 0 : _a[key]) ?? defaultValue;
|
|
12
|
-
});
|
|
9
|
+
return computed(() => config.value?.[key] ?? defaultValue);
|
|
13
10
|
} else {
|
|
14
11
|
return config;
|
|
15
12
|
}
|
|
@@ -25,7 +22,7 @@ function provideGlobalConfig(config, app, global = false) {
|
|
|
25
22
|
const provideFn = inSetup ? provide : void 0;
|
|
26
23
|
const context = computed(() => {
|
|
27
24
|
const cfg = unref(config);
|
|
28
|
-
if (!
|
|
25
|
+
if (!oldConfig?.value) return cfg;
|
|
29
26
|
return mergeConfig(oldConfig.value, cfg);
|
|
30
27
|
});
|
|
31
28
|
if (provideFn) {
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const index$
|
|
4
|
-
const index$
|
|
5
|
-
const index$
|
|
3
|
+
const index$1X = require("./components/index.cjs");
|
|
4
|
+
const index$1Y = require("./directives/index.cjs");
|
|
5
|
+
const index$1Z = require("./icons/index.cjs");
|
|
6
6
|
const index$i = require("./components/loading/index.cjs");
|
|
7
7
|
const index$j = require("./components/loading/src/index.cjs");
|
|
8
8
|
const index$1 = require("./components/cs-config/index.cjs");
|
|
@@ -111,32 +111,33 @@ const index$1F = require("./components/selector/index.cjs");
|
|
|
111
111
|
const index$1G = require("./components/selects/index.cjs");
|
|
112
112
|
const index$1H = require("./components/switchs/index.cjs");
|
|
113
113
|
const index$1I = require("./components/text/index.cjs");
|
|
114
|
-
const index$1J = require("./components/
|
|
115
|
-
const index$1K = require("./components/
|
|
116
|
-
const index$1L = require("./components/
|
|
117
|
-
const index$1M = require("./components/tables
|
|
118
|
-
const index$1N = require("./components/
|
|
119
|
-
const index$1O = require("./components/
|
|
120
|
-
const index$1P = require("./components/
|
|
121
|
-
const index$1Q = require("./
|
|
122
|
-
const index$1R = require("./directives/
|
|
123
|
-
const index$1S = require("./directives/
|
|
124
|
-
const index$1T = require("./directives/
|
|
125
|
-
const index$1U = require("./directives/
|
|
126
|
-
const index$1V = require("./directives/
|
|
114
|
+
const index$1J = require("./components/paging/index.cjs");
|
|
115
|
+
const index$1K = require("./components/table-list/index.cjs");
|
|
116
|
+
const index$1L = require("./components/tables-form/index.cjs");
|
|
117
|
+
const index$1M = require("./components/tables/index.cjs");
|
|
118
|
+
const index$1N = require("./components/tablesp/index.cjs");
|
|
119
|
+
const index$1O = require("./components/tabless/index.cjs");
|
|
120
|
+
const index$1P = require("./components/tablesv/index.cjs");
|
|
121
|
+
const index$1Q = require("./components/tablesvp/index.cjs");
|
|
122
|
+
const index$1R = require("./directives/adjust/index.cjs");
|
|
123
|
+
const index$1S = require("./directives/drag/index.cjs");
|
|
124
|
+
const index$1T = require("./directives/expose/index.cjs");
|
|
125
|
+
const index$1U = require("./directives/locus/index.cjs");
|
|
126
|
+
const index$1V = require("./directives/scroll/index.cjs");
|
|
127
|
+
const index$1W = require("./directives/stick/index.cjs");
|
|
127
128
|
const index = {
|
|
128
129
|
install: function(app) {
|
|
129
|
-
const com = index$
|
|
130
|
+
const com = index$1X;
|
|
130
131
|
Object.keys(com).forEach((key) => {
|
|
131
132
|
if (com[key].install) {
|
|
132
133
|
com[key].install(app);
|
|
133
134
|
}
|
|
134
135
|
});
|
|
135
|
-
const dire = index$
|
|
136
|
+
const dire = index$1Y;
|
|
136
137
|
Object.keys(dire).forEach((key) => {
|
|
137
138
|
app.directive(key, dire[key]);
|
|
138
139
|
});
|
|
139
|
-
index$
|
|
140
|
+
index$1Z.default(app);
|
|
140
141
|
}
|
|
141
142
|
};
|
|
142
143
|
exports.Loading = index$i.Loading;
|
|
@@ -248,17 +249,18 @@ exports.Selector = index$1F.Selector;
|
|
|
248
249
|
exports.Selects = index$1G.Selects;
|
|
249
250
|
exports.Switchs = index$1H.Switchs;
|
|
250
251
|
exports.Text = index$1I.Text;
|
|
251
|
-
exports.
|
|
252
|
-
exports.
|
|
253
|
-
exports.
|
|
254
|
-
exports.
|
|
255
|
-
exports.
|
|
256
|
-
exports.
|
|
257
|
-
exports.
|
|
258
|
-
exports.
|
|
259
|
-
exports.
|
|
260
|
-
exports.
|
|
261
|
-
exports.
|
|
262
|
-
exports.
|
|
263
|
-
exports.
|
|
252
|
+
exports.Paging = index$1J.Paging;
|
|
253
|
+
exports.TableList = index$1K.TableList;
|
|
254
|
+
exports.TablesForm = index$1L.TablesForm;
|
|
255
|
+
exports.Tables = index$1M.Tables;
|
|
256
|
+
exports.Tablesp = index$1N.Tablesp;
|
|
257
|
+
exports.Tabless = index$1O.Tabless;
|
|
258
|
+
exports.Tablesv = index$1P.Tablesv;
|
|
259
|
+
exports.Tablesvp = index$1Q.Tablesvp;
|
|
260
|
+
exports.Adjust = index$1R.default;
|
|
261
|
+
exports.Drag = index$1S.default;
|
|
262
|
+
exports.Expose = index$1T.default;
|
|
263
|
+
exports.Locus = index$1U.default;
|
|
264
|
+
exports.Scroll = index$1V.default;
|
|
265
|
+
exports.Stick = index$1W.default;
|
|
264
266
|
exports.default = index;
|
package/dist/index.css
CHANGED
|
@@ -453,6 +453,64 @@
|
|
|
453
453
|
margin-right: 10px;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
+
.tables {
|
|
457
|
+
width: 100%;
|
|
458
|
+
min-height: 100px;
|
|
459
|
+
position: relative;
|
|
460
|
+
flex: 1;
|
|
461
|
+
display: flex;
|
|
462
|
+
flex-direction: column;
|
|
463
|
+
}
|
|
464
|
+
.tables-table {
|
|
465
|
+
background-color: transparent;
|
|
466
|
+
--el-table-header-bg-color: rgb(248, 248, 249);
|
|
467
|
+
}
|
|
468
|
+
.tables-table.is-absolute {
|
|
469
|
+
position: absolute;
|
|
470
|
+
top: 0;
|
|
471
|
+
right: 0;
|
|
472
|
+
bottom: 0;
|
|
473
|
+
left: 0;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.paging {
|
|
477
|
+
padding: 10px;
|
|
478
|
+
}
|
|
479
|
+
.paging-slot {
|
|
480
|
+
padding-left: 10px;
|
|
481
|
+
font-size: 14px;
|
|
482
|
+
font-weight: 400;
|
|
483
|
+
color: #9b9b9b;
|
|
484
|
+
white-space: pre-wrap;
|
|
485
|
+
}
|
|
486
|
+
.paging .el-pagination__total {
|
|
487
|
+
font-size: 14px;
|
|
488
|
+
font-weight: 400;
|
|
489
|
+
color: #9b9b9b;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.tablesp {
|
|
493
|
+
width: 100%;
|
|
494
|
+
height: var(--tablesp-height);
|
|
495
|
+
display: flex;
|
|
496
|
+
flex-direction: column;
|
|
497
|
+
}
|
|
498
|
+
.tablesp-main {
|
|
499
|
+
display: flex;
|
|
500
|
+
flex-direction: column;
|
|
501
|
+
flex: 1;
|
|
502
|
+
width: 100%;
|
|
503
|
+
}
|
|
504
|
+
.tablesp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
505
|
+
display: none;
|
|
506
|
+
}
|
|
507
|
+
.tablesp-paginat {
|
|
508
|
+
overflow: hidden;
|
|
509
|
+
}
|
|
510
|
+
.tablesp-paginat .el-pagination {
|
|
511
|
+
justify-content: flex-end;
|
|
512
|
+
}
|
|
513
|
+
|
|
456
514
|
.page {
|
|
457
515
|
height: 100%;
|
|
458
516
|
width: 100%;
|
|
@@ -645,7 +703,30 @@
|
|
|
645
703
|
height: 100%;
|
|
646
704
|
}
|
|
647
705
|
|
|
648
|
-
.
|
|
706
|
+
.tabless {
|
|
707
|
+
width: 100%;
|
|
708
|
+
height: var(--tabless-height);
|
|
709
|
+
flex: 1;
|
|
710
|
+
display: flex;
|
|
711
|
+
flex-direction: column;
|
|
712
|
+
}
|
|
713
|
+
.tabless-main {
|
|
714
|
+
display: flex;
|
|
715
|
+
flex-direction: column;
|
|
716
|
+
flex: 1;
|
|
717
|
+
width: 100%;
|
|
718
|
+
}
|
|
719
|
+
.tabless-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
720
|
+
display: none;
|
|
721
|
+
}
|
|
722
|
+
.tabless-paginat {
|
|
723
|
+
overflow: hidden;
|
|
724
|
+
}
|
|
725
|
+
.tabless-paginat .el-pagination {
|
|
726
|
+
justify-content: flex-end;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.tablesv {
|
|
649
730
|
width: 100%;
|
|
650
731
|
min-height: 100px;
|
|
651
732
|
position: relative;
|
|
@@ -653,74 +734,73 @@
|
|
|
653
734
|
display: flex;
|
|
654
735
|
flex-direction: column;
|
|
655
736
|
}
|
|
656
|
-
.
|
|
737
|
+
.tablesv-table {
|
|
657
738
|
background-color: transparent;
|
|
658
|
-
--el-table-header-bg-color: rgb(248, 248, 249);
|
|
659
739
|
}
|
|
660
|
-
.
|
|
740
|
+
.tablesv-table.is-absolute {
|
|
661
741
|
position: absolute;
|
|
662
742
|
top: 0;
|
|
663
743
|
right: 0;
|
|
664
744
|
bottom: 0;
|
|
665
745
|
left: 0;
|
|
666
746
|
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
padding:
|
|
747
|
+
.tablesv-table .vxe-body--column {
|
|
748
|
+
overflow: hidden;
|
|
749
|
+
padding: 8px 0;
|
|
670
750
|
}
|
|
671
|
-
.
|
|
672
|
-
padding-left:
|
|
673
|
-
font-size: 14px;
|
|
674
|
-
font-weight: 400;
|
|
675
|
-
color: #9b9b9b;
|
|
751
|
+
.tablesv-table .col--checkbox .vxe-checkbox--label {
|
|
752
|
+
padding-left: 0;
|
|
676
753
|
}
|
|
677
|
-
.
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
color: #9b9b9b;
|
|
754
|
+
.tablesv .fv-custom-checkbox {
|
|
755
|
+
cursor: pointer;
|
|
756
|
+
position: relative;
|
|
681
757
|
}
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
width: 100%;
|
|
685
|
-
height: var(--tables-pagin-height);
|
|
686
|
-
display: flex;
|
|
687
|
-
flex-direction: column;
|
|
758
|
+
.tablesv .fv-custom-checkbox.is-disabled {
|
|
759
|
+
cursor: not-allowed;
|
|
688
760
|
}
|
|
689
|
-
.
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
flex: 1;
|
|
693
|
-
width: 100%;
|
|
761
|
+
.tablesv .fv-custom-checkbox .el-checkbox__label {
|
|
762
|
+
color: var(--vxe-table-header-font-color);
|
|
763
|
+
font-weight: var(--vxe-table-header-font-weight);
|
|
694
764
|
}
|
|
695
|
-
.
|
|
696
|
-
|
|
765
|
+
.tablesv .fv-custom-checkbox .fv-custom-checkbox-mask {
|
|
766
|
+
position: absolute;
|
|
767
|
+
top: 0;
|
|
768
|
+
right: 0;
|
|
769
|
+
bottom: 0;
|
|
770
|
+
left: 0;
|
|
771
|
+
z-index: 1;
|
|
772
|
+
opacity: 0;
|
|
697
773
|
}
|
|
698
|
-
.
|
|
699
|
-
|
|
774
|
+
.tablesv .fv-custom-radio {
|
|
775
|
+
cursor: pointer;
|
|
776
|
+
position: relative;
|
|
700
777
|
}
|
|
701
|
-
.
|
|
702
|
-
|
|
778
|
+
.tablesv .fv-custom-radio.is-disabled {
|
|
779
|
+
cursor: not-allowed;
|
|
703
780
|
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
width: 100%;
|
|
707
|
-
height: 100%;
|
|
708
|
-
flex: 1;
|
|
709
|
-
display: flex;
|
|
710
|
-
flex-direction: column;
|
|
781
|
+
.tablesv .fv-custom-radio .el-radio {
|
|
782
|
+
height: auto;
|
|
711
783
|
}
|
|
712
|
-
.
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
flex: 1;
|
|
716
|
-
width: 100%;
|
|
784
|
+
.tablesv .fv-custom-radio.center .el-radio {
|
|
785
|
+
text-align: center;
|
|
786
|
+
display: table-cell;
|
|
717
787
|
}
|
|
718
|
-
.
|
|
788
|
+
.tablesv .fv-custom-radio.center .el-radio__label {
|
|
719
789
|
display: none;
|
|
720
790
|
}
|
|
721
|
-
.
|
|
722
|
-
|
|
791
|
+
.tablesv .fv-custom-radio.right .el-radio {
|
|
792
|
+
text-align: right;
|
|
793
|
+
display: table-cell;
|
|
723
794
|
}
|
|
724
|
-
.
|
|
725
|
-
|
|
795
|
+
.tablesv .fv-custom-radio.right .el-radio__label {
|
|
796
|
+
display: none;
|
|
797
|
+
}
|
|
798
|
+
.tablesv .fv-custom-radio .fv-custom-radio-mask {
|
|
799
|
+
position: absolute;
|
|
800
|
+
top: 0;
|
|
801
|
+
right: 0;
|
|
802
|
+
bottom: 0;
|
|
803
|
+
left: 0;
|
|
804
|
+
z-index: 1;
|
|
805
|
+
opacity: 0;
|
|
726
806
|
}
|
package/dist/index.js
CHANGED
|
@@ -109,13 +109,14 @@ import { Selector } from "./components/selector/index.js";
|
|
|
109
109
|
import { Selects } from "./components/selects/index.js";
|
|
110
110
|
import { Switchs } from "./components/switchs/index.js";
|
|
111
111
|
import { Text } from "./components/text/index.js";
|
|
112
|
-
import {
|
|
113
|
-
import { Pagin } from "./components/pagin/index.js";
|
|
112
|
+
import { Paging } from "./components/paging/index.js";
|
|
114
113
|
import { TableList } from "./components/table-list/index.js";
|
|
115
114
|
import { TablesForm } from "./components/tables-form/index.js";
|
|
116
|
-
import { TablesPagin } from "./components/tables-pagin/index.js";
|
|
117
115
|
import { Tables } from "./components/tables/index.js";
|
|
118
|
-
import {
|
|
116
|
+
import { Tablesp } from "./components/tablesp/index.js";
|
|
117
|
+
import { Tabless } from "./components/tabless/index.js";
|
|
118
|
+
import { Tablesv } from "./components/tablesv/index.js";
|
|
119
|
+
import { Tablesvp } from "./components/tablesvp/index.js";
|
|
119
120
|
import { default as default2 } from "./directives/adjust/index.js";
|
|
120
121
|
import { default as default3 } from "./directives/drag/index.js";
|
|
121
122
|
import { default as default4 } from "./directives/expose/index.js";
|
|
@@ -184,7 +185,6 @@ export {
|
|
|
184
185
|
DropdownMenu,
|
|
185
186
|
Edit,
|
|
186
187
|
EditFloat,
|
|
187
|
-
ElTables,
|
|
188
188
|
default4 as Expose,
|
|
189
189
|
Form,
|
|
190
190
|
FormItem,
|
|
@@ -217,8 +217,8 @@ export {
|
|
|
217
217
|
Option,
|
|
218
218
|
OptionGroup,
|
|
219
219
|
Page,
|
|
220
|
-
Pagin,
|
|
221
220
|
Pagination,
|
|
221
|
+
Paging,
|
|
222
222
|
Popconfirm,
|
|
223
223
|
Popover,
|
|
224
224
|
Popup,
|
|
@@ -245,7 +245,10 @@ export {
|
|
|
245
245
|
TableList,
|
|
246
246
|
Tables,
|
|
247
247
|
TablesForm,
|
|
248
|
-
|
|
248
|
+
Tablesp,
|
|
249
|
+
Tabless,
|
|
250
|
+
Tablesv,
|
|
251
|
+
Tablesvp,
|
|
249
252
|
Tabs,
|
|
250
253
|
Text,
|
|
251
254
|
TimePicker,
|
|
@@ -257,7 +260,6 @@ export {
|
|
|
257
260
|
Upload,
|
|
258
261
|
UserSelect,
|
|
259
262
|
vLoading as VLoading,
|
|
260
|
-
VxeTables,
|
|
261
263
|
Window,
|
|
262
264
|
index as default,
|
|
263
265
|
vLoading2 as vLoading
|
package/dist/index2.css
CHANGED