gi-component 0.0.15 → 0.0.16

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gi-component",
3
3
  "type": "module",
4
- "version": "0.0.15",
4
+ "version": "0.0.16",
5
5
  "description": "Vue3中基于Element Plus二次封装基础组件库",
6
6
  "author": "lin",
7
7
  "license": "MIT",
@@ -332,10 +332,9 @@ function isDisabled(item: FormColumnItem) {
332
332
 
333
333
  /** 表单数据更新 */
334
334
  function updateModelValue(value: any, item: FormColumnItem) {
335
- const val = item?.format ? item.format(value) : value
336
335
  emit(
337
336
  'update:modelValue',
338
- Object.assign(props.modelValue, { [item.field]: val })
337
+ Object.assign(props.modelValue, { [item.field]: value })
339
338
  )
340
339
  }
341
340
 
@@ -69,7 +69,6 @@ export interface FormColumnItem<F = any> {
69
69
  slotName?: string
70
70
  slots?: FormColumnSlots
71
71
  extra?: string | (() => VNode) // 右侧额外内容
72
- format?: (value: string) => string | number
73
72
  }
74
73
 
75
74
  export interface FormProps extends Partial<ElFormProps> {