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