@fangzhongya/fang-ui 0.1.79 → 0.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dates/src/data.cjs +1 -5
- package/dist/components/dates/src/data.d.ts +0 -44
- package/dist/components/dates/src/data.js +1 -5
- package/dist/components/dates/src/index2.cjs +10 -3
- package/dist/components/dates/src/index2.js +12 -5
- package/dist/components/edit-data/src/data/bigint2.cjs +2 -2
- package/dist/components/edit-data/src/data/bigint2.js +3 -3
- package/dist/components/edit-data/src/data/boolean2.cjs +2 -2
- package/dist/components/edit-data/src/data/boolean2.js +3 -3
- package/dist/components/edit-data/src/data/date2.cjs +2 -2
- package/dist/components/edit-data/src/data/date2.js +3 -3
- package/dist/components/edit-data/src/data/not2.cjs +2 -2
- package/dist/components/edit-data/src/data/not2.js +3 -3
- package/dist/components/edit-data/src/data/number2.cjs +2 -2
- package/dist/components/edit-data/src/data/number2.js +3 -3
- package/dist/components/edit-data/src/data/string2.cjs +3 -3
- package/dist/components/edit-data/src/data/string2.js +4 -4
- package/dist/components/edit-data/src/data/symbol2.cjs +2 -2
- package/dist/components/edit-data/src/data/symbol2.js +3 -3
- package/dist/components/edit-data/src/data.cjs +7 -1
- package/dist/components/edit-data/src/data.d.ts +10 -2
- package/dist/components/edit-data/src/data.js +7 -1
- package/dist/components/edit-data/src/index2.cjs +6 -6
- package/dist/components/edit-data/src/index2.js +6 -6
- package/dist/components/edit-data-add/src/index2.cjs +10 -10
- package/dist/components/edit-data-add/src/index2.js +10 -10
- package/dist/icons/index.json +1 -1
- package/package.json +1 -1
- /package/dist/components/{edit-data-add → edit-data}/index.css +0 -0
- /package/dist/components/{keep-com → global-config}/index.css +0 -0
- /package/dist/css/{edit-data-add.css → edit-data.css} +0 -0
- /package/dist/css/{keep-com.css → global-config.css} +0 -0
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const list = require("../../common/list.cjs");
|
|
4
3
|
const name = "dates";
|
|
5
4
|
const dataProps = {
|
|
6
|
-
...list.props,
|
|
7
5
|
/**
|
|
8
6
|
* @props {String, Number, Date, Array} modelValue 时间数据
|
|
9
7
|
* @model
|
|
@@ -18,15 +16,13 @@ const dataProps = {
|
|
|
18
16
|
type: Boolean
|
|
19
17
|
}
|
|
20
18
|
};
|
|
21
|
-
const
|
|
22
|
-
const dataEmits = [...list.emits];
|
|
19
|
+
const dataEmits = ["update:modelValue"];
|
|
23
20
|
const dataSlot = {
|
|
24
21
|
default: "default"
|
|
25
22
|
};
|
|
26
23
|
const dataExpose = {};
|
|
27
24
|
exports.dataEmits = dataEmits;
|
|
28
25
|
exports.dataExpose = dataExpose;
|
|
29
|
-
exports.dataHandle = dataHandle;
|
|
30
26
|
exports.dataProps = dataProps;
|
|
31
27
|
exports.dataSlot = dataSlot;
|
|
32
28
|
exports.name = name;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
import { comHandle, Options } from '../../common/list';
|
|
3
2
|
/**
|
|
4
3
|
* @title {h3} dates 基础时间
|
|
5
4
|
* @state 1
|
|
@@ -19,51 +18,8 @@ export declare const dataProps: {
|
|
|
19
18
|
disabledNot: {
|
|
20
19
|
type: BooleanConstructor;
|
|
21
20
|
};
|
|
22
|
-
options: {
|
|
23
|
-
type: {
|
|
24
|
-
(arrayLength: number): Options[];
|
|
25
|
-
(...items: Options[]): Options[];
|
|
26
|
-
new (arrayLength: number): Options[];
|
|
27
|
-
new (...items: Options[]): Options[];
|
|
28
|
-
isArray(arg: any): arg is any[];
|
|
29
|
-
readonly prototype: any[];
|
|
30
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
31
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
32
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
33
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
34
|
-
of<T>(...items: T[]): T[];
|
|
35
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
36
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
37
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
38
|
-
};
|
|
39
|
-
default(): never[];
|
|
40
|
-
};
|
|
41
|
-
label: {
|
|
42
|
-
type: (StringConstructor | FunctionConstructor)[];
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
|
-
prop: {
|
|
46
|
-
type: (StringConstructor | FunctionConstructor)[];
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
|
-
multiple: {
|
|
50
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
51
|
-
};
|
|
52
|
-
isLoad: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
};
|
|
55
|
-
isClearAbsent: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
};
|
|
58
|
-
isOptobj: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
};
|
|
61
|
-
default: {
|
|
62
|
-
type: null;
|
|
63
|
-
};
|
|
64
21
|
};
|
|
65
22
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
66
|
-
export declare const dataHandle: typeof comHandle;
|
|
67
23
|
export declare const dataEmits: string[];
|
|
68
24
|
export type DataEmits = typeof dataEmits;
|
|
69
25
|
/**
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { props, comHandle, emits } from "../../common/list.js";
|
|
2
1
|
const name = "dates";
|
|
3
2
|
const dataProps = {
|
|
4
|
-
...props,
|
|
5
3
|
/**
|
|
6
4
|
* @props {String, Number, Date, Array} modelValue 时间数据
|
|
7
5
|
* @model
|
|
@@ -16,8 +14,7 @@ const dataProps = {
|
|
|
16
14
|
type: Boolean
|
|
17
15
|
}
|
|
18
16
|
};
|
|
19
|
-
const
|
|
20
|
-
const dataEmits = [...emits];
|
|
17
|
+
const dataEmits = ["update:modelValue"];
|
|
21
18
|
const dataSlot = {
|
|
22
19
|
default: "default"
|
|
23
20
|
};
|
|
@@ -25,7 +22,6 @@ const dataExpose = {};
|
|
|
25
22
|
export {
|
|
26
23
|
dataEmits,
|
|
27
24
|
dataExpose,
|
|
28
|
-
dataHandle,
|
|
29
25
|
dataProps,
|
|
30
26
|
dataSlot,
|
|
31
27
|
name
|
|
@@ -19,7 +19,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19
19
|
const prs = __props;
|
|
20
20
|
const props = index$2.usePropsDefault(data.name, prs, data.dataProps);
|
|
21
21
|
const emit = __emit;
|
|
22
|
-
const
|
|
22
|
+
const value = vue.computed({
|
|
23
|
+
get() {
|
|
24
|
+
return props.modelValue;
|
|
25
|
+
},
|
|
26
|
+
set(value2) {
|
|
27
|
+
emit("update:modelValue", value2);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
23
30
|
const disabledDate = function(data2) {
|
|
24
31
|
if (props.disabledDate) {
|
|
25
32
|
return props.disabledDate(data2);
|
|
@@ -42,8 +49,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
49
|
vue.createVNode(vue.unref(index$3.DatePicker), vue.mergeProps({
|
|
43
50
|
class: [vue.unref(cs).z("date")]
|
|
44
51
|
}, vue.unref(attrs).assem, {
|
|
45
|
-
modelValue:
|
|
46
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
52
|
+
modelValue: value.value,
|
|
53
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
47
54
|
"disabled-date": disabledDate
|
|
48
55
|
}), null, 16, ["class", "modelValue"])
|
|
49
56
|
], 16);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, ref, createElementBlock, openBlock, mergeProps, unref, createVNode
|
|
2
|
-
import { name, dataProps,
|
|
1
|
+
import { defineComponent, useAttrs, ref, computed, createElementBlock, openBlock, mergeProps, unref, createVNode } from "vue";
|
|
2
|
+
import { name, dataProps, dataExpose, dataEmits } from "./data.js";
|
|
3
3
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
4
4
|
import { useInherit } from "../../../hooks/inherit/index.js";
|
|
5
5
|
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
@@ -17,7 +17,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
const prs = __props;
|
|
18
18
|
const props = usePropsDefault(name, prs, dataProps);
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const
|
|
20
|
+
const value = computed({
|
|
21
|
+
get() {
|
|
22
|
+
return props.modelValue;
|
|
23
|
+
},
|
|
24
|
+
set(value2) {
|
|
25
|
+
emit("update:modelValue", value2);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
21
28
|
const disabledDate = function(data) {
|
|
22
29
|
if (props.disabledDate) {
|
|
23
30
|
return props.disabledDate(data);
|
|
@@ -40,8 +47,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
47
|
createVNode(unref(DatePicker), mergeProps({
|
|
41
48
|
class: [unref(cs).z("date")]
|
|
42
49
|
}, unref(attrs).assem, {
|
|
43
|
-
modelValue:
|
|
44
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
50
|
+
modelValue: value.value,
|
|
51
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
45
52
|
"disabled-date": disabledDate
|
|
46
53
|
}), null, 16, ["class", "modelValue"])
|
|
47
54
|
], 16);
|
|
@@ -35,10 +35,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
36
36
|
class: vue.normalizeClass(vue.unref(cs).z("bigint"))
|
|
37
37
|
}, [
|
|
38
|
-
vue.createVNode(vue.unref(index$2.InputNum), {
|
|
38
|
+
vue.createVNode(vue.unref(index$2.InputNum), vue.mergeProps(props.config, {
|
|
39
39
|
modelValue: value.value,
|
|
40
40
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
41
|
-
}, null,
|
|
41
|
+
}), null, 16, ["modelValue"])
|
|
42
42
|
], 2);
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps } from "vue";
|
|
2
2
|
import { dataDataEmits, dataDataProps, name } from "../data.js";
|
|
3
3
|
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
4
|
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
@@ -33,10 +33,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
return openBlock(), createElementBlock("div", {
|
|
34
34
|
class: normalizeClass(unref(cs).z("bigint"))
|
|
35
35
|
}, [
|
|
36
|
-
createVNode(unref(InputNum), {
|
|
36
|
+
createVNode(unref(InputNum), mergeProps(props.config, {
|
|
37
37
|
modelValue: value.value,
|
|
38
38
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
39
|
-
}, null,
|
|
39
|
+
}), null, 16, ["modelValue"])
|
|
40
40
|
], 2);
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -45,11 +45,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
45
45
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
46
46
|
class: vue.normalizeClass(vue.unref(cs).z("boolean"))
|
|
47
47
|
}, [
|
|
48
|
-
vue.createVNode(vue.unref(index$2.Switchs), {
|
|
48
|
+
vue.createVNode(vue.unref(index$2.Switchs), vue.mergeProps(props.config, {
|
|
49
49
|
options,
|
|
50
50
|
modelValue: value.value,
|
|
51
51
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
52
|
-
}, null,
|
|
52
|
+
}), null, 16, ["modelValue"])
|
|
53
53
|
], 2);
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps } from "vue";
|
|
2
2
|
import { name, dataDataEmits, dataDataProps } from "../data.js";
|
|
3
3
|
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
4
|
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
@@ -43,11 +43,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
return openBlock(), createElementBlock("div", {
|
|
44
44
|
class: normalizeClass(unref(cs).z("boolean"))
|
|
45
45
|
}, [
|
|
46
|
-
createVNode(unref(Switchs), {
|
|
46
|
+
createVNode(unref(Switchs), mergeProps(props.config, {
|
|
47
47
|
options,
|
|
48
48
|
modelValue: value.value,
|
|
49
49
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
50
|
-
}, null,
|
|
50
|
+
}), null, 16, ["modelValue"])
|
|
51
51
|
], 2);
|
|
52
52
|
};
|
|
53
53
|
}
|
|
@@ -36,11 +36,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
36
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
37
37
|
class: vue.normalizeClass(vue.unref(cs).z("date"))
|
|
38
38
|
}, [
|
|
39
|
-
vue.createVNode(vue.unref(index$2.Dates), {
|
|
39
|
+
vue.createVNode(vue.unref(index$2.Dates), vue.mergeProps(props.config, {
|
|
40
40
|
modelValue: value.value,
|
|
41
41
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
42
42
|
type: "datetime"
|
|
43
|
-
}, null,
|
|
43
|
+
}), null, 16, ["modelValue"])
|
|
44
44
|
], 2);
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps } from "vue";
|
|
2
2
|
import { dataDataEmits, dataDataProps, name } from "../data.js";
|
|
3
3
|
import { Dates } from "../../../dates/index.js";
|
|
4
4
|
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
@@ -34,11 +34,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
return openBlock(), createElementBlock("div", {
|
|
35
35
|
class: normalizeClass(unref(cs).z("date"))
|
|
36
36
|
}, [
|
|
37
|
-
createVNode(unref(Dates), {
|
|
37
|
+
createVNode(unref(Dates), mergeProps(props.config, {
|
|
38
38
|
modelValue: value.value,
|
|
39
39
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
40
40
|
type: "datetime"
|
|
41
|
-
}, null,
|
|
41
|
+
}), null, 16, ["modelValue"])
|
|
42
42
|
], 2);
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -44,11 +44,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
44
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
45
45
|
class: vue.normalizeClass(vue.unref(cs).z("not"))
|
|
46
46
|
}, [
|
|
47
|
-
vue.createVNode(vue.unref(index$2.Checks), {
|
|
47
|
+
vue.createVNode(vue.unref(index$2.Checks), vue.mergeProps(props.config, {
|
|
48
48
|
options,
|
|
49
49
|
modelValue: value.value,
|
|
50
50
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
51
|
-
}, null,
|
|
51
|
+
}), null, 16, ["modelValue"])
|
|
52
52
|
], 2);
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps } from "vue";
|
|
2
2
|
import { dataDataEmits, dataDataProps, name } from "../data.js";
|
|
3
3
|
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
4
|
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
@@ -42,11 +42,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
return openBlock(), createElementBlock("div", {
|
|
43
43
|
class: normalizeClass(unref(cs).z("not"))
|
|
44
44
|
}, [
|
|
45
|
-
createVNode(unref(Checks), {
|
|
45
|
+
createVNode(unref(Checks), mergeProps(props.config, {
|
|
46
46
|
options,
|
|
47
47
|
modelValue: value.value,
|
|
48
48
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
49
|
-
}, null,
|
|
49
|
+
}), null, 16, ["modelValue"])
|
|
50
50
|
], 2);
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -35,10 +35,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
36
36
|
class: vue.normalizeClass(vue.unref(cs).z("number"))
|
|
37
37
|
}, [
|
|
38
|
-
vue.createVNode(vue.unref(index$2.InputNum), {
|
|
38
|
+
vue.createVNode(vue.unref(index$2.InputNum), vue.mergeProps(props.config, {
|
|
39
39
|
modelValue: value.value,
|
|
40
40
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
41
|
-
}, null,
|
|
41
|
+
}), null, 16, ["modelValue"])
|
|
42
42
|
], 2);
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps } from "vue";
|
|
2
2
|
import { name, dataDataEmits, dataDataProps } from "../data.js";
|
|
3
3
|
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
4
|
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
@@ -33,10 +33,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
return openBlock(), createElementBlock("div", {
|
|
34
34
|
class: normalizeClass(unref(cs).z("number"))
|
|
35
35
|
}, [
|
|
36
|
-
createVNode(unref(InputNum), {
|
|
36
|
+
createVNode(unref(InputNum), mergeProps(props.config, {
|
|
37
37
|
modelValue: value.value,
|
|
38
38
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
39
|
-
}, null,
|
|
39
|
+
}), null, 16, ["modelValue"])
|
|
40
40
|
], 2);
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -35,11 +35,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
36
36
|
class: vue.normalizeClass(vue.unref(cs).z("string"))
|
|
37
37
|
}, [
|
|
38
|
-
vue.createVNode(vue.unref(index$2.Inputs), {
|
|
39
|
-
type: "textarea",
|
|
38
|
+
vue.createVNode(vue.unref(index$2.Inputs), vue.mergeProps(props.config, {
|
|
39
|
+
type: props.config.type || "textarea",
|
|
40
40
|
modelValue: value.value,
|
|
41
41
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
42
|
-
}, null,
|
|
42
|
+
}), null, 16, ["type", "modelValue"])
|
|
43
43
|
], 2);
|
|
44
44
|
};
|
|
45
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps } from "vue";
|
|
2
2
|
import { name, dataDataEmits, dataDataProps } from "../data.js";
|
|
3
3
|
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
4
|
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
@@ -33,11 +33,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
return openBlock(), createElementBlock("div", {
|
|
34
34
|
class: normalizeClass(unref(cs).z("string"))
|
|
35
35
|
}, [
|
|
36
|
-
createVNode(unref(Inputs), {
|
|
37
|
-
type: "textarea",
|
|
36
|
+
createVNode(unref(Inputs), mergeProps(props.config, {
|
|
37
|
+
type: props.config.type || "textarea",
|
|
38
38
|
modelValue: value.value,
|
|
39
39
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
40
|
-
}, null,
|
|
40
|
+
}), null, 16, ["type", "modelValue"])
|
|
41
41
|
], 2);
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -48,10 +48,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
48
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
49
49
|
class: vue.normalizeClass(vue.unref(cs).z("symbol"))
|
|
50
50
|
}, [
|
|
51
|
-
vue.createVNode(vue.unref(index$2.Inputs), {
|
|
51
|
+
vue.createVNode(vue.unref(index$2.Inputs), vue.mergeProps(props.config, {
|
|
52
52
|
modelValue: value.value,
|
|
53
53
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
54
|
-
}, null,
|
|
54
|
+
}), null, 16, ["modelValue"])
|
|
55
55
|
], 2);
|
|
56
56
|
};
|
|
57
57
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps } from "vue";
|
|
2
2
|
import { dataDataEmits, dataDataProps, name } from "../data.js";
|
|
3
3
|
import { useCssName } from "../../../../hooks/cssname/index.js";
|
|
4
4
|
import { useLocale } from "../../../../hooks/locale/index.js";
|
|
@@ -46,10 +46,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
return openBlock(), createElementBlock("div", {
|
|
47
47
|
class: normalizeClass(unref(cs).z("symbol"))
|
|
48
48
|
}, [
|
|
49
|
-
createVNode(unref(Inputs), {
|
|
49
|
+
createVNode(unref(Inputs), mergeProps(props.config, {
|
|
50
50
|
modelValue: value.value,
|
|
51
51
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
52
|
-
}, null,
|
|
52
|
+
}), null, 16, ["modelValue"])
|
|
53
53
|
], 2);
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -10,7 +10,13 @@ const dataProps = buildProps.buildProps({
|
|
|
10
10
|
type: {
|
|
11
11
|
type: String
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
types: { type: [Array, String] },
|
|
14
|
+
config: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default() {
|
|
17
|
+
return {};
|
|
18
|
+
}
|
|
19
|
+
},
|
|
14
20
|
/**
|
|
15
21
|
* @props { } modelValue 值
|
|
16
22
|
* @model
|
|
@@ -13,7 +13,7 @@ export declare const dataProps: {
|
|
|
13
13
|
type: {
|
|
14
14
|
type: StringConstructor;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
types: {
|
|
17
17
|
type: (StringConstructor | {
|
|
18
18
|
(arrayLength: number): string[];
|
|
19
19
|
(...items: string[]): string[];
|
|
@@ -31,6 +31,10 @@ export declare const dataProps: {
|
|
|
31
31
|
readonly [Symbol.species]: ArrayConstructor;
|
|
32
32
|
})[];
|
|
33
33
|
};
|
|
34
|
+
config: {
|
|
35
|
+
type: ObjectConstructor;
|
|
36
|
+
default(): {};
|
|
37
|
+
};
|
|
34
38
|
/**
|
|
35
39
|
* @props { } modelValue 值
|
|
36
40
|
* @model
|
|
@@ -103,7 +107,7 @@ export declare const dataDataProps: {
|
|
|
103
107
|
type: {
|
|
104
108
|
type: StringConstructor;
|
|
105
109
|
};
|
|
106
|
-
|
|
110
|
+
types: {
|
|
107
111
|
type: (StringConstructor | {
|
|
108
112
|
(arrayLength: number): string[];
|
|
109
113
|
(...items: string[]): string[];
|
|
@@ -121,6 +125,10 @@ export declare const dataDataProps: {
|
|
|
121
125
|
readonly [Symbol.species]: ArrayConstructor;
|
|
122
126
|
})[];
|
|
123
127
|
};
|
|
128
|
+
config: {
|
|
129
|
+
type: ObjectConstructor;
|
|
130
|
+
default(): {};
|
|
131
|
+
};
|
|
124
132
|
/**
|
|
125
133
|
* @props { } modelValue 值
|
|
126
134
|
* @model
|
|
@@ -8,7 +8,13 @@ const dataProps = buildProps({
|
|
|
8
8
|
type: {
|
|
9
9
|
type: String
|
|
10
10
|
},
|
|
11
|
-
|
|
11
|
+
types: { type: [Array, String] },
|
|
12
|
+
config: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default() {
|
|
15
|
+
return {};
|
|
16
|
+
}
|
|
17
|
+
},
|
|
12
18
|
/**
|
|
13
19
|
* @props { } modelValue 值
|
|
14
20
|
* @model
|
|
@@ -127,11 +127,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
127
127
|
if (tps.value.length > 0) {
|
|
128
128
|
return tps.value;
|
|
129
129
|
} else {
|
|
130
|
-
if (props.
|
|
131
|
-
if (typeof props.
|
|
132
|
-
return [props.
|
|
130
|
+
if (props.types) {
|
|
131
|
+
if (typeof props.types === "string") {
|
|
132
|
+
return [props.types];
|
|
133
133
|
} else {
|
|
134
|
-
return props.
|
|
134
|
+
return props.types;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
return [];
|
|
@@ -151,11 +151,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
151
151
|
title: type.value
|
|
152
152
|
}, [
|
|
153
153
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(compon.value), vue.mergeProps(vue.unref(props), {
|
|
154
|
-
|
|
154
|
+
types: typeobjs.value,
|
|
155
155
|
type: type.value,
|
|
156
156
|
modelValue: value.value,
|
|
157
157
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
158
|
-
}), null, 16, ["
|
|
158
|
+
}), null, 16, ["types", "type", "modelValue"]))
|
|
159
159
|
], 10, _hoisted_1);
|
|
160
160
|
};
|
|
161
161
|
}
|
|
@@ -125,11 +125,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
125
125
|
if (tps.value.length > 0) {
|
|
126
126
|
return tps.value;
|
|
127
127
|
} else {
|
|
128
|
-
if (props.
|
|
129
|
-
if (typeof props.
|
|
130
|
-
return [props.
|
|
128
|
+
if (props.types) {
|
|
129
|
+
if (typeof props.types === "string") {
|
|
130
|
+
return [props.types];
|
|
131
131
|
} else {
|
|
132
|
-
return props.
|
|
132
|
+
return props.types;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
return [];
|
|
@@ -149,11 +149,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
title: type.value
|
|
150
150
|
}, [
|
|
151
151
|
(openBlock(), createBlock(resolveDynamicComponent(compon.value), mergeProps(unref(props), {
|
|
152
|
-
|
|
152
|
+
types: typeobjs.value,
|
|
153
153
|
type: type.value,
|
|
154
154
|
modelValue: value.value,
|
|
155
155
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
156
|
-
}), null, 16, ["
|
|
156
|
+
}), null, 16, ["types", "type", "modelValue"]))
|
|
157
157
|
], 10, _hoisted_1);
|
|
158
158
|
};
|
|
159
159
|
}
|
|
@@ -93,11 +93,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
93
93
|
};
|
|
94
94
|
const options = vue.computed(() => {
|
|
95
95
|
let arr = [];
|
|
96
|
-
if (props.
|
|
97
|
-
if (typeof props.
|
|
98
|
-
arr.push(props.
|
|
96
|
+
if (props.types) {
|
|
97
|
+
if (typeof props.types === "string") {
|
|
98
|
+
arr.push(props.types);
|
|
99
99
|
} else {
|
|
100
|
-
arr = props.
|
|
100
|
+
arr = props.types;
|
|
101
101
|
}
|
|
102
102
|
arr = arr.filter((v2) => Boolean(v2)).map((v2) => getType(v2));
|
|
103
103
|
}
|
|
@@ -114,11 +114,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
114
114
|
if (tps.value.length > 0) {
|
|
115
115
|
return tps.value;
|
|
116
116
|
} else {
|
|
117
|
-
if (props.
|
|
118
|
-
if (typeof props.
|
|
119
|
-
return [props.
|
|
117
|
+
if (props.types) {
|
|
118
|
+
if (typeof props.types === "string") {
|
|
119
|
+
return [props.types];
|
|
120
120
|
} else {
|
|
121
|
-
return props.
|
|
121
|
+
return props.types;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
return [];
|
|
@@ -200,11 +200,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
200
200
|
], 2),
|
|
201
201
|
typevalue.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
202
202
|
(vue.openBlock(), vue.createBlock(vue.unref(index$7.EditData), vue.mergeProps({ key: typevalue.value }, vue.unref(props), {
|
|
203
|
-
|
|
203
|
+
types: typeobjs.value,
|
|
204
204
|
type: typevalue.value,
|
|
205
205
|
modelValue: valueData.value,
|
|
206
206
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => valueData.value = $event)
|
|
207
|
-
}), null, 16, ["
|
|
207
|
+
}), null, 16, ["types", "type", "modelValue"]))
|
|
208
208
|
])) : vue.createCommentVNode("", true)
|
|
209
209
|
], 2)
|
|
210
210
|
], 2),
|
|
@@ -91,11 +91,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
91
|
};
|
|
92
92
|
const options = computed(() => {
|
|
93
93
|
let arr = [];
|
|
94
|
-
if (props.
|
|
95
|
-
if (typeof props.
|
|
96
|
-
arr.push(props.
|
|
94
|
+
if (props.types) {
|
|
95
|
+
if (typeof props.types === "string") {
|
|
96
|
+
arr.push(props.types);
|
|
97
97
|
} else {
|
|
98
|
-
arr = props.
|
|
98
|
+
arr = props.types;
|
|
99
99
|
}
|
|
100
100
|
arr = arr.filter((v2) => Boolean(v2)).map((v2) => getType(v2));
|
|
101
101
|
}
|
|
@@ -112,11 +112,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
112
|
if (tps.value.length > 0) {
|
|
113
113
|
return tps.value;
|
|
114
114
|
} else {
|
|
115
|
-
if (props.
|
|
116
|
-
if (typeof props.
|
|
117
|
-
return [props.
|
|
115
|
+
if (props.types) {
|
|
116
|
+
if (typeof props.types === "string") {
|
|
117
|
+
return [props.types];
|
|
118
118
|
} else {
|
|
119
|
-
return props.
|
|
119
|
+
return props.types;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
return [];
|
|
@@ -198,11 +198,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
198
198
|
], 2),
|
|
199
199
|
typevalue.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
200
200
|
(openBlock(), createBlock(unref(EditData), mergeProps({ key: typevalue.value }, unref(props), {
|
|
201
|
-
|
|
201
|
+
types: typeobjs.value,
|
|
202
202
|
type: typevalue.value,
|
|
203
203
|
modelValue: valueData.value,
|
|
204
204
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => valueData.value = $event)
|
|
205
|
-
}), null, 16, ["
|
|
205
|
+
}), null, 16, ["types", "type", "modelValue"]))
|
|
206
206
|
])) : createCommentVNode("", true)
|
|
207
207
|
], 2)
|
|
208
208
|
], 2),
|
package/dist/icons/index.json
CHANGED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|