@fangzhongya/fang-ui 0.0.70 → 0.0.72
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/alert/src/index2.cjs +10 -10
- package/dist/components/array/src/index2.cjs +45 -45
- package/dist/components/autocomplete/src/index2.cjs +10 -10
- package/dist/components/box/src/index2.cjs +21 -21
- package/dist/components/box-adjust/src/index2.cjs +27 -27
- package/dist/components/box-local/src/index2.cjs +20 -20
- package/dist/components/box-mask/src/index2.cjs +5 -5
- package/dist/components/box-teleport/src/index2.cjs +5 -5
- package/dist/components/box-title/src/index2.cjs +15 -15
- package/dist/components/button/src/index2.cjs +9 -9
- package/dist/components/buttons/src/index2.cjs +20 -20
- package/dist/components/card/src/index2.cjs +10 -10
- package/dist/components/cascader/src/index2.cjs +10 -10
- package/dist/components/cascader-panel/src/index2.cjs +10 -10
- package/dist/components/cascaders/src/index2.cjs +17 -17
- package/dist/components/checkbox/src/index2.cjs +10 -10
- package/dist/components/checkbox-group/src/index2.cjs +10 -10
- package/dist/components/checks/src/index2.cjs +31 -31
- package/dist/components/choice-select/src/index2.cjs +5 -5
- package/dist/components/collapse/src/index2.cjs +10 -10
- package/dist/components/collapse-item/src/index2.cjs +10 -10
- package/dist/components/color-picker/src/index2.cjs +10 -10
- package/dist/components/common/list.cjs +5 -5
- package/dist/components/common/use.cjs +5 -5
- package/dist/components/company-select/src/index2.cjs +19 -19
- package/dist/components/config-provider/src/index2.cjs +10 -10
- package/dist/components/date-picker/src/index2.cjs +10 -10
- package/dist/components/dates/src/index2.cjs +12 -12
- package/dist/components/dates-divide/src/index2.cjs +20 -20
- package/dist/components/dates-picker/src/index2.cjs +15 -15
- package/dist/components/dates2/src/index2.cjs +26 -26
- package/dist/components/department-select/src/index2.cjs +11 -11
- package/dist/components/dialog/src/index2.cjs +10 -10
- package/dist/components/dialogs/src/index2.cjs +23 -23
- package/dist/components/divider/src/index2.cjs +10 -10
- package/dist/components/drawer/src/index2.cjs +10 -10
- package/dist/components/dropdown/src/index2.cjs +10 -10
- package/dist/components/dropdown-item/src/index2.cjs +10 -10
- package/dist/components/dropdown-menu/src/index2.cjs +10 -10
- package/dist/components/edit/src/index2.cjs +24 -24
- package/dist/components/edit-float/src/index2.cjs +40 -40
- package/dist/components/form/src/index2.cjs +10 -10
- package/dist/components/form-item/src/index2.cjs +10 -10
- package/dist/components/forms/src/index2.cjs +65 -65
- package/dist/components/forms/src/setup.cjs +12 -12
- package/dist/components/forms-div/src/index2.cjs +11 -11
- package/dist/components/forms-drag/src/index2.cjs +73 -73
- package/dist/components/forms-item/src/index2.cjs +45 -45
- package/dist/components/forms-item/src/label.cjs +4 -4
- package/dist/components/forms-items/src/index2.cjs +23 -23
- package/dist/components/global-config/src/index.cjs +5 -5
- package/dist/components/history/src/index2.cjs +26 -26
- package/dist/components/icon/src/index2.cjs +23 -23
- package/dist/components/icon-picker/src/index2.cjs +52 -52
- package/dist/components/iframe/src/index2.cjs +10 -10
- package/dist/components/image/src/index2.cjs +10 -10
- package/dist/components/images/src/index2.cjs +16 -16
- package/dist/components/index.scss +2 -2
- package/dist/components/index2.scss +2 -2
- package/dist/components/input/src/index2.cjs +10 -10
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +48 -48
- package/dist/components/input-history/src/util.cjs +4 -4
- package/dist/components/input-num/src/index2.cjs +17 -17
- package/dist/components/input-number/src/index2.cjs +10 -10
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +10 -10
- package/dist/components/inputs/src/index2.cjs +17 -17
- package/dist/components/keep-com/src/index2.cjs +16 -16
- package/dist/components/labels/src/index2.cjs +13 -13
- package/dist/components/list/src/index2.cjs +24 -24
- package/dist/components/lists/src/index2.cjs +51 -51
- package/dist/components/listsp/src/index2.cjs +34 -34
- package/dist/components/mention/src/index2.cjs +10 -10
- package/dist/components/menus/src/index2.cjs +16 -16
- package/dist/components/menus/src/menu-ll2.cjs +11 -11
- package/dist/components/no-data/src/index2.cjs +5 -5
- package/dist/components/option/src/index2.cjs +9 -9
- package/dist/components/option-group/src/index2.cjs +10 -10
- package/dist/components/page/src/index2.cjs +77 -77
- package/dist/components/page/src/set-column2.cjs +54 -54
- package/dist/components/pagination/src/index2.cjs +10 -10
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +10 -10
- package/dist/components/popover/src/index2.cjs +10 -10
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +10 -10
- package/dist/components/radio-group/src/index2.cjs +10 -10
- package/dist/components/retract/src/index2.cjs +14 -14
- package/dist/components/right-key/src/index2.cjs +30 -30
- package/dist/components/role-select/src/index2.cjs +38 -38
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +10 -10
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +42 -42
- package/dist/components/select-scroll/src/index2.cjs +30 -30
- package/dist/components/selector/src/index2.cjs +39 -39
- package/dist/components/selects/src/index2.cjs +20 -20
- package/dist/components/slider/src/index2.cjs +10 -10
- package/dist/components/stick-div/src/index2.cjs +17 -17
- package/dist/components/stick-edge/src/index2.cjs +10 -10
- package/dist/components/stick-window/src/index2.cjs +22 -22
- package/dist/components/switch/src/index2.cjs +10 -10
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +10 -10
- package/dist/components/tables/common/img2.cjs +7 -7
- package/dist/components/tables/common/pagin.cjs +16 -16
- package/dist/components/tables/common/table-but2.cjs +10 -10
- package/dist/components/tables/common/table-color2.cjs +7 -7
- package/dist/components/tables/common/table-list2.cjs +9 -9
- package/dist/components/tables/common/util.cjs +2 -2
- package/dist/components/tables/src/column.cjs +5 -5
- package/dist/components/tables/src/columns2.cjs +2 -2
- package/dist/components/tables/src/columns3.cjs +2 -2
- package/dist/components/tables/src/index2.cjs +29 -29
- package/dist/components/tablesp/src/index2.cjs +35 -35
- package/dist/components/tabless/src/index2.cjs +48 -48
- package/dist/components/tablesv/src/column.cjs +16 -16
- package/dist/components/tablesv/src/columns2.cjs +2 -2
- package/dist/components/tablesv/src/columns3.cjs +2 -2
- package/dist/components/tablesv/src/index2.cjs +30 -30
- package/dist/components/tablesvp/src/index2.cjs +30 -30
- package/dist/components/tabs/src/index2.cjs +10 -10
- package/dist/components/text/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +10 -10
- package/dist/components/time-select/src/index2.cjs +10 -10
- package/dist/components/tooltip/src/index2.cjs +10 -10
- package/dist/components/transfer/src/index2.cjs +10 -10
- package/dist/components/tree/src/index2.cjs +10 -10
- package/dist/components/tree-select/src/index2.cjs +10 -10
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +10 -10
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/css/index.css +22 -23
- package/dist/directives/expose/index.cjs +3 -2
- package/dist/directives/expose/index.js +3 -2
- package/dist/directives/scroll/index.cjs +24 -6
- package/dist/directives/scroll/index.js +3 -1
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/global-config/index.cjs +8 -8
- package/dist/hooks/inherit/index.cjs +2 -2
- package/dist/hooks/locale/index.cjs +7 -7
- package/dist/icons/iconify.cjs +3 -3
- package/dist/icons/index.css +34 -34
- package/dist/icons/index.json +9 -9
- package/dist/icons/vue/bar.cjs +3 -3
- package/dist/icons/vue/below.cjs +3 -3
- package/dist/icons/vue/bicycle.cjs +3 -3
- package/dist/icons/vue/bottom-left.cjs +4 -4
- package/dist/icons/vue/bottom-right.cjs +4 -4
- package/dist/icons/vue/bottom.cjs +3 -3
- package/dist/icons/vue/clear.cjs +5 -5
- package/dist/icons/vue/close.cjs +3 -3
- package/dist/icons/vue/edit.cjs +5 -5
- package/dist/icons/vue/frame.cjs +3 -3
- package/dist/icons/vue/left.cjs +3 -3
- package/dist/icons/vue/right.cjs +3 -3
- package/dist/icons/vue/star.cjs +4 -4
- package/dist/index.css +22 -23
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +5 -5
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const util = require("./util.cjs");
|
|
5
5
|
const isObject = require("@fangzhongya/utils/basic/object/isObject");
|
|
6
6
|
const isArray = require("@fangzhongya/utils/basic/array/isArray");
|
|
7
7
|
const _hoisted_1 = ["onClick"];
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
9
9
|
__name: "table-list",
|
|
10
10
|
props: {
|
|
11
11
|
/**
|
|
@@ -60,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
60
60
|
return setValue(cellValue);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
const valueArr =
|
|
63
|
+
const valueArr = vues.computed(() => {
|
|
64
64
|
var _a;
|
|
65
65
|
const prop = props.tableListObj.prop || "";
|
|
66
66
|
const row = props.tableScope.row || {};
|
|
@@ -106,17 +106,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
108
|
return (_ctx, _cache) => {
|
|
109
|
-
return
|
|
109
|
+
return vues.openBlock(), vues.createElementBlock("span", {
|
|
110
110
|
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event)),
|
|
111
111
|
class: "table-list"
|
|
112
112
|
}, [
|
|
113
|
-
(
|
|
114
|
-
return
|
|
115
|
-
class:
|
|
113
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(valueArr.value, (item, index) => {
|
|
114
|
+
return vues.openBlock(), vues.createElementBlock("span", {
|
|
115
|
+
class: vues.normalizeClass(["table-list-li", item.class]),
|
|
116
116
|
key: index,
|
|
117
117
|
onClick: ($event) => onClickList(item, $event),
|
|
118
|
-
style:
|
|
119
|
-
},
|
|
118
|
+
style: vues.normalizeStyle(item.style)
|
|
119
|
+
}, vues.toDisplayString(item.value), 15, _hoisted_1);
|
|
120
120
|
}), 128))
|
|
121
121
|
]);
|
|
122
122
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
require("../../../utils/index.cjs");
|
|
5
5
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
6
6
|
const firstUpper = require("@fangzhongya/utils/basic/string/firstUpper");
|
|
@@ -93,7 +93,7 @@ function eventAlias(key, callback, obj, $event) {
|
|
|
93
93
|
callback(obj[v]);
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
|
|
96
|
+
vues.withModifiers(fn, ns)();
|
|
97
97
|
} else {
|
|
98
98
|
callback(obj[v]);
|
|
99
99
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const util = require("../common/util.cjs");
|
|
5
5
|
const index$1 = require("element-plus/es/components/table/index");
|
|
6
6
|
const use = require("../../common/use.cjs");
|
|
@@ -36,7 +36,7 @@ function setSslot(obj, scope, emit, slots, props, index2) {
|
|
|
36
36
|
const isComponSelected = props.isComponSelected;
|
|
37
37
|
if (isComponSelected(obj, scope)) {
|
|
38
38
|
const optionss = props.options || {};
|
|
39
|
-
const compons$1 =
|
|
39
|
+
const compons$1 = vues.inject("tables-compons", {});
|
|
40
40
|
const column = use.useSetCompon(
|
|
41
41
|
obj,
|
|
42
42
|
scope.row,
|
|
@@ -71,7 +71,7 @@ function defaultDom(obj, scope, props, index2) {
|
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
73
|
domValue = use.useGetDomValue(obj, scope.row, props.options, scope.$index);
|
|
74
|
-
return
|
|
74
|
+
return vues.h(
|
|
75
75
|
"span",
|
|
76
76
|
{
|
|
77
77
|
class: "text",
|
|
@@ -86,7 +86,7 @@ function defaultDom(obj, scope, props, index2) {
|
|
|
86
86
|
}
|
|
87
87
|
function setHeader(obj, scope, slots, emit, props, index2) {
|
|
88
88
|
const optionss = props.options || {};
|
|
89
|
-
const compons2 =
|
|
89
|
+
const compons2 = vues.inject("tables-compons", {});
|
|
90
90
|
return use.useGetDomLabel(
|
|
91
91
|
obj.label,
|
|
92
92
|
obj,
|
|
@@ -100,7 +100,7 @@ function setHeader(obj, scope, slots, emit, props, index2) {
|
|
|
100
100
|
}
|
|
101
101
|
function getDom(obj, emit, propss, slots, index2) {
|
|
102
102
|
const props = setProps(obj, propss);
|
|
103
|
-
return
|
|
103
|
+
return vues.h(
|
|
104
104
|
index$1.ElTableColumn,
|
|
105
105
|
{
|
|
106
106
|
...props,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const columns = require("./columns3.cjs");
|
|
5
5
|
require("../common/table-but.cjs");
|
|
6
6
|
require("../common/table-color.cjs");
|
|
@@ -8,7 +8,7 @@ require("../common/table-list.cjs");
|
|
|
8
8
|
const tableList_vue_vue_type_script_setup_true_lang = require("../common/table-list2.cjs");
|
|
9
9
|
const tableColor_vue_vue_type_script_setup_true_lang = require("../common/table-color2.cjs");
|
|
10
10
|
const tableBut_vue_vue_type_script_setup_true_lang = require("../common/table-but2.cjs");
|
|
11
|
-
const _sfc_main =
|
|
11
|
+
const _sfc_main = vues.defineComponent({
|
|
12
12
|
emits: ["list-events"],
|
|
13
13
|
components: { But: tableBut_vue_vue_type_script_setup_true_lang.default, Color: tableColor_vue_vue_type_script_setup_true_lang.default, List: tableList_vue_vue_type_script_setup_true_lang.default },
|
|
14
14
|
expose: [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const util = require("../common/util.cjs");
|
|
5
5
|
const use = require("../../common/use.cjs");
|
|
6
6
|
const index = require("element-plus/es/components/table/index");
|
|
@@ -25,7 +25,7 @@ function getLists(arrs, emit, props, slots, listobj) {
|
|
|
25
25
|
);
|
|
26
26
|
} else {
|
|
27
27
|
arr.push(
|
|
28
|
-
|
|
28
|
+
vues.h(
|
|
29
29
|
index.ElTableColumn,
|
|
30
30
|
{
|
|
31
31
|
...column.setProps(obj, props),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index$2 = require("element-plus/es/components/table/index");
|
|
6
6
|
require("../../loading/index.cjs");
|
|
@@ -12,20 +12,20 @@ const use = require("../../common/use.cjs");
|
|
|
12
12
|
const compons = require("../../common/compons.cjs");
|
|
13
13
|
const columns_vue_vue_type_script_lang = require("./columns2.cjs");
|
|
14
14
|
const index$4 = require("../../loading/src/index.cjs");
|
|
15
|
-
const _sfc_main = /* @__PURE__ */
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
16
16
|
__name: "index",
|
|
17
17
|
props: data.dataProps,
|
|
18
18
|
emits: data.dataEmits,
|
|
19
19
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
20
20
|
const cs = index.useCssName("tables");
|
|
21
|
-
const slots =
|
|
22
|
-
const attrs = index$1.useInherit(
|
|
21
|
+
const slots = vues.useSlots();
|
|
22
|
+
const attrs = index$1.useInherit(vues.useAttrs());
|
|
23
23
|
const props = __props;
|
|
24
|
-
|
|
25
|
-
const tableRef =
|
|
24
|
+
vues.provide("tables-compons", compons.getCompons(props.compons));
|
|
25
|
+
const tableRef = vues.ref();
|
|
26
26
|
const emit = __emit;
|
|
27
|
-
const rowObj =
|
|
28
|
-
const isfocus =
|
|
27
|
+
const rowObj = vues.ref();
|
|
28
|
+
const isfocus = vues.ref(false);
|
|
29
29
|
function onClick() {
|
|
30
30
|
isfocus.value = true;
|
|
31
31
|
}
|
|
@@ -45,14 +45,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
let isSort = false;
|
|
48
|
-
const tableDefaultSort =
|
|
48
|
+
const tableDefaultSort = vues.computed(() => {
|
|
49
49
|
var _a, _b;
|
|
50
50
|
return {
|
|
51
51
|
prop: (_a = props.defaultSort) == null ? void 0 : _a.prop,
|
|
52
52
|
order: (_b = props.defaultSort) == null ? void 0 : _b.order
|
|
53
53
|
};
|
|
54
54
|
});
|
|
55
|
-
const rowStyle =
|
|
55
|
+
const rowStyle = vues.computed(() => {
|
|
56
56
|
const height = props.lineHeight;
|
|
57
57
|
const rowStyle2 = attrs.assem.rowStyle;
|
|
58
58
|
if (height) {
|
|
@@ -75,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
vues.watch(tableDefaultSort, (newValue, oldValue) => {
|
|
79
79
|
let prop = tableDefaultSort.value.prop;
|
|
80
80
|
let order = tableDefaultSort.value.order;
|
|
81
81
|
if (tableRef.value) {
|
|
@@ -112,7 +112,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
112
112
|
var _a;
|
|
113
113
|
return (_a = tableRef.value) == null ? void 0 : _a.getSelectionRows();
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
vues.onMounted(() => {
|
|
116
116
|
if (window) {
|
|
117
117
|
window.addEventListener("click", () => {
|
|
118
118
|
isfocus.value = false;
|
|
@@ -126,14 +126,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
126
126
|
toggleRowSelection
|
|
127
127
|
});
|
|
128
128
|
return (_ctx, _cache) => {
|
|
129
|
-
return
|
|
130
|
-
class:
|
|
131
|
-
},
|
|
132
|
-
|
|
129
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
130
|
+
class: vues.unref(cs).z()
|
|
131
|
+
}, vues.unref(attrs).root), [
|
|
132
|
+
vues.withDirectives((vues.openBlock(), vues.createBlock(vues.unref(index$2.ElTable), vues.mergeProps(vues.unref(attrs).assem, {
|
|
133
133
|
align: "left",
|
|
134
134
|
ref_key: "tableRef",
|
|
135
135
|
ref: tableRef,
|
|
136
|
-
class: [
|
|
136
|
+
class: [vues.unref(cs).z("table"), vues.unref(cs).is("absolute", props.adaptive)],
|
|
137
137
|
height: props.height,
|
|
138
138
|
"scroll-selector": ".el-scrollbar .el-scrollbar__wrap",
|
|
139
139
|
"row-style": rowStyle.value,
|
|
@@ -141,29 +141,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
141
141
|
"default-sort": tableDefaultSort.value,
|
|
142
142
|
onRowClick,
|
|
143
143
|
onSortChange: sortChange,
|
|
144
|
-
onClick:
|
|
144
|
+
onClick: vues.withModifiers(onClick, ["stop"])
|
|
145
145
|
}), {
|
|
146
|
-
empty:
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
empty: vues.withCtx(() => [
|
|
147
|
+
vues.renderSlot(_ctx.$slots, "no-data", {}, () => [
|
|
148
|
+
vues.createVNode(vues.unref(index$3.NoData))
|
|
149
149
|
])
|
|
150
150
|
]),
|
|
151
|
-
default:
|
|
152
|
-
|
|
153
|
-
table:
|
|
151
|
+
default: vues.withCtx(() => [
|
|
152
|
+
vues.createVNode(columns_vue_vue_type_script_lang.default, {
|
|
153
|
+
table: vues.unref(attrs).assem,
|
|
154
154
|
value: props.value,
|
|
155
155
|
list: props.list,
|
|
156
156
|
options: props.options,
|
|
157
157
|
isComponSelected,
|
|
158
158
|
onListEvents
|
|
159
|
-
},
|
|
160
|
-
|
|
159
|
+
}, vues.createSlots({ _: 2 }, [
|
|
160
|
+
vues.renderList(Object.keys(vues.unref(slots)).filter(
|
|
161
161
|
(v) => !["empty", "no-data"].includes(v)
|
|
162
162
|
), (k, i) => {
|
|
163
163
|
return {
|
|
164
164
|
name: k,
|
|
165
|
-
fn:
|
|
166
|
-
|
|
165
|
+
fn: vues.withCtx((scope) => [
|
|
166
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
167
167
|
])
|
|
168
168
|
};
|
|
169
169
|
})
|
|
@@ -171,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
171
171
|
]),
|
|
172
172
|
_: 3
|
|
173
173
|
}, 16, ["class", "height", "row-style", "data", "default-sort"])), [
|
|
174
|
-
[
|
|
174
|
+
[vues.unref(index$4.vLoading), props.loading]
|
|
175
175
|
])
|
|
176
176
|
], 16);
|
|
177
177
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$2 = require("../../tables/index.cjs");
|
|
5
5
|
const index$4 = require("../../paging/index.cjs");
|
|
6
6
|
const index$3 = require("../../../directives/scroll/index.cjs");
|
|
7
7
|
const pagin = require("../../tables/common/pagin.cjs");
|
|
8
8
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: pagin.dataProps,
|
|
13
13
|
emits: pagin.dataEmit,
|
|
14
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
15
|
const { getLocale } = index.useLocale();
|
|
16
16
|
const cs = index$1.useCssName("tablesp");
|
|
17
|
-
const slots =
|
|
17
|
+
const slots = vues.useSlots();
|
|
18
18
|
const props = __props;
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const refTable =
|
|
20
|
+
const refTable = vues.ref();
|
|
21
21
|
const {
|
|
22
22
|
height,
|
|
23
23
|
getSelection,
|
|
@@ -49,51 +49,51 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
49
49
|
});
|
|
50
50
|
return (_ctx, _cache) => {
|
|
51
51
|
var _a, _b, _c;
|
|
52
|
-
return
|
|
53
|
-
class:
|
|
54
|
-
style:
|
|
52
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
53
|
+
class: vues.normalizeClass(vues.unref(cs).z()),
|
|
54
|
+
style: vues.normalizeStyle(vues.unref(cs).vdo({ height: vues.unref(height) }))
|
|
55
55
|
}, [
|
|
56
|
-
|
|
57
|
-
height:
|
|
56
|
+
vues.withDirectives((vues.openBlock(), vues.createBlock(vues.unref(index$2.Tables), vues.mergeProps(vues.unref(tableConfig).config, vues.toHandlers(vues.unref(formEvent)), {
|
|
57
|
+
height: vues.unref(height),
|
|
58
58
|
ref_key: "refTable",
|
|
59
59
|
ref: refTable,
|
|
60
60
|
class: [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
vues.unref(cs).z("main"),
|
|
62
|
+
vues.unref(cs).is("radio", (_a = vues.unref(tableConfig).config) == null ? void 0 : _a.isradio),
|
|
63
|
+
vues.unref(cs).is("scroll", vues.unref(paginat).is && vues.unref(paginat).scroll)
|
|
64
64
|
],
|
|
65
|
-
"scroll-selector": "." +
|
|
66
|
-
value:
|
|
67
|
-
list:
|
|
68
|
-
size: (_b =
|
|
69
|
-
paginat:
|
|
70
|
-
loading:
|
|
65
|
+
"scroll-selector": "." + vues.unref(cs).ec("scrollbar") + " ." + vues.unref(cs).ec("scrollbar", "", "wrap"),
|
|
66
|
+
value: vues.unref(data).list,
|
|
67
|
+
list: vues.unref(tableList),
|
|
68
|
+
size: (_b = vues.unref(tableConfig).config) == null ? void 0 : _b.size,
|
|
69
|
+
paginat: vues.unref(paginat),
|
|
70
|
+
loading: vues.unref(paginat).scroll && vues.unref(paginat).current > 1 ? false : vues.unref(loading),
|
|
71
71
|
options: props.options,
|
|
72
72
|
compons: props.compons,
|
|
73
|
-
onSortChange:
|
|
74
|
-
onListEvents:
|
|
75
|
-
onSelect:
|
|
76
|
-
onRowClick:
|
|
77
|
-
onSelectionChange:
|
|
78
|
-
}),
|
|
79
|
-
|
|
73
|
+
onSortChange: vues.unref(onSortChange),
|
|
74
|
+
onListEvents: vues.unref(onListEvents),
|
|
75
|
+
onSelect: vues.unref(onSelect),
|
|
76
|
+
onRowClick: vues.unref(onRowClick),
|
|
77
|
+
onSelectionChange: vues.unref(onChange)
|
|
78
|
+
}), vues.createSlots({ _: 2 }, [
|
|
79
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k) => {
|
|
80
80
|
return {
|
|
81
81
|
name: k,
|
|
82
|
-
fn:
|
|
83
|
-
|
|
82
|
+
fn: vues.withCtx((scope) => [
|
|
83
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
84
84
|
])
|
|
85
85
|
};
|
|
86
86
|
})
|
|
87
87
|
]), 1040, ["height", "class", "scroll-selector", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])), [
|
|
88
|
-
[
|
|
88
|
+
[vues.unref(index$3.default), vues.unref(scroll)]
|
|
89
89
|
]),
|
|
90
|
-
((_c =
|
|
91
|
-
class:
|
|
92
|
-
paginat:
|
|
93
|
-
total:
|
|
94
|
-
onSizeChange:
|
|
95
|
-
onCurrentChange:
|
|
96
|
-
}), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) :
|
|
90
|
+
((_c = vues.unref(paginat)) == null ? void 0 : _c.is) && !vues.unref(paginat).scroll ? (vues.openBlock(), vues.createBlock(vues.unref(index$4.Paging), vues.mergeProps({ key: 0 }, vues.unref(pagconfig), {
|
|
91
|
+
class: vues.unref(cs).z("paginat"),
|
|
92
|
+
paginat: vues.unref(paginat),
|
|
93
|
+
total: vues.unref(data).total,
|
|
94
|
+
onSizeChange: vues.unref(onSizeChange),
|
|
95
|
+
onCurrentChange: vues.unref(onCurrentChange)
|
|
96
|
+
}), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : vues.createCommentVNode("", true)
|
|
97
97
|
], 6);
|
|
98
98
|
};
|
|
99
99
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$3 = require("../../tables/index.cjs");
|
|
5
5
|
const index$2 = require("../../tablesv/index.cjs");
|
|
6
6
|
const index$4 = require("../../paging/index.cjs");
|
|
7
7
|
const pagin = require("../../tables/common/pagin.cjs");
|
|
8
8
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: pagin.dataProps,
|
|
13
13
|
emits: pagin.dataEmit,
|
|
14
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
15
|
const { getLocale } = index.useLocale();
|
|
16
16
|
const cs = index$1.useCssName("tabless");
|
|
17
|
-
const slots =
|
|
17
|
+
const slots = vues.useSlots();
|
|
18
18
|
const props = __props;
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const refTable =
|
|
20
|
+
const refTable = vues.ref();
|
|
21
21
|
const {
|
|
22
22
|
height,
|
|
23
23
|
getSelection,
|
|
@@ -48,72 +48,72 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
48
|
});
|
|
49
49
|
return (_ctx, _cache) => {
|
|
50
50
|
var _a, _b, _c, _d;
|
|
51
|
-
return
|
|
52
|
-
class:
|
|
53
|
-
style:
|
|
51
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
52
|
+
class: vues.normalizeClass(vues.unref(cs).z()),
|
|
53
|
+
style: vues.normalizeStyle(vues.unref(cs).vdo({ height: vues.unref(height) }))
|
|
54
54
|
}, [
|
|
55
|
-
|
|
56
|
-
height:
|
|
55
|
+
vues.unref(tableConfig).type == 1 ? (vues.openBlock(), vues.createBlock(vues.unref(index$2.Tablesv), vues.mergeProps({ key: 0 }, vues.unref(tableConfig).config, vues.toHandlers(vues.unref(formEvent)), {
|
|
56
|
+
height: vues.unref(height),
|
|
57
57
|
ref_key: "refTable",
|
|
58
58
|
ref: refTable,
|
|
59
|
-
class: [
|
|
60
|
-
size: (_a =
|
|
61
|
-
value:
|
|
62
|
-
list:
|
|
63
|
-
paginat:
|
|
64
|
-
loading:
|
|
59
|
+
class: [vues.unref(cs).z("main")],
|
|
60
|
+
size: (_a = vues.unref(tableConfig).config) == null ? void 0 : _a.size,
|
|
61
|
+
value: vues.unref(data).list,
|
|
62
|
+
list: vues.unref(tableList),
|
|
63
|
+
paginat: vues.unref(paginat),
|
|
64
|
+
loading: vues.unref(loading),
|
|
65
65
|
options: props.options,
|
|
66
66
|
compons: props.compons,
|
|
67
|
-
onSortChange:
|
|
68
|
-
onRadioChange:
|
|
69
|
-
onSelectionChange:
|
|
70
|
-
onListEvents:
|
|
71
|
-
}),
|
|
72
|
-
|
|
67
|
+
onSortChange: vues.unref(onSortChange),
|
|
68
|
+
onRadioChange: vues.unref(onRadioChange),
|
|
69
|
+
onSelectionChange: vues.unref(onChange),
|
|
70
|
+
onListEvents: vues.unref(onListEvents)
|
|
71
|
+
}), vues.createSlots({ _: 2 }, [
|
|
72
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k, i) => {
|
|
73
73
|
return {
|
|
74
74
|
name: k,
|
|
75
|
-
fn:
|
|
76
|
-
|
|
75
|
+
fn: vues.withCtx((scope) => [
|
|
76
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
77
77
|
])
|
|
78
78
|
};
|
|
79
79
|
})
|
|
80
|
-
]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"])) : (
|
|
81
|
-
height:
|
|
80
|
+
]), 1040, ["height", "class", "size", "value", "list", "paginat", "loading", "options", "compons", "onSortChange", "onRadioChange", "onSelectionChange", "onListEvents"])) : (vues.openBlock(), vues.createBlock(vues.unref(index$3.Tables), vues.mergeProps({ key: 1 }, vues.unref(tableConfig).config, vues.toHandlers(vues.unref(formEvent)), {
|
|
81
|
+
height: vues.unref(height),
|
|
82
82
|
ref_key: "refTable",
|
|
83
83
|
ref: refTable,
|
|
84
84
|
class: [
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
vues.unref(cs).z("main"),
|
|
86
|
+
vues.unref(cs).is("radio", (_b = vues.unref(tableConfig).config) == null ? void 0 : _b.isradio)
|
|
87
87
|
],
|
|
88
|
-
value:
|
|
89
|
-
list:
|
|
90
|
-
size: (_c =
|
|
91
|
-
paginat:
|
|
92
|
-
loading:
|
|
88
|
+
value: vues.unref(data).list,
|
|
89
|
+
list: vues.unref(tableList),
|
|
90
|
+
size: (_c = vues.unref(tableConfig).config) == null ? void 0 : _c.size,
|
|
91
|
+
paginat: vues.unref(paginat),
|
|
92
|
+
loading: vues.unref(loading),
|
|
93
93
|
options: props.options,
|
|
94
94
|
compons: props.compons,
|
|
95
|
-
onSortChange:
|
|
96
|
-
onListEvents:
|
|
97
|
-
onSelect:
|
|
98
|
-
onRowClick:
|
|
99
|
-
onSelectionChange:
|
|
100
|
-
}),
|
|
101
|
-
|
|
95
|
+
onSortChange: vues.unref(onSortChange),
|
|
96
|
+
onListEvents: vues.unref(onListEvents),
|
|
97
|
+
onSelect: vues.unref(onSelect),
|
|
98
|
+
onRowClick: vues.unref(onRowClick),
|
|
99
|
+
onSelectionChange: vues.unref(onChange)
|
|
100
|
+
}), vues.createSlots({ _: 2 }, [
|
|
101
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k, i) => {
|
|
102
102
|
return {
|
|
103
103
|
name: k,
|
|
104
|
-
fn:
|
|
105
|
-
|
|
104
|
+
fn: vues.withCtx((scope) => [
|
|
105
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
106
106
|
])
|
|
107
107
|
};
|
|
108
108
|
})
|
|
109
109
|
]), 1040, ["height", "class", "value", "list", "size", "paginat", "loading", "options", "compons", "onSortChange", "onListEvents", "onSelect", "onRowClick", "onSelectionChange"])),
|
|
110
|
-
((_d =
|
|
111
|
-
class:
|
|
112
|
-
paginat:
|
|
113
|
-
total:
|
|
114
|
-
onSizeChange:
|
|
115
|
-
onCurrentChange:
|
|
116
|
-
}), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) :
|
|
110
|
+
((_d = vues.unref(tableConfig).paginat) == null ? void 0 : _d.is) ? (vues.openBlock(), vues.createBlock(vues.unref(index$4.Paging), vues.mergeProps({ key: 2 }, vues.unref(pagconfig), {
|
|
111
|
+
class: vues.unref(cs).z("paginat"),
|
|
112
|
+
paginat: vues.unref(paginat),
|
|
113
|
+
total: vues.unref(data).total,
|
|
114
|
+
onSizeChange: vues.unref(onSizeChange),
|
|
115
|
+
onCurrentChange: vues.unref(onCurrentChange)
|
|
116
|
+
}), null, 16, ["class", "paginat", "total", "onSizeChange", "onCurrentChange"])) : vues.createCommentVNode("", true)
|
|
117
117
|
], 6);
|
|
118
118
|
};
|
|
119
119
|
}
|