@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,68 @@
|
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps } from "vue";
|
|
2
|
+
import { dataDataEmits, dataDataProps, name } from "../data.js";
|
|
3
|
+
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
|
+
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
5
|
+
import "../area/general.js";
|
|
6
|
+
import json5 from "json5";
|
|
7
|
+
import _sfc_main$1 from "../area/general2.js";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "object",
|
|
10
|
+
props: dataDataProps,
|
|
11
|
+
emits: dataDataEmits,
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
const cs = useCssName(name);
|
|
14
|
+
const { getLocale } = useLocale();
|
|
15
|
+
const props = __props;
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const getValue = (v) => {
|
|
18
|
+
if (v && typeof v === "object") {
|
|
19
|
+
return v;
|
|
20
|
+
} else {
|
|
21
|
+
if (v) {
|
|
22
|
+
return json5.parse(v) || {};
|
|
23
|
+
} else {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const check = (v) => {
|
|
29
|
+
try {
|
|
30
|
+
getValue(v);
|
|
31
|
+
return;
|
|
32
|
+
} catch (error) {
|
|
33
|
+
console.log("error", error);
|
|
34
|
+
return "对象输入错误:" + error;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const value = computed({
|
|
38
|
+
get() {
|
|
39
|
+
if (props.modelValue) {
|
|
40
|
+
return props.modelValue;
|
|
41
|
+
} else {
|
|
42
|
+
emit("update:modelValue", {});
|
|
43
|
+
return {};
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
set(value2) {
|
|
47
|
+
const v = getValue(value2);
|
|
48
|
+
emit("update:modelValue", v);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return openBlock(), createElementBlock("div", {
|
|
53
|
+
class: normalizeClass(unref(cs).z("object"))
|
|
54
|
+
}, [
|
|
55
|
+
createVNode(_sfc_main$1, mergeProps(props, {
|
|
56
|
+
check,
|
|
57
|
+
modelValue: value.value,
|
|
58
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
59
|
+
title: "对象设置",
|
|
60
|
+
type: "object"
|
|
61
|
+
}), null, 16, ["modelValue"])
|
|
62
|
+
], 2);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export {
|
|
67
|
+
_sfc_main as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const data = require("../data.cjs");
|
|
5
|
+
const index = require("../../../../hooks/cssname/index.cjs");
|
|
6
|
+
const index$1 = require("../../../../hooks/locale/index.cjs");
|
|
7
|
+
require("../area/general.cjs");
|
|
8
|
+
const getContent = require("@fangzhongya/utils/basic/string/getContent");
|
|
9
|
+
const general_vue_vue_type_script_setup_true_lang = require("../area/general2.cjs");
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
__name: "other",
|
|
12
|
+
props: data.dataDataProps,
|
|
13
|
+
emits: data.dataDataEmits,
|
|
14
|
+
setup(__props, { emit: __emit }) {
|
|
15
|
+
const cs = index.useCssName(data.name);
|
|
16
|
+
const { getLocale } = index$1.useLocale();
|
|
17
|
+
const props = __props;
|
|
18
|
+
const emit = __emit;
|
|
19
|
+
const getValue = (v) => {
|
|
20
|
+
return getContent.getContent(v);
|
|
21
|
+
};
|
|
22
|
+
const check = (v) => {
|
|
23
|
+
try {
|
|
24
|
+
getValue(v);
|
|
25
|
+
return;
|
|
26
|
+
} catch (error) {
|
|
27
|
+
console.log("error", error);
|
|
28
|
+
return "自定义输入错误:" + error;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const value = vue.computed({
|
|
32
|
+
get() {
|
|
33
|
+
if (props.modelValue) {
|
|
34
|
+
return props.modelValue.toString();
|
|
35
|
+
} else {
|
|
36
|
+
return "";
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
set(value2) {
|
|
40
|
+
const v = getValue(value2);
|
|
41
|
+
emit("update:modelValue", v);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
46
|
+
class: vue.normalizeClass(vue.unref(cs).z("other"))
|
|
47
|
+
}, [
|
|
48
|
+
vue.createVNode(general_vue_vue_type_script_setup_true_lang.default, {
|
|
49
|
+
check,
|
|
50
|
+
modelValue: value.value,
|
|
51
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
52
|
+
title: "自定义设置",
|
|
53
|
+
type: "other"
|
|
54
|
+
}, null, 8, ["modelValue"])
|
|
55
|
+
], 2);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
2
|
+
import { dataDataEmits, dataDataProps, name } from "../data.js";
|
|
3
|
+
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
|
+
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
5
|
+
import "../area/general.js";
|
|
6
|
+
import { getContent } from "@fangzhongya/utils/basic/string/getContent";
|
|
7
|
+
import _sfc_main$1 from "../area/general2.js";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "other",
|
|
10
|
+
props: dataDataProps,
|
|
11
|
+
emits: dataDataEmits,
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
const cs = useCssName(name);
|
|
14
|
+
const { getLocale } = useLocale();
|
|
15
|
+
const props = __props;
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const getValue = (v) => {
|
|
18
|
+
return getContent(v);
|
|
19
|
+
};
|
|
20
|
+
const check = (v) => {
|
|
21
|
+
try {
|
|
22
|
+
getValue(v);
|
|
23
|
+
return;
|
|
24
|
+
} catch (error) {
|
|
25
|
+
console.log("error", error);
|
|
26
|
+
return "自定义输入错误:" + error;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const value = computed({
|
|
30
|
+
get() {
|
|
31
|
+
if (props.modelValue) {
|
|
32
|
+
return props.modelValue.toString();
|
|
33
|
+
} else {
|
|
34
|
+
return "";
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
set(value2) {
|
|
38
|
+
const v = getValue(value2);
|
|
39
|
+
emit("update:modelValue", v);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
return (_ctx, _cache) => {
|
|
43
|
+
return openBlock(), createElementBlock("div", {
|
|
44
|
+
class: normalizeClass(unref(cs).z("other"))
|
|
45
|
+
}, [
|
|
46
|
+
createVNode(_sfc_main$1, {
|
|
47
|
+
check,
|
|
48
|
+
modelValue: value.value,
|
|
49
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
50
|
+
title: "自定义设置",
|
|
51
|
+
type: "other"
|
|
52
|
+
}, null, 8, ["modelValue"])
|
|
53
|
+
], 2);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
_sfc_main as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const string_vue_vue_type_script_setup_true_lang = require("./string2.cjs");
|
|
4
|
+
exports.default = string_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const data = require("../data.cjs");
|
|
5
|
+
const index = require("../../../../hooks/cssname/index.cjs");
|
|
6
|
+
const index$1 = require("../../../../hooks/locale/index.cjs");
|
|
7
|
+
const index$2 = require("../../../inputs/index.cjs");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
__name: "string",
|
|
10
|
+
props: data.dataDataProps,
|
|
11
|
+
emits: data.dataDataEmits,
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
const cs = index.useCssName(data.name);
|
|
14
|
+
const { getLocale } = index$1.useLocale();
|
|
15
|
+
const props = __props;
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const value = vue.computed({
|
|
18
|
+
get() {
|
|
19
|
+
if (props.modelValue || props.modelValue === "") {
|
|
20
|
+
return props.modelValue;
|
|
21
|
+
} else {
|
|
22
|
+
emit("update:modelValue", "");
|
|
23
|
+
return "";
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
set(value2) {
|
|
27
|
+
emit("update:modelValue", value2);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
32
|
+
class: vue.normalizeClass(vue.unref(cs).z("string"))
|
|
33
|
+
}, [
|
|
34
|
+
vue.createVNode(vue.unref(index$2.Inputs), {
|
|
35
|
+
type: "textarea",
|
|
36
|
+
modelValue: value.value,
|
|
37
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
38
|
+
}, null, 8, ["modelValue"])
|
|
39
|
+
], 2);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
2
|
+
import { name, dataDataEmits, dataDataProps } from "../data.js";
|
|
3
|
+
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
|
+
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
5
|
+
import { Inputs } from "../../../inputs/index.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "string",
|
|
8
|
+
props: dataDataProps,
|
|
9
|
+
emits: dataDataEmits,
|
|
10
|
+
setup(__props, { emit: __emit }) {
|
|
11
|
+
const cs = useCssName(name);
|
|
12
|
+
const { getLocale } = useLocale();
|
|
13
|
+
const props = __props;
|
|
14
|
+
const emit = __emit;
|
|
15
|
+
const value = computed({
|
|
16
|
+
get() {
|
|
17
|
+
if (props.modelValue || props.modelValue === "") {
|
|
18
|
+
return props.modelValue;
|
|
19
|
+
} else {
|
|
20
|
+
emit("update:modelValue", "");
|
|
21
|
+
return "";
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
set(value2) {
|
|
25
|
+
emit("update:modelValue", value2);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock("div", {
|
|
30
|
+
class: normalizeClass(unref(cs).z("string"))
|
|
31
|
+
}, [
|
|
32
|
+
createVNode(unref(Inputs), {
|
|
33
|
+
type: "textarea",
|
|
34
|
+
modelValue: value.value,
|
|
35
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
36
|
+
}, null, 8, ["modelValue"])
|
|
37
|
+
], 2);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
_sfc_main as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const symbol_vue_vue_type_script_setup_true_lang = require("./symbol2.cjs");
|
|
4
|
+
exports.default = symbol_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const data = require("../data.cjs");
|
|
5
|
+
const index = require("../../../../hooks/cssname/index.cjs");
|
|
6
|
+
const index$1 = require("../../../../hooks/locale/index.cjs");
|
|
7
|
+
const index$2 = require("../../../inputs/index.cjs");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
__name: "symbol",
|
|
10
|
+
props: data.dataDataProps,
|
|
11
|
+
emits: data.dataDataEmits,
|
|
12
|
+
setup(__props, { emit: __emit }) {
|
|
13
|
+
const cs = index.useCssName(data.name);
|
|
14
|
+
const { getLocale } = index$1.useLocale();
|
|
15
|
+
const props = __props;
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const iskey = vue.ref(false);
|
|
18
|
+
const value = vue.computed({
|
|
19
|
+
get() {
|
|
20
|
+
if (props.modelValue) {
|
|
21
|
+
const k = Symbol.keyFor(props.modelValue) ?? 0;
|
|
22
|
+
const d = props.modelValue.description || "";
|
|
23
|
+
if (k) {
|
|
24
|
+
iskey.value = true;
|
|
25
|
+
return k;
|
|
26
|
+
} else {
|
|
27
|
+
iskey.value = false;
|
|
28
|
+
return d;
|
|
29
|
+
}
|
|
30
|
+
} else {
|
|
31
|
+
emit("update:modelValue", Symbol());
|
|
32
|
+
return "";
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
set(value2) {
|
|
36
|
+
if (iskey.value) {
|
|
37
|
+
emit("update:modelValue", Symbol.for(value2));
|
|
38
|
+
} else {
|
|
39
|
+
emit("update:modelValue", Symbol(value2));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
45
|
+
class: vue.normalizeClass(vue.unref(cs).z("symbol"))
|
|
46
|
+
}, [
|
|
47
|
+
vue.createVNode(vue.unref(index$2.Inputs), {
|
|
48
|
+
modelValue: value.value,
|
|
49
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
50
|
+
}, null, 8, ["modelValue"])
|
|
51
|
+
], 2);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
2
|
+
import { dataDataEmits, dataDataProps, name } from "../data.js";
|
|
3
|
+
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
|
+
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
5
|
+
import { Inputs } from "../../../inputs/index.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "symbol",
|
|
8
|
+
props: dataDataProps,
|
|
9
|
+
emits: dataDataEmits,
|
|
10
|
+
setup(__props, { emit: __emit }) {
|
|
11
|
+
const cs = useCssName(name);
|
|
12
|
+
const { getLocale } = useLocale();
|
|
13
|
+
const props = __props;
|
|
14
|
+
const emit = __emit;
|
|
15
|
+
const iskey = ref(false);
|
|
16
|
+
const value = computed({
|
|
17
|
+
get() {
|
|
18
|
+
if (props.modelValue) {
|
|
19
|
+
const k = Symbol.keyFor(props.modelValue) ?? 0;
|
|
20
|
+
const d = props.modelValue.description || "";
|
|
21
|
+
if (k) {
|
|
22
|
+
iskey.value = true;
|
|
23
|
+
return k;
|
|
24
|
+
} else {
|
|
25
|
+
iskey.value = false;
|
|
26
|
+
return d;
|
|
27
|
+
}
|
|
28
|
+
} else {
|
|
29
|
+
emit("update:modelValue", Symbol());
|
|
30
|
+
return "";
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
set(value2) {
|
|
34
|
+
if (iskey.value) {
|
|
35
|
+
emit("update:modelValue", Symbol.for(value2));
|
|
36
|
+
} else {
|
|
37
|
+
emit("update:modelValue", Symbol(value2));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("div", {
|
|
43
|
+
class: normalizeClass(unref(cs).z("symbol"))
|
|
44
|
+
}, [
|
|
45
|
+
createVNode(unref(Inputs), {
|
|
46
|
+
modelValue: value.value,
|
|
47
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
48
|
+
}, null, 8, ["modelValue"])
|
|
49
|
+
], 2);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
_sfc_main as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const undefined_vue_vue_type_script_setup_true_lang = require("./undefined2.cjs");
|
|
4
|
+
exports.default = undefined_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const data = require("../data.cjs");
|
|
5
|
+
const index = require("../../../../hooks/cssname/index.cjs");
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
|
+
__name: "undefined",
|
|
8
|
+
props: data.dataDataProps,
|
|
9
|
+
emits: data.dataDataEmits,
|
|
10
|
+
setup(__props, { emit: __emit }) {
|
|
11
|
+
const cs = index.useCssName(data.name);
|
|
12
|
+
const props = __props;
|
|
13
|
+
const emit = __emit;
|
|
14
|
+
vue.onMounted(() => {
|
|
15
|
+
emit("update:modelValue", void 0);
|
|
16
|
+
});
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19
|
+
class: vue.normalizeClass(vue.unref(cs).z("undefined"))
|
|
20
|
+
}, "undefined", 2);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent, onMounted, createElementBlock, openBlock, normalizeClass, unref } from "vue";
|
|
2
|
+
import { dataDataEmits, dataDataProps, name } from "../data.js";
|
|
3
|
+
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "undefined",
|
|
6
|
+
props: dataDataProps,
|
|
7
|
+
emits: dataDataEmits,
|
|
8
|
+
setup(__props, { emit: __emit }) {
|
|
9
|
+
const cs = useCssName(name);
|
|
10
|
+
const props = __props;
|
|
11
|
+
const emit = __emit;
|
|
12
|
+
onMounted(() => {
|
|
13
|
+
emit("update:modelValue", void 0);
|
|
14
|
+
});
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createElementBlock("div", {
|
|
17
|
+
class: normalizeClass(unref(cs).z("undefined"))
|
|
18
|
+
}, "undefined", 2);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
_sfc_main as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const buildProps = require("../../../utils/vues/buildProps.cjs");
|
|
4
|
+
const name = "edit-data";
|
|
5
|
+
const dataProps = buildProps.buildProps({
|
|
6
|
+
/**
|
|
7
|
+
* @props { String } type=string ( )
|
|
8
|
+
* 类型
|
|
9
|
+
*/
|
|
10
|
+
type: {
|
|
11
|
+
type: String
|
|
12
|
+
},
|
|
13
|
+
typeObj: { type: [Array, String] },
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: null
|
|
16
|
+
},
|
|
17
|
+
/**
|
|
18
|
+
* 代码编辑器组件
|
|
19
|
+
*/
|
|
20
|
+
compon: {
|
|
21
|
+
type: Object
|
|
22
|
+
},
|
|
23
|
+
isJson: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
isNot: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: true
|
|
30
|
+
},
|
|
31
|
+
addable: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: true
|
|
34
|
+
},
|
|
35
|
+
editable: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: true
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const dataEmits = ["update:modelValue"];
|
|
41
|
+
const dataSlot = {
|
|
42
|
+
default: "default"
|
|
43
|
+
};
|
|
44
|
+
const dataExpose = {
|
|
45
|
+
name
|
|
46
|
+
};
|
|
47
|
+
const dataDataProps = buildProps.buildProps({
|
|
48
|
+
...dataProps
|
|
49
|
+
});
|
|
50
|
+
const dataDataEmits = [...dataEmits];
|
|
51
|
+
exports.dataDataEmits = dataDataEmits;
|
|
52
|
+
exports.dataDataProps = dataDataProps;
|
|
53
|
+
exports.dataEmits = dataEmits;
|
|
54
|
+
exports.dataExpose = dataExpose;
|
|
55
|
+
exports.dataProps = dataProps;
|
|
56
|
+
exports.dataSlot = dataSlot;
|
|
57
|
+
exports.name = name;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* @title {h3} EditData
|
|
4
|
+
* @text edit-data
|
|
5
|
+
*/
|
|
6
|
+
export declare const name = "edit-data";
|
|
7
|
+
export declare const dataProps: {
|
|
8
|
+
/**
|
|
9
|
+
* @props { String } type=string ( )
|
|
10
|
+
* 类型
|
|
11
|
+
*/
|
|
12
|
+
type: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
typeObj: {
|
|
16
|
+
type: (StringConstructor | {
|
|
17
|
+
(arrayLength: number): string[];
|
|
18
|
+
(...items: string[]): string[];
|
|
19
|
+
new (arrayLength: number): string[];
|
|
20
|
+
new (...items: string[]): string[];
|
|
21
|
+
isArray(arg: any): arg is any[];
|
|
22
|
+
readonly prototype: any[];
|
|
23
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
24
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
25
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
26
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
27
|
+
of<T>(...items: T[]): T[];
|
|
28
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
29
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
30
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
31
|
+
})[];
|
|
32
|
+
};
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: null;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* 代码编辑器组件
|
|
38
|
+
*/
|
|
39
|
+
compon: {
|
|
40
|
+
type: ObjectConstructor;
|
|
41
|
+
};
|
|
42
|
+
isJson: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
isNot: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
addable: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
editable: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
|
|
60
|
+
/**
|
|
61
|
+
* @emits change (val:[String, Array])
|
|
62
|
+
* 选择的时间
|
|
63
|
+
*/
|
|
64
|
+
export declare const dataEmits: string[];
|
|
65
|
+
export type DataEmits = typeof dataEmits;
|
|
66
|
+
/**
|
|
67
|
+
* @slot default 默认插槽
|
|
68
|
+
*/
|
|
69
|
+
export declare const dataSlot: {
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @expose setValue (val:<string>设置的数据 )
|
|
74
|
+
* 设置值
|
|
75
|
+
*/
|
|
76
|
+
export declare const dataExpose: {
|
|
77
|
+
name: string;
|
|
78
|
+
};
|
|
79
|
+
export declare const dataDataProps: {
|
|
80
|
+
/**
|
|
81
|
+
* @props { String } type=string ( )
|
|
82
|
+
* 类型
|
|
83
|
+
*/
|
|
84
|
+
type: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
};
|
|
87
|
+
typeObj: {
|
|
88
|
+
type: (StringConstructor | {
|
|
89
|
+
(arrayLength: number): string[];
|
|
90
|
+
(...items: string[]): string[];
|
|
91
|
+
new (arrayLength: number): string[];
|
|
92
|
+
new (...items: string[]): string[];
|
|
93
|
+
isArray(arg: any): arg is any[];
|
|
94
|
+
readonly prototype: any[];
|
|
95
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
96
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
97
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
98
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
99
|
+
of<T>(...items: T[]): T[];
|
|
100
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
101
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
102
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
103
|
+
})[];
|
|
104
|
+
};
|
|
105
|
+
modelValue: {
|
|
106
|
+
type: null;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* 代码编辑器组件
|
|
110
|
+
*/
|
|
111
|
+
compon: {
|
|
112
|
+
type: ObjectConstructor;
|
|
113
|
+
};
|
|
114
|
+
isJson: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
isNot: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
addable: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
editable: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export declare const dataDataEmits: string[];
|