@xizs/nuxt-antui 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -86,6 +86,7 @@ export type AttributeType = {
|
|
|
86
86
|
page:number,
|
|
87
87
|
pageSize: number,
|
|
88
88
|
tableData: any[],
|
|
89
|
+
metaTableData:any[],
|
|
89
90
|
form:any
|
|
90
91
|
}
|
|
91
92
|
|
|
@@ -186,6 +187,7 @@ export default defineComponent({
|
|
|
186
187
|
pagination.total = res.meta.pagination.total
|
|
187
188
|
pagination.pageSize = res.meta.pagination.per_page
|
|
188
189
|
pagination.page = res.meta.pagination.current_page
|
|
190
|
+
props.attribute.metaTableData = JSON.parse(JSON.stringify(res.list))
|
|
189
191
|
props.attribute.tableData = res.list
|
|
190
192
|
return res.list
|
|
191
193
|
},[])
|
package/app/composables/modal.ts
CHANGED
|
@@ -132,10 +132,10 @@ export const Confirm = {
|
|
|
132
132
|
// const { t: $t } = useI18n()
|
|
133
133
|
return new Promise((resolve, reject) => {
|
|
134
134
|
Modal.confirm({
|
|
135
|
-
title:
|
|
136
|
-
content:
|
|
137
|
-
okText:
|
|
138
|
-
cancelText:
|
|
135
|
+
title: '确认删除',
|
|
136
|
+
content: '确认删除该条数据吗?',
|
|
137
|
+
okText: '确定',
|
|
138
|
+
cancelText: '取消',
|
|
139
139
|
onOk: () => {
|
|
140
140
|
resolve(true)
|
|
141
141
|
},
|