@fangzhongya/fang-ui 0.1.36 → 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/buttons/src/data.cjs +8 -4
- package/dist/components/buttons/src/data.d.ts +33 -4
- package/dist/components/buttons/src/data.js +8 -4
- package/dist/components/buttons/src/index2.cjs +12 -2
- package/dist/components/buttons/src/index2.js +14 -4
- package/dist/components/common/use.cjs +5 -3
- package/dist/components/common/use.js +5 -3
- 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/double/index.css +2 -1
- package/dist/components/double/index.scss +2 -1
- package/dist/components/forms/index.css +2 -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 +3 -2
- package/dist/components/selector/index.css +2 -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 +7 -4
- package/dist/components/tablesv/src/column.js +8 -5
- 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 +10 -1
- package/dist/components/tablesv/src/index2.js +10 -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/double.css +2 -1
- package/dist/css/forms.css +2 -1
- package/dist/css/index.css +3 -2
- 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 +3 -2
- package/dist/css/selector.css +2 -1
- package/dist/icons/index.json +1 -1
- package/dist/index.css +3 -2
- 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/{forms-items → forms-item}/index.css +0 -0
- /package/dist/components/{draggable → keep-com}/index.css +0 -0
- /package/dist/css/{forms-items.css → forms-item.css} +0 -0
- /package/dist/css/{draggable.css → keep-com.css} +0 -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
|
}
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
width: 100%;
|
|
54
54
|
display: inline-flex;
|
|
55
55
|
align-items: center;
|
|
56
|
-
|
|
56
|
+
box-sizing: content-box;
|
|
57
|
+
padding: 1.2px 1px;
|
|
57
58
|
position: relative;
|
|
58
59
|
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
59
60
|
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
@@ -718,7 +719,7 @@
|
|
|
718
719
|
}
|
|
719
720
|
.list-div .list-table .list-table-value {
|
|
720
721
|
word-break: break-all;
|
|
721
|
-
white-space:
|
|
722
|
+
white-space: pre-wrap;
|
|
722
723
|
max-height: var(--list-row-max-height);
|
|
723
724
|
display: -webkit-box;
|
|
724
725
|
-webkit-line-clamp: var(--list-line-clamp); /* 显示的行数 */
|
|
@@ -78,7 +78,8 @@
|
|
|
78
78
|
width: 100%;
|
|
79
79
|
display: inline-flex;
|
|
80
80
|
align-items: center;
|
|
81
|
-
|
|
81
|
+
box-sizing: content-box;
|
|
82
|
+
padding: 1.2px 1px;
|
|
82
83
|
position: relative;
|
|
83
84
|
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
84
85
|
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
@@ -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;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const util = require("./util.cjs");
|
|
5
|
+
const index = require("../../../hooks/cssname/index.cjs");
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
|
-
__name: "
|
|
7
|
+
__name: "com-color",
|
|
7
8
|
props: {
|
|
8
9
|
class: {
|
|
9
10
|
type: [String, Function]
|
|
@@ -44,8 +45,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
45
|
},
|
|
45
46
|
emits: ["color"],
|
|
46
47
|
setup(__props, { emit: __emit }) {
|
|
48
|
+
const cs = index.useCssName("com-color");
|
|
47
49
|
const props = __props;
|
|
48
50
|
const emit = __emit;
|
|
51
|
+
const emptyDisplay = vue.computed(() => {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
return util.setEmptyDisplay(
|
|
54
|
+
props.modelValue,
|
|
55
|
+
(_a = props.comscope.config) == null ? void 0 : _a.emptyDisplay,
|
|
56
|
+
(_b = props.comscope.config) == null ? void 0 : _b.isEmptyStr
|
|
57
|
+
);
|
|
58
|
+
});
|
|
49
59
|
const className = vue.computed(() => {
|
|
50
60
|
if (props.class) {
|
|
51
61
|
if (typeof props.class == "function") {
|
|
@@ -111,19 +121,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
111
121
|
emit("color", obj);
|
|
112
122
|
}
|
|
113
123
|
return (_ctx, _cache) => {
|
|
114
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
124
|
+
return emptyDisplay.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
125
|
+
vue.createTextVNode(vue.toDisplayString(emptyDisplay.value), 1)
|
|
126
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
127
|
+
key: 1,
|
|
128
|
+
class: vue.normalizeClass([vue.unref(cs).z(), className.value]),
|
|
129
|
+
style: vue.normalizeStyle(props.style),
|
|
130
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
118
131
|
}, [
|
|
119
132
|
vue.createElementVNode("span", {
|
|
120
133
|
style: vue.normalizeStyle({
|
|
121
134
|
color: color.value,
|
|
122
135
|
backgroundColor: backgroundColor.value
|
|
123
136
|
}),
|
|
124
|
-
class: "
|
|
125
|
-
}, vue.toDisplayString(props.modelValue),
|
|
126
|
-
], 6);
|
|
137
|
+
class: vue.normalizeClass([vue.unref(cs).z("value")])
|
|
138
|
+
}, vue.toDisplayString(props.modelValue), 7)
|
|
139
|
+
], 6));
|
|
127
140
|
};
|
|
128
141
|
}
|
|
129
142
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass,
|
|
2
|
-
import { eventAliass } from "./util.js";
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, Fragment, createTextVNode, toDisplayString, normalizeStyle, normalizeClass, unref, createElementVNode } from "vue";
|
|
2
|
+
import { setEmptyDisplay, eventAliass } from "./util.js";
|
|
3
|
+
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
3
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "
|
|
5
|
+
__name: "com-color",
|
|
5
6
|
props: {
|
|
6
7
|
class: {
|
|
7
8
|
type: [String, Function]
|
|
@@ -42,8 +43,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
43
|
},
|
|
43
44
|
emits: ["color"],
|
|
44
45
|
setup(__props, { emit: __emit }) {
|
|
46
|
+
const cs = useCssName("com-color");
|
|
45
47
|
const props = __props;
|
|
46
48
|
const emit = __emit;
|
|
49
|
+
const emptyDisplay = computed(() => {
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return setEmptyDisplay(
|
|
52
|
+
props.modelValue,
|
|
53
|
+
(_a = props.comscope.config) == null ? void 0 : _a.emptyDisplay,
|
|
54
|
+
(_b = props.comscope.config) == null ? void 0 : _b.isEmptyStr
|
|
55
|
+
);
|
|
56
|
+
});
|
|
47
57
|
const className = computed(() => {
|
|
48
58
|
if (props.class) {
|
|
49
59
|
if (typeof props.class == "function") {
|
|
@@ -109,19 +119,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
119
|
emit("color", obj);
|
|
110
120
|
}
|
|
111
121
|
return (_ctx, _cache) => {
|
|
112
|
-
return openBlock(), createElementBlock(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
122
|
+
return emptyDisplay.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
123
|
+
createTextVNode(toDisplayString(emptyDisplay.value), 1)
|
|
124
|
+
], 64)) : (openBlock(), createElementBlock("span", {
|
|
125
|
+
key: 1,
|
|
126
|
+
class: normalizeClass([unref(cs).z(), className.value]),
|
|
127
|
+
style: normalizeStyle(props.style),
|
|
128
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
116
129
|
}, [
|
|
117
130
|
createElementVNode("span", {
|
|
118
131
|
style: normalizeStyle({
|
|
119
132
|
color: color.value,
|
|
120
133
|
backgroundColor: backgroundColor.value
|
|
121
134
|
}),
|
|
122
|
-
class: "
|
|
123
|
-
}, toDisplayString(props.modelValue),
|
|
124
|
-
], 6);
|
|
135
|
+
class: normalizeClass([unref(cs).z("value")])
|
|
136
|
+
}, toDisplayString(props.modelValue), 7)
|
|
137
|
+
], 6));
|
|
125
138
|
};
|
|
126
139
|
}
|
|
127
140
|
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const comFig_vue_vue_type_script_setup_true_lang = require("./com-fig2.cjs");
|
|
4
|
+
exports.default = comFig_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const index$1 = require("../../image/index.cjs");
|
|
5
|
+
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
|
+
__name: "com-fig",
|
|
8
|
+
props: {
|
|
9
|
+
prefix: String,
|
|
10
|
+
maxHeight: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "100px"
|
|
13
|
+
},
|
|
14
|
+
class: {
|
|
15
|
+
type: String
|
|
16
|
+
},
|
|
17
|
+
style: {
|
|
18
|
+
type: Object
|
|
19
|
+
},
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: [String, Array]
|
|
22
|
+
},
|
|
23
|
+
listobj: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default() {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* table数据
|
|
31
|
+
* row, column, $index
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
valueobj: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default() {
|
|
37
|
+
return {};
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
comscope: {
|
|
41
|
+
type: Object,
|
|
42
|
+
default() {
|
|
43
|
+
return {};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
setup(__props, { expose: __expose }) {
|
|
48
|
+
const cs = index.useCssName("com-fig");
|
|
49
|
+
const props = __props;
|
|
50
|
+
const value = vue.computed(() => {
|
|
51
|
+
const v = props.modelValue || void 0;
|
|
52
|
+
let arr;
|
|
53
|
+
if (typeof v === "string") {
|
|
54
|
+
arr = v.split(",");
|
|
55
|
+
} else {
|
|
56
|
+
arr = v;
|
|
57
|
+
}
|
|
58
|
+
if (props.prefix) {
|
|
59
|
+
return arr == null ? void 0 : arr.map((r) => {
|
|
60
|
+
return props.prefix + r;
|
|
61
|
+
});
|
|
62
|
+
} else {
|
|
63
|
+
return arr;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
__expose({});
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
var _a, _b;
|
|
69
|
+
return value.value && value.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: vue.normalizeClass([vue.unref(cs).z(), props.class]),
|
|
72
|
+
style: vue.normalizeStyle({
|
|
73
|
+
maxHeight: props.maxHeight,
|
|
74
|
+
...props.style
|
|
75
|
+
})
|
|
76
|
+
}, [
|
|
77
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(value.value, (item, index2) => {
|
|
78
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$1.Image), {
|
|
79
|
+
key: index2,
|
|
80
|
+
fit: "contain",
|
|
81
|
+
src: item,
|
|
82
|
+
"preview-teleported": "",
|
|
83
|
+
"preview-src-list": value.value
|
|
84
|
+
}, null, 8, ["src", "preview-src-list"]);
|
|
85
|
+
}), 128))
|
|
86
|
+
], 6)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
87
|
+
vue.createTextVNode(vue.toDisplayString((_b = (_a = props.comscope) == null ? void 0 : _a.config) == null ? void 0 : _b.emptyDisplay), 1)
|
|
88
|
+
], 64));
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
exports.default = _sfc_main;
|