@xilonglab/vue-main 1.3.7 → 1.3.8

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@xilonglab/vue-main",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -62,24 +62,40 @@ defineExpose({
62
62
 
63
63
 
64
64
  <template>
65
- <xl-dialog class="xl-data-form-dialog" :ref="refs.dialog" :title="chinese" :width="width" :validate="validate"
66
- :handler="handler" @finish="emits('finish')">
67
- <el-form :ref="refs.form" :model="obj" :rules="rules" :label-width="`${labelWidth}px`">
65
+ <xl-dialog
66
+ class="xl-data-form-dialog"
67
+ :ref="refs.dialog"
68
+ :title="chinese"
69
+ :width="width"
70
+ :validate="validate"
71
+ :handler="handler"
72
+ @finish="emits('finish')"
73
+ >
74
+ <el-form
75
+ :ref="refs.form"
76
+ :model="obj"
77
+ :rules="rules"
78
+ :label-width="`${labelWidth}px`"
79
+ >
68
80
  <el-row>
69
- <template v-for="col in columns" :key="col.prop">
70
- <xl-form-col
71
- v-if="col.form"
72
- :span="col.form.span"
73
- :l="col.label"
74
- :p="col.prop"
75
- >
76
- <component
77
- :is="`xl-${col.form.type || 'input'}`"
78
- v-model="obj[col.prop]"
79
- v-bind="col.form || {}"
80
- />
81
- </xl-form-col>
82
- </template>
81
+ <template v-for="col in columns" :key="col.prop">
82
+ <slot
83
+ v-if="col.slot"
84
+ :name="col.slot"
85
+ />
86
+ <xl-form-col
87
+ v-else-if="col.form"
88
+ :span="col.form.span"
89
+ :l="col.label"
90
+ :p="col.prop"
91
+ >
92
+ <component
93
+ :is="`xl-${col.form.type || 'input'}`"
94
+ v-model="obj[col.prop]"
95
+ v-bind="col.form || {}"
96
+ />
97
+ </xl-form-col>
98
+ </template>
83
99
  </el-row>
84
100
  <slot />
85
101
  </el-form>