@netang/quasar 0.0.43 → 0.0.45
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.
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
<!-- 渲染 -->
|
|
53
53
|
<n-render
|
|
54
|
-
:path="
|
|
54
|
+
:path="renderPath"
|
|
55
55
|
:query="currentQuery"
|
|
56
56
|
v-if="currentQuery"
|
|
57
57
|
/>
|
|
@@ -97,12 +97,12 @@ export default {
|
|
|
97
97
|
default: '没有找到任何数据',
|
|
98
98
|
},
|
|
99
99
|
// 渲染组件路径
|
|
100
|
-
|
|
100
|
+
renderPath: {
|
|
101
101
|
type: String,
|
|
102
102
|
required: true,
|
|
103
103
|
},
|
|
104
104
|
// 格式化已选表格的数据并返回渲染组件参数
|
|
105
|
-
|
|
105
|
+
renderQuery: Function,
|
|
106
106
|
// 工具提示
|
|
107
107
|
tooltip: {
|
|
108
108
|
type: String,
|
|
@@ -139,9 +139,9 @@ export default {
|
|
|
139
139
|
// 如果有已选数据
|
|
140
140
|
if (
|
|
141
141
|
currentSelectedItem.value
|
|
142
|
-
&& _.isFunction(props.
|
|
142
|
+
&& _.isFunction(props.renderQuery)
|
|
143
143
|
) {
|
|
144
|
-
const res = props.
|
|
144
|
+
const res = props.renderQuery(currentSelectedItem.value)
|
|
145
145
|
if (utils.isValidObject(res)) {
|
|
146
146
|
|
|
147
147
|
// 格式化已选数据, 并返回参数
|