orion-design 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -0
- 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/Button.vue.d.ts +2 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +27 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Flex/Col.d.ts +4 -4
- package/dist/components/Flex/Item.d.ts +4 -4
- package/dist/components/Flex/Row.d.ts +4 -4
- package/dist/components/Flex/index.d.ts +4 -4
- package/dist/components/Flex/index.js +95 -127
- package/dist/components/Flex/index.js.map +1 -0
- 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.d.ts +21 -0
- package/dist/components/Form/Form.js +5 -0
- package/dist/components/Form/Form.js.map +1 -0
- package/dist/components/Form/Form.vue.d.ts +465 -0
- 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 +13 -0
- package/dist/components/Form/PasswordInput/PasswordInput.js +2 -0
- package/dist/components/Form/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/components/Form/PasswordInput/PasswordInput.vue.d.ts +3 -0
- package/dist/components/Form/PasswordInput/index.d.ts +1 -0
- package/dist/components/Form/PasswordInput/index.js +2 -0
- package/dist/components/Form/PasswordInput/index.js.map +1 -0
- 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 +13 -0
- package/dist/components/Form/StringInput/StringInput.js +2 -0
- package/dist/components/Form/StringInput/StringInput.js.map +1 -0
- package/dist/components/Form/StringInput/StringInput.vue.d.ts +3 -0
- package/dist/components/Form/StringInput/index.d.ts +1 -0
- package/dist/components/Form/StringInput/index.js +2 -0
- package/dist/components/Form/StringInput/index.js.map +1 -0
- 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 +14 -0
- package/dist/components/Form/Textarea/Textarea.js +2 -0
- package/dist/components/Form/Textarea/Textarea.js.map +1 -0
- package/dist/components/Form/Textarea/Textarea.vue.d.ts +3 -0
- package/dist/components/Form/Textarea/index.d.ts +1 -0
- package/dist/components/Form/Textarea/index.js +2 -0
- package/dist/components/Form/Textarea/index.js.map +1 -0
- package/dist/components/Form/hooks/useForm.d.ts +7 -0
- package/dist/components/Form/hooks/useForm.js +44 -0
- package/dist/components/Form/hooks/useForm.js.map +1 -0
- package/dist/components/Form/index.d.ts +301 -0
- package/dist/components/Form/index.js +660 -0
- package/dist/components/Form/index.js.map +1 -0
- 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 -14
- package/dist/components/Modal/useModal.d.ts +1 -1
- package/dist/components/Modal/useModal.js +7 -7
- package/dist/components/Modal/useModal.js.map +1 -0
- package/dist/components/Pagetable/Pagetable.d.ts +91 -0
- 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/PagetableColumnDate.d.ts +101 -0
- 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/PagetableColumnString.d.ts +75 -0
- 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 +85 -0
- package/dist/components/Pagetable/index.js +521 -0
- package/dist/components/Pagetable/index.js.map +1 -0
- package/dist/components/Pagetable/interface.d.ts +10 -0
- package/dist/components/Pagetable/interface.js +2 -0
- package/dist/components/Pagetable/interface.js.map +1 -0
- 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 +12 -12
- package/dist/components/_util/arrays.d.ts +5 -0
- package/dist/components/_util/arrays.js +8 -0
- package/dist/components/_util/arrays.js.map +1 -0
- package/dist/components/_util/browser.d.ts +3 -0
- package/dist/components/_util/browser.js +9 -0
- package/dist/components/_util/browser.js.map +1 -0
- package/dist/components/_util/classNames.js +20 -27
- package/dist/components/_util/classNames.js.map +1 -0
- package/dist/components/_util/dom/aria.d.ts +30 -0
- package/dist/components/_util/dom/aria.js +46 -0
- package/dist/components/_util/dom/aria.js.map +1 -0
- package/dist/components/_util/dom/element.d.ts +3 -0
- package/dist/components/_util/dom/element.js +18 -0
- package/dist/components/_util/dom/element.js.map +1 -0
- package/dist/components/_util/dom/event.d.ts +6 -0
- package/dist/components/_util/dom/event.js +10 -0
- package/dist/components/_util/dom/event.js.map +1 -0
- package/dist/components/_util/dom/index.d.ts +6 -0
- package/dist/components/_util/dom/index.js +39 -0
- package/dist/components/_util/dom/index.js.map +1 -0
- package/dist/components/_util/dom/position.d.ts +7 -0
- package/dist/components/_util/dom/position.js +30 -0
- package/dist/components/_util/dom/position.js.map +1 -0
- package/dist/components/_util/dom/scroll.d.ts +11 -0
- package/dist/components/_util/dom/scroll.js +78 -0
- package/dist/components/_util/dom/scroll.js.map +1 -0
- package/dist/components/_util/dom/style.d.ts +9 -0
- package/dist/components/_util/dom/style.js +58 -0
- package/dist/components/_util/dom/style.js.map +1 -0
- package/dist/components/_util/easings.d.ts +1 -0
- package/dist/components/_util/easings.js +8 -0
- package/dist/components/_util/easings.js.map +1 -0
- package/dist/components/_util/error.d.ts +3 -0
- package/dist/components/_util/error.js +22 -0
- package/dist/components/_util/error.js.map +1 -0
- package/dist/components/_util/functions.d.ts +1 -0
- package/dist/components/_util/functions.js +6 -0
- package/dist/components/_util/functions.js.map +1 -0
- package/dist/components/_util/i18n.d.ts +1 -0
- package/dist/components/_util/i18n.js +5 -0
- package/dist/components/_util/i18n.js.map +1 -0
- package/dist/components/_util/index.d.ts +15 -0
- package/dist/components/_util/index.js +140 -0
- package/dist/components/_util/index.js.map +1 -0
- package/dist/components/_util/isValid.js +4 -4
- package/dist/components/_util/isValid.js.map +1 -0
- package/dist/components/_util/objects.d.ts +8 -0
- package/dist/components/_util/objects.js +17 -0
- package/dist/components/_util/objects.js.map +1 -0
- package/dist/components/_util/props-util/index.d.ts +4 -4
- package/dist/components/_util/props-util/index.js +23 -50
- package/dist/components/_util/props-util/index.js.map +1 -0
- package/dist/components/_util/props-util/initDefaultProps.d.ts +2 -2
- package/dist/components/_util/props-util/initDefaultProps.js +13 -24
- package/dist/components/_util/props-util/initDefaultProps.js.map +1 -0
- package/dist/components/_util/raf.d.ts +2 -0
- package/dist/components/_util/raf.js +7 -0
- package/dist/components/_util/raf.js.map +1 -0
- package/dist/components/_util/rand.d.ts +12 -0
- package/dist/components/_util/rand.js +6 -0
- package/dist/components/_util/rand.js.map +1 -0
- package/dist/components/_util/strings.d.ts +6 -0
- package/dist/components/_util/strings.js +11 -0
- package/dist/components/_util/strings.js.map +1 -0
- package/dist/components/_util/throttleByRaf.d.ts +4 -0
- package/dist/components/_util/throttleByRaf.js +16 -0
- package/dist/components/_util/throttleByRaf.js.map +1 -0
- package/dist/components/_util/type.d.ts +5 -1
- package/dist/components/_util/type.js +52 -65
- package/dist/components/_util/type.js.map +1 -0
- package/dist/components/_util/types.d.ts +10 -0
- package/dist/components/_util/types.js +25 -0
- package/dist/components/_util/types.js.map +1 -0
- package/dist/components/_util/typescript.d.ts +12 -0
- package/dist/components/_util/typescript.js +5 -0
- package/dist/components/_util/typescript.js.map +1 -0
- package/dist/components/_util/util.d.ts +1 -1
- package/dist/components/_util/util.js +46 -74
- package/dist/components/_util/util.js.map +1 -0
- package/dist/components/_util/vue/global-node.d.ts +3 -0
- package/dist/components/_util/vue/global-node.js +21 -0
- package/dist/components/_util/vue/global-node.js.map +1 -0
- package/dist/components/_util/vue/icon.d.ts +23 -0
- package/dist/components/_util/vue/icon.js +154 -0
- package/dist/components/_util/vue/icon.js.map +1 -0
- package/dist/components/_util/vue/index.d.ts +9 -0
- package/dist/components/_util/vue/index.js +44 -0
- package/dist/components/_util/vue/index.js.map +1 -0
- package/dist/components/_util/vue/install.d.ts +6 -0
- package/dist/components/_util/vue/install.js +21 -0
- package/dist/components/_util/vue/install.js.map +1 -0
- package/dist/components/_util/vue/props/index.d.ts +3 -0
- package/dist/components/_util/vue/props/index.js +9 -0
- package/dist/components/_util/vue/props/index.js.map +1 -0
- package/dist/components/_util/vue/props/runtime.d.ts +29 -0
- package/dist/components/_util/vue/props/runtime.js +37 -0
- package/dist/components/_util/vue/props/runtime.js.map +1 -0
- package/dist/components/_util/vue/props/types.d.ts +120 -0
- package/dist/components/_util/vue/props/types.js +2 -0
- package/dist/components/_util/vue/props/types.js.map +1 -0
- package/dist/components/_util/vue/props/util.d.ts +8 -0
- package/dist/components/_util/vue/props/util.js +2 -0
- package/dist/components/_util/vue/props/util.js.map +1 -0
- package/dist/components/_util/vue/refs.d.ts +3 -0
- package/dist/components/_util/vue/refs.js +12 -0
- package/dist/components/_util/vue/refs.js.map +1 -0
- package/dist/components/_util/vue/size.d.ts +2 -0
- package/dist/components/_util/vue/size.js +6 -0
- package/dist/components/_util/vue/size.js.map +1 -0
- package/dist/components/_util/vue/typescript.d.ts +5 -0
- package/dist/components/_util/vue/typescript.js +2 -0
- package/dist/components/_util/vue/typescript.js.map +1 -0
- package/dist/components/_util/vue/validator.d.ts +3 -0
- package/dist/components/_util/vue/validator.js +7 -0
- package/dist/components/_util/vue/validator.js.map +1 -0
- package/dist/components/_util/vue/vnode.d.ts +50 -0
- package/dist/components/_util/vue/vnode.js +68 -0
- package/dist/components/_util/vue/vnode.js.map +1 -0
- package/dist/components/_util/vue-types/index.d.ts +3 -3
- package/dist/components/_util/vue-types/index.js +275 -417
- package/dist/components/_util/vue-types/index.js.map +1 -0
- package/dist/components/components.d.ts +4 -0
- package/dist/components/components.js +19 -12
- package/dist/components/components.js.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +26 -24
- package/dist/components/index.js.map +1 -0
- package/dist/components-CutWiB7Q.js +68 -0
- package/dist/components-CutWiB7Q.js.map +1 -0
- package/dist/error/OrionError.js +7 -12
- package/dist/error/OrionError.js.map +1 -0
- package/dist/functions-DzLqXvGt.js +33 -0
- package/dist/functions-DzLqXvGt.js.map +1 -0
- package/dist/index-BbsXWo7C.js +44 -0
- package/dist/index-BbsXWo7C.js.map +1 -0
- package/dist/index-C8JNJPWW.js +8 -0
- package/dist/index-C8JNJPWW.js.map +1 -0
- package/dist/index.css +1 -44
- package/dist/index.d.ts +2 -1
- package/dist/index.js +27 -14
- package/dist/index.js.map +1 -0
- package/dist/print/LodopFuncs.js +48 -111
- package/dist/print/LodopFuncs.js.map +1 -0
- package/dist/print/index.d.ts +2 -2
- package/dist/print/index.js +111 -220
- package/dist/print/index.js.map +1 -0
- package/dist/request/ErrorHandlerChain.js +17 -15
- package/dist/request/ErrorHandlerChain.js.map +1 -0
- package/dist/request/RequestFilterChain.d.ts +1 -1
- package/dist/request/RequestFilterChain.js +16 -14
- package/dist/request/RequestFilterChain.js.map +1 -0
- package/dist/request/ResponseParserChain.d.ts +1 -1
- package/dist/request/ResponseParserChain.js +17 -15
- package/dist/request/ResponseParserChain.js.map +1 -0
- package/dist/request/disivion/DateSerializer.js +25 -46
- package/dist/request/disivion/DateSerializer.js.map +1 -0
- package/dist/request/disivion/DivisionErrorHandler.d.ts +1 -1
- package/dist/request/disivion/DivisionErrorHandler.js +30 -52
- package/dist/request/disivion/DivisionErrorHandler.js.map +1 -0
- package/dist/request/disivion/DivisionResponseParser.d.ts +2 -2
- package/dist/request/disivion/DivisionResponseParser.js +13 -25
- package/dist/request/disivion/DivisionResponseParser.js.map +1 -0
- package/dist/request/disivion/index.d.ts +3 -3
- package/dist/request/disivion/index.js +230 -480
- package/dist/request/disivion/index.js.map +1 -0
- package/dist/request/error/BizExceptionResponseError.d.ts +2 -2
- package/dist/request/error/BizExceptionResponseError.js +8 -15
- package/dist/request/error/BizExceptionResponseError.js.map +1 -0
- package/dist/request/error/ExceptionResponseError.d.ts +2 -2
- package/dist/request/error/ExceptionResponseError.js +8 -15
- package/dist/request/error/ExceptionResponseError.js.map +1 -0
- package/dist/request/error/ResponseError.d.ts +1 -1
- package/dist/request/error/ResponseError.js +7 -14
- package/dist/request/error/ResponseError.js.map +1 -0
- package/dist/request/error/SessionExceptionResponseError.d.ts +2 -2
- package/dist/request/error/SessionExceptionResponseError.js +8 -15
- package/dist/request/error/SessionExceptionResponseError.js.map +1 -0
- package/dist/request/index.js +11 -17
- package/dist/request/index.js.map +1 -0
- package/dist/style/index.d.ts +0 -3
- package/dist/style/index.js +1 -0
- package/dist/style/index.js.map +1 -0
- package/dist/utils/DateUtil.js +36 -50
- package/dist/utils/DateUtil.js.map +1 -0
- package/dist/utils/NumberUtil.js +9 -8
- package/dist/utils/NumberUtil.js.map +1 -0
- package/dist/utils/cloneDeep.js +5 -1
- package/dist/utils/cloneDeep.js.map +1 -0
- package/dist/utils/delay.js +6 -4
- package/dist/utils/delay.js.map +1 -0
- package/dist/utils/functions.d.ts +1 -0
- package/dist/utils/functions.js +6 -0
- package/dist/utils/functions.js.map +1 -0
- package/dist/utils/index.js +15 -9
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/md5.js +120 -245
- package/dist/utils/md5.js.map +1 -0
- package/dist/utils/uuid.js +28 -58
- package/dist/utils/uuid.js.map +1 -0
- package/dist/version/index.d.ts +1 -1
- package/dist/version/index.js +5 -6
- package/dist/version/index.js.map +1 -0
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +5 -3
- package/dist/version/version.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/global.d.ts +6 -0
- package/package.json +53 -63
- package/dist/components-BTX5S_6V.js +0 -128
@@ -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":""}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { FormItemRule, Arrayable } from '../Form';
|
2
|
+
export interface StringInputProps {
|
3
|
+
name: string;
|
4
|
+
label?: string;
|
5
|
+
span?: number;
|
6
|
+
labelWidth?: string | number;
|
7
|
+
required?: boolean;
|
8
|
+
rules?: Arrayable<FormItemRule>;
|
9
|
+
maxlength?: string | number;
|
10
|
+
placeholder?: string;
|
11
|
+
disabled?: boolean;
|
12
|
+
readonly?: boolean;
|
13
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"StringInput.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { StringInputProps } from './StringInput';
|
2
|
+
declare const _default: import('vue').DefineComponent<StringInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StringInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
3
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './StringInput';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -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":""}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { FormItemRule, Arrayable } from '../Form';
|
2
|
+
export interface TextareaProps {
|
3
|
+
name: string;
|
4
|
+
label?: string;
|
5
|
+
span?: number;
|
6
|
+
labelWidth?: string | number;
|
7
|
+
required?: boolean;
|
8
|
+
rules?: Arrayable<FormItemRule>;
|
9
|
+
maxlength?: string | number;
|
10
|
+
placeholder?: string;
|
11
|
+
disabled?: boolean;
|
12
|
+
readonly?: boolean;
|
13
|
+
rows?: number;
|
14
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Textarea.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { TextareaProps } from './Textarea';
|
2
|
+
declare const _default: import('vue').DefineComponent<TextareaProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TextareaProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
3
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Textarea';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { CodeItem } from '../../../Throne';
|
2
|
+
declare const useFormContext: () => import('..').FormContext | undefined;
|
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 };
|
@@ -0,0 +1,44 @@
|
|
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);
|
36
|
+
};
|
37
|
+
export {
|
38
|
+
k as useFormCode,
|
39
|
+
f as useFormContext,
|
40
|
+
S as useFormDisabled,
|
41
|
+
R as useFormRules,
|
42
|
+
O as useFormSpan
|
43
|
+
};
|
44
|
+
//# sourceMappingURL=useForm.js.map
|
@@ -0,0 +1 @@
|
|
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;"}
|
@@ -0,0 +1,301 @@
|
|
1
|
+
import { default as StringInput } from './StringInput/StringInput.vue';
|
2
|
+
import { default as PasswordInput } from './PasswordInput/PasswordInput.vue';
|
3
|
+
import { default as Textarea } from './Textarea/Textarea.vue';
|
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<{
|
14
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
15
|
+
modelValue?: Record<string, any>;
|
16
|
+
} & import('./Form').FormProps> & Readonly<{
|
17
|
+
"onUpdate:modelValue"?: ((modelValue: Record<string, any>) => any) | undefined;
|
18
|
+
}>, {
|
19
|
+
validate: () => Promise<boolean>;
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
21
|
+
"update:modelValue": (modelValue: Record<string, any>) => any;
|
22
|
+
}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{
|
23
|
+
modelValue?: Record<string, any>;
|
24
|
+
} & import('./Form').FormProps> & Readonly<{
|
25
|
+
"onUpdate:modelValue"?: ((modelValue: Record<string, any>) => any) | undefined;
|
26
|
+
}>, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
27
|
+
formRef: ({
|
28
|
+
$: import('vue').ComponentInternalInstance;
|
29
|
+
$data: {};
|
30
|
+
$props: Partial<{
|
31
|
+
readonly inline: boolean;
|
32
|
+
readonly disabled: boolean;
|
33
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
34
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
35
|
+
readonly inlineMessage: boolean;
|
36
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
37
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
38
|
+
readonly labelSuffix: string;
|
39
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
40
|
+
readonly statusIcon: boolean;
|
41
|
+
readonly hideRequiredAsterisk: boolean;
|
42
|
+
readonly scrollToError: boolean;
|
43
|
+
}> & Omit<{
|
44
|
+
readonly inline: boolean;
|
45
|
+
readonly disabled: boolean;
|
46
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
47
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
48
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
49
|
+
readonly labelSuffix: string;
|
50
|
+
readonly inlineMessage: boolean;
|
51
|
+
readonly statusIcon: boolean;
|
52
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
53
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
54
|
+
readonly hideRequiredAsterisk: boolean;
|
55
|
+
readonly scrollToError: boolean;
|
56
|
+
readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown> | undefined;
|
57
|
+
readonly rules?: Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>> | undefined;
|
58
|
+
readonly model?: Record<string, any> | undefined;
|
59
|
+
readonly scrollIntoViewOptions?: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
60
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
61
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
62
|
+
readonly model: ObjectConstructor;
|
63
|
+
readonly rules: {
|
64
|
+
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
65
|
+
readonly required: false;
|
66
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
67
|
+
__epPropKey: true;
|
68
|
+
};
|
69
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
70
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
71
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
72
|
+
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
73
|
+
readonly inline: BooleanConstructor;
|
74
|
+
readonly inlineMessage: BooleanConstructor;
|
75
|
+
readonly statusIcon: BooleanConstructor;
|
76
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
77
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
78
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
79
|
+
readonly scrollToError: BooleanConstructor;
|
80
|
+
readonly scrollIntoViewOptions: {
|
81
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
82
|
+
readonly required: false;
|
83
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
84
|
+
__epPropKey: true;
|
85
|
+
};
|
86
|
+
readonly size: {
|
87
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
88
|
+
readonly required: false;
|
89
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
90
|
+
__epPropKey: true;
|
91
|
+
};
|
92
|
+
readonly disabled: BooleanConstructor;
|
93
|
+
}>> & {
|
94
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
95
|
+
}, "inline" | "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
96
|
+
$attrs: {
|
97
|
+
[x: string]: unknown;
|
98
|
+
};
|
99
|
+
$refs: {
|
100
|
+
[x: string]: unknown;
|
101
|
+
};
|
102
|
+
$slots: Readonly<{
|
103
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
104
|
+
}>;
|
105
|
+
$root: import('vue').ComponentPublicInstance | null;
|
106
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
107
|
+
$host: Element | null;
|
108
|
+
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
109
|
+
$el: any;
|
110
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
111
|
+
readonly model: ObjectConstructor;
|
112
|
+
readonly rules: {
|
113
|
+
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
114
|
+
readonly required: false;
|
115
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
116
|
+
__epPropKey: true;
|
117
|
+
};
|
118
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
119
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
120
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
121
|
+
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
122
|
+
readonly inline: BooleanConstructor;
|
123
|
+
readonly inlineMessage: BooleanConstructor;
|
124
|
+
readonly statusIcon: BooleanConstructor;
|
125
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
126
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
127
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
128
|
+
readonly scrollToError: BooleanConstructor;
|
129
|
+
readonly scrollIntoViewOptions: {
|
130
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
131
|
+
readonly required: false;
|
132
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
133
|
+
__epPropKey: true;
|
134
|
+
};
|
135
|
+
readonly size: {
|
136
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
137
|
+
readonly required: false;
|
138
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
139
|
+
__epPropKey: true;
|
140
|
+
};
|
141
|
+
readonly disabled: BooleanConstructor;
|
142
|
+
}>> & {
|
143
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
144
|
+
}, {
|
145
|
+
validate: (callback?: import('element-plus').FormValidateCallback | undefined) => import('element-plus').FormValidationResult;
|
146
|
+
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;
|
147
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp> | undefined) => void;
|
148
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp> | undefined) => void;
|
149
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
150
|
+
fields: import('element-plus').FormItemContext[];
|
151
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
152
|
+
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
153
|
+
}, string, {
|
154
|
+
readonly inline: boolean;
|
155
|
+
readonly disabled: boolean;
|
156
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
157
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
158
|
+
readonly inlineMessage: boolean;
|
159
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
160
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
161
|
+
readonly labelSuffix: string;
|
162
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
163
|
+
readonly statusIcon: boolean;
|
164
|
+
readonly hideRequiredAsterisk: boolean;
|
165
|
+
readonly scrollToError: boolean;
|
166
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
167
|
+
beforeCreate?: (() => void) | (() => void)[];
|
168
|
+
created?: (() => void) | (() => void)[];
|
169
|
+
beforeMount?: (() => void) | (() => void)[];
|
170
|
+
mounted?: (() => void) | (() => void)[];
|
171
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
172
|
+
updated?: (() => void) | (() => void)[];
|
173
|
+
activated?: (() => void) | (() => void)[];
|
174
|
+
deactivated?: (() => void) | (() => void)[];
|
175
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
176
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
177
|
+
destroyed?: (() => void) | (() => void)[];
|
178
|
+
unmounted?: (() => void) | (() => void)[];
|
179
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
180
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
181
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
182
|
+
};
|
183
|
+
$forceUpdate: () => void;
|
184
|
+
$nextTick: typeof import('vue').nextTick;
|
185
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
186
|
+
} & Readonly<{
|
187
|
+
readonly inline: boolean;
|
188
|
+
readonly disabled: boolean;
|
189
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
190
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
191
|
+
readonly inlineMessage: boolean;
|
192
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
193
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
194
|
+
readonly labelSuffix: string;
|
195
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
196
|
+
readonly statusIcon: boolean;
|
197
|
+
readonly hideRequiredAsterisk: boolean;
|
198
|
+
readonly scrollToError: boolean;
|
199
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
200
|
+
readonly model: ObjectConstructor;
|
201
|
+
readonly rules: {
|
202
|
+
readonly type: import('vue').PropType<Partial<Record<string, import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemRule>>>>;
|
203
|
+
readonly required: false;
|
204
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
205
|
+
__epPropKey: true;
|
206
|
+
};
|
207
|
+
readonly labelPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
208
|
+
readonly requireAsteriskPosition: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
209
|
+
readonly labelWidth: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
210
|
+
readonly labelSuffix: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
211
|
+
readonly inline: BooleanConstructor;
|
212
|
+
readonly inlineMessage: BooleanConstructor;
|
213
|
+
readonly statusIcon: BooleanConstructor;
|
214
|
+
readonly showMessage: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
215
|
+
readonly validateOnRuleChange: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
216
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
217
|
+
readonly scrollToError: BooleanConstructor;
|
218
|
+
readonly scrollIntoViewOptions: {
|
219
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
220
|
+
readonly required: false;
|
221
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
222
|
+
__epPropKey: true;
|
223
|
+
};
|
224
|
+
readonly size: {
|
225
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
226
|
+
readonly required: false;
|
227
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
228
|
+
__epPropKey: true;
|
229
|
+
};
|
230
|
+
readonly disabled: BooleanConstructor;
|
231
|
+
}>> & {
|
232
|
+
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
233
|
+
}, "inline" | "disabled" | "validate" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "fields"> & import('vue').ShallowUnwrapRef<{
|
234
|
+
validate: (callback?: import('element-plus').FormValidateCallback | undefined) => import('element-plus').FormValidationResult;
|
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;
|
236
|
+
resetFields: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp> | undefined) => void;
|
237
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript.mjs').Arrayable<import('element-plus').FormItemProp> | undefined) => void;
|
238
|
+
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
239
|
+
fields: import('element-plus').FormItemContext[];
|
240
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
241
|
+
$slots: {
|
242
|
+
default?(_: {}): any;
|
243
|
+
};
|
244
|
+
}) | null;
|
245
|
+
}, any, import('vue').ComponentProvideOptions, {
|
246
|
+
P: {};
|
247
|
+
B: {};
|
248
|
+
D: {};
|
249
|
+
C: {};
|
250
|
+
M: {};
|
251
|
+
Defaults: {};
|
252
|
+
}, Readonly<{
|
253
|
+
modelValue?: Record<string, any>;
|
254
|
+
} & import('./Form').FormProps> & Readonly<{
|
255
|
+
"onUpdate:modelValue"?: ((modelValue: Record<string, any>) => any) | undefined;
|
256
|
+
}>, {
|
257
|
+
validate: () => Promise<boolean>;
|
258
|
+
}, {}, {}, {}, {}>;
|
259
|
+
__isFragment?: never;
|
260
|
+
__isTeleport?: never;
|
261
|
+
__isSuspense?: never;
|
262
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
263
|
+
modelValue?: Record<string, any>;
|
264
|
+
} & import('./Form').FormProps> & Readonly<{
|
265
|
+
"onUpdate:modelValue"?: ((modelValue: Record<string, any>) => any) | undefined;
|
266
|
+
}>, {
|
267
|
+
validate: () => Promise<boolean>;
|
268
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
269
|
+
"update:modelValue": (modelValue: Record<string, any>) => any;
|
270
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
271
|
+
$slots: {
|
272
|
+
default?(_: {}): any;
|
273
|
+
};
|
274
|
+
})> & {
|
275
|
+
StringInput: typeof StringInput;
|
276
|
+
PasswordInput: typeof PasswordInput;
|
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;
|
287
|
+
};
|
288
|
+
export default _default;
|
289
|
+
export * from './Form';
|
290
|
+
export * from './StringInput';
|
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';
|