@fangzhongya/fang-ui 0.0.29 → 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/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/dialog/src/index.cjs +5 -5
- package/dist/components/dialog/src/index.js +2 -2
- package/dist/components/dialog/style/index2.scss +1 -1
- package/dist/components/forms/index.d.ts +52 -149
- package/dist/components/forms/src/index.cjs +9 -8
- package/dist/components/forms/src/index.d.ts +102 -297
- package/dist/components/forms/src/index.js +2 -1
- package/dist/components/forms/style/index2.scss +6 -0
- package/dist/components/forms-div/style/index2.scss +1 -0
- package/dist/components/forms-item/src/index.cjs +6 -6
- package/dist/components/forms-item/src/index.js +1 -1
- package/dist/components/forms-item/style/index2.scss +4 -0
- package/dist/components/forms-items/style/index2.scss +2 -0
- 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/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 +6 -6
- package/dist/components/menus/src/menu-ll.js +1 -1
- 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 +16 -14
- package/dist/components/page/src/index.d.ts +5111 -0
- package/dist/components/page/src/index.js +5 -3
- 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/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 +2 -2
- package/dist/components/tables/src/index.cjs +158 -97
- package/dist/components/tables/src/index.d.ts +3103 -0
- package/dist/components/tables/src/index.js +158 -97
- 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/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 +5 -5
- package/dist/components/tablesp/src/index.d.ts +3540 -0
- package/dist/components/{tables-pagin → tablesp}/src/index.js +5 -5
- 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/index.cjs +1 -1
- package/dist/components/{vxe-tables → tablesv}/src/index.js +1 -1
- 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/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/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 +6 -6
- package/dist/components/el-tables/index.scss +0 -26
- package/dist/components/el-tables/src/index.cjs +0 -174
- package/dist/components/el-tables/src/index.js +0 -174
- /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/columns3.cjs +0 -0
- /package/dist/components/{vxe-tables → tablesv}/src/columns3.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
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const data = require("./data.cjs");
|
|
5
|
-
const elementPlus = require("element-plus");
|
|
6
|
-
const columns_vue_vue_type_script_lang = require("./columns.cjs");
|
|
7
|
-
const index = require("../../../hooks/cssname/index.cjs");
|
|
8
|
-
const index$1 = require("../../../hooks/inherit/index.cjs");
|
|
9
|
-
const use = require("../../common/use.cjs");
|
|
10
|
-
const compons = require("../../common/compons.cjs");
|
|
11
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
-
__name: "index",
|
|
13
|
-
props: data.dataProps,
|
|
14
|
-
emits: data.dataEmits,
|
|
15
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
|
-
const cs = index.useCssName("tables");
|
|
17
|
-
const slots = vue.useSlots();
|
|
18
|
-
const attrs = index$1.useInherit(vue.useAttrs());
|
|
19
|
-
const props = __props;
|
|
20
|
-
vue.provide("tables-compons", compons.getCompons(props.compons));
|
|
21
|
-
const tableRef = vue.ref();
|
|
22
|
-
const emit = __emit;
|
|
23
|
-
const rowObj = vue.ref();
|
|
24
|
-
const isfocus = vue.ref(false);
|
|
25
|
-
function onClick() {
|
|
26
|
-
isfocus.value = true;
|
|
27
|
-
}
|
|
28
|
-
function isComponSelected(obj, scope) {
|
|
29
|
-
if (use.uesObjComponSelected(obj, props)) {
|
|
30
|
-
if (rowObj.value === scope.row) {
|
|
31
|
-
if (isfocus.value) {
|
|
32
|
-
return true;
|
|
33
|
-
} else {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
} else {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
} else {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
let isSort = false;
|
|
44
|
-
const tableDefaultSort = vue.computed(() => {
|
|
45
|
-
return {
|
|
46
|
-
prop: props.defaultSort?.prop,
|
|
47
|
-
order: props.defaultSort?.order
|
|
48
|
-
};
|
|
49
|
-
});
|
|
50
|
-
const rowStyle = vue.computed(() => {
|
|
51
|
-
const height = props.lineHeight;
|
|
52
|
-
const rowStyle2 = attrs.assem.rowStyle;
|
|
53
|
-
if (height) {
|
|
54
|
-
if (rowStyle2) {
|
|
55
|
-
if (typeof rowStyle2 == "object") {
|
|
56
|
-
rowStyle2["height"] = height + "px";
|
|
57
|
-
return rowStyle2;
|
|
58
|
-
} else {
|
|
59
|
-
return rowStyle2;
|
|
60
|
-
}
|
|
61
|
-
} else {
|
|
62
|
-
return {
|
|
63
|
-
height: height + "px"
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
} else {
|
|
67
|
-
return {
|
|
68
|
-
height: "",
|
|
69
|
-
...rowStyle2
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
vue.watch(tableDefaultSort, (newValue, oldValue) => {
|
|
74
|
-
let prop = tableDefaultSort.value.prop;
|
|
75
|
-
let order = tableDefaultSort.value.order;
|
|
76
|
-
if (tableRef.value) {
|
|
77
|
-
if (prop) {
|
|
78
|
-
isSort = true;
|
|
79
|
-
tableRef.value.sort(prop, order);
|
|
80
|
-
} else {
|
|
81
|
-
tableRef.value.clearSort();
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
function sortChange(obj) {
|
|
86
|
-
if (isSort) {
|
|
87
|
-
isSort = false;
|
|
88
|
-
return false;
|
|
89
|
-
}
|
|
90
|
-
emit("sort-change", obj);
|
|
91
|
-
}
|
|
92
|
-
function onListEvents(...arr) {
|
|
93
|
-
emit("list-events", ...arr);
|
|
94
|
-
}
|
|
95
|
-
function onRowClick(row, column, ...arr) {
|
|
96
|
-
isfocus.value = true;
|
|
97
|
-
rowObj.value = row;
|
|
98
|
-
emit("row-click", row, column, ...arr);
|
|
99
|
-
}
|
|
100
|
-
function toggleRowSelection(...arr) {
|
|
101
|
-
tableRef.value.toggleRowSelection(...arr);
|
|
102
|
-
}
|
|
103
|
-
function clearSelection() {
|
|
104
|
-
tableRef.value.clearSelection();
|
|
105
|
-
}
|
|
106
|
-
vue.onMounted(() => {
|
|
107
|
-
if (window) {
|
|
108
|
-
window.addEventListener("click", () => {
|
|
109
|
-
isfocus.value = false;
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
__expose({
|
|
114
|
-
...data.dataExpose,
|
|
115
|
-
clearSelection,
|
|
116
|
-
toggleRowSelection
|
|
117
|
-
});
|
|
118
|
-
return (_ctx, _cache) => {
|
|
119
|
-
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
120
|
-
class: vue.unref(cs).z()
|
|
121
|
-
}, vue.unref(attrs).root), [
|
|
122
|
-
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTable), vue.mergeProps(vue.unref(attrs).assem, {
|
|
123
|
-
align: "left",
|
|
124
|
-
ref_key: "tableRef",
|
|
125
|
-
ref: tableRef,
|
|
126
|
-
class: [vue.unref(cs).z("table"), vue.unref(cs).is("absolute", props.adaptive)],
|
|
127
|
-
height: props.height,
|
|
128
|
-
"scroll-selector": ".el-scrollbar .el-scrollbar__wrap",
|
|
129
|
-
"row-style": rowStyle.value,
|
|
130
|
-
data: props.value,
|
|
131
|
-
"default-sort": tableDefaultSort.value,
|
|
132
|
-
onRowClick,
|
|
133
|
-
onSortChange: sortChange,
|
|
134
|
-
onClick: vue.withModifiers(onClick, ["stop"])
|
|
135
|
-
}), {
|
|
136
|
-
empty: vue.withCtx(() => [
|
|
137
|
-
vue.renderSlot(_ctx.$slots, "no-data", {}, () => [
|
|
138
|
-
vue.createElementVNode("div", {
|
|
139
|
-
class: vue.normalizeClass(vue.unref(cs).z("no-data"))
|
|
140
|
-
}, _cache[0] || (_cache[0] = [
|
|
141
|
-
vue.createElementVNode("span", null, "暂无数据", -1)
|
|
142
|
-
]), 2)
|
|
143
|
-
])
|
|
144
|
-
]),
|
|
145
|
-
default: vue.withCtx(() => [
|
|
146
|
-
vue.createVNode(columns_vue_vue_type_script_lang.default, {
|
|
147
|
-
table: vue.unref(attrs).assem,
|
|
148
|
-
value: props.value,
|
|
149
|
-
list: props.list,
|
|
150
|
-
options: props.options,
|
|
151
|
-
isComponSelected,
|
|
152
|
-
onListEvents
|
|
153
|
-
}, vue.createSlots({ _: 2 }, [
|
|
154
|
-
vue.renderList(Object.keys(vue.unref(slots)).filter(
|
|
155
|
-
(v) => !["empty", "no-data"].includes(v)
|
|
156
|
-
), (k, i) => {
|
|
157
|
-
return {
|
|
158
|
-
name: k,
|
|
159
|
-
fn: vue.withCtx((scope) => [
|
|
160
|
-
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
|
|
161
|
-
])
|
|
162
|
-
};
|
|
163
|
-
})
|
|
164
|
-
]), 1032, ["table", "value", "list", "options"])
|
|
165
|
-
]),
|
|
166
|
-
_: 3
|
|
167
|
-
}, 16, ["class", "height", "row-style", "data", "default-sort"])), [
|
|
168
|
-
[vue.unref(elementPlus.vLoading), props.loading]
|
|
169
|
-
])
|
|
170
|
-
], 16);
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
exports.default = _sfc_main;
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useSlots, useAttrs, provide, ref, computed, watch, onMounted, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, withModifiers, withCtx, createVNode, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, normalizeClass } from "vue";
|
|
2
|
-
import { dataEmits, dataProps, dataExpose } from "./data.js";
|
|
3
|
-
import { ElTable, vLoading } from "element-plus";
|
|
4
|
-
import _sfc_main$1 from "./columns.js";
|
|
5
|
-
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
6
|
-
import { useInherit } from "../../../hooks/inherit/index.js";
|
|
7
|
-
import { uesObjComponSelected } from "../../common/use.js";
|
|
8
|
-
import { getCompons } from "../../common/compons.js";
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "index",
|
|
11
|
-
props: dataProps,
|
|
12
|
-
emits: dataEmits,
|
|
13
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
14
|
-
const cs = useCssName("tables");
|
|
15
|
-
const slots = useSlots();
|
|
16
|
-
const attrs = useInherit(useAttrs());
|
|
17
|
-
const props = __props;
|
|
18
|
-
provide("tables-compons", getCompons(props.compons));
|
|
19
|
-
const tableRef = ref();
|
|
20
|
-
const emit = __emit;
|
|
21
|
-
const rowObj = ref();
|
|
22
|
-
const isfocus = ref(false);
|
|
23
|
-
function onClick() {
|
|
24
|
-
isfocus.value = true;
|
|
25
|
-
}
|
|
26
|
-
function isComponSelected(obj, scope) {
|
|
27
|
-
if (uesObjComponSelected(obj, props)) {
|
|
28
|
-
if (rowObj.value === scope.row) {
|
|
29
|
-
if (isfocus.value) {
|
|
30
|
-
return true;
|
|
31
|
-
} else {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
} else {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
} else {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
let isSort = false;
|
|
42
|
-
const tableDefaultSort = computed(() => {
|
|
43
|
-
return {
|
|
44
|
-
prop: props.defaultSort?.prop,
|
|
45
|
-
order: props.defaultSort?.order
|
|
46
|
-
};
|
|
47
|
-
});
|
|
48
|
-
const rowStyle = computed(() => {
|
|
49
|
-
const height = props.lineHeight;
|
|
50
|
-
const rowStyle2 = attrs.assem.rowStyle;
|
|
51
|
-
if (height) {
|
|
52
|
-
if (rowStyle2) {
|
|
53
|
-
if (typeof rowStyle2 == "object") {
|
|
54
|
-
rowStyle2["height"] = height + "px";
|
|
55
|
-
return rowStyle2;
|
|
56
|
-
} else {
|
|
57
|
-
return rowStyle2;
|
|
58
|
-
}
|
|
59
|
-
} else {
|
|
60
|
-
return {
|
|
61
|
-
height: height + "px"
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
} else {
|
|
65
|
-
return {
|
|
66
|
-
height: "",
|
|
67
|
-
...rowStyle2
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
watch(tableDefaultSort, (newValue, oldValue) => {
|
|
72
|
-
let prop = tableDefaultSort.value.prop;
|
|
73
|
-
let order = tableDefaultSort.value.order;
|
|
74
|
-
if (tableRef.value) {
|
|
75
|
-
if (prop) {
|
|
76
|
-
isSort = true;
|
|
77
|
-
tableRef.value.sort(prop, order);
|
|
78
|
-
} else {
|
|
79
|
-
tableRef.value.clearSort();
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
function sortChange(obj) {
|
|
84
|
-
if (isSort) {
|
|
85
|
-
isSort = false;
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
emit("sort-change", obj);
|
|
89
|
-
}
|
|
90
|
-
function onListEvents(...arr) {
|
|
91
|
-
emit("list-events", ...arr);
|
|
92
|
-
}
|
|
93
|
-
function onRowClick(row, column, ...arr) {
|
|
94
|
-
isfocus.value = true;
|
|
95
|
-
rowObj.value = row;
|
|
96
|
-
emit("row-click", row, column, ...arr);
|
|
97
|
-
}
|
|
98
|
-
function toggleRowSelection(...arr) {
|
|
99
|
-
tableRef.value.toggleRowSelection(...arr);
|
|
100
|
-
}
|
|
101
|
-
function clearSelection() {
|
|
102
|
-
tableRef.value.clearSelection();
|
|
103
|
-
}
|
|
104
|
-
onMounted(() => {
|
|
105
|
-
if (window) {
|
|
106
|
-
window.addEventListener("click", () => {
|
|
107
|
-
isfocus.value = false;
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
__expose({
|
|
112
|
-
...dataExpose,
|
|
113
|
-
clearSelection,
|
|
114
|
-
toggleRowSelection
|
|
115
|
-
});
|
|
116
|
-
return (_ctx, _cache) => {
|
|
117
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
118
|
-
class: unref(cs).z()
|
|
119
|
-
}, unref(attrs).root), [
|
|
120
|
-
withDirectives((openBlock(), createBlock(unref(ElTable), mergeProps(unref(attrs).assem, {
|
|
121
|
-
align: "left",
|
|
122
|
-
ref_key: "tableRef",
|
|
123
|
-
ref: tableRef,
|
|
124
|
-
class: [unref(cs).z("table"), unref(cs).is("absolute", props.adaptive)],
|
|
125
|
-
height: props.height,
|
|
126
|
-
"scroll-selector": ".el-scrollbar .el-scrollbar__wrap",
|
|
127
|
-
"row-style": rowStyle.value,
|
|
128
|
-
data: props.value,
|
|
129
|
-
"default-sort": tableDefaultSort.value,
|
|
130
|
-
onRowClick,
|
|
131
|
-
onSortChange: sortChange,
|
|
132
|
-
onClick: withModifiers(onClick, ["stop"])
|
|
133
|
-
}), {
|
|
134
|
-
empty: withCtx(() => [
|
|
135
|
-
renderSlot(_ctx.$slots, "no-data", {}, () => [
|
|
136
|
-
createElementVNode("div", {
|
|
137
|
-
class: normalizeClass(unref(cs).z("no-data"))
|
|
138
|
-
}, _cache[0] || (_cache[0] = [
|
|
139
|
-
createElementVNode("span", null, "暂无数据", -1)
|
|
140
|
-
]), 2)
|
|
141
|
-
])
|
|
142
|
-
]),
|
|
143
|
-
default: withCtx(() => [
|
|
144
|
-
createVNode(_sfc_main$1, {
|
|
145
|
-
table: unref(attrs).assem,
|
|
146
|
-
value: props.value,
|
|
147
|
-
list: props.list,
|
|
148
|
-
options: props.options,
|
|
149
|
-
isComponSelected,
|
|
150
|
-
onListEvents
|
|
151
|
-
}, createSlots({ _: 2 }, [
|
|
152
|
-
renderList(Object.keys(unref(slots)).filter(
|
|
153
|
-
(v) => !["empty", "no-data"].includes(v)
|
|
154
|
-
), (k, i) => {
|
|
155
|
-
return {
|
|
156
|
-
name: k,
|
|
157
|
-
fn: withCtx((scope) => [
|
|
158
|
-
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
|
|
159
|
-
])
|
|
160
|
-
};
|
|
161
|
-
})
|
|
162
|
-
]), 1032, ["table", "value", "list", "options"])
|
|
163
|
-
]),
|
|
164
|
-
_: 3
|
|
165
|
-
}, 16, ["class", "height", "row-style", "data", "default-sort"])), [
|
|
166
|
-
[unref(vLoading), props.loading]
|
|
167
|
-
])
|
|
168
|
-
], 16);
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
export {
|
|
173
|
-
_sfc_main as default
|
|
174
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|