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>
<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-table
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: {
type: Function,
default: undefined,
@ -537,6 +549,13 @@ const titleScopeHandler = (column: any, scope: any) => {
return undefined;
};
const showIfComputed = computed(() => {
return props.showIf({
value: null,
form: props.form,
});
});
const queryFormFieldsComputed = computed(() => {
localFlag.value;
return table.queryFormFields;

Loading…
Cancel
Save