Skip to content

Commit 9dc361e

Browse files
committed
🌈 style(Form/src): Modifying word spelling errors
- 修改ts类型 PlaceholderModel单词拼写 - 修改initModel方法 FormModel注释拼写
1 parent 5164036 commit 9dc361e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/Form/src/helper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Slots } from 'vue'
22
import { getSlot } from '@/utils/tsxHelper'
3-
import { PlaceholderMoel } from './types'
3+
import { PlaceholderModel } from './types'
44
import { FormSchema } from '@/types/form'
55
import { ColProps } from '@/types/components'
66

@@ -10,7 +10,7 @@ import { ColProps } from '@/types/components'
1010
* @returns 返回提示信息对象
1111
* @description 用于自动设置placeholder
1212
*/
13-
export const setTextPlaceholder = (schema: FormSchema): PlaceholderMoel => {
13+
export const setTextPlaceholder = (schema: FormSchema): PlaceholderModel => {
1414
const { t } = useI18n()
1515
const textMap = ['Input', 'Autocomplete', 'InputNumber', 'InputPassword']
1616
const selectMap = ['Select', 'SelectV2', 'TimePicker', 'DatePicker', 'TimeSelect', 'TimeSelect']
@@ -108,8 +108,8 @@ export const setItemComponentSlots = (
108108
/**
109109
*
110110
* @param schema Form表单结构化数组
111-
* @param formModel FormMoel
112-
* @returns FormMoel
111+
* @param formModel FormModel
112+
* @returns FormModel
113113
* @description 生成对应的formModel
114114
*/
115115
export const initModel = (schema: FormSchema[], formModel: Recordable) => {

src/components/Form/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FormSchema } from '@/types/form'
22

3-
export interface PlaceholderMoel {
3+
export interface PlaceholderModel {
44
placeholder?: string
55
startPlaceholder?: string
66
endPlaceholder?: string

0 commit comments

Comments
 (0)