Browse Source

表格优化提交

main
likunming 8 months ago
parent
commit
de72cfaf44
  1. 21
      io.sc.platform.core.frontend/src/platform/components/grid/WGrid.vue

21
io.sc.platform.core.frontend/src/platform/components/grid/WGrid.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="w-grid" style="height: 100%"> <div class="w-grid" style="height: 100%" v-show="showIfComputed">
<q-resize-observer debounce="500" @resize="onResize" /> <q-resize-observer debounce="500" @resize="onResize" />
<q-table <q-table
ref="tableRef" ref="tableRef"
@ -365,6 +365,18 @@ const props = defineProps({
}; };
}, },
}, },
// form使----start
showIf: {
type: Function,
default: () => {
return true;
},
},
form: {
type: Object,
default: undefined,
},
// form使----end
onRowClick: { onRowClick: {
type: Function, type: Function,
default: undefined, default: undefined,
@ -537,6 +549,13 @@ const titleScopeHandler = (column: any, scope: any) => {
return undefined; return undefined;
}; };
const showIfComputed = computed(() => {
return props.showIf({
value: null,
form: props.form,
});
});
const queryFormFieldsComputed = computed(() => { const queryFormFieldsComputed = computed(() => {
localFlag.value; localFlag.value;
return table.queryFormFields; return table.queryFormFields;

Loading…
Cancel
Save