diff --git a/src/main.js b/src/main.js index 41b8efa..6ccb067 100644 --- a/src/main.js +++ b/src/main.js @@ -5,6 +5,14 @@ import App from './App.vue' import router from "./router"; import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' -import './assets/css/common.css' - -createApp(App).use(router).use(ElementPlus).mount('#app') +import './assets/css/common.css' +import zhCn from 'element-plus/dist/locale/zh-cn.mjs' +zhCn.el.pagination = { + goto: "跳转至", + pageClassifier: "", + pagesize: "", + total: "共 {total} 条", +}; +createApp(App).use(router).use(ElementPlus,{ + locale: zhCn, +}).mount('#app') diff --git a/src/view/dialog/dialog.vue b/src/view/dialog/dialog.vue index 2f89953..773f3f2 100644 --- a/src/view/dialog/dialog.vue +++ b/src/view/dialog/dialog.vue @@ -58,7 +58,7 @@ @@ -86,7 +86,7 @@
props.dialogShow, @@ -167,7 +167,7 @@ watch( () => props.tableData, (newVal, oldVal) => { data.tableData = props.tableData; - tableKey.value = Math.random() + tableKey.value = Math.random(); } ); // 使用生命钩子 @@ -176,6 +176,9 @@ onMounted(() => { data.columns = props.columns; data.title = props.title; data.tableData = props.tableData; + const paginationTotal = document.querySelector(".el-pagination__total"); + console.log(paginationTotal); + // paginationTotal.innerText = `总共 ${props.pagination.total} 组数据`; }); const closeDialog = () => { @@ -248,6 +251,9 @@ const handle = (current) => { :deep(.el-pagination button:disabled) { background-color: rgba(0, 116, 255, 0) !important; } + :deep(.el-pagination > .is-last) { + color: #ffffff; + } } .bo {