orion-design 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Throne/index.d.ts +18 -0
- package/dist/Throne/index.js +20 -0
- package/dist/Throne/index.js.map +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/dist/components/Button/index.d.ts +2 -4
- package/dist/components/Button/index.js +12 -12
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Form/ButtonGroup/ButtonGroup.d.ts +5 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.js +2 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.vue.d.ts +17 -0
- package/dist/components/Form/ButtonGroup/index.d.ts +1 -0
- package/dist/components/Form/ButtonGroup/index.js +2 -0
- package/dist/components/Form/ButtonGroup/index.js.map +1 -0
- package/dist/components/Form/Checkbox/Checkbox.d.ts +10 -0
- package/dist/components/Form/Checkbox/Checkbox.js +2 -0
- package/dist/components/Form/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Form/Checkbox/Checkbox.vue.d.ts +3 -0
- package/dist/components/Form/Checkbox/index.d.ts +1 -0
- package/dist/components/Form/Checkbox/index.js +2 -0
- package/dist/components/Form/Checkbox/index.js.map +1 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.d.ts +14 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.js +2 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.vue.d.ts +3 -0
- package/dist/components/Form/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/Form/CheckboxGroup/index.js +2 -0
- package/dist/components/Form/CheckboxGroup/index.js.map +1 -0
- package/dist/components/Form/DateInput/DateInput.d.ts +17 -0
- package/dist/components/Form/DateInput/DateInput.js +2 -0
- package/dist/components/Form/DateInput/DateInput.js.map +1 -0
- package/dist/components/Form/DateInput/DateInput.vue.d.ts +3 -0
- package/dist/components/Form/DateInput/index.d.ts +1 -0
- package/dist/components/Form/DateInput/index.js +2 -0
- package/dist/components/Form/DateInput/index.js.map +1 -0
- package/dist/components/Form/FileInput/FileInput.d.ts +10 -0
- package/dist/components/Form/FileInput/FileInput.js +2 -0
- package/dist/components/Form/FileInput/FileInput.js.map +1 -0
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +451 -0
- package/dist/components/Form/FileInput/index.d.ts +1 -0
- package/dist/components/Form/FileInput/index.js +2 -0
- package/dist/components/Form/FileInput/index.js.map +1 -0
- package/dist/components/Form/Form.vue.d.ts +10 -10
- package/dist/components/Form/MultiSelect/MultiSelect.d.ts +15 -0
- package/dist/components/Form/MultiSelect/MultiSelect.js +2 -0
- package/dist/components/Form/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/components/Form/MultiSelect/MultiSelect.vue.d.ts +3 -0
- package/dist/components/Form/MultiSelect/index.d.ts +1 -0
- package/dist/components/Form/MultiSelect/index.js +2 -0
- package/dist/components/Form/MultiSelect/index.js.map +1 -0
- package/dist/components/Form/PasswordInput/PasswordInput.d.ts +0 -2
- package/dist/components/Form/RadioGroup/RadioGroup.d.ts +14 -0
- package/dist/components/Form/RadioGroup/RadioGroup.js +2 -0
- package/dist/components/Form/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/Form/RadioGroup/RadioGroup.vue.d.ts +3 -0
- package/dist/components/Form/RadioGroup/index.d.ts +1 -0
- package/dist/components/Form/RadioGroup/index.js +2 -0
- package/dist/components/Form/RadioGroup/index.js.map +1 -0
- package/dist/components/Form/SingleSelect/SingleSelect.d.ts +17 -0
- package/dist/components/Form/SingleSelect/SingleSelect.js +2 -0
- package/dist/components/Form/SingleSelect/SingleSelect.js.map +1 -0
- package/dist/components/Form/SingleSelect/SingleSelect.vue.d.ts +3 -0
- package/dist/components/Form/SingleSelect/index.d.ts +1 -0
- package/dist/components/Form/SingleSelect/index.js +2 -0
- package/dist/components/Form/SingleSelect/index.js.map +1 -0
- package/dist/components/Form/StringInput/StringInput.d.ts +0 -2
- package/dist/components/Form/Switch/Switch.d.ts +10 -0
- package/dist/components/Form/Switch/Switch.js +2 -0
- package/dist/components/Form/Switch/Switch.js.map +1 -0
- package/dist/components/Form/Switch/Switch.vue.d.ts +3 -0
- package/dist/components/Form/Switch/index.d.ts +1 -0
- package/dist/components/Form/Switch/index.js +2 -0
- package/dist/components/Form/Switch/index.js.map +1 -0
- package/dist/components/Form/Textarea/Textarea.d.ts +0 -2
- package/dist/components/Form/hooks/useForm.d.ts +6 -3
- package/dist/components/Form/hooks/useForm.js +40 -17
- package/dist/components/Form/hooks/useForm.js.map +1 -1
- package/dist/components/Form/index.d.ts +34 -6
- package/dist/components/Form/index.js +554 -88
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Form/utils/index.d.ts +8 -0
- package/dist/components/Form/utils/index.js +26 -0
- package/dist/components/Form/utils/index.js.map +1 -0
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Pagetable/Pagetable.d.ts +29 -17
- package/dist/components/Pagetable/columns/PagetableCellButton.d.ts +24 -0
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +78 -0
- package/dist/components/Pagetable/columns/{PagetableDatecolumn.d.ts → PagetableColumnDate.d.ts} +17 -4
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +78 -0
- package/dist/components/Pagetable/columns/PagetableColumnIndex.d.ts +5 -0
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +109 -0
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +114 -0
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +109 -0
- package/dist/components/Pagetable/columns/{PagetableStringcolumn.d.ts → PagetableColumnString.d.ts} +17 -4
- package/dist/components/Pagetable/columns/PagetableColumngroup.d.ts +35 -0
- package/dist/components/Pagetable/hooks/useColumns.d.ts +1 -0
- package/dist/components/Pagetable/hooks/useColumns.js +96 -0
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -0
- package/dist/components/Pagetable/index.d.ts +42 -17
- package/dist/components/Pagetable/index.js +496 -119
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Pagetable/utils/index.d.ts +15 -0
- package/dist/components/Pagetable/utils/index.js +169 -0
- package/dist/components/Pagetable/utils/index.js.map +1 -0
- package/dist/components/Space/index.d.ts +3 -3
- package/dist/components/_util/type.d.ts +4 -0
- package/dist/components/_util/type.js +8 -4
- package/dist/components/_util/type.js.map +1 -1
- package/dist/components/_util/vue/size.d.ts +1 -1
- package/dist/components/components.js +15 -14
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +20 -19
- package/dist/components/index.js.map +1 -1
- package/dist/components-CutWiB7Q.js +68 -0
- package/dist/components-CutWiB7Q.js.map +1 -0
- package/dist/index-BbsXWo7C.js +44 -0
- package/dist/index-BbsXWo7C.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +22 -19
- package/dist/index.js.map +1 -1
- package/dist/utils/md5.js +77 -79
- package/dist/utils/md5.js.map +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +2 -1
- package/dist/components-BZukhWDk.js +0 -106
- package/dist/components-BZukhWDk.js.map +0 -1
- package/dist/utils/vue/install.d.ts +0 -6
- package/dist/utils/vue/install.js +0 -21
- package/dist/utils/vue/install.js.map +0 -1
- package/dist/utils/vue/typescript.d.ts +0 -5
- package/dist/utils/vue/typescript.js +0 -2
- package/dist/utils/vue/typescript.js.map +0 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
import { FormItemRule, Arrayable } from '../Form';
|
2
|
+
export interface RadioGroupProps {
|
3
|
+
name: string;
|
4
|
+
label?: string;
|
5
|
+
span?: number;
|
6
|
+
labelWidth?: string | number;
|
7
|
+
required?: boolean;
|
8
|
+
rules?: Arrayable<FormItemRule>;
|
9
|
+
disabled?: boolean;
|
10
|
+
code?: string | Array<{
|
11
|
+
value: string;
|
12
|
+
content: string;
|
13
|
+
}>;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RadioGroup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { RadioGroupProps } from './RadioGroup';
|
2
|
+
declare const _default: import('vue').DefineComponent<RadioGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RadioGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
3
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './RadioGroup';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { FormItemRule, Arrayable } from '../Form';
|
2
|
+
export interface SingleSelectProps {
|
3
|
+
name: string;
|
4
|
+
label?: string;
|
5
|
+
span?: number;
|
6
|
+
labelWidth?: string | number;
|
7
|
+
required?: boolean;
|
8
|
+
rules?: Arrayable<FormItemRule>;
|
9
|
+
placeholder?: string;
|
10
|
+
disabled?: boolean;
|
11
|
+
code?: string | Array<{
|
12
|
+
value: string;
|
13
|
+
content: string;
|
14
|
+
}>;
|
15
|
+
clearable?: boolean;
|
16
|
+
filterable?: boolean;
|
17
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SingleSelect.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { SingleSelectProps } from './SingleSelect';
|
2
|
+
declare const _default: import('vue').DefineComponent<SingleSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SingleSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
3
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './SingleSelect';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { CSSProperties } from 'vue';
|
2
1
|
import { FormItemRule, Arrayable } from '../Form';
|
3
2
|
export interface StringInputProps {
|
4
3
|
name: string;
|
@@ -11,5 +10,4 @@ export interface StringInputProps {
|
|
11
10
|
placeholder?: string;
|
12
11
|
disabled?: boolean;
|
13
12
|
readonly?: boolean;
|
14
|
-
style?: CSSProperties;
|
15
13
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Switch.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { SwitchProps } from './Switch';
|
2
|
+
declare const _default: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SwitchProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
3
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Switch';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { CSSProperties } from 'vue';
|
2
1
|
import { FormItemRule, Arrayable } from '../Form';
|
3
2
|
export interface TextareaProps {
|
4
3
|
name: string;
|
@@ -11,6 +10,5 @@ export interface TextareaProps {
|
|
11
10
|
placeholder?: string;
|
12
11
|
disabled?: boolean;
|
13
12
|
readonly?: boolean;
|
14
|
-
style?: CSSProperties;
|
15
13
|
rows?: number;
|
16
14
|
}
|
@@ -1,4 +1,7 @@
|
|
1
|
+
import { CodeItem } from '../../../Throne';
|
1
2
|
declare const useFormContext: () => import('..').FormContext | undefined;
|
2
|
-
declare const useFormSpan: () => number
|
3
|
-
declare const useFormRules: () => import('element-plus').FormItemRule[]
|
4
|
-
|
3
|
+
declare const useFormSpan: () => import('vue').ComputedRef<number>;
|
4
|
+
declare const useFormRules: () => import('vue').ComputedRef<import('element-plus').FormItemRule[]>;
|
5
|
+
declare const useFormDisabled: () => import('vue').ComputedRef<boolean>;
|
6
|
+
declare const useFormCode: () => import('vue').ComputedRef<CodeItem[]>;
|
7
|
+
export { useFormContext, useFormSpan, useFormRules, useFormDisabled, useFormCode };
|
@@ -1,21 +1,44 @@
|
|
1
|
-
import { inject as
|
2
|
-
import { formContextKey as
|
3
|
-
import
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
import { inject as p, getCurrentInstance as s, computed as n } from "vue";
|
2
|
+
import { formContextKey as C } from "../Form.js";
|
3
|
+
import b from "../../../Throne/index.js";
|
4
|
+
import { castArray as i, isString as g, isArray as x } from "lodash-es";
|
5
|
+
import { formContextKey as y } from "element-plus";
|
6
|
+
import l from "../../../error/OrionError.js";
|
7
|
+
const f = () => p(C), O = () => {
|
8
|
+
const e = f(), { props: o } = s();
|
9
|
+
return n(() => o.span ? o.span : e.itemSpan);
|
10
|
+
}, R = () => {
|
11
|
+
const e = f(), { props: o } = s(), { name: r, label: m, required: a } = o;
|
12
|
+
return n(() => {
|
13
|
+
const t = [];
|
14
|
+
let u = !0;
|
15
|
+
return a && (o.rules && (t.push(...i(o.rules)), u = !t.some((c) => Object.keys(c).includes("required"))), e.rules && e.rules[r] && (u = !i(e.rules[r]).some((d) => Object.keys(d).includes("required")))), u && t.push({
|
16
|
+
required: !0,
|
17
|
+
message: `必填项[${m || r}]不能为空`,
|
18
|
+
trigger: "blur"
|
19
|
+
}), t;
|
20
|
+
});
|
21
|
+
}, S = () => {
|
22
|
+
const e = p(y), { props: o } = s(), { disabled: r } = o;
|
23
|
+
return n(() => e.disabled || r);
|
24
|
+
}, k = () => {
|
25
|
+
let e;
|
26
|
+
const { props: o } = s(), { code: r } = o;
|
27
|
+
if (r)
|
28
|
+
if (g(r))
|
29
|
+
e = b.getCode(r).value;
|
30
|
+
else if (x(r))
|
31
|
+
e = r;
|
32
|
+
else
|
33
|
+
throw new l("code类型错误");
|
34
|
+
else throw new l("code为空");
|
35
|
+
return n(() => e);
|
15
36
|
};
|
16
37
|
export {
|
17
|
-
|
18
|
-
|
19
|
-
|
38
|
+
k as useFormCode,
|
39
|
+
f as useFormContext,
|
40
|
+
S as useFormDisabled,
|
41
|
+
R as useFormRules,
|
42
|
+
O as useFormSpan
|
20
43
|
};
|
21
44
|
//# sourceMappingURL=useForm.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useForm.js","sources":["../../../../src/components/Form/hooks/useForm.ts"],"sourcesContent":["import { inject, getCurrentInstance } from 'vue'\r\nimport { formContextKey, FormItemRule } from '../Form'\r\nimport { castArray } from 'lodash-es'\r\n\r\nconst useFormContext = () => {\r\n return inject(formContextKey)\r\n}\r\n\r\nconst useFormSpan = () => {\r\n const formContext = useFormContext()!\r\n const { props } = getCurrentInstance()!\r\n\r\n
|
1
|
+
{"version":3,"file":"useForm.js","sources":["../../../../src/components/Form/hooks/useForm.ts"],"sourcesContent":["import { inject, getCurrentInstance, computed } from 'vue'\r\nimport { formContextKey, FormItemRule } from '../Form'\r\nimport Throne, { CodeItem } from '../../../Throne'\r\nimport { castArray, isArray, isString } from 'lodash-es'\r\nimport { formContextKey as elFormContextKey } from 'element-plus'\r\nimport OrionError from '../../../error/OrionError'\r\n\r\nconst useFormContext = () => {\r\n return inject(formContextKey)\r\n}\r\n\r\nconst useFormSpan = () => {\r\n const formContext = useFormContext()!\r\n const { props } = getCurrentInstance()!\r\n\r\n return computed(() => (props.span ? (props.span as number) : formContext.itemSpan))\r\n}\r\n\r\nconst useFormRules = () => {\r\n const formContext = useFormContext()!\r\n const { props } = getCurrentInstance()!\r\n const { name, label, required } = props\r\n\r\n return computed(() => {\r\n const rules: FormItemRule[] = []\r\n let flag = true\r\n\r\n if (required) {\r\n if (props.rules) {\r\n rules.push(...castArray(props.rules))\r\n flag = !rules.some((rule) => Object.keys(rule).includes('required'))\r\n }\r\n if (formContext.rules && formContext.rules[name as string]) {\r\n const formRules = castArray(formContext.rules[name as string])\r\n flag = !formRules.some((rule) => Object.keys(rule).includes('required'))\r\n }\r\n }\r\n\r\n if (flag) {\r\n rules.push({\r\n required: true,\r\n message: `必填项[${label ? label : name}]不能为空`,\r\n trigger: 'blur'\r\n })\r\n }\r\n\r\n return rules\r\n })\r\n}\r\n\r\nconst useFormDisabled = () => {\r\n const elForm = inject(elFormContextKey)!\r\n const { props } = getCurrentInstance()!\r\n const { disabled } = props\r\n return computed(() => elForm.disabled || (disabled as boolean))\r\n}\r\n\r\nconst useFormCode = () => {\r\n let codeData: Array<CodeItem>\r\n const { props } = getCurrentInstance()!\r\n const { code } = props\r\n if (!code) {\r\n throw new OrionError('code为空')\r\n } else if (isString(code)) {\r\n codeData = Throne.getCode(code).value\r\n } else if (isArray<CodeItem>(code)) {\r\n codeData = code\r\n } else {\r\n throw new OrionError('code类型错误')\r\n }\r\n return computed(() => codeData)\r\n}\r\n\r\nexport { useFormContext, useFormSpan, useFormRules, useFormDisabled, useFormCode }\r\n"],"names":["useFormContext","inject","formContextKey","useFormSpan","formContext","props","getCurrentInstance","computed","useFormRules","name","label","required","rules","flag","castArray","rule","useFormDisabled","elForm","elFormContextKey","disabled","useFormCode","codeData","code","isString","Throne","isArray","OrionError"],"mappings":";;;;;;AAOA,MAAMA,IAAiB,MACdC,EAAOC,CAAc,GAGxBC,IAAc,MAAM;AACxB,QAAMC,IAAcJ,KACd,EAAE,OAAAK,MAAUC;AAElB,SAAOC,EAAS,MAAOF,EAAM,OAAQA,EAAM,OAAkBD,EAAY,QAAS;AACpF,GAEMI,IAAe,MAAM;AACzB,QAAMJ,IAAcJ,KACd,EAAE,OAAAK,MAAUC,KACZ,EAAE,MAAAG,GAAM,OAAAC,GAAO,UAAAC,EAAA,IAAaN;AAElC,SAAOE,EAAS,MAAM;AACpB,UAAMK,IAAwB,CAAA;AAC9B,QAAIC,IAAO;AAEX,WAAIF,MACEN,EAAM,UACRO,EAAM,KAAK,GAAGE,EAAUT,EAAM,KAAK,CAAC,GAC7BQ,IAAA,CAACD,EAAM,KAAK,CAACG,MAAS,OAAO,KAAKA,CAAI,EAAE,SAAS,UAAU,CAAC,IAEjEX,EAAY,SAASA,EAAY,MAAMK,CAAc,MAEhDI,IAAA,CADWC,EAAUV,EAAY,MAAMK,CAAc,CAAC,EAC3C,KAAK,CAACM,MAAS,OAAO,KAAKA,CAAI,EAAE,SAAS,UAAU,CAAC,KAIvEF,KACFD,EAAM,KAAK;AAAA,MACT,UAAU;AAAA,MACV,SAAS,OAAOF,KAAgBD,CAAI;AAAA,MACpC,SAAS;AAAA,IAAA,CACV,GAGIG;AAAA,EAAA,CACR;AACH,GAEMI,IAAkB,MAAM;AACtB,QAAAC,IAAShB,EAAOiB,CAAgB,GAChC,EAAE,OAAAb,MAAUC,KACZ,EAAE,UAAAa,EAAa,IAAAd;AACrB,SAAOE,EAAS,MAAMU,EAAO,YAAaE,CAAoB;AAChE,GAEMC,IAAc,MAAM;AACpB,MAAAC;AACE,QAAA,EAAE,OAAAhB,MAAUC,KACZ,EAAE,MAAAgB,EAAS,IAAAjB;AACjB,MAAKiB;AAEL,QAAWC,EAASD,CAAI;AACX,MAAAD,IAAAG,EAAO,QAAQF,CAAI,EAAE;AAAA,aACvBG,EAAkBH,CAAI;AACpB,MAAAD,IAAAC;AAAA;AAEL,YAAA,IAAII,EAAW,UAAU;AAAA,MANzB,OAAA,IAAIA,EAAW,QAAQ;AAQxB,SAAAnB,EAAS,MAAMc,CAAQ;AAChC;"}
|
@@ -1,7 +1,16 @@
|
|
1
1
|
import { default as StringInput } from './StringInput/StringInput.vue';
|
2
2
|
import { default as PasswordInput } from './PasswordInput/PasswordInput.vue';
|
3
3
|
import { default as Textarea } from './Textarea/Textarea.vue';
|
4
|
-
|
4
|
+
import { default as SingleSelect } from './SingleSelect/SingleSelect.vue';
|
5
|
+
import { default as MultiSelect } from './MultiSelect/MultiSelect.vue';
|
6
|
+
import { default as RadioGroup } from './RadioGroup/RadioGroup.vue';
|
7
|
+
import { default as CheckboxGroup } from './CheckboxGroup/CheckboxGroup.vue';
|
8
|
+
import { default as Checkbox } from './Checkbox/Checkbox.vue';
|
9
|
+
import { default as Switch } from './Switch/Switch.vue';
|
10
|
+
import { default as DateInput } from './DateInput/DateInput.vue';
|
11
|
+
import { default as FileInput } from './FileInput/FileInput.vue';
|
12
|
+
import { default as ButtonGroup } from './ButtonGroup/ButtonGroup.vue';
|
13
|
+
declare const _default: import('../_util').SFCWithInstall<{
|
5
14
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
6
15
|
modelValue?: Record<string, any>;
|
7
16
|
} & import('./Form').FormProps> & Readonly<{
|
@@ -32,19 +41,19 @@ declare const _default: import('../../utils/vue/typescript').SFCWithInstall<{
|
|
32
41
|
readonly hideRequiredAsterisk: boolean;
|
33
42
|
readonly scrollToError: boolean;
|
34
43
|
}> & Omit<{
|
44
|
+
readonly inline: boolean;
|
35
45
|
readonly disabled: boolean;
|
36
|
-
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "
|
46
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
37
47
|
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
38
48
|
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
39
49
|
readonly labelSuffix: string;
|
40
|
-
readonly inline: boolean;
|
41
50
|
readonly inlineMessage: boolean;
|
42
51
|
readonly statusIcon: boolean;
|
43
52
|
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
44
53
|
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
45
54
|
readonly hideRequiredAsterisk: boolean;
|
46
55
|
readonly scrollToError: boolean;
|
47
|
-
readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "
|
56
|
+
readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
|
48
57
|
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
49
58
|
readonly model?: Record<string, any> | undefined;
|
50
59
|
readonly scrollIntoViewOptions?: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
@@ -83,7 +92,7 @@ declare const _default: import('../../utils/vue/typescript').SFCWithInstall<{
|
|
83
92
|
readonly disabled: BooleanConstructor;
|
84
93
|
}>> & {
|
85
94
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
86
|
-
}, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "
|
95
|
+
}, "inline" | "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
87
96
|
$attrs: {
|
88
97
|
[x: string]: unknown;
|
89
98
|
};
|
@@ -221,7 +230,7 @@ declare const _default: import('../../utils/vue/typescript').SFCWithInstall<{
|
|
221
230
|
readonly disabled: BooleanConstructor;
|
222
231
|
}>> & {
|
223
232
|
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
224
|
-
}, "disabled" | "validate" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "
|
233
|
+
}, "inline" | "disabled" | "validate" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "fields"> & import('vue').ShallowUnwrapRef<{
|
225
234
|
validate: (callback?: import('element-plus').FormValidateCallback | undefined) => import('element-plus').FormValidationResult;
|
226
235
|
validateField: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp> | undefined, callback?: import('element-plus').FormValidateCallback | undefined) => import('element-plus').FormValidationResult;
|
227
236
|
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp> | undefined) => void;
|
@@ -266,8 +275,27 @@ declare const _default: import('../../utils/vue/typescript').SFCWithInstall<{
|
|
266
275
|
StringInput: typeof StringInput;
|
267
276
|
PasswordInput: typeof PasswordInput;
|
268
277
|
Textarea: typeof Textarea;
|
278
|
+
SingleSelect: typeof SingleSelect;
|
279
|
+
MultiSelect: typeof MultiSelect;
|
280
|
+
RadioGroup: typeof RadioGroup;
|
281
|
+
CheckboxGroup: typeof CheckboxGroup;
|
282
|
+
Checkbox: typeof Checkbox;
|
283
|
+
Switch: typeof Switch;
|
284
|
+
DateInput: typeof DateInput;
|
285
|
+
FileInput: typeof FileInput;
|
286
|
+
ButtonGroup: typeof ButtonGroup;
|
269
287
|
};
|
270
288
|
export default _default;
|
271
289
|
export * from './Form';
|
272
290
|
export * from './StringInput';
|
273
291
|
export * from './PasswordInput';
|
292
|
+
export * from './Textarea';
|
293
|
+
export * from './SingleSelect';
|
294
|
+
export * from './MultiSelect';
|
295
|
+
export * from './RadioGroup';
|
296
|
+
export * from './CheckboxGroup';
|
297
|
+
export * from './Checkbox';
|
298
|
+
export * from './Switch';
|
299
|
+
export * from './DateInput';
|
300
|
+
export * from './FileInput';
|
301
|
+
export * from './ButtonGroup';
|