@xilonglab/vue-main 1.3.28 → 1.3.30

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.28",
3
+ "version": "1.3.30",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -73,7 +73,7 @@ const handlers = {
73
73
  return;
74
74
  }
75
75
  formData.append("file", file);
76
- formData.append("file_name", filename);
76
+ formData.append("filename", filename);
77
77
  for (let key in params) {
78
78
  formData.append(key, params[key]);
79
79
  }
@@ -116,9 +116,10 @@ const { refs, api, params, obj, chartOptions, total } = inject('injections')
116
116
  <template v-if="!col.hidden">
117
117
  <!-- 支持通过 slot 属性使用插槽 -->
118
118
  <slot
119
- v-if="col.slot"
120
- :name="`${col.prop}_col`"
119
+ v-if="col.type === 'slot'"
120
+ :name="`${col.prop}-col`"
121
121
  />
122
+
122
123
  <!-- 支持直接指定组件引用 -->
123
124
  <component
124
125
  v-else-if="col.component"
@@ -197,8 +198,8 @@ const { refs, api, params, obj, chartOptions, total } = inject('injections')
197
198
  :p="col.prop"
198
199
  >
199
200
  <slot
200
- v-if="col.slot"
201
- :name="`${col.prop}_form`"
201
+ v-if="col.type === 'slot'"
202
+ :name="`${col.prop}-form`"
202
203
  />
203
204
  <component
204
205
  v-else