@fangzhongya/fang-ui 0.1.50 → 0.1.52
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/date-picker/style/element.scss +7 -4
- 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.css +144 -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.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 +91 -0
- package/dist/components/tables/common/com-limit2.js +91 -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.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 +13 -12
- /package/dist/components/{option → draggable}/index.css +0 -0
- /package/dist/css/{option.css → draggable.css} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const number_vue_vue_type_script_setup_true_lang = require("./number2.cjs");
|
|
4
|
+
exports.default = number_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,42 @@
|
|
|
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("../../../input-num/index.cjs");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
__name: "number",
|
|
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 === 0) {
|
|
20
|
+
return props.modelValue;
|
|
21
|
+
} else {
|
|
22
|
+
emit("update:modelValue", 0);
|
|
23
|
+
return 0;
|
|
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("number"))
|
|
33
|
+
}, [
|
|
34
|
+
vue.createVNode(vue.unref(index$2.InputNum), {
|
|
35
|
+
modelValue: value.value,
|
|
36
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
37
|
+
}, null, 8, ["modelValue"])
|
|
38
|
+
], 2);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { InputNum } from "../../../input-num/index.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "number",
|
|
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 === 0) {
|
|
18
|
+
return props.modelValue;
|
|
19
|
+
} else {
|
|
20
|
+
emit("update:modelValue", 0);
|
|
21
|
+
return 0;
|
|
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("number"))
|
|
31
|
+
}, [
|
|
32
|
+
createVNode(unref(InputNum), {
|
|
33
|
+
modelValue: value.value,
|
|
34
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
35
|
+
}, null, 8, ["modelValue"])
|
|
36
|
+
], 2);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
_sfc_main as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const object_vue_vue_type_script_setup_true_lang = require("./object2.cjs");
|
|
4
|
+
exports.default = object_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,68 @@
|
|
|
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 json5 = require("json5");
|
|
9
|
+
const general_vue_vue_type_script_setup_true_lang = require("../area/general2.cjs");
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
__name: "object",
|
|
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
|
+
if (v && typeof v === "object") {
|
|
21
|
+
return v;
|
|
22
|
+
} else {
|
|
23
|
+
if (v) {
|
|
24
|
+
return json5.parse(v) || {};
|
|
25
|
+
} else {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const check = (v) => {
|
|
31
|
+
try {
|
|
32
|
+
getValue(v);
|
|
33
|
+
return;
|
|
34
|
+
} catch (error) {
|
|
35
|
+
console.log("error", error);
|
|
36
|
+
return "对象输入错误:" + error;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const value = vue.computed({
|
|
40
|
+
get() {
|
|
41
|
+
if (props.modelValue) {
|
|
42
|
+
return props.modelValue;
|
|
43
|
+
} else {
|
|
44
|
+
emit("update:modelValue", {});
|
|
45
|
+
return {};
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
set(value2) {
|
|
49
|
+
const v = getValue(value2);
|
|
50
|
+
emit("update:modelValue", v);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
55
|
+
class: vue.normalizeClass(vue.unref(cs).z("object"))
|
|
56
|
+
}, [
|
|
57
|
+
vue.createVNode(general_vue_vue_type_script_setup_true_lang.default, vue.mergeProps(props, {
|
|
58
|
+
check,
|
|
59
|
+
modelValue: value.value,
|
|
60
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
61
|
+
title: "对象设置",
|
|
62
|
+
type: "object"
|
|
63
|
+
}), null, 16, ["modelValue"])
|
|
64
|
+
], 2);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
exports.default = _sfc_main;
|
|
@@ -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
|
+
};
|