(component): 新增 table 组件 columns 配置 totalRow 属性, 用于支持列统计

This commit is contained in:
就眠儀式
2022-07-19 05:01:43 +08:00
parent 2a80deb010
commit 876947c79e
6 changed files with 121 additions and 20 deletions

View File

@@ -15,6 +15,7 @@ import {
auto as followSystemColorScheme,
setFetchMethod,
} from "@umijs/ssr-darkreader";
import { v4 as uuidv4 } from "../utils/guidUtil";
export interface LayConfigProviderProps {
locale?: string;
@@ -29,6 +30,8 @@ const props = withDefaults(defineProps<LayConfigProviderProps>(), {
theme: "light",
});
const id = uuidv4();
const { locale, setLocaleMessage, mergeLocaleMessage } = useI18n();
const ignoreInlineStyle = [
@@ -130,5 +133,7 @@ watch(
</script>
<template>
<slot></slot>
<div :id="id">
<slot></slot>
</div>
</template>