@fangzhongya/fang-ui 0.1.37 → 0.1.39
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-adjust/src/data.cjs +2 -2
- package/dist/components/box-adjust/src/data.d.ts +2 -2
- package/dist/components/box-adjust/src/data.js +2 -2
- package/dist/components/common/css.d.ts +7 -0
- package/dist/components/common/list.d.ts +7 -0
- package/dist/components/common/urls.d.ts +6 -0
- package/dist/components/common/use.cjs +18 -35
- package/dist/components/common/use.d.ts +91 -5
- package/dist/components/common/use.js +18 -35
- package/dist/components/dates2/src/data.cjs +1 -1
- package/dist/components/dates2/src/data.d.ts +1 -1
- package/dist/components/dates2/src/data.js +1 -1
- package/dist/components/forms/src/setup.cjs +8 -23
- package/dist/components/forms/src/setup.d.ts +11 -1
- package/dist/components/forms/src/setup.js +11 -26
- package/dist/components/forms/src/util.cjs +85 -17
- package/dist/components/forms/src/util.d.ts +13 -7
- package/dist/components/forms/src/util.js +87 -19
- package/dist/components/forms-item/src/label.cjs +0 -1
- package/dist/components/forms-item/src/label.js +0 -1
- package/dist/components/list/index.css +1 -1
- package/dist/components/list/index.scss +1 -1
- package/dist/components/list/src/data.cjs +3 -0
- package/dist/components/list/src/data.d.ts +3 -0
- package/dist/components/list/src/data.js +3 -0
- package/dist/components/list/src/index2.cjs +19 -24
- package/dist/components/list/src/index2.js +17 -22
- package/dist/components/list/src/util.cjs +14 -6
- package/dist/components/list/src/util.d.ts +2 -1
- package/dist/components/list/src/util.js +14 -6
- package/dist/components/list/style/index2.scss +1 -0
- package/dist/components/lists/index.css +1 -1
- package/dist/components/lists/src/data.d.ts +3 -3
- package/dist/components/lists/src/index2.cjs +9 -9
- package/dist/components/lists/src/index2.js +9 -9
- package/dist/components/listsp/index.css +1 -1
- package/dist/components/listspd/index.css +1 -1
- package/dist/components/no-data/src/data.cjs +2 -2
- package/dist/components/no-data/src/data.d.ts +2 -2
- package/dist/components/no-data/src/data.js +2 -2
- package/dist/components/no-data/src/index2.cjs +2 -2
- package/dist/components/no-data/src/index2.js +2 -2
- package/dist/components/page/index.css +1 -1
- package/dist/components/tables/common/com-but.cjs +4 -0
- package/dist/components/tables/common/com-but.js +4 -0
- package/dist/components/tables/common/{table-but2.cjs → com-but2.cjs} +17 -13
- package/dist/components/tables/common/{table-but2.js → com-but2.js} +14 -10
- package/dist/components/tables/common/com-color.cjs +4 -0
- package/dist/components/tables/common/com-color.js +4 -0
- package/dist/components/tables/common/{table-color2.cjs → com-color2.cjs} +21 -8
- package/dist/components/tables/common/{table-color2.js → com-color2.js} +23 -10
- package/dist/components/tables/common/com-fig.cjs +4 -0
- package/dist/components/tables/common/com-fig.js +4 -0
- package/dist/components/tables/common/com-fig2.cjs +92 -0
- package/dist/components/tables/common/com-fig2.js +92 -0
- package/dist/components/tables/common/com-lis.cjs +4 -0
- package/dist/components/tables/common/com-lis.js +4 -0
- package/dist/components/tables/common/com-lis2.cjs +151 -0
- package/dist/components/tables/common/com-lis2.js +151 -0
- package/dist/components/tables/common/pagin.d.ts +24 -6
- package/dist/components/tables/common/util.cjs +56 -4
- package/dist/components/tables/common/util.d.ts +14 -0
- package/dist/components/tables/common/util.js +57 -5
- package/dist/components/tables/src/column.cjs +5 -3
- package/dist/components/tables/src/column.js +6 -4
- package/dist/components/tables/src/columns2.cjs +9 -7
- package/dist/components/tables/src/columns2.js +9 -7
- package/dist/components/tables/src/data.d.ts +3 -3
- package/dist/components/tables/src/index2.cjs +1 -1
- package/dist/components/tables/src/index2.js +1 -1
- package/dist/components/tables/style/index2.scss +1 -0
- package/dist/components/tablesv/src/column.cjs +5 -3
- package/dist/components/tablesv/src/column.js +6 -4
- package/dist/components/tablesv/src/columns2.cjs +9 -7
- package/dist/components/tablesv/src/columns2.js +9 -7
- package/dist/components/tablesv/src/data.d.ts +3 -3
- package/dist/components/tablesv/src/index2.cjs +1 -1
- package/dist/components/tablesv/src/index2.js +1 -1
- package/dist/components/window/src/data.cjs +1 -1
- package/dist/components/window/src/data.d.ts +1 -1
- package/dist/components/window/src/data.js +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/list.css +1 -1
- package/dist/css/lists.css +1 -1
- package/dist/css/listsp.css +1 -1
- package/dist/css/listspd.css +1 -1
- package/dist/css/page.css +1 -1
- package/dist/icons/index.json +1 -1
- package/dist/index.css +1 -1
- package/dist/locale/en.cjs +2 -1
- package/dist/locale/en.d.ts +1 -0
- package/dist/locale/en.js +2 -1
- package/dist/locale/zh-cn.cjs +2 -1
- package/dist/locale/zh-cn.d.ts +1 -0
- package/dist/locale/zh-cn.js +2 -1
- package/dist/type.d.ts +12 -3
- package/dist/utils/css.cjs +4 -0
- package/dist/utils/css.d.ts +1 -0
- package/dist/utils/css.js +4 -0
- package/package.json +2 -2
- package/dist/components/tables/common/img.cjs +0 -4
- package/dist/components/tables/common/img.js +0 -4
- package/dist/components/tables/common/img2.cjs +0 -37
- package/dist/components/tables/common/img2.js +0 -37
- package/dist/components/tables/common/table-but.cjs +0 -4
- package/dist/components/tables/common/table-but.js +0 -4
- package/dist/components/tables/common/table-color.cjs +0 -4
- package/dist/components/tables/common/table-color.js +0 -4
- package/dist/components/tables/common/table-list.cjs +0 -4
- package/dist/components/tables/common/table-list.js +0 -4
- package/dist/components/tables/common/table-list2.cjs +0 -125
- package/dist/components/tables/common/table-list2.js +0 -125
- /package/dist/components/{global-config → draggable}/index.css +0 -0
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/css/{global-config.css → draggable.css} +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
|
@@ -1,7 +1,45 @@
|
|
|
1
|
-
import { withModifiers } from "vue";
|
|
1
|
+
import { render, isVNode, h, withModifiers } from "vue";
|
|
2
|
+
import { useGetDomLabel } from "../../common/use.js";
|
|
2
3
|
import { firstUpper } from "@fangzhongya/utils/basic/string/firstUpper";
|
|
3
4
|
import { splitUpper } from "@fangzhongya/utils/basic/string/splitUpper";
|
|
4
5
|
import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
|
|
6
|
+
import { getCssNumber } from "../../../utils/css.js";
|
|
7
|
+
function getVNodeWidth(vnode) {
|
|
8
|
+
const container = document.createElement("div");
|
|
9
|
+
Object.assign(container.style, {
|
|
10
|
+
position: "absolute",
|
|
11
|
+
left: "-9999px",
|
|
12
|
+
top: "-9999px",
|
|
13
|
+
whiteSpace: "pre-wrap",
|
|
14
|
+
display: "inline-block",
|
|
15
|
+
visibility: "hidden"
|
|
16
|
+
});
|
|
17
|
+
document.body.appendChild(container);
|
|
18
|
+
render(vnode, container);
|
|
19
|
+
const width = container.offsetWidth;
|
|
20
|
+
container.remove();
|
|
21
|
+
render(null, container);
|
|
22
|
+
return width;
|
|
23
|
+
}
|
|
24
|
+
function setLabelWidth(obj, config) {
|
|
25
|
+
let label = useGetDomLabel(obj, {}, {}, {}, {}, () => {
|
|
26
|
+
}, 0);
|
|
27
|
+
if (!isVNode(label)) {
|
|
28
|
+
label = h(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
style: {
|
|
32
|
+
whiteSpace: "pre-wrap",
|
|
33
|
+
display: "inline-block"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
label
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
const width = getVNodeWidth(label);
|
|
40
|
+
const interval = config.intervalHorizon ?? config.interval;
|
|
41
|
+
return width + getCssNumber(interval) * 2;
|
|
42
|
+
}
|
|
5
43
|
function setMinWidth(obj, props) {
|
|
6
44
|
const config = (props == null ? void 0 : props.table) ?? {};
|
|
7
45
|
if (obj.width) {
|
|
@@ -12,16 +50,18 @@ function setMinWidth(obj, props) {
|
|
|
12
50
|
if (typeof minWidth == "function") {
|
|
13
51
|
return minWidth(obj, config);
|
|
14
52
|
} else if (typeof minWidth == "boolean") {
|
|
15
|
-
return (obj
|
|
53
|
+
return setLabelWidth(obj, config);
|
|
16
54
|
} else {
|
|
17
55
|
return minWidth;
|
|
18
56
|
}
|
|
19
57
|
} else {
|
|
20
58
|
const minWidth2 = getAttrValue(config, "minWidth");
|
|
21
|
-
if (minWidth2) {
|
|
22
|
-
return minWidth2;
|
|
59
|
+
if (typeof minWidth2 == "function") {
|
|
60
|
+
return minWidth2(obj, config);
|
|
61
|
+
} else if (typeof minWidth2 == "boolean") {
|
|
62
|
+
return setLabelWidth(obj, config);
|
|
23
63
|
} else {
|
|
24
|
-
return;
|
|
64
|
+
return minWidth2;
|
|
25
65
|
}
|
|
26
66
|
}
|
|
27
67
|
}
|
|
@@ -110,7 +150,19 @@ function eventAliass(callback, arr, obj, $event) {
|
|
|
110
150
|
}
|
|
111
151
|
return is;
|
|
112
152
|
}
|
|
153
|
+
function setEmptyDisplay(value, emptyDisplay, isStr) {
|
|
154
|
+
if (isStr) {
|
|
155
|
+
if (value === "" || value === void 0 || value === null) {
|
|
156
|
+
return emptyDisplay;
|
|
157
|
+
}
|
|
158
|
+
} else {
|
|
159
|
+
if (value === void 0 || value === null) {
|
|
160
|
+
return emptyDisplay;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
113
164
|
export {
|
|
114
165
|
eventAliass,
|
|
166
|
+
setEmptyDisplay,
|
|
115
167
|
setMinWidth
|
|
116
168
|
};
|
|
@@ -55,7 +55,7 @@ function setSslot(obj, scope, emit, slots, props, index$12) {
|
|
|
55
55
|
index.useComponsGet(config.provides.compons),
|
|
56
56
|
emit,
|
|
57
57
|
index$12,
|
|
58
|
-
scope
|
|
58
|
+
{ ...scope, options: props.options, config: props.table }
|
|
59
59
|
);
|
|
60
60
|
if (column) {
|
|
61
61
|
return column;
|
|
@@ -91,13 +91,15 @@ function defaultDom(obj, scope, props, index2) {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
domValue
|
|
94
|
+
setDomValue(domValue, table)
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
|
+
function setDomValue(domValue, table) {
|
|
98
|
+
return (util.setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
|
|
99
|
+
}
|
|
97
100
|
function setHeader(obj, scope, slots, emit, props, index$12) {
|
|
98
101
|
const optionss = props.options || {};
|
|
99
102
|
return use.useGetDomLabel(
|
|
100
|
-
obj.label,
|
|
101
103
|
obj,
|
|
102
104
|
scope.row,
|
|
103
105
|
slots,
|
|
@@ -3,7 +3,7 @@ import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel } from "../../
|
|
|
3
3
|
import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
|
|
4
4
|
import { useComponsGet } from "../../../hooks/compons/index.js";
|
|
5
5
|
import { provides } from "../common/config.js";
|
|
6
|
-
import { setMinWidth } from "../common/util.js";
|
|
6
|
+
import { setEmptyDisplay, setMinWidth } from "../common/util.js";
|
|
7
7
|
import { lineToSmallHump } from "@fangzhongya/utils/name/lineToSmallHump";
|
|
8
8
|
import { TableColumn } from "../../table-column/index.js";
|
|
9
9
|
const noProps = /* @__PURE__ */ new Set(["children", "class", "minWidth", "label"]);
|
|
@@ -53,7 +53,7 @@ function setSslot(obj, scope, emit, slots, props, index) {
|
|
|
53
53
|
useComponsGet(provides.compons),
|
|
54
54
|
emit,
|
|
55
55
|
index,
|
|
56
|
-
scope
|
|
56
|
+
{ ...scope, options: props.options, config: props.table }
|
|
57
57
|
);
|
|
58
58
|
if (column) {
|
|
59
59
|
return column;
|
|
@@ -89,13 +89,15 @@ function defaultDom(obj, scope, props, index) {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
-
domValue
|
|
92
|
+
setDomValue(domValue, table)
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
|
+
function setDomValue(domValue, table) {
|
|
96
|
+
return (setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
|
|
97
|
+
}
|
|
95
98
|
function setHeader(obj, scope, slots, emit, props, index) {
|
|
96
99
|
const optionss = props.options || {};
|
|
97
100
|
return useGetDomLabel(
|
|
98
|
-
obj.label,
|
|
99
101
|
obj,
|
|
100
102
|
scope.row,
|
|
101
103
|
slots,
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const columns = require("./columns3.cjs");
|
|
5
|
-
require("../common/
|
|
6
|
-
require("../common/
|
|
7
|
-
require("../common/
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
5
|
+
require("../common/com-but.cjs");
|
|
6
|
+
require("../common/com-color.cjs");
|
|
7
|
+
require("../common/com-lis.cjs");
|
|
8
|
+
require("../common/com-fig.cjs");
|
|
9
|
+
const comFig_vue_vue_type_script_setup_true_lang = require("../common/com-fig2.cjs");
|
|
10
|
+
const comLis_vue_vue_type_script_setup_true_lang = require("../common/com-lis2.cjs");
|
|
11
|
+
const comColor_vue_vue_type_script_setup_true_lang = require("../common/com-color2.cjs");
|
|
12
|
+
const comBut_vue_vue_type_script_setup_true_lang = require("../common/com-but2.cjs");
|
|
11
13
|
const _sfc_main = vue.defineComponent({
|
|
12
14
|
emits: ["list-events"],
|
|
13
|
-
components: { But:
|
|
15
|
+
components: { But: comBut_vue_vue_type_script_setup_true_lang.default, Color: comColor_vue_vue_type_script_setup_true_lang.default, Lis: comLis_vue_vue_type_script_setup_true_lang.default, Fig: comFig_vue_vue_type_script_setup_true_lang.default },
|
|
14
16
|
expose: [],
|
|
15
17
|
props: {
|
|
16
18
|
list: Array,
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { defineComponent } from "vue";
|
|
2
2
|
import { render } from "./columns3.js";
|
|
3
|
-
import "../common/
|
|
4
|
-
import "../common/
|
|
5
|
-
import "../common/
|
|
6
|
-
import
|
|
7
|
-
import _sfc_main$
|
|
8
|
-
import _sfc_main$
|
|
3
|
+
import "../common/com-but.js";
|
|
4
|
+
import "../common/com-color.js";
|
|
5
|
+
import "../common/com-lis.js";
|
|
6
|
+
import "../common/com-fig.js";
|
|
7
|
+
import _sfc_main$1 from "../common/com-fig2.js";
|
|
8
|
+
import _sfc_main$2 from "../common/com-lis2.js";
|
|
9
|
+
import _sfc_main$3 from "../common/com-color2.js";
|
|
10
|
+
import _sfc_main$4 from "../common/com-but2.js";
|
|
9
11
|
const _sfc_main = defineComponent({
|
|
10
12
|
emits: ["list-events"],
|
|
11
|
-
components: { But: _sfc_main$
|
|
13
|
+
components: { But: _sfc_main$4, Color: _sfc_main$3, Lis: _sfc_main$2, Fig: _sfc_main$1 },
|
|
12
14
|
expose: [],
|
|
13
15
|
props: {
|
|
14
16
|
list: Array,
|
|
@@ -166,10 +166,10 @@ export declare const dataEmits: string[];
|
|
|
166
166
|
export type DataEmits = typeof dataEmits;
|
|
167
167
|
/**
|
|
168
168
|
* @expose clearSelection ( ) 清除多选
|
|
169
|
-
* @expose
|
|
170
|
-
* @expose
|
|
169
|
+
* @expose toggleRowSelection (row, selected, key ) 切换选择
|
|
170
|
+
* @expose clearCurrentRow ( ) 清空选中
|
|
171
171
|
* @expose { Object: { value: 值,
|
|
172
172
|
list: 当前列,
|
|
173
|
-
key: key的名称,} }
|
|
173
|
+
key: key的名称,} } getSelections (row, key ) 获取选中的值
|
|
174
174
|
*/
|
|
175
175
|
export declare const dataExpose: {};
|
|
@@ -183,7 +183,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
183
183
|
]),
|
|
184
184
|
default: vue.withCtx(() => [
|
|
185
185
|
vue.createVNode(columns_vue_vue_type_script_lang.default, {
|
|
186
|
-
table: vue.unref(attrs).assem,
|
|
186
|
+
table: { ...vue.unref(props), ...vue.unref(attrs).assem },
|
|
187
187
|
value: vue.unref(props).value,
|
|
188
188
|
list: vue.unref(props).list,
|
|
189
189
|
options: vue.unref(props).options,
|
|
@@ -181,7 +181,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
181
181
|
]),
|
|
182
182
|
default: withCtx(() => [
|
|
183
183
|
createVNode(_sfc_main$1, {
|
|
184
|
-
table: unref(attrs).assem,
|
|
184
|
+
table: { ...unref(props), ...unref(attrs).assem },
|
|
185
185
|
value: unref(props).value,
|
|
186
186
|
list: unref(props).list,
|
|
187
187
|
options: unref(props).options,
|
|
@@ -86,7 +86,7 @@ function setSslot(obj, scope, emit, slots, props, index$12) {
|
|
|
86
86
|
index.useComponsGet(config.provides.compons),
|
|
87
87
|
emit,
|
|
88
88
|
index$12,
|
|
89
|
-
scope
|
|
89
|
+
{ ...scope, options: props.options, config: props.table }
|
|
90
90
|
);
|
|
91
91
|
if (column2) {
|
|
92
92
|
return column2;
|
|
@@ -122,13 +122,15 @@ function defaultDom(obj, scope, props, index2) {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
|
-
domValue
|
|
125
|
+
setDomValue(domValue, table)
|
|
126
126
|
);
|
|
127
127
|
}
|
|
128
|
+
function setDomValue(domValue, table) {
|
|
129
|
+
return (util.setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
|
|
130
|
+
}
|
|
128
131
|
function setHeader(obj, scope, slots, emit, props, index$12) {
|
|
129
132
|
const optionss = props.options || {};
|
|
130
133
|
return use.useGetDomLabel(
|
|
131
|
-
obj.label,
|
|
132
134
|
obj,
|
|
133
135
|
scope.row,
|
|
134
136
|
slots,
|
|
@@ -3,7 +3,7 @@ import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel } from "../../
|
|
|
3
3
|
import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
|
|
4
4
|
import { useComponsGet } from "../../../hooks/compons/index.js";
|
|
5
5
|
import { provides } from "../../tables/common/config.js";
|
|
6
|
-
import { setMinWidth } from "../../tables/common/util.js";
|
|
6
|
+
import { setEmptyDisplay, setMinWidth } from "../../tables/common/util.js";
|
|
7
7
|
import { lineToSmallHump } from "@fangzhongya/utils/name/lineToSmallHump";
|
|
8
8
|
import { VxeColumn } from "vxe-table/es/column";
|
|
9
9
|
import { Radio } from "../../radio/index.js";
|
|
@@ -84,7 +84,7 @@ function setSslot(obj, scope, emit, slots, props, index) {
|
|
|
84
84
|
useComponsGet(provides.compons),
|
|
85
85
|
emit,
|
|
86
86
|
index,
|
|
87
|
-
scope
|
|
87
|
+
{ ...scope, options: props.options, config: props.table }
|
|
88
88
|
);
|
|
89
89
|
if (column) {
|
|
90
90
|
return column;
|
|
@@ -120,13 +120,15 @@ function defaultDom(obj, scope, props, index) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
domValue
|
|
123
|
+
setDomValue(domValue, table)
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
|
+
function setDomValue(domValue, table) {
|
|
127
|
+
return (setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
|
|
128
|
+
}
|
|
126
129
|
function setHeader(obj, scope, slots, emit, props, index) {
|
|
127
130
|
const optionss = props.options || {};
|
|
128
131
|
return useGetDomLabel(
|
|
129
|
-
obj.label,
|
|
130
132
|
obj,
|
|
131
133
|
scope.row,
|
|
132
134
|
slots,
|
|
@@ -3,15 +3,17 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const columns = require("./columns3.cjs");
|
|
5
5
|
const index = require("../../tooltip/index.cjs");
|
|
6
|
-
require("../../tables/common/
|
|
7
|
-
require("../../tables/common/
|
|
8
|
-
require("../../tables/common/
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const
|
|
6
|
+
require("../../tables/common/com-but.cjs");
|
|
7
|
+
require("../../tables/common/com-color.cjs");
|
|
8
|
+
require("../../tables/common/com-lis.cjs");
|
|
9
|
+
require("../../tables/common/com-fig.cjs");
|
|
10
|
+
const comFig_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-fig2.cjs");
|
|
11
|
+
const comLis_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-lis2.cjs");
|
|
12
|
+
const comColor_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-color2.cjs");
|
|
13
|
+
const comBut_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-but2.cjs");
|
|
12
14
|
const _sfc_main = vue.defineComponent({
|
|
13
15
|
emits: ["list-events"],
|
|
14
|
-
components: { VxeTooltip: index.Tooltip, But:
|
|
16
|
+
components: { VxeTooltip: index.Tooltip, But: comBut_vue_vue_type_script_setup_true_lang.default, Color: comColor_vue_vue_type_script_setup_true_lang.default, Lis: comLis_vue_vue_type_script_setup_true_lang.default, Fig: comFig_vue_vue_type_script_setup_true_lang.default },
|
|
15
17
|
expose: [],
|
|
16
18
|
props: {
|
|
17
19
|
list: Array,
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { defineComponent } from "vue";
|
|
2
2
|
import { render } from "./columns3.js";
|
|
3
3
|
import { Tooltip } from "../../tooltip/index.js";
|
|
4
|
-
import "../../tables/common/
|
|
5
|
-
import "../../tables/common/
|
|
6
|
-
import "../../tables/common/
|
|
7
|
-
import
|
|
8
|
-
import _sfc_main$
|
|
9
|
-
import _sfc_main$
|
|
4
|
+
import "../../tables/common/com-but.js";
|
|
5
|
+
import "../../tables/common/com-color.js";
|
|
6
|
+
import "../../tables/common/com-lis.js";
|
|
7
|
+
import "../../tables/common/com-fig.js";
|
|
8
|
+
import _sfc_main$1 from "../../tables/common/com-fig2.js";
|
|
9
|
+
import _sfc_main$2 from "../../tables/common/com-lis2.js";
|
|
10
|
+
import _sfc_main$3 from "../../tables/common/com-color2.js";
|
|
11
|
+
import _sfc_main$4 from "../../tables/common/com-but2.js";
|
|
10
12
|
const _sfc_main = defineComponent({
|
|
11
13
|
emits: ["list-events"],
|
|
12
|
-
components: { VxeTooltip: Tooltip, But: _sfc_main$
|
|
14
|
+
components: { VxeTooltip: Tooltip, But: _sfc_main$4, Color: _sfc_main$3, Lis: _sfc_main$2, Fig: _sfc_main$1 },
|
|
13
15
|
expose: [],
|
|
14
16
|
props: {
|
|
15
17
|
list: Array,
|
|
@@ -166,10 +166,10 @@ export declare const dataEmits: string[];
|
|
|
166
166
|
export type DataEmits = typeof dataEmits;
|
|
167
167
|
/**
|
|
168
168
|
* @expose clearSelection ( ) 清除多选
|
|
169
|
-
* @expose
|
|
170
|
-
* @expose
|
|
169
|
+
* @expose toggleRowSelection (row, selected, key ) 切换选择
|
|
170
|
+
* @expose clearCurrentRow ( ) 清空选中
|
|
171
171
|
* @expose { Object: { value: 值,
|
|
172
172
|
list: 当前列,
|
|
173
|
-
key: key的名称,} }
|
|
173
|
+
key: key的名称,} } getSelections (row, key ) 获取选中的值
|
|
174
174
|
*/
|
|
175
175
|
export declare const dataExpose: {};
|
|
@@ -256,7 +256,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
256
256
|
]),
|
|
257
257
|
default: vue.withCtx(() => [
|
|
258
258
|
vue.createVNode(columns_vue_vue_type_script_lang.default, {
|
|
259
|
-
table: vue.unref(attrs).assem,
|
|
259
|
+
table: { ...vue.unref(props), ...vue.unref(attrs).assem },
|
|
260
260
|
vxeconfig: config$1.value,
|
|
261
261
|
value: vue.unref(props).value,
|
|
262
262
|
list: vue.unref(props).list,
|
|
@@ -254,7 +254,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
254
254
|
]),
|
|
255
255
|
default: withCtx(() => [
|
|
256
256
|
createVNode(_sfc_main$1, {
|
|
257
|
-
table: unref(attrs).assem,
|
|
257
|
+
table: { ...unref(props), ...unref(attrs).assem },
|
|
258
258
|
vxeconfig: config.value,
|
|
259
259
|
value: unref(props).value,
|
|
260
260
|
list: unref(props).list,
|
package/dist/css/index.css
CHANGED
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
}
|
|
1132
1132
|
.list-div .list-table .list-table-value {
|
|
1133
1133
|
word-break: break-all;
|
|
1134
|
-
white-space:
|
|
1134
|
+
white-space: pre-wrap;
|
|
1135
1135
|
max-height: var(--list-row-max-height);
|
|
1136
1136
|
display: -webkit-box;
|
|
1137
1137
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/css/list.css
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
|
-
white-space:
|
|
104
|
+
white-space: pre-wrap;
|
|
105
105
|
max-height: var(--list-row-max-height);
|
|
106
106
|
display: -webkit-box;
|
|
107
107
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/css/lists.css
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
|
-
white-space:
|
|
104
|
+
white-space: pre-wrap;
|
|
105
105
|
max-height: var(--list-row-max-height);
|
|
106
106
|
display: -webkit-box;
|
|
107
107
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/css/listsp.css
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
|
-
white-space:
|
|
104
|
+
white-space: pre-wrap;
|
|
105
105
|
max-height: var(--list-row-max-height);
|
|
106
106
|
display: -webkit-box;
|
|
107
107
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/css/listspd.css
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
.list-div .list-table .list-table-value {
|
|
103
103
|
word-break: break-all;
|
|
104
|
-
white-space:
|
|
104
|
+
white-space: pre-wrap;
|
|
105
105
|
max-height: var(--list-row-max-height);
|
|
106
106
|
display: -webkit-box;
|
|
107
107
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/css/page.css
CHANGED
|
@@ -719,7 +719,7 @@
|
|
|
719
719
|
}
|
|
720
720
|
.list-div .list-table .list-table-value {
|
|
721
721
|
word-break: break-all;
|
|
722
|
-
white-space:
|
|
722
|
+
white-space: pre-wrap;
|
|
723
723
|
max-height: var(--list-row-max-height);
|
|
724
724
|
display: -webkit-box;
|
|
725
725
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/icons/index.json
CHANGED
package/dist/index.css
CHANGED
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
}
|
|
1132
1132
|
.list-div .list-table .list-table-value {
|
|
1133
1133
|
word-break: break-all;
|
|
1134
|
-
white-space:
|
|
1134
|
+
white-space: pre-wrap;
|
|
1135
1135
|
max-height: var(--list-row-max-height);
|
|
1136
1136
|
display: -webkit-box;
|
|
1137
1137
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
package/dist/locale/en.cjs
CHANGED
package/dist/locale/en.d.ts
CHANGED
package/dist/locale/en.js
CHANGED
package/dist/locale/zh-cn.cjs
CHANGED
package/dist/locale/zh-cn.d.ts
CHANGED
package/dist/locale/zh-cn.js
CHANGED
package/dist/type.d.ts
CHANGED
|
@@ -29,19 +29,28 @@ type Rule = {
|
|
|
29
29
|
/**
|
|
30
30
|
* 类型
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
trigger?: string | string[] | number;
|
|
33
33
|
/**
|
|
34
34
|
* 是否必传
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
required?: boolean;
|
|
37
37
|
/**
|
|
38
38
|
* 校验方法
|
|
39
39
|
*/
|
|
40
|
-
judge
|
|
40
|
+
judge?: string | Function;
|
|
41
41
|
/**
|
|
42
42
|
* 校验失败提示
|
|
43
43
|
*/
|
|
44
44
|
error?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 校验联动配置
|
|
47
|
+
*/
|
|
48
|
+
linkage?:
|
|
49
|
+
| string
|
|
50
|
+
| {
|
|
51
|
+
prop?: string;
|
|
52
|
+
judge?: Function;
|
|
53
|
+
};
|
|
45
54
|
};
|
|
46
55
|
|
|
47
56
|
type ListObj = {
|
package/dist/utils/css.cjs
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const setObjStyle = require("@fangzhongya/utils/css/setObjStyle");
|
|
4
4
|
const getCss = require("@fangzhongya/utils/css/getCss");
|
|
5
|
+
function getCssNumber(str = "") {
|
|
6
|
+
return Number(String(str).replaceAll(/[^0-9.-]/g, ""));
|
|
7
|
+
}
|
|
5
8
|
Object.defineProperty(exports, "setObjStyle", {
|
|
6
9
|
enumerable: true,
|
|
7
10
|
get: () => setObjStyle.setObjStyle
|
|
@@ -10,3 +13,4 @@ Object.defineProperty(exports, "getCss", {
|
|
|
10
13
|
enumerable: true,
|
|
11
14
|
get: () => getCss.getCss
|
|
12
15
|
});
|
|
16
|
+
exports.getCssNumber = getCssNumber;
|
package/dist/utils/css.d.ts
CHANGED
package/dist/utils/css.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { setObjStyle } from "@fangzhongya/utils/css/setObjStyle";
|
|
2
2
|
import { getCss } from "@fangzhongya/utils/css/getCss";
|
|
3
|
+
function getCssNumber(str = "") {
|
|
4
|
+
return Number(String(str).replaceAll(/[^0-9.-]/g, ""));
|
|
5
|
+
}
|
|
3
6
|
export {
|
|
4
7
|
getCss,
|
|
8
|
+
getCssNumber,
|
|
5
9
|
setObjStyle
|
|
6
10
|
};
|