@fangzhongya/fang-ui 0.1.27 → 0.1.29
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/index.css +4 -0
- package/dist/components/array/src/index2.cjs +5 -5
- package/dist/components/array/src/index2.js +2 -2
- package/dist/components/audios/index.css +4 -0
- package/dist/components/box/index.css +4 -0
- package/dist/components/box-adjust/index.css +4 -0
- package/dist/components/box-local/index.css +4 -0
- package/dist/components/box-mask/index.css +4 -0
- package/dist/components/box-title/index.css +4 -0
- package/dist/components/buttons/index.css +4 -0
- package/dist/components/cascaders/index.css +4 -0
- package/dist/components/checks/index.css +4 -0
- package/dist/components/common/compons/components.cjs +52 -0
- package/dist/components/common/compons/components.d.ts +27 -0
- package/dist/components/common/compons/components.js +52 -0
- package/dist/components/common/compons/index.scss +23 -0
- package/dist/components/common/compons/index2.scss +23 -0
- package/dist/components/common/use.cjs +87 -16
- package/dist/components/common/use.d.ts +28 -5
- package/dist/components/common/use.js +88 -17
- package/dist/components/dates/index.css +4 -0
- package/dist/components/dates-divide/index.css +4 -0
- package/dist/components/dates-picker/index.css +4 -0
- package/dist/components/dates2/index.css +4 -0
- package/dist/components/dialogs/index.css +4 -0
- package/dist/components/edit/index.css +4 -0
- package/dist/components/edit-float/index.css +4 -0
- package/dist/components/forms/common/config.cjs +11 -1
- package/dist/components/forms/common/config.d.ts +1 -0
- package/dist/components/forms/common/config.js +11 -1
- package/dist/components/forms/index.css +10 -6
- package/dist/components/forms/index.scss +2 -1
- package/dist/components/forms/src/data.cjs +7 -0
- package/dist/components/forms/src/data.d.ts +7 -0
- package/dist/components/forms/src/data.js +7 -0
- package/dist/components/forms/src/setup.cjs +6 -13
- package/dist/components/forms/src/setup.d.ts +1 -1
- package/dist/components/forms/src/setup.js +8 -15
- package/dist/components/forms/src/util.cjs +1 -2
- package/dist/components/forms/src/util.d.ts +1 -1
- package/dist/components/forms/src/util.js +1 -2
- package/dist/components/forms/style/index2.scss +3 -1
- package/dist/components/forms-div/index.css +4 -0
- package/dist/components/forms-div/src/index2.cjs +11 -5
- package/dist/components/forms-div/src/index2.js +10 -4
- package/dist/components/forms-item/index.css +4 -0
- package/dist/components/forms-item/src/indexts.d.ts +1 -1
- package/dist/components/forms-item/src/label.cjs +16 -29
- package/dist/components/forms-item/src/label.js +17 -30
- package/dist/components/full-screen/index.css +4 -0
- package/dist/components/global-config/index.css +4 -0
- package/dist/components/history/index.css +4 -0
- package/dist/components/icon/index.css +4 -0
- package/dist/components/icon-picker/index.css +4 -0
- package/dist/components/iframe/index.css +4 -0
- package/dist/components/images/index.css +4 -0
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index2.scss +2 -1
- package/dist/components/input-array/index.css +4 -0
- package/dist/components/input-history/index.css +4 -0
- package/dist/components/input-num/index.css +4 -0
- package/dist/components/input-select/index.css +4 -0
- package/dist/components/inputs/index.css +4 -0
- package/dist/components/labels/index.css +4 -0
- package/dist/components/list/index.css +4 -0
- package/dist/components/list/src/data.cjs +6 -0
- package/dist/components/list/src/data.d.ts +6 -0
- package/dist/components/list/src/data.js +6 -0
- package/dist/components/list/src/index2.cjs +6 -6
- package/dist/components/list/src/index2.js +2 -2
- package/dist/components/list/src/util.cjs +12 -26
- package/dist/components/list/src/util.d.ts +1 -1
- package/dist/components/list/src/util.js +13 -27
- package/dist/components/lists/index.css +4 -0
- package/dist/components/listsp/index.css +4 -0
- package/dist/components/listspd/index.css +4 -0
- package/dist/components/menus/index.css +4 -0
- package/dist/components/no-data/index.css +4 -0
- package/dist/components/page/index.css +10 -6
- package/dist/components/paging/index.css +4 -0
- package/dist/components/popup/index.css +4 -0
- package/dist/components/retract/index.css +4 -0
- package/dist/components/right-key/index.css +4 -0
- package/dist/components/scss/common.scss +4 -0
- package/dist/components/seamless-scroll/index.css +4 -0
- package/dist/components/select-scroll/index.css +4 -0
- package/dist/components/selector/index.css +4 -0
- package/dist/components/selects/index.css +4 -0
- package/dist/components/sliders/index.css +4 -0
- package/dist/components/switchs/index.css +4 -0
- package/dist/components/tables/common/config.cjs +1 -1
- package/dist/components/tables/common/config.js +1 -1
- package/dist/components/tables/common/pagin.cjs +74 -32
- package/dist/components/tables/common/pagin.d.ts +10 -1
- package/dist/components/tables/common/pagin.js +74 -32
- package/dist/components/tables/index.css +4 -0
- package/dist/components/tables/src/column.cjs +22 -20
- package/dist/components/tables/src/column.d.ts +1 -0
- package/dist/components/tables/src/column.js +14 -12
- package/dist/components/tables/src/data.cjs +15 -0
- package/dist/components/tables/src/data.d.ts +13 -0
- package/dist/components/tables/src/data.js +15 -0
- package/dist/components/tables/src/index2.cjs +17 -9
- package/dist/components/tables/src/index2.js +11 -3
- package/dist/components/tablesp/index.css +4 -0
- package/dist/components/tablespd/index.css +4 -0
- package/dist/components/tabless/index.css +4 -0
- package/dist/components/tablesv/index.css +4 -0
- package/dist/components/tablesv/src/column.cjs +116 -112
- package/dist/components/tablesv/src/column.js +110 -106
- package/dist/components/tablesv/src/data.cjs +44 -0
- package/dist/components/tablesv/src/data.d.ts +43 -1
- package/dist/components/tablesv/src/data.js +44 -0
- package/dist/components/tablesv/src/index2.cjs +37 -14
- package/dist/components/tablesv/src/index2.js +36 -13
- package/dist/components/tablesv/style/index2.scss +3 -1
- package/dist/components/tablesvp/index.css +10 -0
- package/dist/components/tablesvp/index.scss +8 -0
- package/dist/components/tablesvp/src/index2.cjs +15 -5
- package/dist/components/tablesvp/src/index2.js +15 -5
- package/dist/components/tablesvpd/index.cjs +9 -0
- package/dist/components/tablesvpd/index.css +157 -0
- package/dist/components/tablesvpd/index.d.ts +4 -0
- package/dist/components/tablesvpd/index.js +9 -0
- package/dist/components/tablesvpd/index.scss +41 -0
- package/dist/components/tablesvpd/src/data.cjs +13 -0
- package/dist/components/tablesvpd/src/data.d.ts +18 -0
- package/dist/components/tablesvpd/src/data.js +13 -0
- package/dist/components/tablesvpd/src/index.cjs +4 -0
- package/dist/components/tablesvpd/src/index.js +4 -0
- package/dist/components/tablesvpd/src/index2.cjs +107 -0
- package/dist/components/tablesvpd/src/index2.js +107 -0
- package/dist/components/tablesvpd/style/index2.scss +4 -0
- package/dist/components/uploads/index.css +4 -0
- package/dist/components/videos/index.css +4 -0
- package/dist/components/window/index.css +4 -0
- package/dist/css/array.css +4 -0
- package/dist/css/audios.css +4 -0
- package/dist/css/box-adjust.css +4 -0
- package/dist/css/box-local.css +4 -0
- package/dist/css/box-mask.css +4 -0
- package/dist/css/box-title.css +4 -0
- package/dist/css/box.css +4 -0
- package/dist/css/buttons.css +4 -0
- package/dist/css/cascaders.css +4 -0
- package/dist/css/checks.css +4 -0
- package/dist/css/dates-divide.css +4 -0
- package/dist/css/dates-picker.css +4 -0
- package/dist/css/dates.css +4 -0
- package/dist/css/dates2.css +4 -0
- package/dist/css/dialogs.css +4 -0
- package/dist/css/edit-float.css +4 -0
- package/dist/css/edit.css +4 -0
- package/dist/css/forms-div.css +4 -0
- package/dist/css/forms-item.css +4 -0
- package/dist/css/forms.css +10 -6
- package/dist/css/full-screen.css +4 -0
- package/dist/css/global-config.css +4 -0
- package/dist/css/history.css +4 -0
- package/dist/css/icon-picker.css +4 -0
- package/dist/css/icon.css +4 -0
- package/dist/css/iframe.css +4 -0
- package/dist/css/images.css +4 -0
- package/dist/css/index.css +16 -6
- package/dist/css/input-array.css +4 -0
- package/dist/css/input-history.css +4 -0
- package/dist/css/input-num.css +4 -0
- package/dist/css/input-select.css +4 -0
- package/dist/css/inputs.css +4 -0
- package/dist/css/labels.css +4 -0
- package/dist/css/list.css +4 -0
- package/dist/css/lists.css +4 -0
- package/dist/css/listsp.css +4 -0
- package/dist/css/listspd.css +4 -0
- package/dist/css/menus.css +4 -0
- package/dist/css/no-data.css +4 -0
- package/dist/css/page.css +10 -6
- package/dist/css/paging.css +4 -0
- package/dist/css/popup.css +4 -0
- package/dist/css/retract.css +4 -0
- package/dist/css/right-key.css +4 -0
- package/dist/css/seamless-scroll.css +4 -0
- package/dist/css/select-scroll.css +4 -0
- package/dist/css/selector.css +4 -0
- package/dist/css/selects.css +4 -0
- package/dist/css/sliders.css +4 -0
- package/dist/css/switchs.css +4 -0
- package/dist/css/tables.css +4 -0
- package/dist/css/tablesp.css +4 -0
- package/dist/css/tablespd.css +4 -0
- package/dist/css/tabless.css +4 -0
- package/dist/css/tablesv.css +4 -0
- package/dist/css/tablesvp.css +10 -0
- package/dist/css/tablesvpd.css +157 -0
- package/dist/css/uploads.css +4 -0
- package/dist/css/videos.css +4 -0
- package/dist/css/window.css +4 -0
- package/dist/expand/{chunk-MC76Q3TQ.cjs → chunk-3HP2ZDNG.cjs} +3 -1
- package/dist/expand/{chunk-CV4O5V2F.js → chunk-7C25SBCF.js} +3 -1
- 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/compons/index.cjs +44 -0
- package/dist/hooks/compons/index.d.ts +7 -0
- package/dist/hooks/compons/index.js +44 -0
- package/dist/icons/index.json +1 -1
- package/dist/index.cjs +24 -22
- package/dist/index.css +16 -6
- package/dist/index.js +2 -0
- package/dist/type.d.ts +4 -0
- package/package.json +12 -12
- package/dist/components/common/compons.cjs +0 -76
- package/dist/components/common/compons.d.ts +0 -9
- package/dist/components/common/compons.js +0 -76
- package/dist/components/common/compons.scss +0 -26
- package/dist/components/common/compons2.scss +0 -26
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, useSlots, useAttrs, ref, computed, watch, onMounted, createElementBlock, openBlock, mergeProps, unref,
|
|
1
|
+
import { defineComponent, useSlots, useAttrs, ref, computed, watch, onMounted, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, withModifiers, withCtx, createVNode, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { VxeTable } from "vxe-table/es/table";
|
|
3
|
+
import "../../loading/index.js";
|
|
3
4
|
import { name, dataProps, dataExpose, dataEmits } from "./data.js";
|
|
4
5
|
import { provides } from "../../tables/common/config.js";
|
|
5
6
|
import "./columns.js";
|
|
@@ -7,9 +8,10 @@ import { NoData } from "../../no-data/index.js";
|
|
|
7
8
|
import { useObjComponSelected } from "../../common/use.js";
|
|
8
9
|
import { useInherit } from "../../../hooks/inherit/index.js";
|
|
9
10
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
10
|
-
import { useCompons } from "
|
|
11
|
+
import { useCompons } from "../../../hooks/compons/index.js";
|
|
11
12
|
import { usePropsDefault, viewProps, getProps } from "../../../hooks/props-default/index.js";
|
|
12
13
|
import _sfc_main$1 from "./columns2.js";
|
|
14
|
+
import { vLoading } from "element-plus/es/components/loading/index";
|
|
13
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
16
|
__name: "index",
|
|
15
17
|
props: getProps(dataProps),
|
|
@@ -21,9 +23,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
23
|
const prs = __props;
|
|
22
24
|
const props = usePropsDefault(name, prs, dataProps);
|
|
23
25
|
viewProps(props, name);
|
|
24
|
-
useCompons(provides.compons, props
|
|
26
|
+
useCompons(provides.compons, props);
|
|
25
27
|
const tableRef = ref();
|
|
26
28
|
const emit = __emit;
|
|
29
|
+
console.log("props.maxHeight", props.maxHeight);
|
|
27
30
|
const rowObj = ref();
|
|
28
31
|
const isfocus = ref(false);
|
|
29
32
|
function onClick() {
|
|
@@ -78,7 +81,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
81
|
nocustomize: attrs.assem.__B("nocustomize"),
|
|
79
82
|
row: {
|
|
80
83
|
isCurrent: setHover(),
|
|
81
|
-
isHover: setHover()
|
|
84
|
+
isHover: setHover(),
|
|
85
|
+
keyField: props.rowKey
|
|
82
86
|
},
|
|
83
87
|
column: {
|
|
84
88
|
minWidth: attrs.assem.minWidth,
|
|
@@ -93,10 +97,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
97
|
},
|
|
94
98
|
seq: {},
|
|
95
99
|
checkbox: {
|
|
96
|
-
trigger: attrs.assem.
|
|
100
|
+
trigger: attrs.assem.isRowSelect ? "row" : "cell"
|
|
97
101
|
},
|
|
98
102
|
radio: {
|
|
99
|
-
trigger: attrs.assem.
|
|
103
|
+
trigger: attrs.assem.isRowSelect ? "row" : "cell"
|
|
100
104
|
}
|
|
101
105
|
});
|
|
102
106
|
const rowStyle = computed(() => {
|
|
@@ -164,9 +168,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
164
168
|
}
|
|
165
169
|
function onCellClick(scope) {
|
|
166
170
|
rowObj.value = scope.row;
|
|
171
|
+
emit("cell-click", scope.row, scope.row, scope);
|
|
167
172
|
}
|
|
168
173
|
function toggleRowSelection(row) {
|
|
169
|
-
tableRef.value.toggleRowSelection(row);
|
|
170
174
|
}
|
|
171
175
|
function clearSelection() {
|
|
172
176
|
tableRef.value.clearCheckboxRow();
|
|
@@ -174,6 +178,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
174
178
|
function clearRadioRow() {
|
|
175
179
|
tableRef.value.clearRadioRow();
|
|
176
180
|
}
|
|
181
|
+
function getSelections() {
|
|
182
|
+
}
|
|
183
|
+
function clearSort() {
|
|
184
|
+
tableRef.value.clearSort();
|
|
185
|
+
}
|
|
186
|
+
function setCurrentRow(row) {
|
|
187
|
+
tableRef.value.setRadioRow(row);
|
|
188
|
+
}
|
|
189
|
+
function clearCurrentRow() {
|
|
190
|
+
tableRef.value.clearRadioRow();
|
|
191
|
+
tableRef.value.clearCurrentRow();
|
|
192
|
+
}
|
|
177
193
|
onMounted(() => {
|
|
178
194
|
if (window) {
|
|
179
195
|
window.addEventListener("click", () => {
|
|
@@ -184,19 +200,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
184
200
|
__expose({
|
|
185
201
|
...dataExpose,
|
|
186
202
|
clearSelection,
|
|
187
|
-
clearRadioRow
|
|
203
|
+
clearRadioRow,
|
|
204
|
+
clearSort,
|
|
205
|
+
setCurrentRow,
|
|
206
|
+
clearCurrentRow,
|
|
207
|
+
getSelections,
|
|
208
|
+
toggleRowSelection
|
|
188
209
|
});
|
|
189
210
|
return (_ctx, _cache) => {
|
|
190
211
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
191
212
|
class: unref(cs).z()
|
|
192
213
|
}, unref(attrs).root), [
|
|
193
|
-
|
|
214
|
+
withDirectives((openBlock(), createBlock(unref(VxeTable), mergeProps(unref(attrs).assem, {
|
|
215
|
+
size: size.value,
|
|
194
216
|
ref_key: "tableRef",
|
|
195
217
|
ref: tableRef,
|
|
196
|
-
height: unref(props).height == "auto" ? "" : unref(props).height,
|
|
197
218
|
class: [unref(cs).z("table"), unref(cs).is("absolute", unref(props).adaptive)],
|
|
198
|
-
|
|
199
|
-
|
|
219
|
+
height: unref(props).maxHeight ? void 0 : unref(props).height,
|
|
220
|
+
"max-height": unref(props).maxHeight,
|
|
200
221
|
"column-config": config.value.column,
|
|
201
222
|
"row-style": rowStyle.value,
|
|
202
223
|
"row-config": config.value.row,
|
|
@@ -239,7 +260,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
239
260
|
]), 1032, ["table", "vxeconfig", "value", "list", "options"])
|
|
240
261
|
]),
|
|
241
262
|
_: 3
|
|
242
|
-
}, 16, ["
|
|
263
|
+
}, 16, ["size", "class", "height", "max-height", "column-config", "row-style", "row-config", "seq-config", "sort-config", "checkbox-config", "radio-config", "data"])), [
|
|
264
|
+
[unref(vLoading), unref(props).loading]
|
|
265
|
+
])
|
|
243
266
|
], 16);
|
|
244
267
|
};
|
|
245
268
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
@use 'vxe-table/
|
|
1
|
+
@use 'vxe-table/es/style.css' as *;
|
|
2
2
|
@use '../../tooltip/style/index2.scss' as *;
|
|
3
3
|
@use '../../radio/style/index2.scss' as *;
|
|
4
4
|
@use '../../checkbox/style/index2.scss' as *;
|
|
5
|
+
@use '../../loading/style/index2.scss' as *;
|
|
6
|
+
@use '../../button/style/index2.scss' as *;
|
|
5
7
|
@use '../index.scss' as *;
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
padding: 20px 20px;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
.com-lable-array {
|
|
21
|
+
line-height: 18px;
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
.tablesv {
|
|
21
25
|
width: 100%;
|
|
22
26
|
min-height: 100px;
|
|
@@ -139,6 +143,12 @@
|
|
|
139
143
|
.tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
140
144
|
display: none;
|
|
141
145
|
}
|
|
146
|
+
.tablesvp-main.is-scroll .v-scroll-add {
|
|
147
|
+
text-align: center;
|
|
148
|
+
padding: 10px;
|
|
149
|
+
color: #999;
|
|
150
|
+
background-color: #eee;
|
|
151
|
+
}
|
|
142
152
|
.tablesvp-paginat {
|
|
143
153
|
overflow: hidden;
|
|
144
154
|
}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const index$3 = require("../../tablesv/index.cjs");
|
|
5
|
-
const index$
|
|
5
|
+
const index$5 = require("../../paging/index.cjs");
|
|
6
|
+
const index$4 = require("../../../directives/scroll/index.cjs");
|
|
6
7
|
const data = require("./data.cjs");
|
|
7
8
|
const pagin = require("../../tables/common/pagin.cjs");
|
|
8
9
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
@@ -34,11 +35,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
35
|
onSortChange,
|
|
35
36
|
onListEvents,
|
|
36
37
|
onChange,
|
|
38
|
+
onCellClick,
|
|
37
39
|
pagconfig,
|
|
38
40
|
formEvent,
|
|
39
41
|
onSizeChange,
|
|
40
42
|
onCurrentChange,
|
|
41
43
|
paginat,
|
|
44
|
+
scroll,
|
|
42
45
|
data: data$1
|
|
43
46
|
} = pagin.useInit(props, emit, refTable, getLocale);
|
|
44
47
|
__expose({
|
|
@@ -53,11 +56,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
53
56
|
class: vue.normalizeClass(vue.unref(cs).z()),
|
|
54
57
|
style: vue.normalizeStyle(vue.unref(cs).vdo({ height: vue.unref(height) }))
|
|
55
58
|
}, [
|
|
56
|
-
vue.
|
|
59
|
+
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$3.Tablesv), vue.mergeProps(vue.unref(tableConfig).config, vue.toHandlers(vue.unref(formEvent)), {
|
|
57
60
|
height: vue.unref(height) == "auto" ? "auto" : "100%",
|
|
58
61
|
ref_key: "refTable",
|
|
59
62
|
ref: refTable,
|
|
60
|
-
class: [
|
|
63
|
+
class: [
|
|
64
|
+
vue.unref(cs).z("main"),
|
|
65
|
+
vue.unref(cs).is("scroll", vue.unref(paginat).is && vue.unref(paginat).scroll)
|
|
66
|
+
],
|
|
67
|
+
"scroll-selector": ".vxe-table--render-wrapper .vxe-table--body-wrapper",
|
|
61
68
|
size: (_a = vue.unref(tableConfig).config) == null ? void 0 : _a.size,
|
|
62
69
|
value: vue.unref(data$1).list,
|
|
63
70
|
list: vue.unref(tableList),
|
|
@@ -66,6 +73,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
66
73
|
options: vue.unref(props).options,
|
|
67
74
|
compons: vue.unref(props).compons,
|
|
68
75
|
onSortChange: vue.unref(onSortChange),
|
|
76
|
+
onCellClick: vue.unref(onCellClick),
|
|
69
77
|
onRadioChange: vue.unref(onRadioChange),
|
|
70
78
|
onSelectionChange: vue.unref(onChange),
|
|
71
79
|
onListEvents: vue.unref(onListEvents)
|
|
@@ -78,8 +86,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
86
|
])
|
|
79
87
|
};
|
|
80
88
|
})
|
|
81
|
-
]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"]),
|
|
82
|
-
|
|
89
|
+
]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onCellClick", "onRadioChange", "onSelectionChange", "onListEvents"])), [
|
|
90
|
+
[vue.unref(index$4.default), vue.unref(scroll)]
|
|
91
|
+
]),
|
|
92
|
+
((_c = vue.unref(paginat)) == null ? void 0 : _c.is) && !vue.unref(paginat).scroll ? (vue.openBlock(), vue.createBlock(vue.unref(index$5.Paging), vue.mergeProps({ key: 0 }, vue.unref(pagconfig), {
|
|
83
93
|
class: vue.unref(cs).z("paginat"),
|
|
84
94
|
paginat: vue.unref(paginat),
|
|
85
95
|
total: vue.unref(data$1).total,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeStyle, unref, normalizeClass,
|
|
1
|
+
import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeStyle, unref, normalizeClass, withDirectives, createBlock, createCommentVNode, mergeProps, toHandlers, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { Tablesv } from "../../tablesv/index.js";
|
|
3
3
|
import { Paging } from "../../paging/index.js";
|
|
4
|
+
import vScroll from "../../../directives/scroll/index.js";
|
|
4
5
|
import { name } from "./data.js";
|
|
5
6
|
import { dataProps, useInit, dataEmit } from "../../tables/common/pagin.js";
|
|
6
7
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
@@ -32,11 +33,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
33
|
onSortChange,
|
|
33
34
|
onListEvents,
|
|
34
35
|
onChange,
|
|
36
|
+
onCellClick,
|
|
35
37
|
pagconfig,
|
|
36
38
|
formEvent,
|
|
37
39
|
onSizeChange,
|
|
38
40
|
onCurrentChange,
|
|
39
41
|
paginat,
|
|
42
|
+
scroll,
|
|
40
43
|
data
|
|
41
44
|
} = useInit(props, emit, refTable, getLocale);
|
|
42
45
|
__expose({
|
|
@@ -51,11 +54,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
54
|
class: normalizeClass(unref(cs).z()),
|
|
52
55
|
style: normalizeStyle(unref(cs).vdo({ height: unref(height) }))
|
|
53
56
|
}, [
|
|
54
|
-
|
|
57
|
+
withDirectives((openBlock(), createBlock(unref(Tablesv), mergeProps(unref(tableConfig).config, toHandlers(unref(formEvent)), {
|
|
55
58
|
height: unref(height) == "auto" ? "auto" : "100%",
|
|
56
59
|
ref_key: "refTable",
|
|
57
60
|
ref: refTable,
|
|
58
|
-
class: [
|
|
61
|
+
class: [
|
|
62
|
+
unref(cs).z("main"),
|
|
63
|
+
unref(cs).is("scroll", unref(paginat).is && unref(paginat).scroll)
|
|
64
|
+
],
|
|
65
|
+
"scroll-selector": ".vxe-table--render-wrapper .vxe-table--body-wrapper",
|
|
59
66
|
size: (_a = unref(tableConfig).config) == null ? void 0 : _a.size,
|
|
60
67
|
value: unref(data).list,
|
|
61
68
|
list: unref(tableList),
|
|
@@ -64,6 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
71
|
options: unref(props).options,
|
|
65
72
|
compons: unref(props).compons,
|
|
66
73
|
onSortChange: unref(onSortChange),
|
|
74
|
+
onCellClick: unref(onCellClick),
|
|
67
75
|
onRadioChange: unref(onRadioChange),
|
|
68
76
|
onSelectionChange: unref(onChange),
|
|
69
77
|
onListEvents: unref(onListEvents)
|
|
@@ -76,8 +84,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
84
|
])
|
|
77
85
|
};
|
|
78
86
|
})
|
|
79
|
-
]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"]),
|
|
80
|
-
|
|
87
|
+
]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onCellClick", "onRadioChange", "onSelectionChange", "onListEvents"])), [
|
|
88
|
+
[unref(vScroll), unref(scroll)]
|
|
89
|
+
]),
|
|
90
|
+
((_c = unref(paginat)) == null ? void 0 : _c.is) && !unref(paginat).scroll ? (openBlock(), createBlock(unref(Paging), mergeProps({ key: 0 }, unref(pagconfig), {
|
|
81
91
|
class: unref(cs).z("paginat"),
|
|
82
92
|
paginat: unref(paginat),
|
|
83
93
|
total: unref(data).total,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
require("./src/index.cjs");
|
|
5
|
+
const withInstall = require("../../utils/vues/withInstall.cjs");
|
|
6
|
+
const index_vue_vue_type_script_setup_true_lang = require("./src/index2.cjs");
|
|
7
|
+
const Tablesvpd = withInstall.withInstall(index_vue_vue_type_script_setup_true_lang.default, "Tablesvpd");
|
|
8
|
+
exports.Tablesvpd = Tablesvpd;
|
|
9
|
+
exports.default = Tablesvpd;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--on: rgb(91, 189, 246);
|
|
3
|
+
--color-primary: #409eff;
|
|
4
|
+
--bag-primary: #409eff;
|
|
5
|
+
--bag-primary-text: #fff;
|
|
6
|
+
--border: #eee;
|
|
7
|
+
--layout-panel-gap: 10px;
|
|
8
|
+
--layout-panel-padding: 20px;
|
|
9
|
+
--layout-form-item-padding-right: var(
|
|
10
|
+
--layout-panel-gap
|
|
11
|
+
);
|
|
12
|
+
--g-main-bg: var(--bg-color-page);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.com-footer {
|
|
16
|
+
border-top: 1px solid var(--border);
|
|
17
|
+
padding: 20px 20px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.com-lable-array {
|
|
21
|
+
line-height: 18px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.tablesv {
|
|
25
|
+
width: 100%;
|
|
26
|
+
min-height: 100px;
|
|
27
|
+
position: relative;
|
|
28
|
+
flex: 1;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
.tablesv-table.is-absolute {
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
right: 0;
|
|
36
|
+
bottom: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
}
|
|
39
|
+
.tablesv-table {
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
}
|
|
42
|
+
.tablesv-table .vxe-body--column {
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
padding: 8px 0;
|
|
45
|
+
}
|
|
46
|
+
.tablesv-table .col--checkbox .vxe-checkbox--label {
|
|
47
|
+
padding-left: 0;
|
|
48
|
+
}
|
|
49
|
+
.tablesv .fv-custom-checkbox {
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
.tablesv .fv-custom-checkbox.is-disabled {
|
|
53
|
+
cursor: not-allowed;
|
|
54
|
+
}
|
|
55
|
+
.tablesv .fv-custom-checkbox .el-checkbox__label {
|
|
56
|
+
color: var(--vxe-table-header-font-color);
|
|
57
|
+
font-weight: var(--vxe-table-header-font-weight);
|
|
58
|
+
}
|
|
59
|
+
.tablesv .fv-custom-checkbox {
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
.tablesv .fv-custom-checkbox .fv-custom-checkbox-mask {
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 0;
|
|
65
|
+
right: 0;
|
|
66
|
+
bottom: 0;
|
|
67
|
+
left: 0;
|
|
68
|
+
z-index: 1;
|
|
69
|
+
opacity: 0;
|
|
70
|
+
}
|
|
71
|
+
.tablesv .fv-custom-radio {
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
}
|
|
74
|
+
.tablesv .fv-custom-radio.is-disabled {
|
|
75
|
+
cursor: not-allowed;
|
|
76
|
+
}
|
|
77
|
+
.tablesv .fv-custom-radio {
|
|
78
|
+
position: relative;
|
|
79
|
+
}
|
|
80
|
+
.tablesv .fv-custom-radio .el-radio {
|
|
81
|
+
height: auto;
|
|
82
|
+
}
|
|
83
|
+
.tablesv .fv-custom-radio.center .el-radio {
|
|
84
|
+
text-align: center;
|
|
85
|
+
display: table-cell;
|
|
86
|
+
}
|
|
87
|
+
.tablesv .fv-custom-radio.center .el-radio__label {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
.tablesv .fv-custom-radio.right .el-radio {
|
|
91
|
+
text-align: right;
|
|
92
|
+
display: table-cell;
|
|
93
|
+
}
|
|
94
|
+
.tablesv .fv-custom-radio.right .el-radio__label {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
.tablesv .fv-custom-radio .fv-custom-radio-mask {
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 0;
|
|
100
|
+
right: 0;
|
|
101
|
+
bottom: 0;
|
|
102
|
+
left: 0;
|
|
103
|
+
z-index: 1;
|
|
104
|
+
opacity: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.paging {
|
|
108
|
+
width: 100%;
|
|
109
|
+
padding: 10px;
|
|
110
|
+
}
|
|
111
|
+
.paging-pagination {
|
|
112
|
+
width: 100%;
|
|
113
|
+
}
|
|
114
|
+
.paging-slot {
|
|
115
|
+
padding-left: 10px;
|
|
116
|
+
font-size: 14px;
|
|
117
|
+
font-weight: 400;
|
|
118
|
+
color: #9b9b9b;
|
|
119
|
+
white-space: pre-wrap;
|
|
120
|
+
}
|
|
121
|
+
.paging-slot > span {
|
|
122
|
+
margin-right: 10px;
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
}
|
|
125
|
+
.paging .el-pagination__total {
|
|
126
|
+
font-size: 14px;
|
|
127
|
+
font-weight: 400;
|
|
128
|
+
color: #9b9b9b;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.tablesvpd {
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: var(--tablesvpd-height);
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
}
|
|
137
|
+
.tablesvpd-main {
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
flex: 1;
|
|
141
|
+
width: 100%;
|
|
142
|
+
}
|
|
143
|
+
.tablesvpd-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|
|
146
|
+
.tablesvpd-main.is-scroll .v-scroll-add {
|
|
147
|
+
text-align: center;
|
|
148
|
+
padding: 10px;
|
|
149
|
+
color: #999;
|
|
150
|
+
background-color: #eee;
|
|
151
|
+
}
|
|
152
|
+
.tablesvpd-paginat {
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
}
|
|
155
|
+
.tablesvpd-paginat .el-pagination {
|
|
156
|
+
justify-content: flex-end;
|
|
157
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use '../scss/common.scss' as *;
|
|
2
|
+
@use '../tablesv/index.scss' as *;
|
|
3
|
+
@use '../paging/index.scss' as *;
|
|
4
|
+
$tablesvpd: 'tablesvpd';
|
|
5
|
+
@include b($tablesvpd) {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: var(#{vdm('height', $tablesvpd)});
|
|
8
|
+
// flex: 1;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
|
|
12
|
+
&-main {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
flex: 1;
|
|
16
|
+
width: 100%;
|
|
17
|
+
&.is-radio {
|
|
18
|
+
.#{e()}table__header {
|
|
19
|
+
.#{e()}table-column--selection {
|
|
20
|
+
.#{e()}checkbox {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&.#{is('scroll')} {
|
|
27
|
+
.v-scroll-add {
|
|
28
|
+
text-align: center;
|
|
29
|
+
padding: 10px;
|
|
30
|
+
color: #999;
|
|
31
|
+
background-color: #eee;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
&-paginat {
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
.#{e()}pagination {
|
|
38
|
+
justify-content: flex-end;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
4
|
+
const name = "tablesvpd";
|
|
5
|
+
const dataProps = buildProps.buildProps({});
|
|
6
|
+
const dataEmits = [];
|
|
7
|
+
const dataSlot = {};
|
|
8
|
+
const dataExpose = {};
|
|
9
|
+
exports.dataEmits = dataEmits;
|
|
10
|
+
exports.dataExpose = dataExpose;
|
|
11
|
+
exports.dataProps = dataProps;
|
|
12
|
+
exports.dataSlot = dataSlot;
|
|
13
|
+
exports.name = name;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* @title {h2} TablesPagin 输入框
|
|
4
|
+
* @text 目前完全继承 element-plus 中 el-tables-pagin
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @title {h3} tablesvpd
|
|
8
|
+
*/
|
|
9
|
+
export declare const name = "tablesvpd";
|
|
10
|
+
export declare const dataProps: {};
|
|
11
|
+
export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
|
|
12
|
+
export declare const dataEmits: never[];
|
|
13
|
+
export type DataEmits = typeof dataEmits;
|
|
14
|
+
export declare const dataSlot: {};
|
|
15
|
+
/**
|
|
16
|
+
* @expose refEl 获取当前组件在element-plus中暴露的方法
|
|
17
|
+
*/
|
|
18
|
+
export declare const dataExpose: {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
2
|
+
const name = "tablesvpd";
|
|
3
|
+
const dataProps = buildProps({});
|
|
4
|
+
const dataEmits = [];
|
|
5
|
+
const dataSlot = {};
|
|
6
|
+
const dataExpose = {};
|
|
7
|
+
export {
|
|
8
|
+
dataEmits,
|
|
9
|
+
dataExpose,
|
|
10
|
+
dataProps,
|
|
11
|
+
dataSlot,
|
|
12
|
+
name
|
|
13
|
+
};
|