@fangzhongya/fang-ui 0.1.37 → 0.1.38
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/use.cjs +4 -2
- package/dist/components/common/use.js +4 -2
- 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 +1 -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 +2 -1
- package/dist/components/forms/src/util.js +87 -19
- 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 +18 -13
- package/dist/components/list/src/index2.js +16 -11
- package/dist/components/list/src/util.cjs +12 -2
- package/dist/components/list/src/util.d.ts +1 -0
- package/dist/components/list/src/util.js +12 -2
- 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 +14 -6
- package/dist/components/tables/common/util.cjs +12 -0
- package/dist/components/tables/common/util.d.ts +1 -0
- package/dist/components/tables/common/util.js +12 -0
- package/dist/components/tables/src/column.cjs +5 -2
- package/dist/components/tables/src/column.js +6 -3
- 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/style/index2.scss +1 -0
- package/dist/components/tablesv/src/column.cjs +5 -2
- package/dist/components/tablesv/src/column.js +6 -3
- 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/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/type.d.ts +12 -3
- 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 → keep-com}/index.css +0 -0
- /package/dist/css/{global-config.css → keep-com.css} +0 -0
|
@@ -9,19 +9,19 @@ const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
|
9
9
|
const tooltip = require("../../tables/common/tooltip.cjs");
|
|
10
10
|
const index = require("../../../hooks/props-default/index.cjs");
|
|
11
11
|
const data = require("./data.cjs");
|
|
12
|
-
require("../../tables/common/
|
|
13
|
-
require("../../tables/common/
|
|
14
|
-
require("../../tables/common/
|
|
15
|
-
require("../../tables/common/
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
12
|
+
require("../../tables/common/com-fig.cjs");
|
|
13
|
+
require("../../tables/common/com-but.cjs");
|
|
14
|
+
require("../../tables/common/com-color.cjs");
|
|
15
|
+
require("../../tables/common/com-lis.cjs");
|
|
16
|
+
const comFig_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-fig2.cjs");
|
|
17
|
+
const comLis_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-lis2.cjs");
|
|
18
|
+
const comColor_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-color2.cjs");
|
|
19
|
+
const comBut_vue_vue_type_script_setup_true_lang = require("../../tables/common/com-but2.cjs");
|
|
20
20
|
const Components = {
|
|
21
|
-
But:
|
|
22
|
-
Color:
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
But: comBut_vue_vue_type_script_setup_true_lang.default,
|
|
22
|
+
Color: comColor_vue_vue_type_script_setup_true_lang.default,
|
|
23
|
+
Lis: comLis_vue_vue_type_script_setup_true_lang.default,
|
|
24
|
+
Fig: comFig_vue_vue_type_script_setup_true_lang.default
|
|
25
25
|
};
|
|
26
26
|
const _sfc_main = vue.defineComponent({
|
|
27
27
|
name: data.name,
|
|
@@ -251,7 +251,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
251
251
|
},
|
|
252
252
|
title: obj.title,
|
|
253
253
|
onMouseenter: ($event) => handleCellMouseEnter($event, obj),
|
|
254
|
-
onMouseleave: handleCellMouseLeave
|
|
254
|
+
onMouseleave: handleCellMouseLeave,
|
|
255
|
+
onClick(event) {
|
|
256
|
+
if (obj.click) {
|
|
257
|
+
obj.click(event, props, obj);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
255
260
|
},
|
|
256
261
|
[
|
|
257
262
|
util.setSslot(
|
|
@@ -7,19 +7,19 @@ import { useCssName } from "../../../hooks/cssname/index.js";
|
|
|
7
7
|
import { hideTooltip, showTooltip } from "../../tables/common/tooltip.js";
|
|
8
8
|
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
9
9
|
import { name, dataProps, dataExpose, dataEmits } from "./data.js";
|
|
10
|
-
import "../../tables/common/
|
|
11
|
-
import "../../tables/common/
|
|
12
|
-
import "../../tables/common/
|
|
13
|
-
import "../../tables/common/
|
|
14
|
-
import _sfc_main$1 from "../../tables/common/
|
|
15
|
-
import _sfc_main$2 from "../../tables/common/
|
|
16
|
-
import _sfc_main$3 from "../../tables/common/
|
|
17
|
-
import _sfc_main$4 from "../../tables/common/
|
|
10
|
+
import "../../tables/common/com-fig.js";
|
|
11
|
+
import "../../tables/common/com-but.js";
|
|
12
|
+
import "../../tables/common/com-color.js";
|
|
13
|
+
import "../../tables/common/com-lis.js";
|
|
14
|
+
import _sfc_main$1 from "../../tables/common/com-fig2.js";
|
|
15
|
+
import _sfc_main$2 from "../../tables/common/com-lis2.js";
|
|
16
|
+
import _sfc_main$3 from "../../tables/common/com-color2.js";
|
|
17
|
+
import _sfc_main$4 from "../../tables/common/com-but2.js";
|
|
18
18
|
const Components = {
|
|
19
19
|
But: _sfc_main$4,
|
|
20
20
|
Color: _sfc_main$3,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
Lis: _sfc_main$2,
|
|
22
|
+
Fig: _sfc_main$1
|
|
23
23
|
};
|
|
24
24
|
const _sfc_main = defineComponent({
|
|
25
25
|
name,
|
|
@@ -249,7 +249,12 @@ const _sfc_main = defineComponent({
|
|
|
249
249
|
},
|
|
250
250
|
title: obj.title,
|
|
251
251
|
onMouseenter: ($event) => handleCellMouseEnter($event, obj),
|
|
252
|
-
onMouseleave: handleCellMouseLeave
|
|
252
|
+
onMouseleave: handleCellMouseLeave,
|
|
253
|
+
onClick(event) {
|
|
254
|
+
if (obj.click) {
|
|
255
|
+
obj.click(event, props, obj);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
253
258
|
},
|
|
254
259
|
[
|
|
255
260
|
setSslot(
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("vue");
|
|
4
4
|
const use = require("../../common/use.cjs");
|
|
5
|
+
const util = require("../../tables/common/util.cjs");
|
|
5
6
|
const setClass = (item, data, index) => {
|
|
6
7
|
const v = data[item.state ?? item.prop];
|
|
7
8
|
if (item.setcss) {
|
|
@@ -23,14 +24,22 @@ function setSslot(obj, data, props, compons, emit, slots, isComponSelected, inde
|
|
|
23
24
|
optionss,
|
|
24
25
|
compons,
|
|
25
26
|
emit,
|
|
26
|
-
index
|
|
27
|
+
index,
|
|
28
|
+
{
|
|
29
|
+
options: props.options,
|
|
30
|
+
config: props
|
|
31
|
+
}
|
|
27
32
|
);
|
|
28
33
|
if (column) {
|
|
29
34
|
return column;
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
|
-
|
|
38
|
+
const domValue = use.useGetDomValue(obj, data, optionss, index);
|
|
39
|
+
return setDomValue(domValue, props);
|
|
40
|
+
}
|
|
41
|
+
function setDomValue(domValue, table) {
|
|
42
|
+
return (util.setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
|
|
34
43
|
}
|
|
35
44
|
function setLabel(obj, props, compons, emit, slots, isComponSelected, index) {
|
|
36
45
|
let label = obj.label ?? "";
|
|
@@ -59,5 +68,6 @@ function setLabel(obj, props, compons, emit, slots, isComponSelected, index) {
|
|
|
59
68
|
return label;
|
|
60
69
|
}
|
|
61
70
|
exports.setClass = setClass;
|
|
71
|
+
exports.setDomValue = setDomValue;
|
|
62
72
|
exports.setLabel = setLabel;
|
|
63
73
|
exports.setSslot = setSslot;
|
|
@@ -4,5 +4,6 @@ type Compons = {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const setClass: (item: ListObj, data: ObjStr, index: number) => any;
|
|
6
6
|
export declare function setSslot(obj: ListObj, data: ObjAny, props: ObjAny, compons: Compons, emit: Function, slots: ObjAny, isComponSelected: Function, index?: number): any;
|
|
7
|
+
export declare function setDomValue(domValue: any, table: ObjAny): any;
|
|
7
8
|
export declare function setLabel(obj: ObjAny, props: ObjAny, compons: Compons, emit: Function, slots: ObjAny, isComponSelected: (obj: ObjAny) => boolean, index?: number): any;
|
|
8
9
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "vue";
|
|
2
2
|
import { useSetSlot, useSetCompon, useGetDomValue, useGetDomLabel, useLabelAdditional } from "../../common/use.js";
|
|
3
|
+
import { setEmptyDisplay } from "../../tables/common/util.js";
|
|
3
4
|
const setClass = (item, data, index) => {
|
|
4
5
|
const v = data[item.state ?? item.prop];
|
|
5
6
|
if (item.setcss) {
|
|
@@ -21,14 +22,22 @@ function setSslot(obj, data, props, compons, emit, slots, isComponSelected, inde
|
|
|
21
22
|
optionss,
|
|
22
23
|
compons,
|
|
23
24
|
emit,
|
|
24
|
-
index
|
|
25
|
+
index,
|
|
26
|
+
{
|
|
27
|
+
options: props.options,
|
|
28
|
+
config: props
|
|
29
|
+
}
|
|
25
30
|
);
|
|
26
31
|
if (column) {
|
|
27
32
|
return column;
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
}
|
|
31
|
-
|
|
36
|
+
const domValue = useGetDomValue(obj, data, optionss, index);
|
|
37
|
+
return setDomValue(domValue, props);
|
|
38
|
+
}
|
|
39
|
+
function setDomValue(domValue, table) {
|
|
40
|
+
return (setEmptyDisplay(domValue, table.emptyDisplay, table.isEmptyStr) || domValue) ?? "";
|
|
32
41
|
}
|
|
33
42
|
function setLabel(obj, props, compons, emit, slots, isComponSelected, index) {
|
|
34
43
|
let label = obj.label ?? "";
|
|
@@ -58,6 +67,7 @@ function setLabel(obj, props, compons, emit, slots, isComponSelected, index) {
|
|
|
58
67
|
}
|
|
59
68
|
export {
|
|
60
69
|
setClass,
|
|
70
|
+
setDomValue,
|
|
61
71
|
setLabel,
|
|
62
72
|
setSslot
|
|
63
73
|
};
|
|
@@ -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); /* 显示的行数 */
|
|
@@ -162,11 +162,11 @@ export declare const dataEmits: string[];
|
|
|
162
162
|
export type DataEmits = typeof dataEmits;
|
|
163
163
|
/**
|
|
164
164
|
* @expose clearSelection ( ) 清除多选
|
|
165
|
-
* @expose
|
|
166
|
-
* @expose
|
|
165
|
+
* @expose toggleRowSelection (row, selected, key ) 切换选择
|
|
166
|
+
* @expose clearCurrentRow ( ) 清空选中
|
|
167
167
|
* @expose { Object: { value: 值,
|
|
168
168
|
list: 当前列,
|
|
169
|
-
key: key的名称,} }
|
|
169
|
+
key: key的名称,} } getSelections (row, key ) 获取选中的值
|
|
170
170
|
*/
|
|
171
171
|
export declare const dataExpose: {};
|
|
172
172
|
export declare const dataSlot: {
|
|
@@ -211,12 +211,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
211
211
|
}, () => [
|
|
212
212
|
vue.createVNode(vue.unref(index$4.Card), null, vue.createSlots({
|
|
213
213
|
default: vue.withCtx(() => [
|
|
214
|
-
vue.createVNode(vue.unref(index$5.List), {
|
|
214
|
+
vue.createVNode(vue.unref(index$5.List), vue.mergeProps({ ref_for: true }, vue.unref(attrs).assem, {
|
|
215
215
|
value: item,
|
|
216
216
|
list: setListValue(dataList.value, index2),
|
|
217
217
|
options: vue.unref(props).options,
|
|
218
218
|
compons: vue.unref(props).compons
|
|
219
|
-
}, vue.createSlots({ _: 2 }, [
|
|
219
|
+
}), vue.createSlots({ _: 2 }, [
|
|
220
220
|
vue.renderList(Object.keys(vue.unref(slots)).filter(
|
|
221
221
|
(v) => !["no-data"].includes(v)
|
|
222
222
|
), (k) => {
|
|
@@ -227,19 +227,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
227
227
|
])
|
|
228
228
|
};
|
|
229
229
|
})
|
|
230
|
-
]),
|
|
230
|
+
]), 1040, ["value", "list", "options", "compons"])
|
|
231
231
|
]),
|
|
232
232
|
_: 2
|
|
233
233
|
}, [
|
|
234
234
|
header.value.length > 0 ? {
|
|
235
235
|
name: "header",
|
|
236
236
|
fn: vue.withCtx(() => [
|
|
237
|
-
vue.createVNode(vue.unref(index$5.List), {
|
|
237
|
+
vue.createVNode(vue.unref(index$5.List), vue.mergeProps({ ref_for: true }, vue.unref(attrs).assem, {
|
|
238
238
|
value: item,
|
|
239
239
|
list: setListValue(header.value, index2),
|
|
240
240
|
options: vue.unref(props).options,
|
|
241
241
|
compons: vue.unref(props).compons
|
|
242
|
-
}, vue.createSlots({ _: 2 }, [
|
|
242
|
+
}), vue.createSlots({ _: 2 }, [
|
|
243
243
|
vue.renderList(Object.keys(vue.unref(slots)).filter(
|
|
244
244
|
(v) => !["no-data"].includes(v)
|
|
245
245
|
), (k) => {
|
|
@@ -250,19 +250,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
250
250
|
])
|
|
251
251
|
};
|
|
252
252
|
})
|
|
253
|
-
]),
|
|
253
|
+
]), 1040, ["value", "list", "options", "compons"])
|
|
254
254
|
]),
|
|
255
255
|
key: "0"
|
|
256
256
|
} : void 0,
|
|
257
257
|
footer.value.length > 0 ? {
|
|
258
258
|
name: "footer",
|
|
259
259
|
fn: vue.withCtx(() => [
|
|
260
|
-
vue.createVNode(vue.unref(index$5.List), {
|
|
260
|
+
vue.createVNode(vue.unref(index$5.List), vue.mergeProps({ ref_for: true }, vue.unref(attrs).assem, {
|
|
261
261
|
value: item,
|
|
262
262
|
list: setListValue(footer.value, index2),
|
|
263
263
|
options: vue.unref(props).options,
|
|
264
264
|
compons: vue.unref(props).compons
|
|
265
|
-
}, vue.createSlots({ _: 2 }, [
|
|
265
|
+
}), vue.createSlots({ _: 2 }, [
|
|
266
266
|
vue.renderList(Object.keys(vue.unref(slots)).filter(
|
|
267
267
|
(v) => !["no-data"].includes(v)
|
|
268
268
|
), (k) => {
|
|
@@ -273,7 +273,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
273
273
|
])
|
|
274
274
|
};
|
|
275
275
|
})
|
|
276
|
-
]),
|
|
276
|
+
]), 1040, ["value", "list", "options", "compons"])
|
|
277
277
|
]),
|
|
278
278
|
key: "1"
|
|
279
279
|
} : void 0
|
|
@@ -209,12 +209,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
209
209
|
}, () => [
|
|
210
210
|
createVNode(unref(Card), null, createSlots({
|
|
211
211
|
default: withCtx(() => [
|
|
212
|
-
createVNode(unref(List), {
|
|
212
|
+
createVNode(unref(List), mergeProps({ ref_for: true }, unref(attrs).assem, {
|
|
213
213
|
value: item,
|
|
214
214
|
list: setListValue(dataList.value, index),
|
|
215
215
|
options: unref(props).options,
|
|
216
216
|
compons: unref(props).compons
|
|
217
|
-
}, createSlots({ _: 2 }, [
|
|
217
|
+
}), createSlots({ _: 2 }, [
|
|
218
218
|
renderList(Object.keys(unref(slots)).filter(
|
|
219
219
|
(v) => !["no-data"].includes(v)
|
|
220
220
|
), (k) => {
|
|
@@ -225,19 +225,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
225
225
|
])
|
|
226
226
|
};
|
|
227
227
|
})
|
|
228
|
-
]),
|
|
228
|
+
]), 1040, ["value", "list", "options", "compons"])
|
|
229
229
|
]),
|
|
230
230
|
_: 2
|
|
231
231
|
}, [
|
|
232
232
|
header.value.length > 0 ? {
|
|
233
233
|
name: "header",
|
|
234
234
|
fn: withCtx(() => [
|
|
235
|
-
createVNode(unref(List), {
|
|
235
|
+
createVNode(unref(List), mergeProps({ ref_for: true }, unref(attrs).assem, {
|
|
236
236
|
value: item,
|
|
237
237
|
list: setListValue(header.value, index),
|
|
238
238
|
options: unref(props).options,
|
|
239
239
|
compons: unref(props).compons
|
|
240
|
-
}, createSlots({ _: 2 }, [
|
|
240
|
+
}), createSlots({ _: 2 }, [
|
|
241
241
|
renderList(Object.keys(unref(slots)).filter(
|
|
242
242
|
(v) => !["no-data"].includes(v)
|
|
243
243
|
), (k) => {
|
|
@@ -248,19 +248,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
248
248
|
])
|
|
249
249
|
};
|
|
250
250
|
})
|
|
251
|
-
]),
|
|
251
|
+
]), 1040, ["value", "list", "options", "compons"])
|
|
252
252
|
]),
|
|
253
253
|
key: "0"
|
|
254
254
|
} : void 0,
|
|
255
255
|
footer.value.length > 0 ? {
|
|
256
256
|
name: "footer",
|
|
257
257
|
fn: withCtx(() => [
|
|
258
|
-
createVNode(unref(List), {
|
|
258
|
+
createVNode(unref(List), mergeProps({ ref_for: true }, unref(attrs).assem, {
|
|
259
259
|
value: item,
|
|
260
260
|
list: setListValue(footer.value, index),
|
|
261
261
|
options: unref(props).options,
|
|
262
262
|
compons: unref(props).compons
|
|
263
|
-
}, createSlots({ _: 2 }, [
|
|
263
|
+
}), createSlots({ _: 2 }, [
|
|
264
264
|
renderList(Object.keys(unref(slots)).filter(
|
|
265
265
|
(v) => !["no-data"].includes(v)
|
|
266
266
|
), (k) => {
|
|
@@ -271,7 +271,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
271
271
|
])
|
|
272
272
|
};
|
|
273
273
|
})
|
|
274
|
-
]),
|
|
274
|
+
]), 1040, ["value", "list", "options", "compons"])
|
|
275
275
|
]),
|
|
276
276
|
key: "1"
|
|
277
277
|
} : void 0
|
|
@@ -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); /* 显示的行数 */
|
|
@@ -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); /* 显示的行数 */
|
|
@@ -4,10 +4,10 @@ const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
|
4
4
|
const name = "no-data";
|
|
5
5
|
const dataProps = buildProps.buildProps({
|
|
6
6
|
/**
|
|
7
|
-
* @props { String }
|
|
7
|
+
* @props { String } value='暂无数据' ( )
|
|
8
8
|
* 提示文本
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
value: {
|
|
11
11
|
type: String
|
|
12
12
|
}
|
|
13
13
|
});
|
|
@@ -5,10 +5,10 @@ import { ExtractPublicPropTypes } from 'vue';
|
|
|
5
5
|
export declare const name = "no-data";
|
|
6
6
|
export declare const dataProps: {
|
|
7
7
|
/**
|
|
8
|
-
* @props { String }
|
|
8
|
+
* @props { String } value='暂无数据' ( )
|
|
9
9
|
* 提示文本
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
value: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -2,10 +2,10 @@ import { buildProps } from "../../../utils/vues/buildProps.js";
|
|
|
2
2
|
const name = "no-data";
|
|
3
3
|
const dataProps = buildProps({
|
|
4
4
|
/**
|
|
5
|
-
* @props { String }
|
|
5
|
+
* @props { String } value='暂无数据' ( )
|
|
6
6
|
* 提示文本
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
value: {
|
|
9
9
|
type: String
|
|
10
10
|
}
|
|
11
11
|
});
|
|
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
const cs = index$1.useCssName(data.name);
|
|
15
15
|
const prs = __props;
|
|
16
16
|
const props = index$2.usePropsDefault(data.name, prs, data.dataProps, {
|
|
17
|
-
|
|
17
|
+
value() {
|
|
18
18
|
return getLocale("nodata");
|
|
19
19
|
}
|
|
20
20
|
});
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
27
27
|
class: vue.normalizeClass(vue.unref(cs).z())
|
|
28
28
|
}, [
|
|
29
|
-
vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(props).
|
|
29
|
+
vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(props).value), 1)
|
|
30
30
|
], 2);
|
|
31
31
|
};
|
|
32
32
|
}
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
const cs = useCssName(name);
|
|
13
13
|
const prs = __props;
|
|
14
14
|
const props = usePropsDefault(name, prs, dataProps, {
|
|
15
|
-
|
|
15
|
+
value() {
|
|
16
16
|
return getLocale("nodata");
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
return openBlock(), createElementBlock("div", {
|
|
25
25
|
class: normalizeClass(unref(cs).z())
|
|
26
26
|
}, [
|
|
27
|
-
createElementVNode("div", null, toDisplayString(unref(props).
|
|
27
|
+
createElementVNode("div", null, toDisplayString(unref(props).value), 1)
|
|
28
28
|
], 2);
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -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); /* 显示的行数 */
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const comBut_vue_vue_type_script_setup_true_lang = require("./com-but2.cjs");
|
|
4
|
+
exports.default = comBut_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const index = require("../../button/index.cjs");
|
|
4
|
+
const index$1 = require("../../button/index.cjs");
|
|
5
|
+
const index = require("../../../hooks/cssname/index.cjs");
|
|
5
6
|
const util = require("./util.cjs");
|
|
6
|
-
const _hoisted_1 = { class: "table-but" };
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
|
-
__name: "
|
|
8
|
+
__name: "com-but",
|
|
9
9
|
props: {
|
|
10
10
|
list: {
|
|
11
11
|
type: Array
|
|
@@ -40,6 +40,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
40
|
},
|
|
41
41
|
emits: ["but"],
|
|
42
42
|
setup(__props, { emit: __emit }) {
|
|
43
|
+
const cs = index.useCssName("com-but");
|
|
43
44
|
const props = __props;
|
|
44
45
|
const emit = __emit;
|
|
45
46
|
function setShow(item) {
|
|
@@ -75,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
75
76
|
return setShow(item);
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
|
-
function onClick(obj, $event) {
|
|
79
|
+
function onClick(obj, index2, $event) {
|
|
79
80
|
var _a;
|
|
80
81
|
util.eventAliass(
|
|
81
82
|
(callback) => {
|
|
@@ -94,26 +95,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
95
|
emit("but", obj);
|
|
95
96
|
}
|
|
96
97
|
return (_ctx, _cache) => {
|
|
97
|
-
return vue.openBlock(), vue.createElementBlock("span",
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
99
|
+
class: vue.normalizeClass(vue.unref(cs).z())
|
|
100
|
+
}, [
|
|
101
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.list, (item, index2) => {
|
|
102
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
103
|
+
getHide(item) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.Button), vue.mergeProps({
|
|
101
104
|
key: 0,
|
|
102
|
-
|
|
103
|
-
},
|
|
105
|
+
ref_for: true
|
|
106
|
+
}, item, {
|
|
107
|
+
class: [vue.unref(cs).z("li"), item.class],
|
|
104
108
|
link: props.isText ? true : item.link,
|
|
105
109
|
type: item.type ?? "primary",
|
|
106
110
|
disabled: getDisabled(item),
|
|
107
|
-
onClick: ($event) => onClick(item, $event)
|
|
111
|
+
onClick: ($event) => onClick(item, index2, $event)
|
|
108
112
|
}), {
|
|
109
113
|
default: vue.withCtx(() => [
|
|
110
114
|
vue.createTextVNode(vue.toDisplayString(item.label), 1)
|
|
111
115
|
]),
|
|
112
116
|
_: 2
|
|
113
|
-
}, 1040, ["link", "type", "disabled", "onClick"])) : vue.createCommentVNode("", true)
|
|
117
|
+
}, 1040, ["class", "link", "type", "disabled", "onClick"])) : vue.createCommentVNode("", true)
|
|
114
118
|
], 64);
|
|
115
119
|
}), 128))
|
|
116
|
-
]);
|
|
120
|
+
], 2);
|
|
117
121
|
};
|
|
118
122
|
}
|
|
119
123
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createBlock, createCommentVNode,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createBlock, createCommentVNode, mergeProps, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { Button } from "../../button/index.js";
|
|
3
|
+
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
3
4
|
import { eventAliass } from "./util.js";
|
|
4
|
-
const _hoisted_1 = { class: "table-but" };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "
|
|
6
|
+
__name: "com-but",
|
|
7
7
|
props: {
|
|
8
8
|
list: {
|
|
9
9
|
type: Array
|
|
@@ -38,6 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["but"],
|
|
40
40
|
setup(__props, { emit: __emit }) {
|
|
41
|
+
const cs = useCssName("com-but");
|
|
41
42
|
const props = __props;
|
|
42
43
|
const emit = __emit;
|
|
43
44
|
function setShow(item) {
|
|
@@ -73,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
74
|
return setShow(item);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
|
-
function onClick(obj, $event) {
|
|
77
|
+
function onClick(obj, index, $event) {
|
|
77
78
|
var _a;
|
|
78
79
|
eventAliass(
|
|
79
80
|
(callback) => {
|
|
@@ -92,26 +93,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
93
|
emit("but", obj);
|
|
93
94
|
}
|
|
94
95
|
return (_ctx, _cache) => {
|
|
95
|
-
return openBlock(), createElementBlock("span",
|
|
96
|
+
return openBlock(), createElementBlock("span", {
|
|
97
|
+
class: normalizeClass(unref(cs).z())
|
|
98
|
+
}, [
|
|
96
99
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.list, (item, index) => {
|
|
97
100
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
98
101
|
getHide(item) ? (openBlock(), createBlock(unref(Button), mergeProps({
|
|
99
102
|
key: 0,
|
|
100
|
-
|
|
101
|
-
},
|
|
103
|
+
ref_for: true
|
|
104
|
+
}, item, {
|
|
105
|
+
class: [unref(cs).z("li"), item.class],
|
|
102
106
|
link: props.isText ? true : item.link,
|
|
103
107
|
type: item.type ?? "primary",
|
|
104
108
|
disabled: getDisabled(item),
|
|
105
|
-
onClick: ($event) => onClick(item, $event)
|
|
109
|
+
onClick: ($event) => onClick(item, index, $event)
|
|
106
110
|
}), {
|
|
107
111
|
default: withCtx(() => [
|
|
108
112
|
createTextVNode(toDisplayString(item.label), 1)
|
|
109
113
|
]),
|
|
110
114
|
_: 2
|
|
111
|
-
}, 1040, ["link", "type", "disabled", "onClick"])) : createCommentVNode("", true)
|
|
115
|
+
}, 1040, ["class", "link", "type", "disabled", "onClick"])) : createCommentVNode("", true)
|
|
112
116
|
], 64);
|
|
113
117
|
}), 128))
|
|
114
|
-
]);
|
|
118
|
+
], 2);
|
|
115
119
|
};
|
|
116
120
|
}
|
|
117
121
|
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const comColor_vue_vue_type_script_setup_true_lang = require("./com-color2.cjs");
|
|
4
|
+
exports.default = comColor_vue_vue_type_script_setup_true_lang.default;
|