@a2simcode/ui 0.0.227 → 0.0.228
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<span style="margin-left: 12px; color: #999">当前数据条数: {{ tableData.length }}</span>
|
|
8
8
|
</div>
|
|
9
9
|
<div style="position: relative; width: 100%; height: 400px">
|
|
10
|
-
<j-table-panel v-model="tableData" row-key="id" :columns="columns"
|
|
10
|
+
<j-table-panel v-model="tableData" row-key="id" :columns="columns" />
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
@@ -61,11 +61,6 @@ const initialData = [
|
|
|
61
61
|
|
|
62
62
|
const tableData = ref<Record<string, any>[]>([...initialData])
|
|
63
63
|
|
|
64
|
-
const loadData = async () => {
|
|
65
|
-
// modelValue 变化时会自动触发 loadData,直接返回当前绑定的数据即可
|
|
66
|
-
return tableData.value
|
|
67
|
-
}
|
|
68
|
-
|
|
69
64
|
const refreshData = () => {
|
|
70
65
|
// 重新赋值触发 modelValue 变化 -> 自动刷新表格
|
|
71
66
|
tableData.value = [...initialData]
|