@netang/quasar 0.1.9 → 0.1.12
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.
|
@@ -59,22 +59,29 @@
|
|
|
59
59
|
<!-- 渲染详情页面(手机端不显示) -->
|
|
60
60
|
<template v-slot:after>
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
:
|
|
65
|
-
:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
<slot
|
|
63
|
+
name="after"
|
|
64
|
+
:selected="tableSelected"
|
|
65
|
+
:single-selected="currentSelectedItem"
|
|
66
|
+
>
|
|
67
|
+
<!-- 渲染 -->
|
|
68
|
+
<n-render
|
|
69
|
+
:name="renderName"
|
|
70
|
+
:path="renderPath"
|
|
71
|
+
:component="renderComponent"
|
|
72
|
+
:query="currentQuery"
|
|
73
|
+
:props="renderProps"
|
|
74
|
+
v-if="currentQuery"
|
|
75
|
+
/>
|
|
76
|
+
|
|
77
|
+
<!-- 空状态 -->
|
|
78
|
+
<n-empty
|
|
79
|
+
:description="renderDescription"
|
|
80
|
+
fit
|
|
81
|
+
v-else
|
|
82
|
+
/>
|
|
83
|
+
|
|
84
|
+
</slot>
|
|
78
85
|
|
|
79
86
|
</template>
|
|
80
87
|
|
|
@@ -174,7 +181,7 @@ export default {
|
|
|
174
181
|
default: '没有找到任何数据',
|
|
175
182
|
},
|
|
176
183
|
// 不需要加载渲染页面标识参数
|
|
177
|
-
// 额外加载参数 {
|
|
184
|
+
// 额外加载参数 { n_render_page: 1 }
|
|
178
185
|
noRendPageName: Boolean,
|
|
179
186
|
},
|
|
180
187
|
|
|
@@ -225,7 +232,7 @@ export default {
|
|
|
225
232
|
// 格式化已选数据, 并返回参数
|
|
226
233
|
return Object.assign({}, resQuery, {
|
|
227
234
|
// 是否为渲染页面
|
|
228
|
-
|
|
235
|
+
n_render_page: 1,
|
|
229
236
|
})
|
|
230
237
|
}
|
|
231
238
|
|
|
@@ -360,6 +367,11 @@ export default {
|
|
|
360
367
|
|
|
361
368
|
// 设置表格选择类型
|
|
362
369
|
setSelection,
|
|
370
|
+
|
|
371
|
+
// 表格已选数据
|
|
372
|
+
tableSelected: $table.tableSelected,
|
|
373
|
+
// 当前已选数据的第一条数据
|
|
374
|
+
currentSelectedItem,
|
|
363
375
|
}
|
|
364
376
|
}
|
|
365
377
|
}
|