orion-design 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-QrvjS12n.js +401 -0
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-QrvjS12n.js.map +1 -0
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-DmAuOipe.js +313 -0
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-DmAuOipe.js.map +1 -0
- package/dist/components/Edittable/Edittable.d.ts +9 -2
- package/dist/components/Edittable/hooks/useEdittable.d.ts +2 -1
- package/dist/components/Edittable/hooks/useEdittable.js +60 -63
- package/dist/components/Edittable/hooks/useEdittable.js.map +1 -1
- package/dist/components/Edittable/index.d.ts +5 -0
- package/dist/components/Edittable/index.js +360 -324
- package/dist/components/Edittable/index.js.map +1 -1
- package/dist/components/Edittable/utils/index.d.ts +2 -0
- package/dist/components/Edittable/utils/index.js +47 -37
- package/dist/components/Edittable/utils/index.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +7 -1
- package/dist/components/Form/index.js +371 -377
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Input/DateInput/DateInput.d.ts +0 -1
- package/dist/components/Input/DateInput/DateInput.vue.d.ts +3 -0
- package/dist/components/Input/FileInput/FileInput.vue.d.ts +6 -3
- package/dist/components/Input/LovInput/LovInput.d.ts +0 -1
- package/dist/components/Input/LovInput/LovInput.js.map +1 -1
- package/dist/components/Input/LovInput/LovInput.vue.d.ts +6 -6
- package/dist/components/Input/NumberInput/NumberInput.d.ts +0 -1
- package/dist/components/Input/NumberInput/NumberInput.vue.d.ts +3 -0
- package/dist/components/Input/PasswordInput/PasswordInput.d.ts +0 -1
- package/dist/components/Input/PasswordInput/PasswordInput.vue.d.ts +3 -0
- package/dist/components/Input/StringInput/StringInput.d.ts +0 -1
- package/dist/components/Input/StringInput/StringInput.vue.d.ts +3 -0
- package/dist/components/Input/TableSelect/TableSelect.d.ts +0 -1
- package/dist/components/Input/TableSelect/TableSelect.js.map +1 -1
- package/dist/components/Input/TableSelect/TableSelect.vue.d.ts +6 -6
- package/dist/components/Input/Textarea/Textarea.d.ts +0 -1
- package/dist/components/Input/Textarea/Textarea.vue.d.ts +3 -0
- package/dist/components/Input/index.d.ts +35 -9
- package/dist/components/Input/index.js +2 -2
- package/dist/request/leaf7/index.js +21 -21
- package/dist/request/leaf7/index.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 +1 -1
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js +0 -400
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js.map +0 -1
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js +0 -310
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.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/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/LovInput/LovInput.vue","../../../src/components/Form/NumberInput/NumberInput.vue","../../../src/components/Form/TableSelect/TableSelect.vue","../../../src/components/Form/index.ts"],"sourcesContent":["<template>\r\n <el-form ref=\"form\" :model=\"modelValue\" :rules=\"rules\" :label-width=\"itemLabelWidth\" :disabled=\"disabled\" class=\"orion-form\">\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\nimport OrionError from '../../error/OrionError'\r\nimport { difference, isEmpty } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OForm', inheritAttrs: false })\r\n\r\nconst { rules, itemSpan = 6, itemLabelWidth = 'auto', disabled = false, modelValue } = defineProps<FormProps>()\r\n\r\nconst emit = defineEmits(['update:modelValue'])\r\n\r\nconst updateModelValue = (name: string, value: any) => {\r\n if (!Object.keys(modelValue).includes(name)) {\r\n throw new OrionError(`modelValue中不存在[${name}]`)\r\n }\r\n emit('update:modelValue', { ...modelValue, [name]: value })\r\n}\r\n\r\nconst updateModelValueMulti = (data: Record<string, any>) => {\r\n const modelKeys = Object.keys(modelValue)\r\n const dataKeys = Object.keys(data)\r\n const diff = difference(dataKeys, modelKeys)\r\n if (!isEmpty(diff)) {\r\n throw new OrionError(`modelValue中不存在[${diff.join(',')}]`)\r\n }\r\n emit('update:modelValue', { ...modelValue, ...data })\r\n}\r\n\r\nconst formRef = useTemplateRef('form')\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 modelValue: toRef(() => modelValue),\r\n updateModelValue,\r\n updateModelValueMulti,\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 :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OStringInput v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\"\r\n :readonly=\"readonly\">\r\n <template v-if=\"slots.prefix\" #prefix>\r\n <slot name=\"prefix\"></slot>\r\n </template>\r\n <template v-if=\"slots.suffix\" #suffix>\r\n <slot name=\"suffix\"></slot>\r\n </template>\r\n <template v-if=\"slots.prepend\" #prepend>\r\n <slot name=\"prepend\"></slot>\r\n </template>\r\n <template v-if=\"slots.append\" #append>\r\n <slot name=\"append\"></slot>\r\n </template>\r\n </OStringInput>\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 { FormStringInputProps } from './StringInput'\r\nimport OStringInput from '../../Input/StringInput/StringInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useSlots } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormString', inheritAttrs: false })\r\nconst slots = useSlots()\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, readonly } = defineProps<FormStringInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OPasswordInput v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\"\r\n :readonly=\"readonly\"></OPasswordInput>\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 { FormPasswordInputProps } from './PasswordInput'\r\nimport OPasswordInput from '../../Input/PasswordInput/PasswordInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\n\r\ndefineOptions({ name: 'OFormPassword', inheritAttrs: false })\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, readonly } = defineProps<FormPasswordInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OTextarea v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\"\r\n :readonly=\"readonly\" :rows=\"rows\"></OTextarea>\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 { FormTextareaProps } from './Textarea'\r\nimport OTextarea from '../../Input/Textarea/Textarea.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\n\r\ndefineOptions({ name: 'OFormTextarea', inheritAttrs: false })\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, readonly, rows } = defineProps<FormTextareaProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OSingleSelect v-model=\"model\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\" :code=\"code\"\r\n :clearable=\"clearable\" :filterable=\"filterable\" @change=\"(attrs.onChange)\"></OSingleSelect>\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { useAttrs } from 'vue'\r\nimport { ElCol, ElFormItem } from 'element-plus'\r\nimport type { FormSingleSelectProps } from './SingleSelect'\r\nimport OSingleSelect from '../../Input/SingleSelect/SingleSelect.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\n\r\ndefineOptions({ name: 'OFormSingleselect', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, placeholder, code, clearable, filterable } = defineProps<FormSingleSelectProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OMultiSelect v-model=\"model\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\" :code=\"code\" multiple\r\n :collapse-tags=\"collapseTags\" :collapse-tags-tooltip=\"collapseTagsTooltip\" @change=\"(attrs.onChange)\">\r\n </OMultiSelect>\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { useAttrs } from 'vue'\r\nimport { ElCol, ElFormItem } from 'element-plus'\r\nimport type { FormMultiSelectProps } from './MultiSelect'\r\nimport OMultiSelect from '../../Input/MultiSelect/MultiSelect.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\n\r\ndefineOptions({ name: 'OFormMultiselect', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, placeholder, code, collapseTags, collapseTagsTooltip } = defineProps<FormMultiSelectProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <ORadioGroup v-model=\"model\" :disabled=\"normalizedDisabled\" :code=\"code\" @change=\"(attrs.onChange)\"></ORadioGroup>\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 { FormRadioGroupProps } from './RadioGroup'\r\nimport ORadioGroup from '../../Input/RadioGroup/RadioGroup.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormRadiogroup', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, code } = defineProps<FormRadioGroupProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OCheckboxGroup v-model=\"model\" :disabled=\"normalizedDisabled\" :code=\"code\" @change=\"(attrs.onChange)\">\r\n </OCheckboxGroup>\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 { FormCheckboxGroupProps } from './CheckboxGroup'\r\nimport OCheckboxGroup from '../../Input/CheckboxGroup/CheckboxGroup.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormCheckboxgroup', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, code } = defineProps<FormCheckboxGroupProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\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 <OCheckbox v-model=\"model\" :disabled=\"normalizedDisabled\" @change=\"(attrs.onChange)\"></OCheckbox>\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 { FormCheckboxProps } from './Checkbox'\r\nimport OCheckbox from '../../Input/Checkbox/Checkbox.vue'\r\nimport { useFormItemDisabled, useFormItemModel, useFormItemSpan } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormCheckbox', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, rules } = defineProps<FormCheckboxProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\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=\"normalizedRules\">\r\n <OSwitch v-model=\"model\" :disabled=\"normalizedDisabled\" @change=\"(attrs.onChange)\"></OSwitch>\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 { FormSwitchProps } from './Switch'\r\nimport OSwitch from '../../Input/Switch/Switch.vue'\r\nimport { useFormItemDisabled, useFormItemModel, useFormItemRules, useFormItemSpan } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormSwitch', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth } = defineProps<FormSwitchProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <ODateInput v-model=\"model\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\" :readonly=\"readonly\"\r\n :editable=\"editable\" :clearable=\"clearable\" :format=\"format\" :sourceFormat=\"sourceFormat\"></ODateInput>\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 { FormDateInputProps } from './DateInput'\r\nimport ODateInput from '../../Input/DateInput/DateInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\n\r\ndefineOptions({ name: 'OFormDate', inheritAttrs: false })\r\n\r\nconst {\r\n name,\r\n label,\r\n labelWidth,\r\n required,\r\n placeholder,\r\n readonly,\r\n editable = true,\r\n clearable = true,\r\n format = 'YYYY-MM-DD',\r\n sourceFormat,\r\n} = defineProps<FormDateInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OFileInput v-model=\"model\" :disabled=\"normalizedDisabled\" />\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 { FormFileInputProps } from './FileInput'\r\nimport OFileInput from '../../Input/FileInput/FileInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\n\r\ndefineOptions({ name: 'OFormFile', inheritAttrs: false })\r\n\r\nconst { name, label, labelWidth, required, disabled } = defineProps<FormFileInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\" :style=\"style\">\r\n <space :gutter=\"gutter\" style=\"margin-bottom: var(--orion-form-validation-message-height)\"> <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 { useFormItemSpan } from '../hooks'\r\nimport { computed, CSSProperties } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormButtongroup', inheritAttrs: false })\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 = useFormItemSpan()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\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 { useFormItemSpan, useFormItemRules } from '../hooks'\r\n\r\ndefineOptions({ name: 'OFormDiy', inheritAttrs: false })\r\n\r\nconst { name, label, labelWidth, required } = defineProps<DiyItemProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OLovInput v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\"\r\n :readonly=\"readonly\" @clear=\"onClear\" @select=\"onSelect\">\r\n <slot></slot>\r\n </OLovInput>\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 { FormLovInputProps } from './LovInput'\r\nimport OLovInput from '../../Input/LovInput/LovInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormContext, useFormItemDisabled } from '../hooks'\r\nimport { isString } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OFormLov', inheritAttrs: false })\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, readonly, fillMapping } = defineProps<FormLovInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\nconst formContext = useFormContext()!\r\n\r\nconst onClear = () => {\r\n if (isString(fillMapping)) {\r\n const data: Record<string, any> = {}\r\n\r\n const pairs = fillMapping.split(',')\r\n for (let i = 0; i < pairs.length; i++) {\r\n const dstName = pairs[i].split(':')[0].trim()\r\n data[dstName] = undefined\r\n }\r\n\r\n formContext.updateModelValueMulti(data)\r\n }\r\n}\r\n\r\nconst onSelect = (params: Record<string, any>) => {\r\n if (isString(fillMapping)) {\r\n const data: Record<string, any> = {}\r\n\r\n const pairs = fillMapping.split(',')\r\n for (let i = 0; i < pairs.length; i++) {\r\n const dstName = pairs[i].split(':')[0].trim()\r\n const srcName = pairs[i].split(':')[1].trim()\r\n const srcValue = params[srcName]\r\n data[dstName] = srcValue\r\n }\r\n\r\n formContext.updateModelValueMulti(data)\r\n } else {\r\n fillMapping && fillMapping(params)\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\" :required=\"required\" :rules=\"normalizedRules\">\r\n <ONumberInput v-model=\"model\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\" :readonly=\"readonly\"\r\n :min=\"min\" :max=\"max\" :step=\"step\" :step-strictly=\"stepStrictly\" :precision=\"precision\" :controls=\"controls\"\r\n :controls-position=\"controlsPosition\">\r\n <template v-if=\"slots['decrease-icon']\" #decrease-icon>\r\n <slot name=\"decrease-icon\"></slot>\r\n </template>\r\n <template v-if=\"slots['increase-icon']\" #increase-icon>\r\n <slot name=\"increase-icon\"></slot>\r\n </template>\r\n <template v-if=\"slots['prefix']\" #prefix>\r\n <slot name=\"prefix\"></slot>\r\n </template>\r\n <template v-if=\"slots['suffix']\" #suffix>\r\n <slot name=\"suffix\"></slot>\r\n </template>\r\n </ONumberInput>\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 { FormNumberInputProps } from './NumberInput'\r\nimport ONumberInput from '../../Input/NumberInput/NumberInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useSlots } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormNumber', inheritAttrs: false })\r\nconst slots = useSlots()\r\n\r\nconst {\r\n name,\r\n label,\r\n labelWidth,\r\n required,\r\n placeholder,\r\n readonly,\r\n min,\r\n max,\r\n step,\r\n stepStrictly,\r\n precision,\r\n controls = true,\r\n controlsPosition,\r\n} = defineProps<FormNumberInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OTableSelect v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\"\r\n :readonly=\"readonly\" :pick=\"pick\" :tag=\"tag\" @change=\"(attrs.onChange)\">\r\n <slot></slot>\r\n </OTableSelect>\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 { FormTableSelectProps } from './TableSelect'\r\nimport OTableSelect from '../../Input/TableSelect/TableSelect.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormTableselect', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, readonly, pick, tag } = defineProps<FormTableSelectProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>","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\nimport LovInput from './LovInput/LovInput.vue'\r\nimport NumberInput from './NumberInput/NumberInput.vue'\r\nimport TableSelect from './TableSelect/TableSelect.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 LovInput: typeof LovInput\r\n NumberInput: typeof NumberInput\r\n TableSelect: typeof TableSelect\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 LovInput,\r\n NumberInput,\r\n TableSelect,\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\nexport * from './LovInput'\r\nexport * from './NumberInput'\r\nexport * from './TableSelect'\r\n"],"names":["emit","__emit","updateModelValue","name","value","__props","OrionError","updateModelValueMulti","data","modelKeys","dataKeys","diff","difference","isEmpty","formRef","useTemplateRef","__expose","provide","formContextKey","reactive","toRef","slots","useSlots","normalizedSpan","useFormItemSpan","normalizedRules","useFormItemRules","normalizedDisabled","useFormItemDisabled","model","useFormItemModel","attrs","useAttrs","style","computed","formContext","useFormContext","onClear","isString","pairs","i","dstName","onSelect","params","srcName","srcValue","index","withInstall","Form","StringInput","PasswordInput","Textarea","SingleSelect","MultiSelect","RadioGroup","CheckboxGroup","Checkbox","Switch","DateInput","FileInput","ButtonGroup","DiyItem","LovInput","NumberInput","TableSelect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAOC,GAEPC,IAAmB,CAACC,GAAcC,MAAe;AACjD,UAAA,CAAC,OAAO,KAAKC,EAAA,UAAU,EAAE,SAASF,CAAI;AACxC,cAAM,IAAIG,EAAW,kBAAkBH,CAAI,GAAG;AAE3C,MAAAH,EAAA,qBAAqB,EAAE,GAAGK,cAAY,CAACF,CAAI,GAAGC,EAAA,CAAO;AAAA,IAAA,GAGtDG,IAAwB,CAACC,MAA8B;AAC3D,YAAMC,IAAY,OAAO,KAAKJ,EAAA,UAAU,GAClCK,IAAW,OAAO,KAAKF,CAAI,GAC3BG,IAAOC,EAAWF,GAAUD,CAAS;AACvC,UAAA,CAACI,EAAQF,CAAI;AACf,cAAM,IAAIL,EAAW,kBAAkBK,EAAK,KAAK,GAAG,CAAC,GAAG;AAE1D,MAAAX,EAAK,qBAAqB,EAAE,GAAGK,EAAU,YAAE,GAAGG,GAAM;AAAA,IAAA,GAGhDM,IAAUC,EAAe,MAAM;AAMxB,WAAAC,EAAA;AAAA,MACX,UALuC,YAChC,MAAMF,EAAQ,MAAO;IAI5B,CACD,GAEDG;AAAA,MACEC;AAAA,MACAC,EAAS;AAAA,QACP,YAAYC,EAAM,MAAMf,EAAU,UAAA;AAAA,QAClC,kBAAAH;AAAA,QACA,uBAAAK;AAAA,QACA,OAAOa,EAAM,MAAMf,EAAA,KAAK;AAAA,QACxB,UAAUe,EAAM,MAAMf,EAAA,QAAQ;AAAA,QAC9B,UAAUe,EAAM,MAAMf,EAAA,QAAQ;AAAA,MAAA,CAC/B;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3BH,UAAMgB,IAAQC,KAGRC,IAAiBC,KACjBC,IAAkBC,KACl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A,eAAIA,EAAW,YAACsC,CAAM;AAAA,IACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzBF,UAAMtB,IAAQC,KAiBRC,IAAiBC,KACjBC,IAAkBC,KAClBC,IAAqBC,KACrBC,IAAQC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AChCd,UAAMC,IAAQC,KAGRT,IAAiBC,KACjBC,IAAkBC,KAClBC,IAAqBC,KACrBC,IAAQC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ICLCgB,KAAAC,EAoBbC,IAAM;AAAA,EAAA,aACNC;AAAAA,EAAA,eACAC;AAAAA,EAAA,UACAC;AAAAA,EAAA,cACAC;AAAAA,EAAA,aACAC;AAAAA,EAAA,YACAC;AAAAA,EAAA,eACAC;AAAAA,EAAA,UACAC;AAAAA,EAAA,QACAC;AAAAA,EAAA,WACAC;AAAAA,EAAA,WACAC;AAAAA,EAAA,aACAC;AAAAA,EAAA,SACAC;AAAAA,EAAA,UACAC;AAAAA,EAAA,aACAC;AAAAA,EAAA,aACAC;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/LovInput/LovInput.vue","../../../src/components/Form/NumberInput/NumberInput.vue","../../../src/components/Form/TableSelect/TableSelect.vue","../../../src/components/Form/index.ts"],"sourcesContent":["<template>\r\n <el-form ref=\"form\" :model=\"modelValue\" :rules=\"rules\" :label-width=\"itemLabelWidth\" :disabled=\"disabled\" class=\"orion-form\">\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\nimport OrionError from '../../error/OrionError'\r\nimport { difference, isEmpty } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OForm', inheritAttrs: false })\r\n\r\nconst { rules, itemSpan = 6, itemLabelWidth = 'auto', disabled = false, modelValue } = defineProps<FormProps>()\r\n\r\nconst emit = defineEmits(['update:modelValue'])\r\n\r\nconst updateModelValue = (name: string, value: any) => {\r\n if (!Object.keys(modelValue).includes(name)) {\r\n throw new OrionError(`modelValue中不存在[${name}]`)\r\n }\r\n emit('update:modelValue', { ...modelValue, [name]: value })\r\n}\r\n\r\nconst updateModelValueMulti = (data: Record<string, any>) => {\r\n const modelKeys = Object.keys(modelValue)\r\n const dataKeys = Object.keys(data)\r\n const diff = difference(dataKeys, modelKeys)\r\n if (!isEmpty(diff)) {\r\n throw new OrionError(`modelValue中不存在[${diff.join(',')}]`)\r\n }\r\n emit('update:modelValue', { ...modelValue, ...data })\r\n}\r\n\r\nconst formRef = useTemplateRef('form')\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 modelValue: toRef(() => modelValue),\r\n updateModelValue,\r\n updateModelValueMulti,\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 :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OStringInput v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\"\r\n @change=\"(attrs.onChange)\">\r\n <template v-if=\"slots.prefix\" #prefix>\r\n <slot name=\"prefix\"></slot>\r\n </template>\r\n <template v-if=\"slots.suffix\" #suffix>\r\n <slot name=\"suffix\"></slot>\r\n </template>\r\n <template v-if=\"slots.prepend\" #prepend>\r\n <slot name=\"prepend\"></slot>\r\n </template>\r\n <template v-if=\"slots.append\" #append>\r\n <slot name=\"append\"></slot>\r\n </template>\r\n </OStringInput>\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 { FormStringInputProps } from './StringInput'\r\nimport OStringInput from '../../Input/StringInput/StringInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs, useSlots } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormString', inheritAttrs: false })\r\nconst slots = useSlots()\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder } = defineProps<FormStringInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OPasswordInput v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\"\r\n @change=\"(attrs.onChange)\"></OPasswordInput>\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 { FormPasswordInputProps } from './PasswordInput'\r\nimport OPasswordInput from '../../Input/PasswordInput/PasswordInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormPassword', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder } = defineProps<FormPasswordInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OTextarea v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\"\r\n :rows=\"rows\" @change=\"(attrs.onChange)\"></OTextarea>\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 { FormTextareaProps } from './Textarea'\r\nimport OTextarea from '../../Input/Textarea/Textarea.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormTextarea', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, rows } = defineProps<FormTextareaProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OSingleSelect v-model=\"model\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\" :code=\"code\"\r\n :clearable=\"clearable\" :filterable=\"filterable\" @change=\"(attrs.onChange)\"></OSingleSelect>\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { useAttrs } from 'vue'\r\nimport { ElCol, ElFormItem } from 'element-plus'\r\nimport type { FormSingleSelectProps } from './SingleSelect'\r\nimport OSingleSelect from '../../Input/SingleSelect/SingleSelect.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\n\r\ndefineOptions({ name: 'OFormSingleselect', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, placeholder, code, clearable, filterable } = defineProps<FormSingleSelectProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OMultiSelect v-model=\"model\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\" :code=\"code\" multiple\r\n :collapse-tags=\"collapseTags\" :collapse-tags-tooltip=\"collapseTagsTooltip\" @change=\"(attrs.onChange)\">\r\n </OMultiSelect>\r\n </el-form-item>\r\n </el-col>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { useAttrs } from 'vue'\r\nimport { ElCol, ElFormItem } from 'element-plus'\r\nimport type { FormMultiSelectProps } from './MultiSelect'\r\nimport OMultiSelect from '../../Input/MultiSelect/MultiSelect.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\n\r\ndefineOptions({ name: 'OFormMultiselect', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, placeholder, code, collapseTags, collapseTagsTooltip } = defineProps<FormMultiSelectProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <ORadioGroup v-model=\"model\" :disabled=\"normalizedDisabled\" :code=\"code\" @change=\"(attrs.onChange)\"></ORadioGroup>\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 { FormRadioGroupProps } from './RadioGroup'\r\nimport ORadioGroup from '../../Input/RadioGroup/RadioGroup.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormRadiogroup', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, code } = defineProps<FormRadioGroupProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OCheckboxGroup v-model=\"model\" :disabled=\"normalizedDisabled\" :code=\"code\" @change=\"(attrs.onChange)\">\r\n </OCheckboxGroup>\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 { FormCheckboxGroupProps } from './CheckboxGroup'\r\nimport OCheckboxGroup from '../../Input/CheckboxGroup/CheckboxGroup.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormCheckboxgroup', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, code } = defineProps<FormCheckboxGroupProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\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 <OCheckbox v-model=\"model\" :disabled=\"normalizedDisabled\" @change=\"(attrs.onChange)\"></OCheckbox>\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 { FormCheckboxProps } from './Checkbox'\r\nimport OCheckbox from '../../Input/Checkbox/Checkbox.vue'\r\nimport { useFormItemDisabled, useFormItemModel, useFormItemSpan } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormCheckbox', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, rules } = defineProps<FormCheckboxProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\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=\"normalizedRules\">\r\n <OSwitch v-model=\"model\" :disabled=\"normalizedDisabled\" @change=\"(attrs.onChange)\"></OSwitch>\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 { FormSwitchProps } from './Switch'\r\nimport OSwitch from '../../Input/Switch/Switch.vue'\r\nimport { useFormItemDisabled, useFormItemModel, useFormItemRules, useFormItemSpan } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormSwitch', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth } = defineProps<FormSwitchProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <ODateInput v-model=\"model\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\" :editable=\"editable\"\r\n :clearable=\"clearable\" :format=\"format\" :sourceFormat=\"sourceFormat\" @change=\"(attrs.onChange)\"></ODateInput>\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 { FormDateInputProps } from './DateInput'\r\nimport ODateInput from '../../Input/DateInput/DateInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormDate', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst {\r\n name,\r\n label,\r\n labelWidth,\r\n required,\r\n placeholder,\r\n editable = true,\r\n clearable = true,\r\n format = 'YYYY-MM-DD',\r\n sourceFormat,\r\n} = defineProps<FormDateInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OFileInput v-model=\"model\" :disabled=\"normalizedDisabled\" @change=\"(attrs.onChange)\" />\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 { FormFileInputProps } from './FileInput'\r\nimport OFileInput from '../../Input/FileInput/FileInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormFile', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, disabled } = defineProps<FormFileInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\" :style=\"style\">\r\n <space :gutter=\"gutter\" style=\"margin-bottom: var(--orion-form-validation-message-height)\"> <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 { useFormItemSpan } from '../hooks'\r\nimport { computed, CSSProperties } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormButtongroup', inheritAttrs: false })\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 = useFormItemSpan()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\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 { useFormItemSpan, useFormItemRules } from '../hooks'\r\n\r\ndefineOptions({ name: 'OFormDiy', inheritAttrs: false })\r\n\r\nconst { name, label, labelWidth, required } = defineProps<DiyItemProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OLovInput v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\"\r\n @clear=\"onClear\" @select=\"onSelect\">\r\n <slot></slot>\r\n </OLovInput>\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 { FormLovInputProps } from './LovInput'\r\nimport OLovInput from '../../Input/LovInput/LovInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormContext, useFormItemDisabled } from '../hooks'\r\nimport { isString } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OFormLov', inheritAttrs: false })\r\nconst emit = defineEmits<{\r\n (e: 'select', params: Record<string, any>): void\r\n (e: 'clear'): void\r\n}>()\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, fillMapping } = defineProps<FormLovInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\nconst formContext = useFormContext()!\r\n\r\nconst onClear = () => {\r\n if (isString(fillMapping)) {\r\n const data: Record<string, any> = {}\r\n\r\n const pairs = fillMapping.split(',')\r\n for (let i = 0; i < pairs.length; i++) {\r\n const dstName = pairs[i].split(':')[0].trim()\r\n data[dstName] = undefined\r\n }\r\n\r\n formContext.updateModelValueMulti(data)\r\n\r\n emit('clear')\r\n }\r\n}\r\n\r\nconst onSelect = (params: Record<string, any>) => {\r\n if (isString(fillMapping)) {\r\n const data: Record<string, any> = {}\r\n\r\n const pairs = fillMapping.split(',')\r\n for (let i = 0; i < pairs.length; i++) {\r\n const dstName = pairs[i].split(':')[0].trim()\r\n const srcName = pairs[i].split(':')[1].trim()\r\n const srcValue = params[srcName]\r\n data[dstName] = srcValue\r\n }\r\n\r\n formContext.updateModelValueMulti(data)\r\n } else {\r\n fillMapping && fillMapping(params)\r\n }\r\n\r\n emit('select', params)\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\" :required=\"required\" :rules=\"normalizedRules\">\r\n <ONumberInput v-model=\"model\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\" :min=\"min\" :max=\"max\"\r\n :step=\"step\" :step-strictly=\"stepStrictly\" :precision=\"precision\" :controls=\"controls\"\r\n :controls-position=\"controlsPosition\" @change=\"(attrs.onChange)\">\r\n <template v-if=\"slots['decrease-icon']\" #decrease-icon>\r\n <slot name=\"decrease-icon\"></slot>\r\n </template>\r\n <template v-if=\"slots['increase-icon']\" #increase-icon>\r\n <slot name=\"increase-icon\"></slot>\r\n </template>\r\n <template v-if=\"slots['prefix']\" #prefix>\r\n <slot name=\"prefix\"></slot>\r\n </template>\r\n <template v-if=\"slots['suffix']\" #suffix>\r\n <slot name=\"suffix\"></slot>\r\n </template>\r\n </ONumberInput>\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 { FormNumberInputProps } from './NumberInput'\r\nimport ONumberInput from '../../Input/NumberInput/NumberInput.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs, useSlots } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormNumber', inheritAttrs: false })\r\nconst slots = useSlots()\r\nconst attrs = useAttrs()\r\n\r\nconst {\r\n name,\r\n label,\r\n labelWidth,\r\n required,\r\n placeholder,\r\n min,\r\n max,\r\n step,\r\n stepStrictly,\r\n precision,\r\n controls = true,\r\n controlsPosition,\r\n} = defineProps<FormNumberInputProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>\r\n","<template>\r\n <el-col :span=\"normalizedSpan\">\r\n <el-form-item :prop=\"name\" :label=\"label\" :label-width=\"labelWidth\" :required=\"required\" :rules=\"normalizedRules\">\r\n <OTableSelect v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"normalizedDisabled\"\r\n :pick=\"pick\" :tag=\"tag\" @change=\"(attrs.onChange)\">\r\n <slot></slot>\r\n </OTableSelect>\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 { FormTableSelectProps } from './TableSelect'\r\nimport OTableSelect from '../../Input/TableSelect/TableSelect.vue'\r\nimport { useFormItemSpan, useFormItemRules, useFormItemModel, useFormItemDisabled } from '../hooks'\r\nimport { useAttrs } from 'vue'\r\n\r\ndefineOptions({ name: 'OFormTableselect', inheritAttrs: false })\r\nconst attrs = useAttrs()\r\n\r\nconst { name, label, labelWidth, required, maxlength, placeholder, pick, tag } = defineProps<FormTableSelectProps>()\r\nconst normalizedSpan = useFormItemSpan()\r\nconst normalizedRules = useFormItemRules()\r\nconst normalizedDisabled = useFormItemDisabled()\r\nconst model = useFormItemModel()\r\n</script>","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\nimport LovInput from './LovInput/LovInput.vue'\r\nimport NumberInput from './NumberInput/NumberInput.vue'\r\nimport TableSelect from './TableSelect/TableSelect.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 LovInput: typeof LovInput\r\n NumberInput: typeof NumberInput\r\n TableSelect: typeof TableSelect\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 LovInput,\r\n NumberInput,\r\n TableSelect,\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\nexport * from './LovInput'\r\nexport * from './NumberInput'\r\nexport * from './TableSelect'\r\n"],"names":["emit","__emit","updateModelValue","name","value","__props","OrionError","updateModelValueMulti","data","modelKeys","dataKeys","diff","difference","isEmpty","formRef","useTemplateRef","__expose","provide","formContextKey","reactive","toRef","slots","useSlots","attrs","useAttrs","normalizedSpan","useFormItemSpan","normalizedRules","useFormItemRules","normalizedDisabled","useFormItemDisabled","model","useFormItemModel","style","computed","formContext","useFormContext","onClear","isString","pairs","i","dstName","onSelect","params","srcName","srcValue","index","withInstall","Form","StringInput","PasswordInput","Textarea","SingleSelect","MultiSelect","RadioGroup","CheckboxGroup","Checkbox","Switch","DateInput","FileInput","ButtonGroup","DiyItem","LovInput","NumberInput","TableSelect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAOC,GAEPC,IAAmB,CAACC,GAAcC,MAAe;AACjD,UAAA,CAAC,OAAO,KAAKC,EAAA,UAAU,EAAE,SAASF,CAAI;AACxC,cAAM,IAAIG,EAAW,kBAAkBH,CAAI,GAAG;AAE3C,MAAAH,EAAA,qBAAqB,EAAE,GAAGK,cAAY,CAACF,CAAI,GAAGC,EAAA,CAAO;AAAA,IAAA,GAGtDG,IAAwB,CAACC,MAA8B;AAC3D,YAAMC,IAAY,OAAO,KAAKJ,EAAA,UAAU,GAClCK,IAAW,OAAO,KAAKF,CAAI,GAC3BG,IAAOC,EAAWF,GAAUD,CAAS;AACvC,UAAA,CAACI,EAAQF,CAAI;AACf,cAAM,IAAIL,EAAW,kBAAkBK,EAAK,KAAK,GAAG,CAAC,GAAG;AAE1D,MAAAX,EAAK,qBAAqB,EAAE,GAAGK,EAAU,YAAE,GAAGG,GAAM;AAAA,IAAA,GAGhDM,IAAUC,EAAe,MAAM;AAMxB,WAAAC,EAAA;AAAA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ACAC;AAAAA,EAAA,aACAC;AAAAA,EAAA,SACAC;AAAAA,EAAA,UACAC;AAAAA,EAAA,aACAC;AAAAA,EAAA,aACAC;AACF,CAAC;"}
|
@@ -5,7 +5,10 @@ type __VLS_PublicProps = {
|
|
5
5
|
} & typeof __VLS_typeProps;
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
7
7
|
"update:modelValue": (modelValue: string | Date) => any;
|
8
|
+
} & {
|
9
|
+
change: (value: string | Date) => any;
|
8
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
9
11
|
"onUpdate:modelValue"?: ((modelValue: string | Date) => any) | undefined;
|
12
|
+
onChange?: ((value: string | Date) => any) | undefined;
|
10
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
11
14
|
export default _default;
|
@@ -5,8 +5,11 @@ type __VLS_PublicProps = {
|
|
5
5
|
} & typeof __VLS_typeProps;
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
7
7
|
"update:modelValue": (modelValue: File) => any;
|
8
|
+
} & {
|
9
|
+
change: (value: File) => any;
|
8
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
9
11
|
"onUpdate:modelValue"?: ((modelValue: File) => any) | undefined;
|
12
|
+
onChange?: ((value: File) => any) | undefined;
|
10
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
11
14
|
inputRef: ({
|
12
15
|
$: import('vue').ComponentInternalInstance;
|
@@ -34,9 +37,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
34
37
|
readonly autofocus: boolean;
|
35
38
|
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
36
39
|
readonly clearable: boolean;
|
37
|
-
readonly readonly: boolean;
|
38
40
|
readonly autosize: import('element-plus').InputAutoSize;
|
39
41
|
readonly autocomplete: string;
|
42
|
+
readonly readonly: boolean;
|
40
43
|
readonly showPassword: boolean;
|
41
44
|
readonly showWordLimit: boolean;
|
42
45
|
readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
@@ -68,7 +71,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
68
71
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
69
72
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
70
73
|
onClear?: (() => any) | undefined;
|
71
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "
|
74
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows">;
|
72
75
|
$attrs: {
|
73
76
|
[x: string]: unknown;
|
74
77
|
};
|
@@ -356,7 +359,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
356
359
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
357
360
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
358
361
|
onClear?: (() => any) | undefined;
|
359
|
-
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "
|
362
|
+
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "blur" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
360
363
|
input: import('vue').ShallowRef<HTMLInputElement | undefined>;
|
361
364
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
|
362
365
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LovInput.js","sources":["../../../../src/components/Input/LovInput/LovInput.ts"],"sourcesContent":["import { InjectionKey } from 'vue'\r\n\r\nexport interface LovInputProps {\r\n maxlength?: string | number\r\n placeholder?: string\r\n disabled?: boolean\r\n readonly?: boolean\r\n}\r\n\r\nexport type KeydownHandler = (code: string) => void\r\n\r\nexport interface LovContext {\r\n lovValue: any\r\n backfill: (params: Record<string, any>) => void\r\n registerKeydownHandler: (handler: KeydownHandler) => void\r\n}\r\n\r\nexport const lovContextKey: InjectionKey<LovContext> = Symbol('lovContextKey')\r\n"],"names":["lovContextKey"],"mappings":"AAiBa,MAAAA,IAA0C,OAAO,eAAe;"}
|
1
|
+
{"version":3,"file":"LovInput.js","sources":["../../../../src/components/Input/LovInput/LovInput.ts"],"sourcesContent":["import { InjectionKey } from 'vue'\r\n\r\nexport interface LovInputProps {\r\n maxlength?: string | number\r\n placeholder?: string\r\n disabled?: boolean\r\n // readonly?: boolean\r\n}\r\n\r\nexport type KeydownHandler = (code: string) => void\r\n\r\nexport interface LovContext {\r\n lovValue: any\r\n backfill: (params: Record<string, any>) => void\r\n registerKeydownHandler: (handler: KeydownHandler) => void\r\n}\r\n\r\nexport const lovContextKey: InjectionKey<LovContext> = Symbol('lovContextKey')\r\n"],"names":["lovContextKey"],"mappings":"AAiBa,MAAAA,IAA0C,OAAO,eAAe;"}
|
@@ -12924,9 +12924,9 @@ declare function __VLS_template(): {
|
|
12924
12924
|
readonly autofocus: boolean;
|
12925
12925
|
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
12926
12926
|
readonly clearable: boolean;
|
12927
|
-
readonly readonly: boolean;
|
12928
12927
|
readonly autosize: import('element-plus').InputAutoSize;
|
12929
12928
|
readonly autocomplete: string;
|
12929
|
+
readonly readonly: boolean;
|
12930
12930
|
readonly showPassword: boolean;
|
12931
12931
|
readonly showWordLimit: boolean;
|
12932
12932
|
readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
@@ -12958,7 +12958,7 @@ declare function __VLS_template(): {
|
|
12958
12958
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
12959
12959
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
12960
12960
|
onClear?: (() => any) | undefined;
|
12961
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "
|
12961
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows">;
|
12962
12962
|
$attrs: {
|
12963
12963
|
[x: string]: unknown;
|
12964
12964
|
};
|
@@ -13246,7 +13246,7 @@ declare function __VLS_template(): {
|
|
13246
13246
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
13247
13247
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
13248
13248
|
onClear?: (() => any) | undefined;
|
13249
|
-
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "
|
13249
|
+
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "blur" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
13250
13250
|
input: import('vue').ShallowRef<HTMLInputElement | undefined>;
|
13251
13251
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
|
13252
13252
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
@@ -26196,9 +26196,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
26196
26196
|
readonly autofocus: boolean;
|
26197
26197
|
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
26198
26198
|
readonly clearable: boolean;
|
26199
|
-
readonly readonly: boolean;
|
26200
26199
|
readonly autosize: import('element-plus').InputAutoSize;
|
26201
26200
|
readonly autocomplete: string;
|
26201
|
+
readonly readonly: boolean;
|
26202
26202
|
readonly showPassword: boolean;
|
26203
26203
|
readonly showWordLimit: boolean;
|
26204
26204
|
readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
@@ -26230,7 +26230,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
26230
26230
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
26231
26231
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
26232
26232
|
onClear?: (() => any) | undefined;
|
26233
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "
|
26233
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows">;
|
26234
26234
|
$attrs: {
|
26235
26235
|
[x: string]: unknown;
|
26236
26236
|
};
|
@@ -26518,7 +26518,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
26518
26518
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
26519
26519
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
26520
26520
|
onClear?: (() => any) | undefined;
|
26521
|
-
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "
|
26521
|
+
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "blur" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
26522
26522
|
input: import('vue').ShallowRef<HTMLInputElement | undefined>;
|
26523
26523
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
|
26524
26524
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
@@ -16,8 +16,11 @@ declare function __VLS_template(): {
|
|
16
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
17
17
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
18
18
|
"update:modelValue": (modelValue: number) => any;
|
19
|
+
} & {
|
20
|
+
change: (value: number | undefined) => any;
|
19
21
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
20
22
|
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
23
|
+
onChange?: ((value: number | undefined) => any) | undefined;
|
21
24
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
22
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
23
26
|
export default _default;
|
@@ -5,7 +5,10 @@ type __VLS_PublicProps = {
|
|
5
5
|
} & typeof __VLS_typeProps;
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
7
7
|
"update:modelValue": (modelValue: string) => any;
|
8
|
+
} & {
|
9
|
+
change: (value: string) => any;
|
8
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
9
11
|
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
12
|
+
onChange?: ((value: string) => any) | undefined;
|
10
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
11
14
|
export default _default;
|
@@ -16,8 +16,11 @@ declare function __VLS_template(): {
|
|
16
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
17
17
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
18
18
|
"update:modelValue": (modelValue: string) => any;
|
19
|
+
} & {
|
20
|
+
change: (value: string) => any;
|
19
21
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
20
22
|
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
23
|
+
onChange?: ((value: string) => any) | undefined;
|
21
24
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
22
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
23
26
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TableSelect.js","sources":["../../../../src/components/Input/TableSelect/TableSelect.ts"],"sourcesContent":["import { InjectionKey } from 'vue'\r\n\r\nexport interface TableSelectProps {\r\n maxlength?: string | number\r\n placeholder?: string\r\n disabled?: boolean\r\n readonly?: boolean\r\n pick: string | string[]\r\n tag: (row: any) => string\r\n}\r\n\r\nexport type RowCompletionProvider = (data: any[] | undefined) => Promise<any[] | undefined>\r\n\r\nexport interface TableSelectContext {\r\n inputValue: any\r\n selection: any[] | undefined\r\n onSelect: (selection: any[], clear?: boolean) => void\r\n selectDone: () => void\r\n tag: (row: any) => string\r\n registerRowCompletionProvider: (provider: RowCompletionProvider) => void\r\n}\r\n\r\nexport const tableSelectContext: InjectionKey<TableSelectContext> = Symbol('tableSelectContext')\r\n"],"names":["tableSelectContext"],"mappings":"AAsBa,MAAAA,IAAuD,OAAO,oBAAoB;"}
|
1
|
+
{"version":3,"file":"TableSelect.js","sources":["../../../../src/components/Input/TableSelect/TableSelect.ts"],"sourcesContent":["import { InjectionKey } from 'vue'\r\n\r\nexport interface TableSelectProps {\r\n maxlength?: string | number\r\n placeholder?: string\r\n disabled?: boolean\r\n // readonly?: boolean\r\n pick: string | string[]\r\n tag: (row: any) => string\r\n}\r\n\r\nexport type RowCompletionProvider = (data: any[] | undefined) => Promise<any[] | undefined>\r\n\r\nexport interface TableSelectContext {\r\n inputValue: any\r\n selection: any[] | undefined\r\n onSelect: (selection: any[], clear?: boolean) => void\r\n selectDone: () => void\r\n tag: (row: any) => string\r\n registerRowCompletionProvider: (provider: RowCompletionProvider) => void\r\n}\r\n\r\nexport const tableSelectContext: InjectionKey<TableSelectContext> = Symbol('tableSelectContext')\r\n"],"names":["tableSelectContext"],"mappings":"AAsBa,MAAAA,IAAuD,OAAO,oBAAoB;"}
|
@@ -12924,9 +12924,9 @@ declare function __VLS_template(): {
|
|
12924
12924
|
readonly autofocus: boolean;
|
12925
12925
|
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
12926
12926
|
readonly clearable: boolean;
|
12927
|
-
readonly readonly: boolean;
|
12928
12927
|
readonly autosize: import('element-plus').InputAutoSize;
|
12929
12928
|
readonly autocomplete: string;
|
12929
|
+
readonly readonly: boolean;
|
12930
12930
|
readonly showPassword: boolean;
|
12931
12931
|
readonly showWordLimit: boolean;
|
12932
12932
|
readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
@@ -12958,7 +12958,7 @@ declare function __VLS_template(): {
|
|
12958
12958
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
12959
12959
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
12960
12960
|
onClear?: (() => any) | undefined;
|
12961
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "
|
12961
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows">;
|
12962
12962
|
$attrs: {
|
12963
12963
|
[x: string]: unknown;
|
12964
12964
|
};
|
@@ -13246,7 +13246,7 @@ declare function __VLS_template(): {
|
|
13246
13246
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
13247
13247
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
13248
13248
|
onClear?: (() => any) | undefined;
|
13249
|
-
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "
|
13249
|
+
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "blur" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
13250
13250
|
input: import('vue').ShallowRef<HTMLInputElement | undefined>;
|
13251
13251
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
|
13252
13252
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
@@ -26194,9 +26194,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
26194
26194
|
readonly autofocus: boolean;
|
26195
26195
|
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
|
26196
26196
|
readonly clearable: boolean;
|
26197
|
-
readonly readonly: boolean;
|
26198
26197
|
readonly autosize: import('element-plus').InputAutoSize;
|
26199
26198
|
readonly autocomplete: string;
|
26199
|
+
readonly readonly: boolean;
|
26200
26200
|
readonly showPassword: boolean;
|
26201
26201
|
readonly showWordLimit: boolean;
|
26202
26202
|
readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
@@ -26228,7 +26228,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
26228
26228
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
26229
26229
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
26230
26230
|
onClear?: (() => any) | undefined;
|
26231
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "
|
26231
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "id" | "type" | "autofocus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows">;
|
26232
26232
|
$attrs: {
|
26233
26233
|
[x: string]: unknown;
|
26234
26234
|
};
|
@@ -26516,7 +26516,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
26516
26516
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
26517
26517
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
26518
26518
|
onClear?: (() => any) | undefined;
|
26519
|
-
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "
|
26519
|
+
}, "input" | "select" | "textarea" | "clear" | "disabled" | "id" | "type" | "ref" | "autofocus" | "focus" | "modelValue" | "clearable" | "autosize" | "autocomplete" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "blur" | "resizeTextarea"> & import('vue').ShallowUnwrapRef<{
|
26520
26520
|
input: import('vue').ShallowRef<HTMLInputElement | undefined>;
|
26521
26521
|
textarea: import('vue').ShallowRef<HTMLTextAreaElement | undefined>;
|
26522
26522
|
ref: import('vue').ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
@@ -5,7 +5,10 @@ type __VLS_PublicProps = {
|
|
5
5
|
} & typeof __VLS_typeProps;
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
7
7
|
"update:modelValue": (modelValue: string) => any;
|
8
|
+
} & {
|
9
|
+
change: (value: string) => any;
|
8
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
9
11
|
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
12
|
+
onChange?: ((value: string) => any) | undefined;
|
10
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
11
14
|
export default _default;
|