🎨 修改代码格式.

This commit is contained in:
lijiahang
2024-05-31 16:32:45 +08:00
parent 7bfa8a73be
commit 285f0532d3
23 changed files with 126 additions and 44 deletions

View File

@@ -17,6 +17,7 @@ public class VueTemplate extends Template {
public VueTemplate(Table table, String module, String feature) {
super(table);
table.enableVue = true;
table.enableRowSelection = true;
table.module = module;
table.feature = feature;
}
@@ -54,12 +55,12 @@ public class VueTemplate extends Template {
}
/**
* 列表可多选
* 关闭列表可多选
*
* @return this
*/
public VueTemplate enableRowSelection() {
table.enableRowSelection = true;
public VueTemplate disableRowSelection() {
table.enableRowSelection = false;
return this;
}

View File

@@ -79,12 +79,16 @@
</div>
</template>
<!-- table -->
#if($vue.enableRowSelection)
<a-table v-model:selected-keys="selectedKeys"
row-key="id"
#else
<a-table row-key="id"
#end
ref="tableRef"
:loading="loading"
:columns="columns"
#if($vue.enableRowSelection)
v-model:selected-keys="selectedKeys"
:row-selection="rowSelection"
#end
:data="tableRenderData"