w-ui-v1 1.0.99 → 1.1.0
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.
- package/package.json +1 -1
- package/w-table/w-table.vue +4 -1
package/package.json
CHANGED
package/w-table/w-table.vue
CHANGED
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
computed,
|
|
5
5
|
ref,
|
|
6
6
|
defineProps,
|
|
7
|
-
watch
|
|
7
|
+
watch,
|
|
8
|
+
defineEmits
|
|
8
9
|
} from 'vue'
|
|
9
10
|
import {
|
|
10
11
|
getPageData,
|
|
@@ -36,6 +37,7 @@ const props = defineProps({
|
|
|
36
37
|
default:true
|
|
37
38
|
}
|
|
38
39
|
})
|
|
40
|
+
const emits=defineEmits(['loadData'])
|
|
39
41
|
const query = ref('')
|
|
40
42
|
const sourceId = ref('')
|
|
41
43
|
const mainCode = ref('')
|
|
@@ -105,6 +107,7 @@ async function queryList(pageNo: number, pageSize: number) {
|
|
|
105
107
|
const data = await getPageData(key.data?.key, pageNo, pageSize)// 获取数据
|
|
106
108
|
// const count = await getPageTotal(key.data?.key)// 获取总数
|
|
107
109
|
paging.value.complete&&paging.value.complete(data.data.entities)
|
|
110
|
+
emits('loadData',data.data.entities)
|
|
108
111
|
}
|
|
109
112
|
catch (error) {
|
|
110
113
|
paging.value.complete&&paging.value&&paging.value.complete(false)
|