@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
|
@@ -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;
|
|
@@ -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;
|