🌈 style(Form/src): Modifying word spelling errors
- 修改ts类型 PlaceholderModel单词拼写 - 修改initModel方法 FormModel注释拼写
This commit is contained in:
parent
5164036b4e
commit
9dc361e708
@ -1,6 +1,6 @@
|
|||||||
import type { Slots } from 'vue'
|
import type { Slots } from 'vue'
|
||||||
import { getSlot } from '@/utils/tsxHelper'
|
import { getSlot } from '@/utils/tsxHelper'
|
||||||
import { PlaceholderMoel } from './types'
|
import { PlaceholderModel } from './types'
|
||||||
import { FormSchema } from '@/types/form'
|
import { FormSchema } from '@/types/form'
|
||||||
import { ColProps } from '@/types/components'
|
import { ColProps } from '@/types/components'
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ import { ColProps } from '@/types/components'
|
|||||||
* @returns 返回提示信息对象
|
* @returns 返回提示信息对象
|
||||||
* @description 用于自动设置placeholder
|
* @description 用于自动设置placeholder
|
||||||
*/
|
*/
|
||||||
export const setTextPlaceholder = (schema: FormSchema): PlaceholderMoel => {
|
export const setTextPlaceholder = (schema: FormSchema): PlaceholderModel => {
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const textMap = ['Input', 'Autocomplete', 'InputNumber', 'InputPassword']
|
const textMap = ['Input', 'Autocomplete', 'InputNumber', 'InputPassword']
|
||||||
const selectMap = ['Select', 'SelectV2', 'TimePicker', 'DatePicker', 'TimeSelect', 'TimeSelect']
|
const selectMap = ['Select', 'SelectV2', 'TimePicker', 'DatePicker', 'TimeSelect', 'TimeSelect']
|
||||||
@ -108,8 +108,8 @@ export const setItemComponentSlots = (
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param schema Form表单结构化数组
|
* @param schema Form表单结构化数组
|
||||||
* @param formModel FormMoel
|
* @param formModel FormModel
|
||||||
* @returns FormMoel
|
* @returns FormModel
|
||||||
* @description 生成对应的formModel
|
* @description 生成对应的formModel
|
||||||
*/
|
*/
|
||||||
export const initModel = (schema: FormSchema[], formModel: Recordable) => {
|
export const initModel = (schema: FormSchema[], formModel: Recordable) => {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { FormSchema } from '@/types/form'
|
import { FormSchema } from '@/types/form'
|
||||||
|
|
||||||
export interface PlaceholderMoel {
|
export interface PlaceholderModel {
|
||||||
placeholder?: string
|
placeholder?: string
|
||||||
startPlaceholder?: string
|
startPlaceholder?: string
|
||||||
endPlaceholder?: string
|
endPlaceholder?: string
|
||||||
|
Loading…
Reference in New Issue
Block a user