@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,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: "array",
|
|
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 (Array.isArray(v)) {
|
|
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("array"))
|
|
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: "array"
|
|
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: "array",
|
|
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 (Array.isArray(v)) {
|
|
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("array"))
|
|
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: "array"
|
|
61
|
+
}), null, 16, ["modelValue"])
|
|
62
|
+
], 2);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export {
|
|
67
|
+
_sfc_main as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const bigint_vue_vue_type_script_setup_true_lang = require("./bigint2.cjs");
|
|
4
|
+
exports.default = bigint_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: "bigint",
|
|
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", BigInt(0));
|
|
23
|
+
return 0;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
set(value2) {
|
|
27
|
+
emit("update:modelValue", BigInt(value2));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
32
|
+
class: vue.normalizeClass(vue.unref(cs).z("bigint"))
|
|
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 { dataDataEmits, dataDataProps, name } 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: "bigint",
|
|
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", BigInt(0));
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
set(value2) {
|
|
25
|
+
emit("update:modelValue", BigInt(value2));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return openBlock(), createElementBlock("div", {
|
|
30
|
+
class: normalizeClass(unref(cs).z("bigint"))
|
|
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 boolean_vue_vue_type_script_setup_true_lang = require("./boolean2.cjs");
|
|
4
|
+
exports.default = boolean_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,53 @@
|
|
|
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("../../../switchs/index.cjs");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
__name: "boolean",
|
|
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 options = [
|
|
18
|
+
{
|
|
19
|
+
label: "false",
|
|
20
|
+
value: false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "true",
|
|
24
|
+
value: true
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
const value = vue.computed({
|
|
28
|
+
get() {
|
|
29
|
+
if (props.modelValue || props.modelValue === false) {
|
|
30
|
+
return props.modelValue;
|
|
31
|
+
} else {
|
|
32
|
+
emit("update:modelValue", false);
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
set(value2) {
|
|
37
|
+
emit("update:modelValue", value2);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
42
|
+
class: vue.normalizeClass(vue.unref(cs).z("boolean"))
|
|
43
|
+
}, [
|
|
44
|
+
vue.createVNode(vue.unref(index$2.Switchs), {
|
|
45
|
+
options,
|
|
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
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { Switchs } from "../../../switchs/index.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "boolean",
|
|
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 options = [
|
|
16
|
+
{
|
|
17
|
+
label: "false",
|
|
18
|
+
value: false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: "true",
|
|
22
|
+
value: true
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
const value = computed({
|
|
26
|
+
get() {
|
|
27
|
+
if (props.modelValue || props.modelValue === false) {
|
|
28
|
+
return props.modelValue;
|
|
29
|
+
} else {
|
|
30
|
+
emit("update:modelValue", false);
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
set(value2) {
|
|
35
|
+
emit("update:modelValue", value2);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createElementBlock("div", {
|
|
40
|
+
class: normalizeClass(unref(cs).z("boolean"))
|
|
41
|
+
}, [
|
|
42
|
+
createVNode(unref(Switchs), {
|
|
43
|
+
options,
|
|
44
|
+
modelValue: value.value,
|
|
45
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
46
|
+
}, null, 8, ["modelValue"])
|
|
47
|
+
], 2);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
_sfc_main as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const function_vue_vue_type_script_setup_true_lang = require("./function2.cjs");
|
|
4
|
+
exports.default = function_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 toFunction = require("@fangzhongya/utils/basic/string/toFunction");
|
|
8
|
+
require("../area/general.cjs");
|
|
9
|
+
const general_vue_vue_type_script_setup_true_lang = require("../area/general2.cjs");
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
__name: "function",
|
|
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 toFunction.toFunction(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
|
+
emit("update:modelValue", function() {
|
|
37
|
+
});
|
|
38
|
+
return "function () {}";
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
set(value2) {
|
|
42
|
+
const fun = getValue(value2);
|
|
43
|
+
emit("update:modelValue", fun);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
48
|
+
class: vue.normalizeClass(vue.unref(cs).z("function"))
|
|
49
|
+
}, [
|
|
50
|
+
vue.createVNode(general_vue_vue_type_script_setup_true_lang.default, {
|
|
51
|
+
check,
|
|
52
|
+
modelValue: value.value,
|
|
53
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
54
|
+
title: "方法设置",
|
|
55
|
+
type: "function"
|
|
56
|
+
}, null, 8, ["modelValue"])
|
|
57
|
+
], 2);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { toFunction } from "@fangzhongya/utils/basic/string/toFunction";
|
|
6
|
+
import "../area/general.js";
|
|
7
|
+
import _sfc_main$1 from "../area/general2.js";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "function",
|
|
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 toFunction(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
|
+
emit("update:modelValue", function() {
|
|
35
|
+
});
|
|
36
|
+
return "function () {}";
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
set(value2) {
|
|
40
|
+
const fun = getValue(value2);
|
|
41
|
+
emit("update:modelValue", fun);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return openBlock(), createElementBlock("div", {
|
|
46
|
+
class: normalizeClass(unref(cs).z("function"))
|
|
47
|
+
}, [
|
|
48
|
+
createVNode(_sfc_main$1, {
|
|
49
|
+
check,
|
|
50
|
+
modelValue: value.value,
|
|
51
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
52
|
+
title: "方法设置",
|
|
53
|
+
type: "function"
|
|
54
|
+
}, null, 8, ["modelValue"])
|
|
55
|
+
], 2);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
_sfc_main as default
|
|
61
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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("../../../checks/index.cjs");
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
__name: "not",
|
|
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 options = [
|
|
18
|
+
{
|
|
19
|
+
label: "null",
|
|
20
|
+
value: 1
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "undefined",
|
|
24
|
+
value: 0
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
const value = vue.computed({
|
|
28
|
+
get() {
|
|
29
|
+
if (props.modelValue === void 0) {
|
|
30
|
+
return 0;
|
|
31
|
+
} else {
|
|
32
|
+
return 1;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
set(value2) {
|
|
36
|
+
if (value2 === 0) {
|
|
37
|
+
emit("update:modelValue", void 0);
|
|
38
|
+
} else {
|
|
39
|
+
emit("update:modelValue", null);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
45
|
+
class: vue.normalizeClass(vue.unref(cs).z("not"))
|
|
46
|
+
}, [
|
|
47
|
+
vue.createVNode(vue.unref(index$2.Checks), {
|
|
48
|
+
options,
|
|
49
|
+
modelValue: value.value,
|
|
50
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
51
|
+
}, null, 8, ["modelValue"])
|
|
52
|
+
], 2);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { Checks } from "../../../checks/index.js";
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "not",
|
|
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 options = [
|
|
16
|
+
{
|
|
17
|
+
label: "null",
|
|
18
|
+
value: 1
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: "undefined",
|
|
22
|
+
value: 0
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
const value = computed({
|
|
26
|
+
get() {
|
|
27
|
+
if (props.modelValue === void 0) {
|
|
28
|
+
return 0;
|
|
29
|
+
} else {
|
|
30
|
+
return 1;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
set(value2) {
|
|
34
|
+
if (value2 === 0) {
|
|
35
|
+
emit("update:modelValue", void 0);
|
|
36
|
+
} else {
|
|
37
|
+
emit("update:modelValue", null);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return (_ctx, _cache) => {
|
|
42
|
+
return openBlock(), createElementBlock("div", {
|
|
43
|
+
class: normalizeClass(unref(cs).z("not"))
|
|
44
|
+
}, [
|
|
45
|
+
createVNode(unref(Checks), {
|
|
46
|
+
options,
|
|
47
|
+
modelValue: value.value,
|
|
48
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
49
|
+
}, null, 8, ["modelValue"])
|
|
50
|
+
], 2);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
_sfc_main as default
|
|
56
|
+
};
|
|
@@ -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: "null",
|
|
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", null);
|
|
16
|
+
});
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19
|
+
class: vue.normalizeClass(vue.unref(cs).z("null"))
|
|
20
|
+
}, "null", 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: "null",
|
|
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", null);
|
|
14
|
+
});
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createElementBlock("div", {
|
|
17
|
+
class: normalizeClass(unref(cs).z("null"))
|
|
18
|
+
}, "null", 2);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
_sfc_main as default
|
|
24
|
+
};
|