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 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Form/Form.vue","../../../src/components/Form/StringInput/StringInput.vue","../../../src/components/Form/PasswordInput/PasswordInput.vue","../../../src/components/Form/Textarea/Textarea.vue","../../../src/components/Form/SingleSelect/SingleSelect.vue","../../../src/components/Form/MultiSelect/MultiSelect.vue","../../../src/components/Form/RadioGroup/RadioGroup.vue","../../../src/components/Form/CheckboxGroup/CheckboxGroup.vue","../../../src/components/Form/Checkbox/Checkbox.vue","../../../src/components/Form/Switch/Switch.vue","../../../src/components/Form/DateInput/DateInput.vue","../../../src/components/Form/FileInput/FileInput.vue","../../../src/components/Form/ButtonGroup/ButtonGroup.vue","../../../src/components/Form/index.ts"],"sourcesContent":["<template>\r\n <el-form\r\n ref=\"formRef\"\r\n v-model=\"model\"\r\n :model=\"model\"\r\n :rules=\"rules\"\r\n :label-width=\"labelWidth\"\r\n :disabled=\"disabled\"\r\n >\r\n <el-row :gutter=\"16\">\r\n <slot></slot>\r\n </el-row>\r\n </el-form>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { provide, useTemplateRef } from 'vue'\r\nimport { ElForm, ElRow } from 'element-plus'\r\nimport { type FormProps, type FormExpose, formContextKey } from './Form'\r\n\r\ndefineOptions({ name: 'OForm' })\r\n\r\nconst {\r\n rules,\r\n itemSpan = 8,\r\n itemLabelWidth: labelWidth = 'auto',\r\n disabled = false\r\n} = defineProps<FormProps>()\r\nconst model = defineModel<Record<string, any>>()\r\n\r\nconst formRef = useTemplateRef('formRef')\r\n\r\nconst validate: FormExpose['validate'] = async () => {\r\n return await formRef.value!.validate()\r\n}\r\n\r\ndefineExpose({\r\n validate\r\n})\r\n\r\nprovide(formContextKey, {\r\n model: model.value!,\r\n rules,\r\n itemSpan\r\n})\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-input\r\n v-model=\"itemModel\"\r\n :maxlength=\"maxlength\"\r\n :placeholder=\"placeholder\"\r\n :disabled=\"disabled\"\r\n :readonly=\"readonly\"\r\n />\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { toRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElInput } from 'element-plus'\r\nimport type { StringInputProps } from './StringInput'\r\nimport { useFormContext, useFormSpan, useFormRules } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormString' })\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, disabled, readonly } =\r\n defineProps<StringInputProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-input\r\n v-model=\"itemModel\"\r\n :maxlength=\"maxlength\"\r\n :placeholder=\"placeholder\"\r\n :disabled=\"disabled\"\r\n :readonly=\"readonly\"\r\n type=\"password\"\r\n />\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { toRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElInput } from 'element-plus'\r\nimport type { PasswordInputProps } from './PasswordInput'\r\nimport { useFormContext, useFormSpan, useFormRules } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormPassword' })\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, disabled, readonly } =\r\n defineProps<PasswordInputProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-input\r\n v-model=\"itemModel\"\r\n :maxlength=\"maxlength\"\r\n :placeholder=\"placeholder\"\r\n :disabled=\"disabled\"\r\n :readonly=\"readonly\"\r\n type=\"textarea\"\r\n :rows=\"rows\"\r\n :resize=\"'none'\"\r\n />\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { toRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElInput } from 'element-plus'\r\nimport type { TextareaProps } from './Textarea'\r\nimport { useFormContext, useFormSpan, useFormRules } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormTextarea' })\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, disabled, readonly, rows } =\r\n defineProps<TextareaProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-input\r\n v-if=\"normalizedDisabled\"\r\n :model-value=\"content\"\r\n :placeholder=\"placeholder\"\r\n :disabled=\"true\"\r\n :readonly=\"true\"\r\n />\r\n <el-select\r\n v-else\r\n v-model=\"itemModel\"\r\n :placeholder=\"placeholder\"\r\n :clearable=\"clearable\"\r\n :filterable=\"filterable\"\r\n >\r\n <el-option\r\n v-for=\"codeItem in normalizedCode\"\r\n :key=\"codeItem.value\"\r\n :label=\"codeItem.content\"\r\n :value=\"codeItem.value\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, toRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElInput, ElSelect, ElOption } from 'element-plus'\r\nimport type { SingleSelectProps } from './SingleSelect'\r\nimport {\r\n useFormContext,\r\n useFormSpan,\r\n useFormRules,\r\n useFormDisabled,\r\n useFormCode\r\n} from '../hooks/useForm'\r\nimport { getSingleCodeContent } from '../utils'\r\n\r\ndefineOptions({ name: 'OFormSingleselect' })\r\n\r\nconst { name, label, labelWidth, required, placeholder, clearable, filterable } =\r\n defineProps<SingleSelectProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\nconst normalizedDisabled = useFormDisabled()\r\nconst normalizedCode = useFormCode()\r\nconst content = computed(() => getSingleCodeContent(normalizedCode.value, itemModel.value))\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-input\r\n v-if=\"normalizedDisabled\"\r\n :model-value=\"content\"\r\n :placeholder=\"placeholder\"\r\n :disabled=\"true\"\r\n :readonly=\"true\"\r\n />\r\n <el-select v-else v-model=\"elModel\" :placeholder=\"placeholder\" multiple>\r\n <el-option\r\n v-for=\"codeItem in normalizedCode\"\r\n :key=\"codeItem.value\"\r\n :label=\"codeItem.content\"\r\n :value=\"codeItem.value\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, toRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElInput, ElSelect, ElOption } from 'element-plus'\r\nimport type { MultiSelectProps } from './MultiSelect'\r\nimport {\r\n useFormContext,\r\n useFormSpan,\r\n useFormRules,\r\n useFormDisabled,\r\n useFormCode\r\n} from '../hooks/useForm'\r\nimport { getMultiCodeContent } from '../utils'\r\n\r\ndefineOptions({ name: 'OFormMultiselect' })\r\n\r\nconst { name, label, labelWidth, required, placeholder } = defineProps<MultiSelectProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\nconst normalizedDisabled = useFormDisabled()\r\nconst normalizedCode = useFormCode()\r\nconst content = computed(() => getMultiCodeContent(normalizedCode.value, itemModel.value))\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\nconst elModel = computed<string[]>({\r\n get: () => {\r\n if (!itemModel.value) {\r\n return []\r\n }\r\n return (itemModel.value as string).split(',')\r\n },\r\n set: (newValue) => {\r\n if (!newValue) {\r\n itemModel.value = ''\r\n } else {\r\n itemModel.value = newValue.join(',')\r\n }\r\n }\r\n})\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-radio-group v-model=\"itemModel\" :disabled=\"disabled\">\r\n <el-radio v-for=\"codeItem in normalizedCode\" :key=\"codeItem.value\" :value=\"codeItem.value\">\r\n {{ codeItem.content }}\r\n </el-radio>\r\n </el-radio-group>\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { toRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElRadioGroup, ElRadio } from 'element-plus'\r\nimport type { RadioGroupProps } from './RadioGroup'\r\nimport { useFormContext, useFormSpan, useFormRules, useFormCode } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormRadiogroup' })\r\n\r\nconst { name, label, labelWidth, required, disabled } = defineProps<RadioGroupProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\nconst normalizedCode = useFormCode()\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-checkbox-group v-model=\"elModel\" :disabled=\"disabled\">\r\n <el-checkbox\r\n v-for=\"codeItem in normalizedCode\"\r\n :key=\"codeItem.value\"\r\n :label=\"codeItem.content\"\r\n :value=\"codeItem.value\"\r\n />\r\n </el-checkbox-group>\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, toRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElCheckboxGroup, ElCheckbox } from 'element-plus'\r\nimport type { CheckboxGroupProps } from './CheckboxGroup'\r\nimport { useFormContext, useFormSpan, useFormRules, useFormCode } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormCheckboxgroup' })\r\n\r\nconst { name, label, labelWidth, required, disabled } = defineProps<CheckboxGroupProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\nconst normalizedCode = useFormCode()\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\nconst elModel = computed<string[]>({\r\n get: () => {\r\n if (!itemModel.value) {\r\n return []\r\n }\r\n return (itemModel.value as string).split(',')\r\n },\r\n set: (newValue) => {\r\n if (!newValue) {\r\n itemModel.value = ''\r\n } else {\r\n itemModel.value = newValue.join(',')\r\n }\r\n }\r\n})\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-checkbox\r\n v-model=\"itemModel\"\r\n :disabled=\"disabled\"\r\n true-value=\"1\"\r\n false-value=\"0\"\r\n ></el-checkbox>\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { toRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElCheckbox } from 'element-plus'\r\nimport type { CheckboxProps } from './Checkbox'\r\nimport { useFormContext, useFormSpan, useFormRules } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormCheckbox' })\r\n\r\nconst { name, label, labelWidth, required, disabled } = defineProps<CheckboxProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-switch v-model=\"itemModel\" :disabled=\"disabled\" active-value=\"1\" inactive-value=\"0\" />\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { toRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElSwitch } from 'element-plus'\r\nimport type { SwitchProps } from './Switch'\r\nimport { useFormContext, useFormSpan, useFormRules } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormSwitch' })\r\n\r\nconst { name, label, labelWidth, required, disabled } = defineProps<SwitchProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-time-picker\r\n v-if=\"isTimePicker\"\r\n v-model=\"elModel\"\r\n :placeholder=\"placeholder\"\r\n :disabled=\"disabled\"\r\n :readonly=\"readonly\"\r\n :editable=\"editable\"\r\n :clearable=\"clearable\"\r\n :format=\"normalizedSourceFormat\"\r\n arrow-control\r\n />\r\n <el-date-picker\r\n v-else\r\n v-model=\"elModel\"\r\n :placeholder=\"placeholder\"\r\n :disabled=\"disabled\"\r\n :readonly=\"readonly\"\r\n :editable=\"editable\"\r\n :clearable=\"clearable\"\r\n :type=\"dateType\"\r\n :format=\"normalizedSourceFormat\"\r\n />\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, toRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElDatePicker, ElTimePicker, dayjs } from 'element-plus'\r\nimport type { DateInputProps } from './DateInput'\r\nimport { useFormContext, useFormSpan, useFormRules } from '../hooks/useForm'\r\nimport { isDate, isString } from 'lodash-es'\r\nimport OrionError from '../../../error/OrionError'\r\n\r\ndefineOptions({ name: 'OFormDate' })\r\n\r\nconst {\r\n name,\r\n label,\r\n labelWidth,\r\n required,\r\n placeholder,\r\n disabled,\r\n readonly,\r\n editable,\r\n clearable,\r\n format = 'YYYY-MM-DD',\r\n sourceFormat\r\n} = defineProps<DateInputProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\n\r\nconst isTimePicker = computed(\r\n () =>\r\n format.startsWith('H') ||\r\n format.startsWith('h') ||\r\n format.startsWith('m') ||\r\n format.startsWith('s')\r\n)\r\n\r\nconst normalizedSourceFormat = computed(() => {\r\n if (sourceFormat) {\r\n return sourceFormat\r\n }\r\n if (isTimePicker.value) {\r\n return 'HH:mm:ss'\r\n } else {\r\n return 'YYYY-MM-DD'\r\n }\r\n})\r\n\r\nconst dateType = computed(() => {\r\n let picker: 'date' | 'year' | 'month' | 'datetime' = 'date'\r\n\r\n // 配置年 yyyy指年 YYYY指周年,年末年初的值可能有所变化\r\n if (format.indexOf('y') > -1 || format.indexOf('Y') > -1) {\r\n picker = 'year'\r\n }\r\n\r\n // 配置月,M指月份,m指分钟\r\n if (format.indexOf('M') > -1) {\r\n picker = 'month'\r\n }\r\n\r\n // 配置日,d指星期,D指月的天,DDD指年的天\r\n if (format.indexOf('d') > -1 || format.indexOf('D') > -1) {\r\n picker = 'date'\r\n }\r\n\r\n // 配置小时,H指24小时制(0~23),k指24小时制(1~24),h指12小时制,m指分钟,s指秒,S指小数秒\r\n if (\r\n format.indexOf('H') > -1 ||\r\n format.indexOf('h') > -1 ||\r\n format.indexOf('k') > -1 ||\r\n format.indexOf('m') > -1 ||\r\n format.indexOf('s') > -1 ||\r\n format.indexOf('S') > -1\r\n ) {\r\n picker = 'datetime'\r\n }\r\n\r\n return picker\r\n})\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\nconst modelType = computed(() => {\r\n if (isString(itemModel.value)) {\r\n return 'string'\r\n } else if (isDate(itemModel.value)) {\r\n return 'date'\r\n } else {\r\n throw new OrionError('日期输入框的值只能为字符串或日期类型')\r\n }\r\n})\r\n\r\nconst elModel = computed<Date | undefined>({\r\n get: () => {\r\n if (!itemModel.value) {\r\n return undefined\r\n }\r\n if (modelType.value == 'date') {\r\n return itemModel.value\r\n } else {\r\n const dayjsObj = dayjs(itemModel.value, normalizedSourceFormat.value, true)\r\n if (!dayjsObj.isValid()) {\r\n throw new OrionError(`日期输入框的值无效,不符合${normalizedSourceFormat.value}格式`)\r\n }\r\n return dayjsObj.toDate()\r\n }\r\n },\r\n set: (newValue) => {\r\n if (modelType.value == 'date') {\r\n if (!newValue) {\r\n itemModel.value = undefined\r\n } else {\r\n itemModel.value = newValue\r\n }\r\n } else {\r\n if (!newValue) {\r\n itemModel.value = ''\r\n } else {\r\n itemModel.value = dayjs(newValue).format(normalizedSourceFormat.value)\r\n }\r\n }\r\n }\r\n})\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item\r\n :prop=\"name\"\r\n :label=\"label\"\r\n :label-width=\"labelWidth\"\r\n :required=\"required\"\r\n :rules=\"normalizedRules\"\r\n >\r\n <el-input ref=\"fileRef\" v-model=\"file\" :disabled=\"disabled\" type=\"file\" />\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { onMounted, ref, toRef, useTemplateRef } from 'vue'\r\nimport { ElCol, ElFormItem, ElInput } from 'element-plus'\r\nimport type { FileInputProps } from './FileInput'\r\nimport { useFormContext, useFormSpan, useFormRules } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormFile' })\r\n\r\nconst { name, label, labelWidth, required, disabled } = defineProps<FileInputProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\r\n\r\nconst file = ref('')\r\nconst fileRef = useTemplateRef('fileRef')\r\nonMounted(() => {\r\n fileRef.value!.input!.onchange = (event) => {\r\n //@ts-ignore\r\n itemModel.value = event?.target?.files[0]\r\n }\r\n})\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\" :style=\"style\">\r\n <space :gutter=\"gutter\" style=\"margin-bottom: 18px\"> <slot></slot> </space>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { ElCol } from 'element-plus'\r\nimport type { ButtonGroupProps } from './ButtonGroup'\r\nimport Space from '../../Space'\r\nimport { useFormSpan } from '../hooks/useForm'\r\nimport { computed, CSSProperties } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormButtongroup' })\r\n\r\nconst { gutter, align = 'right' } = defineProps<ButtonGroupProps>()\r\nconst style = computed<CSSProperties>(() => {\r\n return {\r\n textAlign: align\r\n }\r\n})\r\n\r\nconst normalizedSpan = useFormSpan()\r\n</script>\r\n","import { withInstall } from '../_util'\r\n\r\nimport Form from './Form.vue'\r\nimport StringInput from './StringInput/StringInput.vue'\r\nimport PasswordInput from './PasswordInput/PasswordInput.vue'\r\nimport Textarea from './Textarea/Textarea.vue'\r\nimport SingleSelect from './SingleSelect/SingleSelect.vue'\r\nimport MultiSelect from './MultiSelect/MultiSelect.vue'\r\nimport RadioGroup from './RadioGroup/RadioGroup.vue'\r\nimport CheckboxGroup from './CheckboxGroup/CheckboxGroup.vue'\r\nimport Checkbox from './Checkbox/Checkbox.vue'\r\nimport Switch from './Switch/Switch.vue'\r\nimport DateInput from './DateInput/DateInput.vue'\r\nimport FileInput from './FileInput/FileInput.vue'\r\nimport ButtonGroup from './ButtonGroup/ButtonGroup.vue'\r\n\r\nexport default withInstall<\r\n typeof Form,\r\n {\r\n StringInput: typeof StringInput\r\n PasswordInput: typeof PasswordInput\r\n Textarea: typeof Textarea\r\n SingleSelect: typeof SingleSelect\r\n MultiSelect: typeof MultiSelect\r\n RadioGroup: typeof RadioGroup\r\n CheckboxGroup: typeof CheckboxGroup\r\n Checkbox: typeof Checkbox\r\n Switch: typeof Switch\r\n DateInput: typeof DateInput\r\n FileInput: typeof FileInput\r\n ButtonGroup: typeof ButtonGroup\r\n }\r\n>(Form, {\r\n StringInput,\r\n PasswordInput,\r\n Textarea,\r\n SingleSelect,\r\n MultiSelect,\r\n RadioGroup,\r\n CheckboxGroup,\r\n Checkbox,\r\n Switch,\r\n DateInput,\r\n FileInput,\r\n ButtonGroup\r\n})\r\n\r\nexport * from './Form'\r\nexport * from './StringInput'\r\nexport * from './PasswordInput'\r\nexport * from './Textarea'\r\nexport * from './SingleSelect'\r\nexport * from './MultiSelect'\r\nexport * from './RadioGroup'\r\nexport * from './CheckboxGroup'\r\nexport * from './Checkbox'\r\nexport * from './Switch'\r\nexport * from './DateInput'\r\nexport * from './FileInput'\r\nexport * from './ButtonGroup'\r\n"],"names":["model","_useModel","__props","formRef","useTemplateRef","__expose","provide","formContextKey","normalizedSpan","useFormSpan","normalizedRules","useFormRules","formContext","useFormContext","itemModel","toRef","normalizedDisabled","useFormDisabled","normalizedCode","useFormCode","content","computed","getSingleCodeContent","getMultiCodeContent","elModel","newValue","isTimePicker","normalizedSourceFormat","dateType","picker","modelType","isString","isDate","OrionError","dayjsObj","dayjs","file","ref","fileRef","onMounted","event","_a","style","index","withInstall","Form","StringInput","PasswordInput","Textarea","SingleSelect","MultiSelect","RadioGroup","CheckboxGroup","Checkbox","Switch","DateInput","FileInput","ButtonGroup"],"mappings":"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"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare const getSingleCodeContent: (options: Array<{
|
2
|
+
value: string;
|
3
|
+
content: string;
|
4
|
+
}>, curValue: string) => string | null;
|
5
|
+
export declare const getMultiCodeContent: (options: Array<{
|
6
|
+
value: string;
|
7
|
+
content: string;
|
8
|
+
}>, curValue: string) => string | null;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
const d = (e, n) => {
|
2
|
+
if (!n)
|
3
|
+
return null;
|
4
|
+
for (let t = 0; t < e.length; t++) {
|
5
|
+
const { value: r, content: o } = e[t];
|
6
|
+
if (r == n)
|
7
|
+
return o;
|
8
|
+
}
|
9
|
+
return n + "(?)";
|
10
|
+
}, c = (e, n) => {
|
11
|
+
if (!n)
|
12
|
+
return null;
|
13
|
+
let t = "";
|
14
|
+
const r = n.split(",");
|
15
|
+
return r.forEach((o, f) => {
|
16
|
+
const i = e.findIndex((l) => {
|
17
|
+
if (l.value == o) return !0;
|
18
|
+
});
|
19
|
+
i == -1 ? t += `${o}(?)` : t += e[i].content, f != r.length - 1 && (t += ",");
|
20
|
+
}), t;
|
21
|
+
};
|
22
|
+
export {
|
23
|
+
c as getMultiCodeContent,
|
24
|
+
d as getSingleCodeContent
|
25
|
+
};
|
26
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Form/utils/index.ts"],"sourcesContent":["export const getSingleCodeContent = (\r\n options: Array<{\r\n value: string\r\n content: string\r\n }>,\r\n curValue: string\r\n) => {\r\n if (!curValue) {\r\n return null\r\n }\r\n\r\n for (let i = 0; i < options.length; i++) {\r\n const { value, content } = options[i]\r\n if (value == curValue) {\r\n return content\r\n }\r\n }\r\n\r\n return curValue + '(?)'\r\n}\r\n\r\nexport const getMultiCodeContent = (\r\n options: Array<{\r\n value: string\r\n content: string\r\n }>,\r\n curValue: string\r\n) => {\r\n if (!curValue) {\r\n return null\r\n }\r\n\r\n let content = ''\r\n\r\n const data = curValue.split(',')\r\n data.forEach((selectValue, valueIndex) => {\r\n const index = options.findIndex((item) => {\r\n if (item.value == selectValue) return true\r\n })\r\n\r\n if (index == -1) {\r\n content += `${selectValue}(?)`\r\n } else {\r\n content += options[index].content\r\n }\r\n\r\n if (valueIndex != data.length - 1) {\r\n content += ','\r\n }\r\n })\r\n\r\n return content\r\n}\r\n"],"names":["getSingleCodeContent","options","curValue","i","value","content","getMultiCodeContent","data","selectValue","valueIndex","index","item"],"mappings":"AAAa,MAAAA,IAAuB,CAClCC,GAIAC,MACG;AACH,MAAI,CAACA;AACI,WAAA;AAGT,WAASC,IAAI,GAAGA,IAAIF,EAAQ,QAAQE,KAAK;AACvC,UAAM,EAAE,OAAAC,GAAO,SAAAC,EAAQ,IAAIJ,EAAQE,CAAC;AACpC,QAAIC,KAASF;AACJ,aAAAG;AAAA,EAEX;AAEA,SAAOH,IAAW;AACpB,GAEaI,IAAsB,CACjCL,GAIAC,MACG;AACH,MAAI,CAACA;AACI,WAAA;AAGT,MAAIG,IAAU;AAER,QAAAE,IAAOL,EAAS,MAAM,GAAG;AAC1B,SAAAK,EAAA,QAAQ,CAACC,GAAaC,MAAe;AACxC,UAAMC,IAAQT,EAAQ,UAAU,CAACU,MAAS;AACpC,UAAAA,EAAK,SAASH,EAAoB,QAAA;AAAA,IAAA,CACvC;AAED,IAAIE,KAAS,KACXL,KAAW,GAAGG,CAAW,QAEdH,KAAAJ,EAAQS,CAAK,EAAE,SAGxBD,KAAcF,EAAK,SAAS,MACnBF,KAAA;AAAA,EACb,CACD,GAEMA;AACT;"}
|
@@ -1,15 +1,2 @@
|
|
1
|
-
import
|
2
|
-
declare const _default: {
|
3
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<{}> & Readonly<{}>, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
4
|
-
P: {};
|
5
|
-
B: {};
|
6
|
-
D: {};
|
7
|
-
C: {};
|
8
|
-
M: {};
|
9
|
-
Defaults: {};
|
10
|
-
}, Readonly<{}> & Readonly<{}>, () => any, {}, {}, {}, {}>;
|
11
|
-
__isFragment?: never;
|
12
|
-
__isTeleport?: never;
|
13
|
-
__isSuspense?: never;
|
14
|
-
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Plugin;
|
1
|
+
declare const _default: import('../_util').SFCWithInstall<import('vue').DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {};
|
15
2
|
export default _default;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { inject } from
|
2
|
-
|
3
|
-
|
4
|
-
const $$Modal = inject('$$Modal');
|
5
|
-
return $$Modal;
|
1
|
+
import { inject as o } from "vue";
|
2
|
+
function $() {
|
3
|
+
return o("$$Modal");
|
6
4
|
}
|
7
|
-
|
8
|
-
|
5
|
+
export {
|
6
|
+
$ as default
|
7
|
+
};
|
8
|
+
//# sourceMappingURL=useModal.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useModal.js","sources":["../../../src/components/Modal/useModal.ts"],"sourcesContent":["import { inject } from 'vue'\r\n\r\nexport default function useModal() {\r\n const $$Modal = inject<{\r\n close: (params: Record<string, any>) => void\r\n }>('$$Modal')\r\n return $$Modal\r\n}\r\n"],"names":["useModal","inject"],"mappings":";AAEA,SAAwBA,IAAW;AAI1B,SAHSC,EAEb,SAAS;AAEd;"}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
export declare const pagetableProps: () => {
|
3
|
+
data: {
|
4
|
+
type: PropType<any[]>;
|
5
|
+
default: any[];
|
6
|
+
};
|
7
|
+
pagination: {
|
8
|
+
type: PropType<{
|
9
|
+
currentPage?: number;
|
10
|
+
pageSize?: number;
|
11
|
+
total?: number;
|
12
|
+
}>;
|
13
|
+
default: {
|
14
|
+
currentPage?: number;
|
15
|
+
pageSize?: number;
|
16
|
+
total?: number;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
showRowNumber: {
|
20
|
+
type: BooleanConstructor;
|
21
|
+
default: boolean;
|
22
|
+
};
|
23
|
+
selectionMode: {
|
24
|
+
type: BooleanConstructor;
|
25
|
+
default: boolean;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
export type PagetableProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableProps>>>;
|
29
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
30
|
+
data: {
|
31
|
+
type: PropType<any[]>;
|
32
|
+
default: any[];
|
33
|
+
};
|
34
|
+
pagination: {
|
35
|
+
type: PropType<{
|
36
|
+
currentPage?: number;
|
37
|
+
pageSize?: number;
|
38
|
+
total?: number;
|
39
|
+
}>;
|
40
|
+
default: {
|
41
|
+
currentPage?: number;
|
42
|
+
pageSize?: number;
|
43
|
+
total?: number;
|
44
|
+
};
|
45
|
+
};
|
46
|
+
showRowNumber: {
|
47
|
+
type: BooleanConstructor;
|
48
|
+
default: boolean;
|
49
|
+
};
|
50
|
+
selectionMode: {
|
51
|
+
type: BooleanConstructor;
|
52
|
+
default: boolean;
|
53
|
+
};
|
54
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "selectionChange"[], "selectionChange", import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
55
|
+
data: {
|
56
|
+
type: PropType<any[]>;
|
57
|
+
default: any[];
|
58
|
+
};
|
59
|
+
pagination: {
|
60
|
+
type: PropType<{
|
61
|
+
currentPage?: number;
|
62
|
+
pageSize?: number;
|
63
|
+
total?: number;
|
64
|
+
}>;
|
65
|
+
default: {
|
66
|
+
currentPage?: number;
|
67
|
+
pageSize?: number;
|
68
|
+
total?: number;
|
69
|
+
};
|
70
|
+
};
|
71
|
+
showRowNumber: {
|
72
|
+
type: BooleanConstructor;
|
73
|
+
default: boolean;
|
74
|
+
};
|
75
|
+
selectionMode: {
|
76
|
+
type: BooleanConstructor;
|
77
|
+
default: boolean;
|
78
|
+
};
|
79
|
+
}>> & Readonly<{
|
80
|
+
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
81
|
+
}>, {
|
82
|
+
data: any[];
|
83
|
+
pagination: {
|
84
|
+
currentPage?: number;
|
85
|
+
pageSize?: number;
|
86
|
+
total?: number;
|
87
|
+
};
|
88
|
+
showRowNumber: boolean;
|
89
|
+
selectionMode: boolean;
|
90
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
91
|
+
export default _default;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
export declare const pagetableCellButtonProps: () => {
|
3
|
+
type: {
|
4
|
+
type: PropType<"primary">;
|
5
|
+
default: "primary";
|
6
|
+
};
|
7
|
+
};
|
8
|
+
export type PagetableCellButtonProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableCellButtonProps>>>;
|
9
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
10
|
+
type: {
|
11
|
+
type: PropType<"primary">;
|
12
|
+
default: "primary";
|
13
|
+
};
|
14
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
15
|
+
type: {
|
16
|
+
type: PropType<"primary">;
|
17
|
+
default: "primary";
|
18
|
+
};
|
19
|
+
}>> & Readonly<{
|
20
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
21
|
+
}>, {
|
22
|
+
type: "primary";
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
24
|
+
export default _default;
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
import { CustomSlotsType } from '../../_util/type';
|
3
|
+
import { FixedType } from '../interface';
|
4
|
+
export declare const pagetableColumnButtongroupProps: () => {
|
5
|
+
head: {
|
6
|
+
type: PropType<string>;
|
7
|
+
default: string;
|
8
|
+
};
|
9
|
+
headAlign: {
|
10
|
+
type: PropType<"center" | "left" | "right">;
|
11
|
+
default: "center" | "left" | "right";
|
12
|
+
};
|
13
|
+
name: {
|
14
|
+
type: PropType<string>;
|
15
|
+
default: string;
|
16
|
+
};
|
17
|
+
width: {
|
18
|
+
type: PropType<string | boolean>;
|
19
|
+
default: string | boolean;
|
20
|
+
};
|
21
|
+
fixed: {
|
22
|
+
type: PropType<FixedType>;
|
23
|
+
default: FixedType;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
export type PagetableColumnButtongroupProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnButtongroupProps>>>;
|
27
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
28
|
+
head: {
|
29
|
+
type: PropType<string>;
|
30
|
+
default: string;
|
31
|
+
};
|
32
|
+
headAlign: {
|
33
|
+
type: PropType<"center" | "left" | "right">;
|
34
|
+
default: "center" | "left" | "right";
|
35
|
+
};
|
36
|
+
name: {
|
37
|
+
type: PropType<string>;
|
38
|
+
default: string;
|
39
|
+
};
|
40
|
+
width: {
|
41
|
+
type: PropType<string | boolean>;
|
42
|
+
default: string | boolean;
|
43
|
+
};
|
44
|
+
fixed: {
|
45
|
+
type: PropType<FixedType>;
|
46
|
+
default: FixedType;
|
47
|
+
};
|
48
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
49
|
+
head: {
|
50
|
+
type: PropType<string>;
|
51
|
+
default: string;
|
52
|
+
};
|
53
|
+
headAlign: {
|
54
|
+
type: PropType<"center" | "left" | "right">;
|
55
|
+
default: "center" | "left" | "right";
|
56
|
+
};
|
57
|
+
name: {
|
58
|
+
type: PropType<string>;
|
59
|
+
default: string;
|
60
|
+
};
|
61
|
+
width: {
|
62
|
+
type: PropType<string | boolean>;
|
63
|
+
default: string | boolean;
|
64
|
+
};
|
65
|
+
fixed: {
|
66
|
+
type: PropType<FixedType>;
|
67
|
+
default: FixedType;
|
68
|
+
};
|
69
|
+
}>> & Readonly<{}>, {
|
70
|
+
fixed: FixedType;
|
71
|
+
head: string;
|
72
|
+
width: string | boolean;
|
73
|
+
name: string;
|
74
|
+
headAlign: "center" | "left" | "right";
|
75
|
+
}, CustomSlotsType<{
|
76
|
+
default: any;
|
77
|
+
}>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
78
|
+
export default _default;
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
import { FixedType } from '../interface';
|
3
|
+
export declare const pagetableColumnDateProps: () => {
|
4
|
+
head: {
|
5
|
+
type: PropType<string>;
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
headAlign: {
|
9
|
+
type: PropType<"center" | "left" | "right">;
|
10
|
+
default: "center" | "left" | "right";
|
11
|
+
};
|
12
|
+
name: {
|
13
|
+
type: PropType<string>;
|
14
|
+
default: string;
|
15
|
+
};
|
16
|
+
width: {
|
17
|
+
type: PropType<string | boolean>;
|
18
|
+
default: string | boolean;
|
19
|
+
};
|
20
|
+
fixed: {
|
21
|
+
type: PropType<FixedType>;
|
22
|
+
default: FixedType;
|
23
|
+
};
|
24
|
+
format: {
|
25
|
+
type: PropType<string>;
|
26
|
+
default: string;
|
27
|
+
};
|
28
|
+
sourceFormat: {
|
29
|
+
type: PropType<string>;
|
30
|
+
default: string;
|
31
|
+
};
|
32
|
+
};
|
33
|
+
export type PagetableColumnDateProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnDateProps>>>;
|
34
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
35
|
+
head: {
|
36
|
+
type: PropType<string>;
|
37
|
+
default: string;
|
38
|
+
};
|
39
|
+
headAlign: {
|
40
|
+
type: PropType<"center" | "left" | "right">;
|
41
|
+
default: "center" | "left" | "right";
|
42
|
+
};
|
43
|
+
name: {
|
44
|
+
type: PropType<string>;
|
45
|
+
default: string;
|
46
|
+
};
|
47
|
+
width: {
|
48
|
+
type: PropType<string | boolean>;
|
49
|
+
default: string | boolean;
|
50
|
+
};
|
51
|
+
fixed: {
|
52
|
+
type: PropType<FixedType>;
|
53
|
+
default: FixedType;
|
54
|
+
};
|
55
|
+
format: {
|
56
|
+
type: PropType<string>;
|
57
|
+
default: string;
|
58
|
+
};
|
59
|
+
sourceFormat: {
|
60
|
+
type: PropType<string>;
|
61
|
+
default: string;
|
62
|
+
};
|
63
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
64
|
+
head: {
|
65
|
+
type: PropType<string>;
|
66
|
+
default: string;
|
67
|
+
};
|
68
|
+
headAlign: {
|
69
|
+
type: PropType<"center" | "left" | "right">;
|
70
|
+
default: "center" | "left" | "right";
|
71
|
+
};
|
72
|
+
name: {
|
73
|
+
type: PropType<string>;
|
74
|
+
default: string;
|
75
|
+
};
|
76
|
+
width: {
|
77
|
+
type: PropType<string | boolean>;
|
78
|
+
default: string | boolean;
|
79
|
+
};
|
80
|
+
fixed: {
|
81
|
+
type: PropType<FixedType>;
|
82
|
+
default: FixedType;
|
83
|
+
};
|
84
|
+
format: {
|
85
|
+
type: PropType<string>;
|
86
|
+
default: string;
|
87
|
+
};
|
88
|
+
sourceFormat: {
|
89
|
+
type: PropType<string>;
|
90
|
+
default: string;
|
91
|
+
};
|
92
|
+
}>> & Readonly<{}>, {
|
93
|
+
fixed: FixedType;
|
94
|
+
head: string;
|
95
|
+
width: string | boolean;
|
96
|
+
name: string;
|
97
|
+
format: string;
|
98
|
+
headAlign: "center" | "left" | "right";
|
99
|
+
sourceFormat: string;
|
100
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
101
|
+
export default _default;
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
import { CustomSlotsType } from '../../_util/type';
|
3
|
+
import { FixedType } from '../interface';
|
4
|
+
export declare const pagetableColumnDiyProps: () => {
|
5
|
+
head: {
|
6
|
+
type: PropType<string>;
|
7
|
+
default: string;
|
8
|
+
};
|
9
|
+
headAlign: {
|
10
|
+
type: PropType<"center" | "left" | "right">;
|
11
|
+
default: "center" | "left" | "right";
|
12
|
+
};
|
13
|
+
name: {
|
14
|
+
type: PropType<string>;
|
15
|
+
default: string;
|
16
|
+
};
|
17
|
+
width: {
|
18
|
+
type: PropType<string | boolean>;
|
19
|
+
default: string | boolean;
|
20
|
+
};
|
21
|
+
fixed: {
|
22
|
+
type: PropType<FixedType>;
|
23
|
+
default: FixedType;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
export type PagetableColumnDiyProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnDiyProps>>>;
|
27
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
28
|
+
head: {
|
29
|
+
type: PropType<string>;
|
30
|
+
default: string;
|
31
|
+
};
|
32
|
+
headAlign: {
|
33
|
+
type: PropType<"center" | "left" | "right">;
|
34
|
+
default: "center" | "left" | "right";
|
35
|
+
};
|
36
|
+
name: {
|
37
|
+
type: PropType<string>;
|
38
|
+
default: string;
|
39
|
+
};
|
40
|
+
width: {
|
41
|
+
type: PropType<string | boolean>;
|
42
|
+
default: string | boolean;
|
43
|
+
};
|
44
|
+
fixed: {
|
45
|
+
type: PropType<FixedType>;
|
46
|
+
default: FixedType;
|
47
|
+
};
|
48
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
49
|
+
head: {
|
50
|
+
type: PropType<string>;
|
51
|
+
default: string;
|
52
|
+
};
|
53
|
+
headAlign: {
|
54
|
+
type: PropType<"center" | "left" | "right">;
|
55
|
+
default: "center" | "left" | "right";
|
56
|
+
};
|
57
|
+
name: {
|
58
|
+
type: PropType<string>;
|
59
|
+
default: string;
|
60
|
+
};
|
61
|
+
width: {
|
62
|
+
type: PropType<string | boolean>;
|
63
|
+
default: string | boolean;
|
64
|
+
};
|
65
|
+
fixed: {
|
66
|
+
type: PropType<FixedType>;
|
67
|
+
default: FixedType;
|
68
|
+
};
|
69
|
+
}>> & Readonly<{}>, {
|
70
|
+
fixed: FixedType;
|
71
|
+
head: string;
|
72
|
+
width: string | boolean;
|
73
|
+
name: string;
|
74
|
+
headAlign: "center" | "left" | "right";
|
75
|
+
}, CustomSlotsType<{
|
76
|
+
default: any;
|
77
|
+
}>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
78
|
+
export default _default;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const pagetableColumnIndexProps: () => {};
|
3
|
+
export type PagetableColumnIndexProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnIndexProps>>>;
|
4
|
+
declare const _default: import('vue').DefineComponent<{}, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
5
|
+
export default _default;
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
import { FixedType } from '../interface';
|
3
|
+
export declare const pagetableColumnMultiselectProps: () => {
|
4
|
+
head: {
|
5
|
+
type: PropType<string>;
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
headAlign: {
|
9
|
+
type: PropType<"center" | "left" | "right">;
|
10
|
+
default: "center" | "left" | "right";
|
11
|
+
};
|
12
|
+
name: {
|
13
|
+
type: PropType<string>;
|
14
|
+
default: string;
|
15
|
+
};
|
16
|
+
width: {
|
17
|
+
type: PropType<string | boolean>;
|
18
|
+
default: string | boolean;
|
19
|
+
};
|
20
|
+
fixed: {
|
21
|
+
type: PropType<FixedType>;
|
22
|
+
default: FixedType;
|
23
|
+
};
|
24
|
+
code: {
|
25
|
+
type: PropType<string | {
|
26
|
+
value: string;
|
27
|
+
content: string;
|
28
|
+
}[]>;
|
29
|
+
default: string | {
|
30
|
+
value: string;
|
31
|
+
content: string;
|
32
|
+
}[];
|
33
|
+
};
|
34
|
+
};
|
35
|
+
export type PagetableColumnMultiselectProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnMultiselectProps>>>;
|
36
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
37
|
+
head: {
|
38
|
+
type: PropType<string>;
|
39
|
+
default: string;
|
40
|
+
};
|
41
|
+
headAlign: {
|
42
|
+
type: PropType<"center" | "left" | "right">;
|
43
|
+
default: "center" | "left" | "right";
|
44
|
+
};
|
45
|
+
name: {
|
46
|
+
type: PropType<string>;
|
47
|
+
default: string;
|
48
|
+
};
|
49
|
+
width: {
|
50
|
+
type: PropType<string | boolean>;
|
51
|
+
default: string | boolean;
|
52
|
+
};
|
53
|
+
fixed: {
|
54
|
+
type: PropType<FixedType>;
|
55
|
+
default: FixedType;
|
56
|
+
};
|
57
|
+
code: {
|
58
|
+
type: PropType<string | {
|
59
|
+
value: string;
|
60
|
+
content: string;
|
61
|
+
}[]>;
|
62
|
+
default: string | {
|
63
|
+
value: string;
|
64
|
+
content: string;
|
65
|
+
}[];
|
66
|
+
};
|
67
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
68
|
+
head: {
|
69
|
+
type: PropType<string>;
|
70
|
+
default: string;
|
71
|
+
};
|
72
|
+
headAlign: {
|
73
|
+
type: PropType<"center" | "left" | "right">;
|
74
|
+
default: "center" | "left" | "right";
|
75
|
+
};
|
76
|
+
name: {
|
77
|
+
type: PropType<string>;
|
78
|
+
default: string;
|
79
|
+
};
|
80
|
+
width: {
|
81
|
+
type: PropType<string | boolean>;
|
82
|
+
default: string | boolean;
|
83
|
+
};
|
84
|
+
fixed: {
|
85
|
+
type: PropType<FixedType>;
|
86
|
+
default: FixedType;
|
87
|
+
};
|
88
|
+
code: {
|
89
|
+
type: PropType<string | {
|
90
|
+
value: string;
|
91
|
+
content: string;
|
92
|
+
}[]>;
|
93
|
+
default: string | {
|
94
|
+
value: string;
|
95
|
+
content: string;
|
96
|
+
}[];
|
97
|
+
};
|
98
|
+
}>> & Readonly<{}>, {
|
99
|
+
fixed: FixedType;
|
100
|
+
code: string | {
|
101
|
+
value: string;
|
102
|
+
content: string;
|
103
|
+
}[];
|
104
|
+
head: string;
|
105
|
+
width: string | boolean;
|
106
|
+
name: string;
|
107
|
+
headAlign: "center" | "left" | "right";
|
108
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
109
|
+
export default _default;
|