|
|
@@ -30,11 +30,6 @@ export default defineComponent({
|
|
|
},
|
|
|
},
|
|
|
setup(props) {
|
|
|
- const tableWidth = computed(function() {
|
|
|
- return props.columns.reduce(function(prev, next) {
|
|
|
- return prev + Number(next.width ?? '0');
|
|
|
- }, 0);
|
|
|
- });
|
|
|
const searchContext = inject<TableSearchContext>(props.searchSymbol)!;
|
|
|
const pageContext = inject<TablePageContext>(props.pageSymbol)!;
|
|
|
|
|
|
@@ -62,6 +57,12 @@ export default defineComponent({
|
|
|
];
|
|
|
});
|
|
|
|
|
|
+ const tableWidth = computed(function() {
|
|
|
+ return columns.value.reduce(function(prev, next) {
|
|
|
+ return prev + Number(next.width ?? '0');
|
|
|
+ }, 0);
|
|
|
+ });
|
|
|
+
|
|
|
return () => (
|
|
|
<NDataTable
|
|
|
loading={searchContext.isSearching}
|