orion-design 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Throne/index.d.ts +10 -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 +15 -1
- package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +4 -0
- package/dist/components/Button/ButtonGroup/ButtonGroup.js +2 -0
- package/dist/components/Button/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/components/Button/ButtonGroup/ButtonGroup.vue.d.ts +17 -0
- package/dist/components/Button/ButtonGroup/index.d.ts +1 -0
- package/dist/components/Button/ButtonGroup/index.js +2 -0
- package/dist/components/Button/ButtonGroup/index.js.map +1 -0
- package/dist/components/Button/index.d.ts +21 -4
- package/dist/components/Button/index.js +37 -19
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Form/ButtonGroup/ButtonGroup.d.ts +5 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.js +2 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.vue.d.ts +17 -0
- package/dist/components/Form/ButtonGroup/index.d.ts +1 -0
- package/dist/components/Form/ButtonGroup/index.js +2 -0
- package/dist/components/Form/ButtonGroup/index.js.map +1 -0
- package/dist/components/Form/Checkbox/Checkbox.d.ts +9 -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/DiyItem/DiyItem.d.ts +9 -0
- package/dist/components/Form/DiyItem/DiyItem.js +2 -0
- package/dist/components/Form/DiyItem/DiyItem.js.map +1 -0
- package/dist/components/Form/DiyItem/DiyItem.vue.d.ts +17 -0
- package/dist/components/Form/DiyItem/index.d.ts +1 -0
- package/dist/components/Form/DiyItem/index.js +2 -0
- package/dist/components/Form/DiyItem/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 +1 -0
- package/dist/components/Form/Form.js.map +1 -1
- package/dist/components/Form/Form.vue.d.ts +10 -10
- package/dist/components/Form/MultiSelect/MultiSelect.d.ts +15 -0
- package/dist/components/Form/MultiSelect/MultiSelect.js +2 -0
- package/dist/components/Form/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/components/Form/MultiSelect/MultiSelect.vue.d.ts +3 -0
- package/dist/components/Form/MultiSelect/index.d.ts +1 -0
- package/dist/components/Form/MultiSelect/index.js +2 -0
- package/dist/components/Form/MultiSelect/index.js.map +1 -0
- package/dist/components/Form/PasswordInput/PasswordInput.d.ts +0 -2
- package/dist/components/Form/RadioGroup/RadioGroup.d.ts +14 -0
- package/dist/components/Form/RadioGroup/RadioGroup.js +2 -0
- package/dist/components/Form/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/Form/RadioGroup/RadioGroup.vue.d.ts +3 -0
- package/dist/components/Form/RadioGroup/index.d.ts +1 -0
- package/dist/components/Form/RadioGroup/index.js +2 -0
- package/dist/components/Form/RadioGroup/index.js.map +1 -0
- package/dist/components/Form/SingleSelect/SingleSelect.d.ts +17 -0
- package/dist/components/Form/SingleSelect/SingleSelect.js +2 -0
- package/dist/components/Form/SingleSelect/SingleSelect.js.map +1 -0
- package/dist/components/Form/SingleSelect/SingleSelect.vue.d.ts +3 -0
- package/dist/components/Form/SingleSelect/index.d.ts +1 -0
- package/dist/components/Form/SingleSelect/index.js +2 -0
- package/dist/components/Form/SingleSelect/index.js.map +1 -0
- package/dist/components/Form/StringInput/StringInput.d.ts +0 -2
- package/dist/components/Form/Switch/Switch.d.ts +9 -0
- package/dist/components/Form/Switch/Switch.js +2 -0
- package/dist/components/Form/Switch/Switch.js.map +1 -0
- package/dist/components/Form/Switch/Switch.vue.d.ts +3 -0
- package/dist/components/Form/Switch/index.d.ts +1 -0
- package/dist/components/Form/Switch/index.js +2 -0
- package/dist/components/Form/Switch/index.js.map +1 -0
- package/dist/components/Form/Textarea/Textarea.d.ts +0 -2
- package/dist/components/Form/hooks/useForm.d.ts +5 -3
- package/dist/components/Form/hooks/useForm.js +40 -17
- package/dist/components/Form/hooks/useForm.js.map +1 -1
- package/dist/components/Form/index.d.ts +37 -6
- package/dist/components/Form/index.js +612 -100
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Form/utils/index.d.ts +8 -0
- package/dist/components/Form/utils/index.js +26 -0
- package/dist/components/Form/utils/index.js.map +1 -0
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Pagetable/Pagetable.d.ts +29 -17
- package/dist/components/Pagetable/columns/PagetableCellButton.d.ts +24 -0
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +78 -0
- package/dist/components/Pagetable/columns/{PagetableDatecolumn.d.ts → PagetableColumnDate.d.ts} +17 -4
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +78 -0
- package/dist/components/Pagetable/columns/PagetableColumnIndex.d.ts +5 -0
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +109 -0
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +114 -0
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +109 -0
- package/dist/components/Pagetable/columns/{PagetableStringcolumn.d.ts → PagetableColumnString.d.ts} +17 -4
- package/dist/components/Pagetable/columns/PagetableColumngroup.d.ts +35 -0
- package/dist/components/Pagetable/hooks/useColumns.d.ts +1 -0
- package/dist/components/Pagetable/hooks/useColumns.js +96 -0
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -0
- package/dist/components/Pagetable/index.d.ts +42 -17
- package/dist/components/Pagetable/index.js +496 -119
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Pagetable/utils/index.d.ts +15 -0
- package/dist/components/Pagetable/utils/index.js +169 -0
- package/dist/components/Pagetable/utils/index.js.map +1 -0
- package/dist/components/Space/index.d.ts +3 -3
- package/dist/components/_util/type.d.ts +4 -0
- package/dist/components/_util/type.js +8 -4
- package/dist/components/_util/type.js.map +1 -1
- package/dist/components/_util/vue/size.d.ts +1 -1
- package/dist/components/components.js +15 -14
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +20 -19
- package/dist/components/index.js.map +1 -1
- package/dist/components/types.d.ts +11 -0
- package/dist/components/types.js +2 -0
- package/dist/components/types.js.map +1 -0
- package/dist/components-CutWiB7Q.js +68 -0
- package/dist/components-CutWiB7Q.js.map +1 -0
- package/dist/index-BbsXWo7C.js +44 -0
- package/dist/index-BbsXWo7C.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +22 -19
- package/dist/index.js.map +1 -1
- package/dist/utils/md5.js +77 -79
- package/dist/utils/md5.js.map +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +7 -3
- package/dist/components-BZukhWDk.js +0 -106
- package/dist/components-BZukhWDk.js.map +0 -1
- package/dist/utils/vue/install.d.ts +0 -6
- package/dist/utils/vue/install.js +0 -21
- package/dist/utils/vue/install.js.map +0 -1
- package/dist/utils/vue/typescript.d.ts +0 -5
- package/dist/utils/vue/typescript.js +0 -2
- package/dist/utils/vue/typescript.js.map +0 -1
@@ -1 +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/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 :input-style=\"style\"\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, 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, style } =\r\n defineProps<StringInputProps>()\r\nconst normalizedSpan = computed(() => {\r\n return useFormSpan()\r\n})\r\nconst normalizedRules = computed(() => {\r\n return useFormRules()\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\">\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 :input-style=\"style\"\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 { computed, 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, style } =\r\n defineProps<PasswordInputProps>()\r\nconst normalizedSpan = computed(() => {\r\n return useFormSpan()\r\n})\r\nconst normalizedRules = computed(() => {\r\n return useFormRules()\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\">\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 :input-style=\"style\"\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 { computed, 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 {\r\n name,\r\n label,\r\n labelWidth,\r\n required,\r\n maxlength,\r\n placeholder,\r\n disabled,\r\n readonly,\r\n style,\r\n rows\r\n} = defineProps<TextareaProps>()\r\nconst normalizedSpan = computed(() => {\r\n return useFormSpan()\r\n})\r\nconst normalizedRules = computed(() => {\r\n return useFormRules()\r\n})\r\n\r\nconst formContext = useFormContext()!\r\nconst itemModel = toRef(formContext.model, name)\r\n</script>\r\n","import { withInstall } from '../../utils/vue/install'\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\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 }\r\n>(Form, {\r\n StringInput,\r\n PasswordInput,\r\n Textarea\r\n})\r\n\r\nexport * from './Form'\r\nexport * from './StringInput'\r\nexport * from './PasswordInput'\r\n"],"names":["model","_useModel","__props","formRef","useTemplateRef","__expose","provide","formContextKey","normalizedSpan","computed","useFormSpan","normalizedRules","useFormRules","formContext","useFormContext","itemModel","toRef","index","withInstall","Form","StringInput","PasswordInput","Textarea"],"mappings":";;;;;;;;;;;;;;;;;;;AA4BM,UAAAA,IAAQC,EAAgCC,GAAA,YAAC,GAEzCC,IAAUC,EAAe,SAAS;AAM3B,WAAAC,EAAA;AAAA,MACX,UALuC,YAChC,MAAMF,EAAQ,MAAO;IAI5B,CACD,GAEDG,EAAQC,GAAgB;AAAA,MACtB,OAAOP,EAAM;AAAA,MACb,OAAIE,EAAA;AAAA,MACJ,UAAOA,EAAA;AAAA,IAAA,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbK,UAAAM,IAAiBC,EAAS,MACvBC,EAAY,CACpB,GACKC,IAAkBF,EAAS,MACxBG,EAAa,CACrB,GAEKC,IAAcC,KACdC,IAAYC,EAAMH,EAAY,OAAOX,EAAA,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPzC,UAAAM,IAAiBC,EAAS,MACvBC,EAAY,CACpB,GACKC,IAAkBF,EAAS,MACxBG,EAAa,CACrB,GAEKC,IAAcC,KACdC,IAAYC,EAAMH,EAAY,OAAOX,EAAA,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACIzC,UAAAM,IAAiBC,EAAS,MACvBC,EAAY,CACpB,GACKC,IAAkBF,EAAS,MACxBG,EAAa,CACrB,GAEKC,IAAcC,KACdC,IAAYC,EAAMH,EAAY,OAAOX,EAAA,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IC7ChCe,IAAAC,EAObC,GAAM;AAAA,EAAA,aACNC;AAAAA,EAAA,eACAC;AAAAA,EAAA,UACAC;AACF,CAAC;"}
|
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/DiyItem/DiyItem.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=\"itemLabelWidth\"\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, reactive, toRef, 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 { rules, itemSpan = 6, itemLabelWidth = 'auto', disabled = false } = 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(\r\n formContextKey,\r\n reactive({\r\n model: model.value!,\r\n rules: toRef(() => rules),\r\n itemSpan: toRef(() => itemSpan),\r\n disabled: toRef(() => disabled)\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\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', extendOptions: { trigger: 'blur' } })\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', extendOptions: { trigger: 'blur' } })\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', extendOptions: { trigger: 'blur' } })\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', extendOptions: {} })\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', extendOptions: {} })\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', extendOptions: {} })\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', extendOptions: {} })\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 :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :rules=\"rules\">\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 } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormCheckbox', extendOptions: {} })\r\n\r\nconst { name, label, labelWidth, rules, disabled } = defineProps<CheckboxProps>()\r\nconst normalizedSpan = useFormSpan()\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 :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :rules=\"rules\">\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 } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormSwitch', extendOptions: {} })\r\n\r\nconst { name, label, labelWidth, rules, disabled } = defineProps<SwitchProps>()\r\nconst normalizedSpan = useFormSpan()\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 style=\"width: 100%\"\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 style=\"width: 100%\"\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', extendOptions: { trigger: 'blur' } })\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', extendOptions: {} })\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","<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 <slot></slot>\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { ElCol, ElFormItem } from 'element-plus'\r\nimport type { DiyItemProps } from './DiyItem'\r\nimport { useFormSpan, useFormRules } from '../hooks/useForm'\r\n\r\ndefineOptions({ name: 'OFormDiy', extendOptions: {} })\r\n\r\nconst { name, label, labelWidth, required } = defineProps<DiyItemProps>()\r\nconst normalizedSpan = useFormSpan()\r\nconst normalizedRules = useFormRules()\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\nimport DiyItem from './DiyItem/DiyItem.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 DiyItem: typeof DiyItem\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 DiyItem\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\nexport * from './DiyItem'\r\n"],"names":["model","_useModel","__props","formRef","useTemplateRef","__expose","provide","formContextKey","reactive","toRef","normalizedSpan","useFormSpan","normalizedRules","useFormRules","formContext","useFormContext","itemModel","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","DiyItem"],"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,2 +1,2 @@
|
|
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>> &
|
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>> & {};
|
2
2
|
export default _default;
|
@@ -1,10 +1,5 @@
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
export declare const pagetableProps: () => {
|
3
|
-
gutter: {
|
4
|
-
default: string | boolean;
|
5
|
-
type: PropType<string | boolean>;
|
6
|
-
};
|
7
|
-
height: StringConstructor;
|
8
3
|
data: {
|
9
4
|
type: PropType<any[]>;
|
10
5
|
default: any[];
|
@@ -21,14 +16,17 @@ export declare const pagetableProps: () => {
|
|
21
16
|
total?: number;
|
22
17
|
};
|
23
18
|
};
|
19
|
+
showRowNumber: {
|
20
|
+
type: BooleanConstructor;
|
21
|
+
default: boolean;
|
22
|
+
};
|
23
|
+
selectionMode: {
|
24
|
+
type: BooleanConstructor;
|
25
|
+
default: boolean;
|
26
|
+
};
|
24
27
|
};
|
25
28
|
export type PagetableProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableProps>>>;
|
26
29
|
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
27
|
-
gutter: {
|
28
|
-
default: string | boolean;
|
29
|
-
type: PropType<string | boolean>;
|
30
|
-
};
|
31
|
-
height: StringConstructor;
|
32
30
|
data: {
|
33
31
|
type: PropType<any[]>;
|
34
32
|
default: any[];
|
@@ -45,12 +43,15 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
45
43
|
total?: number;
|
46
44
|
};
|
47
45
|
};
|
48
|
-
|
49
|
-
|
50
|
-
default:
|
51
|
-
type: PropType<string | boolean>;
|
46
|
+
showRowNumber: {
|
47
|
+
type: BooleanConstructor;
|
48
|
+
default: boolean;
|
52
49
|
};
|
53
|
-
|
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<{
|
54
55
|
data: {
|
55
56
|
type: PropType<any[]>;
|
56
57
|
default: any[];
|
@@ -67,13 +68,24 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
67
68
|
total?: number;
|
68
69
|
};
|
69
70
|
};
|
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
|
+
}>, {
|
71
82
|
data: any[];
|
72
|
-
gutter: string | boolean;
|
73
83
|
pagination: {
|
74
84
|
currentPage?: number;
|
75
85
|
pageSize?: number;
|
76
86
|
total?: number;
|
77
87
|
};
|
88
|
+
showRowNumber: boolean;
|
89
|
+
selectionMode: boolean;
|
78
90
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
79
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;
|
package/dist/components/Pagetable/columns/{PagetableDatecolumn.d.ts → PagetableColumnDate.d.ts}
RENAMED
@@ -1,10 +1,14 @@
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
import { FixedType } from '../interface';
|
3
|
-
export declare const
|
3
|
+
export declare const pagetableColumnDateProps: () => {
|
4
4
|
head: {
|
5
5
|
type: PropType<string>;
|
6
6
|
default: string;
|
7
7
|
};
|
8
|
+
headAlign: {
|
9
|
+
type: PropType<"center" | "left" | "right">;
|
10
|
+
default: "center" | "left" | "right";
|
11
|
+
};
|
8
12
|
name: {
|
9
13
|
type: PropType<string>;
|
10
14
|
default: string;
|
@@ -26,12 +30,16 @@ export declare const pagetableDatecolumnProps: () => {
|
|
26
30
|
default: string;
|
27
31
|
};
|
28
32
|
};
|
29
|
-
export type
|
33
|
+
export type PagetableColumnDateProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnDateProps>>>;
|
30
34
|
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
31
35
|
head: {
|
32
36
|
type: PropType<string>;
|
33
37
|
default: string;
|
34
38
|
};
|
39
|
+
headAlign: {
|
40
|
+
type: PropType<"center" | "left" | "right">;
|
41
|
+
default: "center" | "left" | "right";
|
42
|
+
};
|
35
43
|
name: {
|
36
44
|
type: PropType<string>;
|
37
45
|
default: string;
|
@@ -57,6 +65,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
57
65
|
type: PropType<string>;
|
58
66
|
default: string;
|
59
67
|
};
|
68
|
+
headAlign: {
|
69
|
+
type: PropType<"center" | "left" | "right">;
|
70
|
+
default: "center" | "left" | "right";
|
71
|
+
};
|
60
72
|
name: {
|
61
73
|
type: PropType<string>;
|
62
74
|
default: string;
|
@@ -78,11 +90,12 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
78
90
|
default: string;
|
79
91
|
};
|
80
92
|
}>> & Readonly<{}>, {
|
81
|
-
name: string;
|
82
|
-
head: string;
|
83
93
|
fixed: FixedType;
|
94
|
+
head: string;
|
84
95
|
width: string | boolean;
|
96
|
+
name: string;
|
85
97
|
format: string;
|
98
|
+
headAlign: "center" | "left" | "right";
|
86
99
|
sourceFormat: string;
|
87
100
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
88
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;
|