123
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
</template>
|
||||
<template v-for="(component, componentIndex) in viewFormList[itemIndex]" :key="componentIndex">
|
||||
<component
|
||||
style="line-height:32px;"
|
||||
v-if="!containerItems.includes(component.formType)"
|
||||
:is="getComponentName(component?.formType ?? 'input')"
|
||||
:component="component"
|
||||
@@ -172,11 +173,13 @@ if (props.component.type == "table") {
|
||||
formList.map((item) => {
|
||||
item["hideLabel"] = true
|
||||
})
|
||||
} else {
|
||||
formModel.value[props.component.dataIndex].map((item, index) => {
|
||||
if (index > 0) defaultOpenKeys.push(index)
|
||||
})
|
||||
}
|
||||
// 默认不展开所有的collapse
|
||||
// else {
|
||||
// formModel.value[props.component.dataIndex].map((item, index) => {
|
||||
// if (index > 0) defaultOpenKeys.push(index)
|
||||
// })
|
||||
// }
|
||||
|
||||
const addItem = async (data = {}) => {
|
||||
let index = formModel.value[props.component.dataIndex].length
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
<!--
|
||||
- MineAdmin is committed to providing solutions for quickly building web applications
|
||||
- Please view the LICENSE file that was distributed with this source code,
|
||||
- For the full copyright and license information.
|
||||
- Thank you very much for using MineAdmin.
|
||||
-
|
||||
- @Author X.Mo<root@imoi.cn>
|
||||
- @Link https://gitee.com/xmo/mineadmin-vue
|
||||
-->
|
||||
<template>
|
||||
<td
|
||||
v-show="typeof props.component?.display == 'undefined' || props.component?.display === true"
|
||||
|
||||
Reference in New Issue
Block a user