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
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,18 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
export interface CodeItem {
|
3
|
+
value: string;
|
4
|
+
content: string;
|
5
|
+
}
|
6
|
+
export type CascadeSysCodeItem = {
|
7
|
+
value: string;
|
8
|
+
content: string;
|
9
|
+
parent?: string;
|
10
|
+
};
|
11
|
+
export interface ThroneType {
|
12
|
+
hasAuth: (authId: string) => boolean | null;
|
13
|
+
getIcon: (iconId: string) => () => unknown;
|
14
|
+
getCode: (codeName: string) => Ref<Array<CodeItem>>;
|
15
|
+
impl: (throne: Partial<ThroneType>) => void;
|
16
|
+
}
|
17
|
+
declare const Throne: ThroneType;
|
18
|
+
export default Throne;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import o from "../error/OrionError.js";
|
2
|
+
let t = () => {
|
3
|
+
throw new o("Throne.hasAuth not configured!");
|
4
|
+
}, n = (e) => {
|
5
|
+
throw new o("Throne.getIcon not configured!");
|
6
|
+
}, r = (e) => {
|
7
|
+
throw new o("Throne.getCode not configured!");
|
8
|
+
};
|
9
|
+
const h = {
|
10
|
+
hasAuth: (e) => t(e),
|
11
|
+
getIcon: (e) => n(e),
|
12
|
+
getCode: (e) => r(e),
|
13
|
+
impl: (e) => {
|
14
|
+
e.hasAuth && (t = e.hasAuth), e.getIcon && (n = e.getIcon), e.getCode && (r = e.getCode);
|
15
|
+
}
|
16
|
+
};
|
17
|
+
export {
|
18
|
+
h as default
|
19
|
+
};
|
20
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/Throne/index.ts"],"sourcesContent":["import OrionError from '../error/OrionError'\r\nimport type { Ref } from 'vue'\r\n\r\nexport interface CodeItem {\r\n value: string\r\n content: string\r\n}\r\n\r\nexport type CascadeSysCodeItem = {\r\n value: string\r\n content: string\r\n parent?: string\r\n}\r\n\r\nexport interface ThroneType {\r\n hasAuth: (authId: string) => boolean | null\r\n getIcon: (iconId: string) => () => unknown\r\n getCode: (codeName: string) => Ref<Array<CodeItem>>\r\n impl: (throne: Partial<ThroneType>) => void\r\n}\r\n\r\nlet hasAuth: ThroneType['hasAuth'] = () => {\r\n throw new OrionError(`Throne.hasAuth not configured!`)\r\n}\r\n\r\nlet getIcon: ThroneType['getIcon'] = (iconId) => {\r\n throw new OrionError(`Throne.getIcon not configured!`)\r\n}\r\n\r\nlet getCode: ThroneType['getCode'] = (codeName) => {\r\n throw new OrionError(`Throne.getCode not configured!`)\r\n}\r\n\r\nconst Throne: ThroneType = {\r\n hasAuth: (authId) => {\r\n return hasAuth(authId)\r\n },\r\n getIcon: (iconId) => {\r\n return getIcon(iconId)\r\n },\r\n getCode: (codeName) => {\r\n return getCode(codeName)\r\n },\r\n impl: (throne) => {\r\n if (throne.hasAuth) {\r\n hasAuth = throne.hasAuth\r\n }\r\n\r\n if (throne.getIcon) {\r\n getIcon = throne.getIcon\r\n }\r\n\r\n if (throne.getCode) {\r\n getCode = throne.getCode\r\n }\r\n },\r\n}\r\n\r\nexport default Throne\r\n"],"names":["hasAuth","OrionError","getIcon","iconId","getCode","codeName","Throne","authId","throne"],"mappings":";AAqBA,IAAIA,IAAiC,MAAM;AACnC,QAAA,IAAIC,EAAW,gCAAgC;AACvD,GAEIC,IAAiC,CAACC,MAAW;AACzC,QAAA,IAAIF,EAAW,gCAAgC;AACvD,GAEIG,IAAiC,CAACC,MAAa;AAC3C,QAAA,IAAIJ,EAAW,gCAAgC;AACvD;AAEA,MAAMK,IAAqB;AAAA,EACzB,SAAS,CAACC,MACDP,EAAQO,CAAM;AAAA,EAEvB,SAAS,CAACJ,MACDD,EAAQC,CAAM;AAAA,EAEvB,SAAS,CAACE,MACDD,EAAQC,CAAQ;AAAA,EAEzB,MAAM,CAACG,MAAW;AAChB,IAAIA,EAAO,YACTR,IAAUQ,EAAO,UAGfA,EAAO,YACTN,IAAUM,EAAO,UAGfA,EAAO,YACTJ,IAAUI,EAAO;AAAA,EAErB;AACF;"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
2
|
+
function l(e) {
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
4
|
+
}
|
5
|
+
export {
|
6
|
+
o as c,
|
7
|
+
l as g
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=_commonjsHelpers-DaMA6jEr.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers-DaMA6jEr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
@@ -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,2 @@
|
|
1
|
+
declare const _default: import('../_util').SFCWithInstall<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 "lodash-es";
|
2
|
+
import { defineComponent as u, onMounted as c, openBlock as s, createBlock as p, unref as _, withCtx as a, createTextVNode as l } from "vue";
|
3
|
+
import { withInstall as m } from "../_util/vue/install.js";
|
4
|
+
import { ElButton as d } from "element-plus";
|
5
|
+
const f = /* @__PURE__ */ u({
|
6
|
+
name: "OButton",
|
7
|
+
__name: "Button",
|
8
|
+
setup(o) {
|
9
|
+
return c(() => {
|
10
|
+
console.log("Button onMounted1");
|
11
|
+
}), (n, t) => (s(), p(_(d), null, {
|
12
|
+
default: a(() => t[0] || (t[0] = [
|
13
|
+
l("XX")
|
14
|
+
])),
|
15
|
+
_: 1
|
16
|
+
}));
|
17
|
+
}
|
18
|
+
}), i = (o, n) => {
|
19
|
+
const t = o.__vccOpts || o;
|
20
|
+
for (const [e, r] of n)
|
21
|
+
t[e] = r;
|
22
|
+
return t;
|
23
|
+
}, B = /* @__PURE__ */ i(f, [["__scopeId", "data-v-e59d2724"]]), w = m(B);
|
24
|
+
export {
|
25
|
+
w 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 } from '../_util'\r\n\r\nimport Button from './Button.vue'\r\n\r\nexport default withInstall<typeof Button, {}>(Button)\r\n"],"names":["onMounted","index","withInstall","Button"],"mappings":";;;;;;;;AAUA,WAAAA,EAAU,MAAM;AACd,cAAQ,IAAI,mBAAmB;AAAA,IAAA,CAChC;;;;;;;;;;;;iECRcC,IAAAC,EAA+BC,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":"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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ButtonGroup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ButtonGroupProps } from './ButtonGroup';
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
slots: {
|
4
|
+
default?(_: {}): any;
|
5
|
+
};
|
6
|
+
refs: {};
|
7
|
+
attrs: Partial<{}>;
|
8
|
+
};
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
12
|
+
export default _default;
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
14
|
+
new (): {
|
15
|
+
$slots: S;
|
16
|
+
};
|
17
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './ButtonGroup';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { CheckboxProps } from './Checkbox';
|
2
|
+
declare const _default: import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
3
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Checkbox';
|
@@ -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 CheckboxGroupProps {
|
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":"CheckboxGroup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { CheckboxGroupProps } from './CheckboxGroup';
|
2
|
+
declare const _default: import('vue').DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CheckboxGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
3
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './CheckboxGroup';
|
@@ -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 DateInputProps {
|
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
|
+
editable?: boolean;
|
14
|
+
clearable?: boolean;
|
15
|
+
format?: string;
|
16
|
+
sourceFormat?: string;
|
17
|
+
}
|