lw-cdp-ui 1.3.51 → 1.3.52

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.
@@ -38,7 +38,7 @@
38
38
  </template>
39
39
 
40
40
  <!-- 动态组件 -->
41
- <template v-if="!['upload', 'tags', 'operation'].includes(item.component)">
41
+ <template v-if="componentType.includes(item.component)">
42
42
  <FormComponent v-model="objItem.value"
43
43
  :item="item"
44
44
  :disabled="item?.options?.disabled" />
@@ -112,6 +112,7 @@ export default {
112
112
  name: 'FormItem',
113
113
  data() {
114
114
  return {
115
+ componentType: Object.keys(FormComponent.data().componentMap),
115
116
  tagVisible: {},
116
117
  dataForm: {},
117
118
  objItem: {},
@@ -28,7 +28,7 @@
28
28
  </template>
29
29
  <template #default="{ row, $index, column }">
30
30
  <!-- 动态组件 -->
31
- <template v-if="!['upload', 'tags', 'operation'].includes(item.component)">
31
+ <template v-if="componentType.includes(item.component)">
32
32
  <FormComponent v-model="row[item.name]"
33
33
  :size="config.size || 'small'"
34
34
  :item="item"
@@ -192,9 +192,11 @@ export default {
192
192
  // 是否显示添加
193
193
  showAddBtn: {type: Boolean, default: true}
194
194
  },
195
+ inject: ['componentType'],
195
196
  data() {
196
197
  return {
197
198
  tableData: [],
199
+ componentType: Object.keys(FormComponent.data().componentMap),
198
200
  tagValue: '',
199
201
  currentPage: 1,
200
202
  pageSize: 8,