orion-design 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -0
- package/dist/components/Button/Button.vue.d.ts +2 -0
- package/dist/components/Button/index.d.ts +4 -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/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/PasswordInput/PasswordInput.d.ts +15 -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/StringInput/StringInput.d.ts +15 -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/Textarea/Textarea.d.ts +16 -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 +4 -0
- package/dist/components/Form/hooks/useForm.js +21 -0
- package/dist/components/Form/hooks/useForm.js.map +1 -0
- package/dist/components/Form/index.d.ts +273 -0
- package/dist/components/Form/index.js +194 -0
- package/dist/components/Form/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 +79 -0
- package/dist/components/Pagetable/columns/PagetableDatecolumn.d.ts +88 -0
- package/dist/components/Pagetable/columns/PagetableStringcolumn.d.ts +62 -0
- package/dist/components/Pagetable/index.d.ts +60 -0
- package/dist/components/Pagetable/index.js +144 -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/Space/index.d.ts +9 -9
- 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 +1 -1
- package/dist/components/_util/type.js +48 -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 +18 -12
- package/dist/components/components.js.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +25 -24
- package/dist/components/index.js.map +1 -0
- package/dist/components-BZukhWDk.js +106 -0
- package/dist/components-BZukhWDk.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-C8JNJPWW.js +8 -0
- package/dist/index-C8JNJPWW.js.map +1 -0
- package/dist/index.css +1 -44
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -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 +121 -244
- 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/utils/vue/install.d.ts +6 -0
- package/dist/utils/vue/install.js +21 -0
- package/dist/utils/vue/install.js.map +1 -0
- package/dist/utils/vue/typescript.d.ts +5 -0
- package/dist/utils/vue/typescript.js +2 -0
- package/dist/utils/vue/typescript.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 +52 -63
- package/dist/components-DhjIbmR3.js +0 -128
package/README.md
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
2
|
+
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
4
|
+
|
5
|
+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { withInstall as u } from "../../utils/vue/install.js";
|
2
|
+
import { defineComponent as c, onMounted as s, openBlock as _, createBlock as a, unref as l, withCtx as p, createTextVNode as f } from "vue";
|
3
|
+
import { ElButton as m } from "element-plus";
|
4
|
+
const d = /* @__PURE__ */ c({
|
5
|
+
name: "OButton",
|
6
|
+
__name: "Button",
|
7
|
+
setup(o) {
|
8
|
+
return s(() => {
|
9
|
+
console.log("Button onMounted1");
|
10
|
+
}), (n, t) => (_(), a(l(m), null, {
|
11
|
+
default: p(() => t[0] || (t[0] = [
|
12
|
+
f("XX")
|
13
|
+
])),
|
14
|
+
_: 1
|
15
|
+
}));
|
16
|
+
}
|
17
|
+
}), B = (o, n) => {
|
18
|
+
const t = o.__vccOpts || o;
|
19
|
+
for (const [e, r] of n)
|
20
|
+
t[e] = r;
|
21
|
+
return t;
|
22
|
+
}, i = /* @__PURE__ */ B(d, [["__scopeId", "data-v-e59d2724"]]), O = u(i);
|
23
|
+
export {
|
24
|
+
O as OButton,
|
25
|
+
O as default
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Button/Button.vue","../../../src/components/Button/index.ts"],"sourcesContent":["<template>\r\n <el-button>XX</el-button>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { onMounted } from 'vue'\r\n\r\nimport { ElButton } from 'element-plus'\r\n\r\ndefineOptions({ name: 'OButton' })\r\n\r\nonMounted(() => {\r\n console.log('Button onMounted1')\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.app {\r\n p {\r\n font-size: 32px;\r\n color: aqua;\r\n }\r\n button {\r\n color: red;\r\n }\r\n}\r\n</style>\r\n","import { withInstall, withNoopInstall } from '../../utils/vue/install'\r\nimport type { SFCWithInstall } from '../../utils/vue/typescript'\r\n\r\nimport Button from './Button.vue'\r\n\r\nexport const OButton: SFCWithInstall<typeof Button> = withInstall(Button)\r\n\r\nexport default OButton\r\n"],"names":["onMounted","OButton","withInstall","Button"],"mappings":";;;;;;;AAUA,WAAAA,EAAU,MAAM;AACd,cAAQ,IAAI,mBAAmB;AAAA,IAAA,CAChC;;;;;;;;;;;;iECPYC,IAAyCC,EAAYC,CAAM;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
export declare const colProps: () => {
|
3
3
|
gutter: {
|
4
4
|
default: string | boolean;
|
@@ -7,13 +7,13 @@ export declare const colProps: () => {
|
|
7
7
|
height: StringConstructor;
|
8
8
|
};
|
9
9
|
export type ColProps = Partial<ExtractPropTypes<ReturnType<typeof colProps>>>;
|
10
|
-
declare const _default: import(
|
10
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
11
11
|
gutter: {
|
12
12
|
default: string | boolean;
|
13
13
|
type: PropType<string | boolean>;
|
14
14
|
};
|
15
15
|
height: StringConstructor;
|
16
|
-
}>, () =>
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
17
17
|
gutter: {
|
18
18
|
default: string | boolean;
|
19
19
|
type: PropType<string | boolean>;
|
@@ -21,5 +21,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
21
21
|
height: StringConstructor;
|
22
22
|
}>> & Readonly<{}>, {
|
23
23
|
gutter: string | boolean;
|
24
|
-
}, {}, {}, {}, string, import(
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
25
25
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
2
|
export declare const itemProps: () => {
|
3
3
|
flexBasic: StringConstructor;
|
4
4
|
hidden: {
|
@@ -7,13 +7,13 @@ export declare const itemProps: () => {
|
|
7
7
|
};
|
8
8
|
};
|
9
9
|
export type ItemProps = Partial<ExtractPropTypes<ReturnType<typeof itemProps>>>;
|
10
|
-
declare const _default: import(
|
10
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
11
11
|
flexBasic: StringConstructor;
|
12
12
|
hidden: {
|
13
13
|
type: BooleanConstructor;
|
14
14
|
default: boolean;
|
15
15
|
};
|
16
|
-
}>, () =>
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
17
17
|
flexBasic: StringConstructor;
|
18
18
|
hidden: {
|
19
19
|
type: BooleanConstructor;
|
@@ -21,5 +21,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
21
21
|
};
|
22
22
|
}>> & Readonly<{}>, {
|
23
23
|
hidden: boolean;
|
24
|
-
}, {}, {}, {}, string, import(
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
25
25
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
export declare const rowProps: () => {
|
3
3
|
gutter: {
|
4
4
|
default: string | boolean;
|
@@ -7,13 +7,13 @@ export declare const rowProps: () => {
|
|
7
7
|
height: StringConstructor;
|
8
8
|
};
|
9
9
|
export type RowProps = Partial<ExtractPropTypes<ReturnType<typeof rowProps>>>;
|
10
|
-
declare const _default: import(
|
10
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
11
11
|
gutter: {
|
12
12
|
default: string | boolean;
|
13
13
|
type: PropType<string | boolean>;
|
14
14
|
};
|
15
15
|
height: StringConstructor;
|
16
|
-
}>, () =>
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
17
17
|
gutter: {
|
18
18
|
default: string | boolean;
|
19
19
|
type: PropType<string | boolean>;
|
@@ -21,5 +21,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
21
21
|
height: StringConstructor;
|
22
22
|
}>> & Readonly<{}>, {
|
23
23
|
gutter: string | boolean;
|
24
|
-
}, {}, {}, {}, string, import(
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
25
25
|
export default _default;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import Row from './Row';
|
3
|
-
import Col from './Col';
|
4
|
-
import Item from './Item';
|
1
|
+
import { Plugin } from 'vue';
|
2
|
+
import { default as Row } from './Row';
|
3
|
+
import { default as Col } from './Col';
|
4
|
+
import { default as Item } from './Item';
|
5
5
|
export declare const Rowflex: typeof Row & Plugin;
|
6
6
|
export declare const Colflex: typeof Col & Plugin;
|
7
7
|
export declare const Flexitem: typeof Item & Plugin;
|
@@ -1,151 +1,119 @@
|
|
1
|
-
import { defineComponent, computed, createVNode } from
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import { anyType, booleanType } from
|
5
|
-
|
6
|
-
|
7
|
-
const rowProps = () => ({
|
8
|
-
gutter: anyType(),
|
1
|
+
import { defineComponent as s, computed as h, createVNode as a } from "vue";
|
2
|
+
import m from "../_util/classNames.js";
|
3
|
+
import d from "../../error/OrionError.js";
|
4
|
+
import { anyType as y, booleanType as w } from "../_util/type.js";
|
5
|
+
const v = () => ({
|
6
|
+
gutter: y(),
|
9
7
|
height: String
|
10
|
-
})
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
expose
|
8
|
+
}), f = /* @__PURE__ */ s({
|
9
|
+
name: "ORowflex",
|
10
|
+
inheritAttrs: !1,
|
11
|
+
props: v(),
|
12
|
+
setup(e, {
|
13
|
+
slots: i,
|
14
|
+
attrs: r,
|
15
|
+
emit: x,
|
16
|
+
expose: g
|
20
17
|
}) {
|
21
|
-
const
|
22
|
-
const
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
} else {
|
31
|
-
rowStyle.height = '100%';
|
32
|
-
}
|
33
|
-
return rowStyle;
|
18
|
+
const o = h(() => {
|
19
|
+
const t = {};
|
20
|
+
if (t.gap = e.gutter === !0 || e.gutter === "" ? "var(--orion-flex-gutter)" : e.gutter ? e.gutter : void 0, e.height) {
|
21
|
+
if (e.height == "fill")
|
22
|
+
throw new d("ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!");
|
23
|
+
e.height == "need" || (t.height = e.height);
|
24
|
+
} else
|
25
|
+
t.height = "100%";
|
26
|
+
return t;
|
34
27
|
});
|
35
28
|
return () => {
|
36
|
-
|
37
|
-
const
|
38
|
-
return
|
39
|
-
|
40
|
-
|
41
|
-
}, [
|
29
|
+
var n;
|
30
|
+
const t = (n = i.default) == null ? void 0 : n.call(i), l = m("orion-flex", "orion-flex-row", "orion-flex-justify-start");
|
31
|
+
return a("div", {
|
32
|
+
class: [l, r.class],
|
33
|
+
style: [o.value, r.style]
|
34
|
+
}, [t]);
|
42
35
|
};
|
43
36
|
}
|
44
|
-
})
|
45
|
-
|
46
|
-
const colProps = () => ({
|
47
|
-
gutter: anyType(),
|
37
|
+
}), B = () => ({
|
38
|
+
gutter: y(),
|
48
39
|
height: String
|
49
|
-
})
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
expose
|
40
|
+
}), c = /* @__PURE__ */ s({
|
41
|
+
name: "OColflex",
|
42
|
+
inheritAttrs: !1,
|
43
|
+
props: B(),
|
44
|
+
setup(e, {
|
45
|
+
slots: i,
|
46
|
+
attrs: r,
|
47
|
+
emit: x,
|
48
|
+
expose: g
|
59
49
|
}) {
|
60
|
-
const
|
61
|
-
const
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
} else {
|
70
|
-
rowStyle.height = '100%';
|
71
|
-
}
|
72
|
-
return rowStyle;
|
50
|
+
const o = h(() => {
|
51
|
+
const t = {};
|
52
|
+
if (t.gap = e.gutter === !0 || e.gutter === "" ? "var(--orion-flex-gutter)" : e.gutter ? e.gutter : void 0, e.height) {
|
53
|
+
if (e.height == "fill")
|
54
|
+
throw new d("OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!");
|
55
|
+
e.height == "need" || (t.height = e.height);
|
56
|
+
} else
|
57
|
+
t.height = "100%";
|
58
|
+
return t;
|
73
59
|
});
|
74
60
|
return () => {
|
75
|
-
|
76
|
-
const
|
77
|
-
return
|
78
|
-
|
79
|
-
|
80
|
-
}, [
|
61
|
+
var n;
|
62
|
+
const t = (n = i.default) == null ? void 0 : n.call(i), l = m("orion-flex", "orion-flex-column");
|
63
|
+
return a("div", {
|
64
|
+
class: [l, r.class],
|
65
|
+
style: [o.value, r.style]
|
66
|
+
}, [t]);
|
81
67
|
};
|
82
68
|
}
|
83
|
-
})
|
84
|
-
|
85
|
-
const itemProps = () => ({
|
69
|
+
}), C = () => ({
|
86
70
|
flexBasic: String,
|
87
|
-
hidden:
|
88
|
-
})
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
expose
|
71
|
+
hidden: w(!1)
|
72
|
+
}), u = /* @__PURE__ */ s({
|
73
|
+
name: "OFlexitem",
|
74
|
+
inheritAttrs: !1,
|
75
|
+
props: C(),
|
76
|
+
setup(e, {
|
77
|
+
slots: i,
|
78
|
+
attrs: r,
|
79
|
+
emit: x,
|
80
|
+
expose: g
|
98
81
|
}) {
|
99
|
-
const
|
100
|
-
const
|
101
|
-
|
102
|
-
|
103
|
-
}
|
104
|
-
return itemStyle;
|
105
|
-
});
|
106
|
-
const classes = computed(() => {
|
82
|
+
const o = h(() => {
|
83
|
+
const l = {};
|
84
|
+
return e.flexBasic !== "need" && e.flexBasic !== "fill" && (l.flex = `0 0 ${e.flexBasic}`), l;
|
85
|
+
}), t = h(() => {
|
107
86
|
const {
|
108
|
-
hidden
|
109
|
-
} =
|
110
|
-
let
|
111
|
-
|
112
|
-
|
113
|
-
flexClass = 'orion-flexitem-auto';
|
114
|
-
} else if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {
|
115
|
-
flexClass = 'orion-flexitem-fixed';
|
116
|
-
}
|
117
|
-
}
|
118
|
-
return ['orion-flexitem', flexClass, {
|
119
|
-
[`orion-hidden`]: hidden
|
87
|
+
hidden: l
|
88
|
+
} = e;
|
89
|
+
let n = "orion-flexitem-fill";
|
90
|
+
return e.flexBasic && (e.flexBasic == "need" ? n = "orion-flexitem-auto" : e.flexBasic !== "need" && e.flexBasic !== "fill" && (n = "orion-flexitem-fixed")), ["orion-flexitem", n, {
|
91
|
+
"orion-hidden": l
|
120
92
|
}];
|
121
93
|
});
|
122
94
|
return () => {
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
95
|
+
var n;
|
96
|
+
const l = (n = i.default) == null ? void 0 : n.call(i);
|
97
|
+
return a("div", {
|
98
|
+
class: [t.value, r.class],
|
99
|
+
style: [o.value, r.style]
|
100
|
+
}, [l]);
|
128
101
|
};
|
129
102
|
}
|
130
103
|
});
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
return
|
104
|
+
f.install = function(e) {
|
105
|
+
return e.component(f.name, f), e;
|
106
|
+
};
|
107
|
+
c.install = function(e) {
|
108
|
+
return e.component(c.name, c), e;
|
136
109
|
};
|
137
|
-
|
138
|
-
|
139
|
-
app.component(Col.name, Col);
|
140
|
-
return app;
|
110
|
+
u.install = function(e) {
|
111
|
+
return e.component(u.name, u), e;
|
141
112
|
};
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
113
|
+
const P = f, F = c, N = u;
|
114
|
+
export {
|
115
|
+
F as Colflex,
|
116
|
+
N as Flexitem,
|
117
|
+
P as Rowflex
|
146
118
|
};
|
147
|
-
|
148
|
-
const Colflex = Col;
|
149
|
-
const Flexitem = Item;
|
150
|
-
|
151
|
-
export { Colflex, Flexitem, Rowflex };
|
119
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Flex/Row.tsx","../../../src/components/Flex/Col.tsx","../../../src/components/Flex/Item.tsx","../../../src/components/Flex/index.ts"],"sourcesContent":["import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport OrionError from '../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple } from '../_util/type'\r\n\r\nexport const rowProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n})\r\n\r\nexport type RowProps = Partial<ExtractPropTypes<ReturnType<typeof rowProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'ORowflex',\r\n inheritAttrs: false,\r\n props: rowProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined\r\n\r\n if (props.height) {\r\n if (props.height == 'fill') {\r\n throw new OrionError(`ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`)\r\n } else if (props.height == 'need') {\r\n } else {\r\n rowStyle.height = props.height\r\n }\r\n } else {\r\n rowStyle.height = '100%'\r\n }\r\n\r\n return rowStyle\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n const cn = classNames('orion-flex', 'orion-flex-row', 'orion-flex-justify-start')\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport OrionError from '../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple } from '../_util/type'\r\n\r\nexport const colProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n})\r\n\r\nexport type ColProps = Partial<ExtractPropTypes<ReturnType<typeof colProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OColflex',\r\n inheritAttrs: false,\r\n props: colProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined\r\n\r\n if (props.height) {\r\n if (props.height == 'fill') {\r\n throw new OrionError(`OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`)\r\n } else if (props.height == 'need') {\r\n } else {\r\n rowStyle.height = props.height\r\n }\r\n } else {\r\n rowStyle.height = '100%'\r\n }\r\n\r\n return rowStyle\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n const cn = classNames('orion-flex', 'orion-flex-column')\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport OrionError from '../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple } from '../_util/type'\r\n\r\nexport const itemProps = () => ({\r\n flexBasic: String,\r\n hidden: booleanType(false),\r\n})\r\n\r\nexport type ItemProps = Partial<ExtractPropTypes<ReturnType<typeof itemProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OFlexitem',\r\n inheritAttrs: false,\r\n props: itemProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const itemStyle: CSSProperties = {}\r\n\r\n if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {\r\n itemStyle['flex'] = `0 0 ${props.flexBasic}`\r\n }\r\n\r\n return itemStyle\r\n })\r\n\r\n const classes = computed(() => {\r\n const { hidden } = props\r\n\r\n let flexClass = 'orion-flexitem-fill'\r\n if (props.flexBasic) {\r\n if (props.flexBasic == 'need') {\r\n flexClass = 'orion-flexitem-auto'\r\n } else if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {\r\n flexClass = 'orion-flexitem-fixed'\r\n }\r\n }\r\n\r\n return ['orion-flexitem', flexClass, { [`orion-hidden`]: hidden }]\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n return (\r\n <div class={[classes.value, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import type { App, Plugin } from 'vue'\r\n\r\nimport Row from './Row'\r\nimport Col from './Col'\r\nimport Item from './Item'\r\n\r\nRow.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Row.name, Row)\r\n return app\r\n}\r\nCol.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Col.name, Col)\r\n return app\r\n}\r\nItem.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Item.name, Item)\r\n return app\r\n}\r\n\r\nexport const Rowflex = Row as typeof Row & Plugin\r\nexport const Colflex = Col as typeof Col & Plugin\r\nexport const Flexitem = Item as typeof Item & Plugin\r\n\r\nexport type { RowProps as RowflexProps } from './Row'\r\nexport type { ColProps as ColflexProps } from './Col'\r\nexport type { ItemProps as FlexitemProps } from './Item'\r\n"],"names":["rowProps","gutter","anyType","height","String","defineComponent","name","inheritAttrs","props","setup","slots","attrs","emit","expose","style","computed","rowStyle","gap","undefined","OrionError","children","default","cn","classNames","_createVNode","class","value","colProps","itemProps","flexBasic","hidden","booleanType","itemStyle","classes","flexClass","Row","app","Col","Item","Rowflex","Colflex","Flexitem"],"mappings":";;;;AAMO,MAAMA,IAAWA,OAAO;AAAA,EAC7BC,QAAQC,EAA2B;AAAA,EACnCC,QAAQC;AACV,IAIeC,sBAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOR,EAAU;AAAA,EACjBS,MAAMD,GAAO;AAAA,IAAEE,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;AAAAA,EAAO,GAAG;AAC3C,UAAMC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAA0B,CAAA;AAGhC,UAFAA,EAASC,MAAMT,EAAMP,WAAW,MAAQO,EAAMP,WAAW,KAAK,6BAA6BO,EAAMP,SAASO,EAAMP,SAASiB,QAErHV,EAAML,QAAQ;AAChB,YAAIK,EAAML,UAAU;AAClB,gBAAM,IAAIgB,EAAW,oEAAoE;AACpF,QAAIX,EAAML,UAAU,WAEzBa,EAASb,SAASK,EAAML;AAAAA,MAE5B;AACEa,QAAAA,EAASb,SAAS;AAGpB,aAAOa;AAAAA,IACT,CAAC;AAED,WAAO,MAAM;;AACX,YAAMI,KAAWV,IAAAA,EAAMW,YAANX,gBAAAA,EAAAA,KAAAA,IAEXY,IAAKC,EAAW,cAAc,kBAAkB,0BAA0B;AAEhF,aAAAC,EAAA,OAAA;AAAA,QAAA,OACc,CAACF,GAAIX,EAAMc,KAAK;AAAA,QAAC,OAAS,CAACX,EAAMY,OAAOf,EAAMG,KAAK;AAAA,MAAkB,GAAA,CAC9EM,CAAQ,CAAA;AAAA;EAIjB;AACF,CAAC,GC1CYO,IAAWA,OAAO;AAAA,EAC7B1B,QAAQC,EAA2B;AAAA,EACnCC,QAAQC;AACV,IAIeC,sBAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOmB,EAAU;AAAA,EACjBlB,MAAMD,GAAO;AAAA,IAAEE,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;AAAAA,EAAO,GAAG;AAC3C,UAAMC,IAAQC,EAAS,MAAM;AAC3B,YAAMC,IAA0B,CAAA;AAGhC,UAFAA,EAASC,MAAMT,EAAMP,WAAW,MAAQO,EAAMP,WAAW,KAAK,6BAA6BO,EAAMP,SAASO,EAAMP,SAASiB,QAErHV,EAAML,QAAQ;AAChB,YAAIK,EAAML,UAAU;AAClB,gBAAM,IAAIgB,EAAW,oEAAoE;AACpF,QAAIX,EAAML,UAAU,WAEzBa,EAASb,SAASK,EAAML;AAAAA,MAE5B;AACEa,QAAAA,EAASb,SAAS;AAGpB,aAAOa;AAAAA,IACT,CAAC;AAED,WAAO,MAAM;;AACX,YAAMI,KAAWV,IAAAA,EAAMW,YAANX,gBAAAA,EAAAA,KAAAA,IAEXY,IAAKC,EAAW,cAAc,mBAAmB;AAEvD,aAAAC,EAAA,OAAA;AAAA,QAAA,OACc,CAACF,GAAIX,EAAMc,KAAK;AAAA,QAAC,OAAS,CAACX,EAAMY,OAAOf,EAAMG,KAAK;AAAA,MAAkB,GAAA,CAC9EM,CAAQ,CAAA;AAAA;EAIjB;AACF,CAAC,GC1CYQ,IAAYA,OAAO;AAAA,EAC9BC,WAAWzB;AAAAA,EACX0B,QAAQC,EAAY,EAAK;AAC3B,IAIe1B,sBAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOoB,EAAW;AAAA,EAClBnB,MAAMD,GAAO;AAAA,IAAEE,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;AAAAA,EAAO,GAAG;AAC3C,UAAMC,IAAQC,EAAS,MAAM;AAC3B,YAAMiB,IAA2B,CAAA;AAEjC,aAAIxB,EAAMqB,cAAc,UAAUrB,EAAMqB,cAAc,WACpDG,EAAU,OAAU,OAAOxB,EAAMqB,SAAS,KAGrCG;AAAAA,IACT,CAAC,GAEKC,IAAUlB,EAAS,MAAM;AAC7B,YAAM;AAAA,QAAEe,QAAAA;AAAAA,MAAQ,IAAGtB;AAEnB,UAAI0B,IAAY;AAChB,aAAI1B,EAAMqB,cACJrB,EAAMqB,aAAa,SACrBK,IAAY,wBACH1B,EAAMqB,cAAc,UAAUrB,EAAMqB,cAAc,WAC3DK,IAAY,0BAIT,CAAC,kBAAkBA,GAAW;AAAA,QAAG,gBAAiBJ;AAAAA,MAAO,CAAC;AAAA,IACnE,CAAC;AAED,WAAO,MAAM;;AACX,YAAMV,KAAWV,IAAAA,EAAMW,YAANX,gBAAAA,EAAAA,KAAAA;AAEjB,aAAAc,EAAA,OAAA;AAAA,QAAA,OACc,CAACS,EAAQP,OAAOf,EAAMc,KAAK;AAAA,QAAC,OAAS,CAACX,EAAMY,OAAOf,EAAMG,KAAK;AAAA,MAAkB,GAAA,CACzFM,CAAQ,CAAA;AAAA;EAIjB;AACF,CAAC;AC/CDe,EAAI,UAAU,SAAUC,GAAU;AAE5B,SAAAA,EAAA,UAAUD,EAAI,MAAMA,CAAG,GACpBC;AACT;AACAC,EAAI,UAAU,SAAUD,GAAU;AAE5B,SAAAA,EAAA,UAAUC,EAAI,MAAMA,CAAG,GACpBD;AACT;AACAE,EAAK,UAAU,SAAUF,GAAU;AAE7B,SAAAA,EAAA,UAAUE,EAAK,MAAMA,CAAI,GACtBF;AACT;AAEO,MAAMG,IAAUJ,GACVK,IAAUH,GACVI,IAAWH;"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { InjectionKey } from 'vue';
|
2
|
+
import { FormRules as ElFormRules, FormItemRule as ElFormItemRule } from 'element-plus';
|
3
|
+
import { Arrayable as ElArrayable } from 'element-plus/es/utils/typescript';
|
4
|
+
export type FormRules = ElFormRules;
|
5
|
+
export type FormItemRule = ElFormItemRule;
|
6
|
+
export type Arrayable<T> = ElArrayable<T>;
|
7
|
+
export interface FormProps {
|
8
|
+
rules?: FormRules;
|
9
|
+
itemSpan?: number;
|
10
|
+
itemLabelWidth?: string | number;
|
11
|
+
disabled?: boolean;
|
12
|
+
}
|
13
|
+
export interface FormExpose {
|
14
|
+
validate: () => Promise<boolean>;
|
15
|
+
}
|
16
|
+
export interface FormContext {
|
17
|
+
model: Record<string, any>;
|
18
|
+
rules?: FormRules;
|
19
|
+
itemSpan: number;
|
20
|
+
}
|
21
|
+
export declare const formContextKey: InjectionKey<FormContext>;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Form.js","sources":["../../../src/components/Form/Form.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\r\nimport type { FormRules as ElFormRules, FormItemRule as ElFormItemRule } from 'element-plus'\r\nimport type { Arrayable as ElArrayable } from 'element-plus/es/utils/typescript'\r\n\r\nexport type FormRules = ElFormRules\r\nexport type FormItemRule = ElFormItemRule\r\nexport type Arrayable<T> = ElArrayable<T>\r\n\r\nexport interface FormProps {\r\n rules?: FormRules\r\n itemSpan?: number\r\n itemLabelWidth?: string | number\r\n disabled?: boolean\r\n}\r\n\r\nexport interface FormExpose {\r\n validate: () => Promise<boolean>\r\n}\r\n\r\nexport interface FormContext {\r\n model: Record<string, any>\r\n rules?: FormRules\r\n itemSpan: number\r\n}\r\n\r\nexport const formContextKey: InjectionKey<FormContext> = Symbol('formContextKey')\r\n"],"names":["formContextKey"],"mappings":"AAyBa,MAAAA,IAA4C,OAAO,gBAAgB;"}
|