This commit is contained in:
2023-06-15 20:13:46 +08:00
parent 09382319df
commit 95bf839308
83 changed files with 20351 additions and 185 deletions

View File

@@ -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

View File

@@ -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"