@fangzhongya/fang-ui 0.1.51 → 0.1.53
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/bin/fang-ui.js +2 -2
- package/dist/components/box-fun/index.cjs +1 -0
- package/dist/components/box-fun/index.js +1 -0
- package/dist/components/box-fun/index.scss +8 -0
- package/dist/components/box-fun/style/index2.scss +4 -0
- package/dist/components/buttons/src/data.d.ts +14 -11
- package/dist/components/cascaders/src/data.d.ts +14 -11
- package/dist/components/cascaders/src/index2.cjs +15 -8
- package/dist/components/cascaders/src/index2.js +15 -8
- package/dist/components/checks/src/data.d.ts +14 -11
- package/dist/components/checks/src/index2.cjs +6 -6
- package/dist/components/checks/src/index2.js +6 -6
- package/dist/components/common/list.cjs +34 -15
- package/dist/components/common/list.d.ts +25 -12
- package/dist/components/common/list.js +34 -15
- package/dist/components/common/use.cjs +9 -5
- package/dist/components/common/use.js +9 -5
- package/dist/components/dates/src/data.d.ts +14 -11
- package/dist/components/dates2/src/data.d.ts +14 -11
- package/dist/components/draggable/style/index2.scss +1 -0
- package/dist/components/edit-data/index.cjs +9 -0
- package/dist/components/edit-data/index.d.ts +5 -0
- package/dist/components/edit-data/index.js +9 -0
- package/dist/components/edit-data/index.scss +95 -0
- package/dist/components/edit-data/src/area/array-json.cjs +4 -0
- package/dist/components/edit-data/src/area/array-json.js +4 -0
- package/dist/components/edit-data/src/area/array-json2.cjs +109 -0
- package/dist/components/edit-data/src/area/array-json2.js +109 -0
- package/dist/components/edit-data/src/area/array.cjs +4 -0
- package/dist/components/edit-data/src/area/array.js +4 -0
- package/dist/components/edit-data/src/area/array2.cjs +135 -0
- package/dist/components/edit-data/src/area/array2.js +135 -0
- package/dist/components/edit-data/src/area/code.cjs +4 -0
- package/dist/components/edit-data/src/area/code.js +4 -0
- package/dist/components/edit-data/src/area/code2.cjs +52 -0
- package/dist/components/edit-data/src/area/code2.js +52 -0
- package/dist/components/edit-data/src/area/editor.cjs +4 -0
- package/dist/components/edit-data/src/area/editor.js +4 -0
- package/dist/components/edit-data/src/area/editor2.cjs +170 -0
- package/dist/components/edit-data/src/area/editor2.js +170 -0
- package/dist/components/edit-data/src/area/general.cjs +4 -0
- package/dist/components/edit-data/src/area/general.js +4 -0
- package/dist/components/edit-data/src/area/general2.cjs +88 -0
- package/dist/components/edit-data/src/area/general2.js +88 -0
- package/dist/components/edit-data/src/area/object-json.cjs +4 -0
- package/dist/components/edit-data/src/area/object-json.js +4 -0
- package/dist/components/edit-data/src/area/object-json2.cjs +109 -0
- package/dist/components/edit-data/src/area/object-json2.js +109 -0
- package/dist/components/edit-data/src/area/object.cjs +4 -0
- package/dist/components/edit-data/src/area/object.js +4 -0
- package/dist/components/edit-data/src/area/object2.cjs +116 -0
- package/dist/components/edit-data/src/area/object2.js +116 -0
- package/dist/components/edit-data/src/data/array.cjs +4 -0
- package/dist/components/edit-data/src/data/array.js +4 -0
- package/dist/components/edit-data/src/data/array2.cjs +68 -0
- package/dist/components/edit-data/src/data/array2.js +68 -0
- package/dist/components/edit-data/src/data/bigint.cjs +4 -0
- package/dist/components/edit-data/src/data/bigint.js +4 -0
- package/dist/components/edit-data/src/data/bigint2.cjs +42 -0
- package/dist/components/edit-data/src/data/bigint2.js +42 -0
- package/dist/components/edit-data/src/data/boolean.cjs +4 -0
- package/dist/components/edit-data/src/data/boolean.js +4 -0
- package/dist/components/edit-data/src/data/boolean2.cjs +53 -0
- package/dist/components/edit-data/src/data/boolean2.js +53 -0
- package/dist/components/edit-data/src/data/function.cjs +4 -0
- package/dist/components/edit-data/src/data/function.js +4 -0
- package/dist/components/edit-data/src/data/function2.cjs +61 -0
- package/dist/components/edit-data/src/data/function2.js +61 -0
- package/dist/components/edit-data/src/data/not.cjs +4 -0
- package/dist/components/edit-data/src/data/not.js +4 -0
- package/dist/components/edit-data/src/data/not2.cjs +56 -0
- package/dist/components/edit-data/src/data/not2.js +56 -0
- package/dist/components/edit-data/src/data/null.cjs +4 -0
- package/dist/components/edit-data/src/data/null.js +4 -0
- package/dist/components/edit-data/src/data/null2.cjs +24 -0
- package/dist/components/edit-data/src/data/null2.js +24 -0
- package/dist/components/edit-data/src/data/number.cjs +4 -0
- package/dist/components/edit-data/src/data/number.js +4 -0
- package/dist/components/edit-data/src/data/number2.cjs +42 -0
- package/dist/components/edit-data/src/data/number2.js +42 -0
- package/dist/components/edit-data/src/data/object.cjs +4 -0
- package/dist/components/edit-data/src/data/object.js +4 -0
- package/dist/components/edit-data/src/data/object2.cjs +68 -0
- package/dist/components/edit-data/src/data/object2.js +68 -0
- package/dist/components/edit-data/src/data/other.cjs +4 -0
- package/dist/components/edit-data/src/data/other.js +4 -0
- package/dist/components/edit-data/src/data/other2.cjs +59 -0
- package/dist/components/edit-data/src/data/other2.js +59 -0
- package/dist/components/edit-data/src/data/string.cjs +4 -0
- package/dist/components/edit-data/src/data/string.js +4 -0
- package/dist/components/edit-data/src/data/string2.cjs +43 -0
- package/dist/components/edit-data/src/data/string2.js +43 -0
- package/dist/components/edit-data/src/data/symbol.cjs +4 -0
- package/dist/components/edit-data/src/data/symbol.js +4 -0
- package/dist/components/edit-data/src/data/symbol2.cjs +55 -0
- package/dist/components/edit-data/src/data/symbol2.js +55 -0
- package/dist/components/edit-data/src/data/undefined.cjs +4 -0
- package/dist/components/edit-data/src/data/undefined.js +4 -0
- package/dist/components/edit-data/src/data/undefined2.cjs +24 -0
- package/dist/components/edit-data/src/data/undefined2.js +24 -0
- package/dist/components/edit-data/src/data.cjs +57 -0
- package/dist/components/edit-data/src/data.d.ts +131 -0
- package/dist/components/edit-data/src/data.js +57 -0
- package/dist/components/edit-data/src/index.cjs +4 -0
- package/dist/components/edit-data/src/index.js +4 -0
- package/dist/components/edit-data/src/index2.cjs +134 -0
- package/dist/components/edit-data/src/index2.js +134 -0
- package/dist/components/edit-data/src/util.cjs +99 -0
- package/dist/components/edit-data/src/util.d.ts +1 -0
- package/dist/components/edit-data/src/util.js +99 -0
- package/dist/components/edit-data/style/index2.scss +13 -0
- package/dist/components/edit-data-add/index.cjs +9 -0
- package/dist/components/edit-data-add/index.css +144 -0
- package/dist/components/edit-data-add/index.d.ts +5 -0
- package/dist/components/edit-data-add/index.js +9 -0
- package/dist/components/edit-data-add/index.scss +5 -0
- package/dist/components/edit-data-add/src/data.cjs +24 -0
- package/dist/components/edit-data-add/src/data.d.ts +36 -0
- package/dist/components/edit-data-add/src/data.js +24 -0
- package/dist/components/edit-data-add/src/index.cjs +4 -0
- package/dist/components/edit-data-add/src/index.js +4 -0
- package/dist/components/edit-data-add/src/index2.cjs +241 -0
- package/dist/components/edit-data-add/src/index2.js +241 -0
- package/dist/components/edit-data-add/style/comm.scss +38 -0
- package/dist/components/edit-data-add/style/index2.scss +2 -0
- package/dist/components/history/src/data.cjs +9 -1
- package/dist/components/history/src/data.d.ts +13 -1
- package/dist/components/history/src/data.js +9 -1
- package/dist/components/history/src/index2.cjs +27 -9
- package/dist/components/history/src/index2.js +27 -9
- package/dist/components/index.cjs +60 -56
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.scss +3 -0
- package/dist/components/index2.scss +5 -2
- package/dist/components/labels/src/data.d.ts +14 -11
- package/dist/components/labels/src/index2.cjs +13 -2
- package/dist/components/labels/src/index2.js +13 -2
- package/dist/components/page/index.css +8 -0
- package/dist/components/retract/index.css +20 -0
- package/dist/components/retract/index.scss +24 -0
- package/dist/components/retract/src/data.cjs +10 -0
- package/dist/components/retract/src/data.d.ts +10 -0
- package/dist/components/retract/src/data.js +10 -0
- package/dist/components/retract/src/index2.cjs +24 -4
- package/dist/components/retract/src/index2.js +23 -3
- package/dist/components/retract/style/index2.scss +1 -0
- package/dist/components/selects/src/data.d.ts +14 -11
- package/dist/components/selects/src/index2.cjs +1 -1
- package/dist/components/selects/src/index2.js +1 -1
- package/dist/components/switchs/src/data.d.ts +14 -11
- package/dist/components/switchs/src/index2.cjs +9 -5
- package/dist/components/switchs/src/index2.js +9 -5
- package/dist/components/tables/common/com-limit.cjs +4 -0
- package/dist/components/tables/common/com-limit.js +4 -0
- package/dist/components/tables/common/com-limit2.cjs +103 -0
- package/dist/components/tables/common/com-limit2.js +103 -0
- package/dist/components/tables/common/com.scss +12 -0
- package/dist/components/tables/index.css +9 -0
- package/dist/components/tables/index.scss +2 -0
- package/dist/components/tables/src/columns2.cjs +3 -1
- package/dist/components/tables/src/columns2.js +7 -5
- package/dist/components/tablesp/index.css +9 -0
- package/dist/components/tablespd/index.css +9 -0
- package/dist/components/uploads/src/data.d.ts +14 -11
- package/dist/css/edit-data-add.css +144 -0
- package/dist/css/index.css +149 -0
- package/dist/css/page.css +8 -0
- package/dist/css/retract.css +20 -0
- package/dist/css/tables.css +9 -0
- package/dist/css/tablesp.css +9 -0
- package/dist/css/tablespd.css +9 -0
- package/dist/directives/adjust/index.cjs +14 -6
- package/dist/directives/adjust/index.js +14 -6
- package/dist/directives/adjustment/index.cjs +622 -0
- package/dist/directives/adjustment/index.d.ts +7 -0
- package/dist/directives/adjustment/index.js +622 -0
- package/dist/directives/index.cjs +18 -16
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/index.js +16 -14
- package/dist/expand/{chunk-A7IW6WRD.cjs → chunk-BJVT6JH7.cjs} +6 -0
- package/dist/expand/{chunk-L4FI5HCY.js → chunk-I5UJEJJB.js} +6 -0
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/icons/index.json +1 -1
- package/dist/index.cjs +84 -78
- package/dist/index.css +149 -0
- package/dist/index.js +20 -14
- package/dist/utils/util.cjs +1 -1
- package/dist/utils/util.js +2 -2
- package/dist/utils/vues/withInstall.cjs +2 -1
- package/dist/utils/vues/withInstall.js +2 -1
- package/package.json +12 -11
- /package/dist/components/{draggable → keep-com}/index.css +0 -0
- /package/dist/css/{draggable.css → keep-com.css} +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const util = require("./util.cjs");
|
|
5
|
+
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
|
+
const getAttrValue = require("../../../utils/vues/getAttrValue.cjs");
|
|
7
|
+
const tooltip = require("./tooltip.cjs");
|
|
8
|
+
const _hoisted_1 = ["title"];
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
+
__name: "com-limit",
|
|
11
|
+
props: {
|
|
12
|
+
/**
|
|
13
|
+
* @props { String } maxHeight ( )
|
|
14
|
+
* 最大高度
|
|
15
|
+
*/
|
|
16
|
+
maxHeight: { type: String },
|
|
17
|
+
/**
|
|
18
|
+
* @props { Number } lineClamp ( )
|
|
19
|
+
* 超出几行隐藏
|
|
20
|
+
*/
|
|
21
|
+
lineClamp: {
|
|
22
|
+
type: Number
|
|
23
|
+
},
|
|
24
|
+
modelValue: {
|
|
25
|
+
type: String
|
|
26
|
+
},
|
|
27
|
+
showOverflow: {
|
|
28
|
+
type: [Boolean, String]
|
|
29
|
+
},
|
|
30
|
+
listobj: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default() {
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* table数据
|
|
38
|
+
* row, column, $index
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
valueobj: {
|
|
42
|
+
type: Object,
|
|
43
|
+
default() {
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
comscope: {
|
|
48
|
+
type: Object,
|
|
49
|
+
default() {
|
|
50
|
+
return {};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
setup(__props) {
|
|
55
|
+
const cs = index.useCssName("com-limit");
|
|
56
|
+
const props = __props;
|
|
57
|
+
const refDom = vue.ref();
|
|
58
|
+
const emptyDisplay = vue.computed(() => {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
return util.setEmptyDisplay(
|
|
61
|
+
props.modelValue,
|
|
62
|
+
(_a = props.comscope.config) == null ? void 0 : _a.emptyDisplay,
|
|
63
|
+
(_b = props.comscope.config) == null ? void 0 : _b.isEmptyStr
|
|
64
|
+
);
|
|
65
|
+
});
|
|
66
|
+
const showOverflow = vue.computed(() => {
|
|
67
|
+
return props.showOverflow ?? getAttrValue.getAttrValue(props.listobj, "showOverflow");
|
|
68
|
+
});
|
|
69
|
+
const title = vue.computed(() => {
|
|
70
|
+
if (showOverflow.value == "title") {
|
|
71
|
+
return props.modelValue;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
const onMouseenter = ($event) => {
|
|
75
|
+
if (showOverflow.value) {
|
|
76
|
+
return handleCellMouseEnter($event, showOverflow.value);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const handleCellMouseLeave = ($event) => {
|
|
80
|
+
tooltip.hideTooltip($event);
|
|
81
|
+
};
|
|
82
|
+
const handleCellMouseEnter = ($event, showOverflow2) => {
|
|
83
|
+
tooltip.showTooltip($event, refDom.value, showOverflow2, props.lineClamp);
|
|
84
|
+
};
|
|
85
|
+
return (_ctx, _cache) => {
|
|
86
|
+
return emptyDisplay.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
87
|
+
vue.createTextVNode(vue.toDisplayString(emptyDisplay.value), 1)
|
|
88
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
89
|
+
key: 1,
|
|
90
|
+
ret: "refDom",
|
|
91
|
+
onMousedown: handleCellMouseLeave,
|
|
92
|
+
onMouseenter,
|
|
93
|
+
class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(cs).is("tooltip", showOverflow.value)]),
|
|
94
|
+
style: vue.normalizeStyle({
|
|
95
|
+
maxHeight: props.maxHeight,
|
|
96
|
+
lineClamp: props.lineClamp
|
|
97
|
+
}),
|
|
98
|
+
title: title.value
|
|
99
|
+
}, vue.toDisplayString(props.modelValue), 47, _hoisted_1));
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, Fragment, createTextVNode, toDisplayString, normalizeStyle, normalizeClass, unref } from "vue";
|
|
2
|
+
import { setEmptyDisplay } from "./util.js";
|
|
3
|
+
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
4
|
+
import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
|
|
5
|
+
import { hideTooltip, showTooltip } from "./tooltip.js";
|
|
6
|
+
const _hoisted_1 = ["title"];
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "com-limit",
|
|
9
|
+
props: {
|
|
10
|
+
/**
|
|
11
|
+
* @props { String } maxHeight ( )
|
|
12
|
+
* 最大高度
|
|
13
|
+
*/
|
|
14
|
+
maxHeight: { type: String },
|
|
15
|
+
/**
|
|
16
|
+
* @props { Number } lineClamp ( )
|
|
17
|
+
* 超出几行隐藏
|
|
18
|
+
*/
|
|
19
|
+
lineClamp: {
|
|
20
|
+
type: Number
|
|
21
|
+
},
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
25
|
+
showOverflow: {
|
|
26
|
+
type: [Boolean, String]
|
|
27
|
+
},
|
|
28
|
+
listobj: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default() {
|
|
31
|
+
return {};
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* table数据
|
|
36
|
+
* row, column, $index
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
valueobj: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default() {
|
|
42
|
+
return {};
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
comscope: {
|
|
46
|
+
type: Object,
|
|
47
|
+
default() {
|
|
48
|
+
return {};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
setup(__props) {
|
|
53
|
+
const cs = useCssName("com-limit");
|
|
54
|
+
const props = __props;
|
|
55
|
+
const refDom = ref();
|
|
56
|
+
const emptyDisplay = computed(() => {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
return setEmptyDisplay(
|
|
59
|
+
props.modelValue,
|
|
60
|
+
(_a = props.comscope.config) == null ? void 0 : _a.emptyDisplay,
|
|
61
|
+
(_b = props.comscope.config) == null ? void 0 : _b.isEmptyStr
|
|
62
|
+
);
|
|
63
|
+
});
|
|
64
|
+
const showOverflow = computed(() => {
|
|
65
|
+
return props.showOverflow ?? getAttrValue(props.listobj, "showOverflow");
|
|
66
|
+
});
|
|
67
|
+
const title = computed(() => {
|
|
68
|
+
if (showOverflow.value == "title") {
|
|
69
|
+
return props.modelValue;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
const onMouseenter = ($event) => {
|
|
73
|
+
if (showOverflow.value) {
|
|
74
|
+
return handleCellMouseEnter($event, showOverflow.value);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const handleCellMouseLeave = ($event) => {
|
|
78
|
+
hideTooltip($event);
|
|
79
|
+
};
|
|
80
|
+
const handleCellMouseEnter = ($event, showOverflow2) => {
|
|
81
|
+
showTooltip($event, refDom.value, showOverflow2, props.lineClamp);
|
|
82
|
+
};
|
|
83
|
+
return (_ctx, _cache) => {
|
|
84
|
+
return emptyDisplay.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
85
|
+
createTextVNode(toDisplayString(emptyDisplay.value), 1)
|
|
86
|
+
], 64)) : (openBlock(), createElementBlock("div", {
|
|
87
|
+
key: 1,
|
|
88
|
+
ret: "refDom",
|
|
89
|
+
onMousedown: handleCellMouseLeave,
|
|
90
|
+
onMouseenter,
|
|
91
|
+
class: normalizeClass([unref(cs).z(), unref(cs).is("tooltip", showOverflow.value)]),
|
|
92
|
+
style: normalizeStyle({
|
|
93
|
+
maxHeight: props.maxHeight,
|
|
94
|
+
lineClamp: props.lineClamp
|
|
95
|
+
}),
|
|
96
|
+
title: title.value
|
|
97
|
+
}, toDisplayString(props.modelValue), 47, _hoisted_1));
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
export {
|
|
102
|
+
_sfc_main as default
|
|
103
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use '../../scss/common.scss' as *;
|
|
2
|
+
|
|
3
|
+
$limit: 'com-limit';
|
|
4
|
+
@include b($limit) {
|
|
5
|
+
&.#{is('tooltip')} {
|
|
6
|
+
max-height: var(vdm('max-height', $limit));
|
|
7
|
+
display: -webkit-box;
|
|
8
|
+
-webkit-line-clamp: var(vdm('line-clamp', $limit), 1); /* 显示的行数 */
|
|
9
|
+
-webkit-box-orient: vertical;
|
|
10
|
+
text-overflow: ellipsis;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
:root {
|
|
2
3
|
--on: rgb(91, 189, 246);
|
|
3
4
|
--color-primary: #409eff;
|
|
@@ -22,6 +23,14 @@
|
|
|
22
23
|
line-height: var(--lable-array-height);
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
.com-limit.is-tooltip {
|
|
27
|
+
max-height: var(--com-limit-max-height);
|
|
28
|
+
display: -webkit-box;
|
|
29
|
+
-webkit-line-clamp: var(--com-limit-line-clamp, 1); /* 显示的行数 */
|
|
30
|
+
-webkit-box-orient: vertical;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
.tables {
|
|
26
35
|
width: 100%;
|
|
27
36
|
min-height: var(--tables-min-height, 70px);
|
|
@@ -6,13 +6,15 @@ require("../common/com-but.cjs");
|
|
|
6
6
|
require("../common/com-color.cjs");
|
|
7
7
|
require("../common/com-lis.cjs");
|
|
8
8
|
require("../common/com-fig.cjs");
|
|
9
|
+
require("../common/com-limit.cjs");
|
|
10
|
+
const comLimit_vue_vue_type_script_setup_true_lang = require("../common/com-limit2.cjs");
|
|
9
11
|
const comFig_vue_vue_type_script_setup_true_lang = require("../common/com-fig2.cjs");
|
|
10
12
|
const comLis_vue_vue_type_script_setup_true_lang = require("../common/com-lis2.cjs");
|
|
11
13
|
const comColor_vue_vue_type_script_setup_true_lang = require("../common/com-color2.cjs");
|
|
12
14
|
const comBut_vue_vue_type_script_setup_true_lang = require("../common/com-but2.cjs");
|
|
13
15
|
const _sfc_main = vue.defineComponent({
|
|
14
16
|
emits: ["list-events"],
|
|
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 },
|
|
17
|
+
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, Limit: comLimit_vue_vue_type_script_setup_true_lang.default },
|
|
16
18
|
expose: [],
|
|
17
19
|
props: {
|
|
18
20
|
list: Array,
|
|
@@ -4,13 +4,15 @@ import "../common/com-but.js";
|
|
|
4
4
|
import "../common/com-color.js";
|
|
5
5
|
import "../common/com-lis.js";
|
|
6
6
|
import "../common/com-fig.js";
|
|
7
|
-
import
|
|
8
|
-
import _sfc_main$
|
|
9
|
-
import _sfc_main$
|
|
10
|
-
import _sfc_main$
|
|
7
|
+
import "../common/com-limit.js";
|
|
8
|
+
import _sfc_main$1 from "../common/com-limit2.js";
|
|
9
|
+
import _sfc_main$2 from "../common/com-fig2.js";
|
|
10
|
+
import _sfc_main$3 from "../common/com-lis2.js";
|
|
11
|
+
import _sfc_main$4 from "../common/com-color2.js";
|
|
12
|
+
import _sfc_main$5 from "../common/com-but2.js";
|
|
11
13
|
const _sfc_main = defineComponent({
|
|
12
14
|
emits: ["list-events"],
|
|
13
|
-
components: { But: _sfc_main$
|
|
15
|
+
components: { But: _sfc_main$5, Color: _sfc_main$4, Lis: _sfc_main$3, Fig: _sfc_main$2, Limit: _sfc_main$1 },
|
|
14
16
|
expose: [],
|
|
15
17
|
props: {
|
|
16
18
|
list: Array,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
:root {
|
|
2
3
|
--on: rgb(91, 189, 246);
|
|
3
4
|
--color-primary: #409eff;
|
|
@@ -22,6 +23,14 @@
|
|
|
22
23
|
line-height: var(--lable-array-height);
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
.com-limit.is-tooltip {
|
|
27
|
+
max-height: var(--com-limit-max-height);
|
|
28
|
+
display: -webkit-box;
|
|
29
|
+
-webkit-line-clamp: var(--com-limit-line-clamp, 1); /* 显示的行数 */
|
|
30
|
+
-webkit-box-orient: vertical;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
.tables {
|
|
26
35
|
width: 100%;
|
|
27
36
|
min-height: var(--tables-min-height, 70px);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
:root {
|
|
2
3
|
--on: rgb(91, 189, 246);
|
|
3
4
|
--color-primary: #409eff;
|
|
@@ -22,6 +23,14 @@
|
|
|
22
23
|
line-height: var(--lable-array-height);
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
.com-limit.is-tooltip {
|
|
27
|
+
max-height: var(--com-limit-max-height);
|
|
28
|
+
display: -webkit-box;
|
|
29
|
+
-webkit-line-clamp: var(--com-limit-line-clamp, 1); /* 显示的行数 */
|
|
30
|
+
-webkit-box-orient: vertical;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
.tables {
|
|
26
35
|
width: 100%;
|
|
27
36
|
min-height: var(--tables-min-height, 70px);
|
|
@@ -78,10 +78,10 @@ export declare const dataProps: {
|
|
|
78
78
|
};
|
|
79
79
|
options: {
|
|
80
80
|
type: {
|
|
81
|
-
(arrayLength: number): ObjAny[];
|
|
82
|
-
(...items: ObjAny[]): ObjAny[];
|
|
83
|
-
new (arrayLength: number): ObjAny[];
|
|
84
|
-
new (...items: ObjAny[]): ObjAny[];
|
|
81
|
+
(arrayLength: number): (string | number | boolean | ObjAny)[];
|
|
82
|
+
(...items: (string | number | boolean | ObjAny)[]): (string | number | boolean | ObjAny)[];
|
|
83
|
+
new (arrayLength: number): (string | number | boolean | ObjAny)[];
|
|
84
|
+
new (...items: (string | number | boolean | ObjAny)[]): (string | number | boolean | ObjAny)[];
|
|
85
85
|
isArray(arg: any): arg is any[];
|
|
86
86
|
readonly prototype: any[];
|
|
87
87
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
@@ -95,9 +95,6 @@ export declare const dataProps: {
|
|
|
95
95
|
};
|
|
96
96
|
default(): never[];
|
|
97
97
|
};
|
|
98
|
-
clearAbsent: {
|
|
99
|
-
type: BooleanConstructor;
|
|
100
|
-
};
|
|
101
98
|
label: {
|
|
102
99
|
type: (StringConstructor | FunctionConstructor)[];
|
|
103
100
|
default: string;
|
|
@@ -112,11 +109,17 @@ export declare const dataProps: {
|
|
|
112
109
|
multiple: {
|
|
113
110
|
type: (BooleanConstructor | StringConstructor)[];
|
|
114
111
|
};
|
|
115
|
-
|
|
116
|
-
type: BooleanConstructor
|
|
112
|
+
isLoad: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
};
|
|
115
|
+
isClearAbsent: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
};
|
|
118
|
+
isOptobj: {
|
|
119
|
+
type: BooleanConstructor;
|
|
117
120
|
};
|
|
118
|
-
|
|
119
|
-
type:
|
|
121
|
+
default: {
|
|
122
|
+
type: null;
|
|
120
123
|
};
|
|
121
124
|
};
|
|
122
125
|
export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--on: rgb(91, 189, 246);
|
|
3
|
+
--color-primary: #409eff;
|
|
4
|
+
--bag-primary: #409eff;
|
|
5
|
+
--bag-primary-text: #ffffff;
|
|
6
|
+
--border: #eee;
|
|
7
|
+
--layout-panel-gap: 10px;
|
|
8
|
+
--layout-panel-padding: 20px;
|
|
9
|
+
--layout-form-item-padding-right: var(
|
|
10
|
+
--layout-panel-gap
|
|
11
|
+
);
|
|
12
|
+
--g-main-bg: var(--bg-color-page);
|
|
13
|
+
--lable-array-height: 20px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.com-footer {
|
|
17
|
+
border-top: 1px solid var(--border);
|
|
18
|
+
padding: 20px 20px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.com-lable-array {
|
|
22
|
+
line-height: var(--lable-array-height);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.edit-data-add {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
}
|
|
31
|
+
.edit-data-add-main {
|
|
32
|
+
flex: 1;
|
|
33
|
+
width: 100%;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
}
|
|
37
|
+
.edit-data-add-main-top {
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
.edit-data-add-main-top-li {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
padding: 10px;
|
|
44
|
+
}
|
|
45
|
+
.edit-data-add-main-top-li-value {
|
|
46
|
+
flex: 1;
|
|
47
|
+
}
|
|
48
|
+
.edit-data-add-main-content {
|
|
49
|
+
flex: 1;
|
|
50
|
+
width: 100%;
|
|
51
|
+
margin: 10px;
|
|
52
|
+
}
|
|
53
|
+
.edit-data-add-main-content-name {
|
|
54
|
+
margin-bottom: 10px;
|
|
55
|
+
}
|
|
56
|
+
.edit-data-add-footer {
|
|
57
|
+
padding-top: 20px;
|
|
58
|
+
text-align: right;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.edit-data-general-set {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
}
|
|
65
|
+
.edit-data-editor {
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
}
|
|
71
|
+
.edit-data-editor-main {
|
|
72
|
+
flex: 1;
|
|
73
|
+
position: relative;
|
|
74
|
+
}
|
|
75
|
+
.edit-data-editor-content {
|
|
76
|
+
position: absolute;
|
|
77
|
+
inset: 0;
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
}
|
|
80
|
+
.edit-data-editor-content .edit-data-code {
|
|
81
|
+
height: 100%;
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
84
|
+
.edit-data-editor-content .edit-data-code .inputs {
|
|
85
|
+
height: 100%;
|
|
86
|
+
width: 100%;
|
|
87
|
+
}
|
|
88
|
+
.edit-data-editor-content .edit-data-code .inputs textarea {
|
|
89
|
+
height: 100%;
|
|
90
|
+
width: 100%;
|
|
91
|
+
}
|
|
92
|
+
.edit-data-editor-footer {
|
|
93
|
+
padding-top: 20px;
|
|
94
|
+
text-align: right;
|
|
95
|
+
}
|
|
96
|
+
.edit-data-area-array, .edit-data-area-object {
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
}
|
|
102
|
+
.edit-data-area-array-main, .edit-data-area-object-main {
|
|
103
|
+
flex: 1;
|
|
104
|
+
width: 100%;
|
|
105
|
+
position: relative;
|
|
106
|
+
}
|
|
107
|
+
.edit-data-area-array-content, .edit-data-area-object-content {
|
|
108
|
+
position: absolute;
|
|
109
|
+
inset: 0;
|
|
110
|
+
overflow-y: auto;
|
|
111
|
+
}
|
|
112
|
+
.edit-data-area-array-json, .edit-data-area-object-json {
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
}
|
|
116
|
+
.edit-data-area-array-json .tabs, .edit-data-area-object-json .tabs {
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 100%;
|
|
119
|
+
}
|
|
120
|
+
.edit-data-area-array-json .tabs .tab-pane, .edit-data-area-object-json .tabs .tab-pane {
|
|
121
|
+
position: absolute;
|
|
122
|
+
inset: 0;
|
|
123
|
+
overflow-y: auto;
|
|
124
|
+
}
|
|
125
|
+
.edit-data-area-array-add, .edit-data-area-object-add {
|
|
126
|
+
margin-bottom: 10px;
|
|
127
|
+
}
|
|
128
|
+
.edit-data-area-comp {
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
.edit-data-area-comp-li {
|
|
132
|
+
min-height: 40px;
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: space-between;
|
|
136
|
+
}
|
|
137
|
+
.edit-data-area-comp-li-div {
|
|
138
|
+
flex: 1;
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
}
|
|
142
|
+
.edit-data-area-comp-li-name {
|
|
143
|
+
padding: 0 10px;
|
|
144
|
+
}
|