@netang/quasar 0.1.51 → 0.1.52
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.
|
@@ -44,12 +44,10 @@
|
|
|
44
44
|
dense
|
|
45
45
|
outlined
|
|
46
46
|
clearable
|
|
47
|
-
|
|
48
47
|
/>
|
|
49
48
|
</div>
|
|
50
49
|
|
|
51
50
|
<!-- 分类树 -->
|
|
52
|
-
<!--selected-color="primary"-->
|
|
53
51
|
<n-tree
|
|
54
52
|
color="grey-5"
|
|
55
53
|
ref="treeRef"
|
|
@@ -61,7 +59,18 @@
|
|
|
61
59
|
no-selection-unset
|
|
62
60
|
default-expand-all
|
|
63
61
|
v-bind="treeProps"
|
|
64
|
-
|
|
62
|
+
>
|
|
63
|
+
<!-- 插槽 -->
|
|
64
|
+
<template
|
|
65
|
+
v-for="slotName in slotNames.search"
|
|
66
|
+
v-slot:[slotName]="props"
|
|
67
|
+
>
|
|
68
|
+
<slot
|
|
69
|
+
:name="`tree-${slotName}`"
|
|
70
|
+
v-bind="props"
|
|
71
|
+
/>
|
|
72
|
+
</template>
|
|
73
|
+
</n-tree>
|
|
65
74
|
|
|
66
75
|
</q-scroll-area>
|
|
67
76
|
</n-drawer>
|
|
@@ -352,6 +361,8 @@ export default {
|
|
|
352
361
|
for (const key in slots) {
|
|
353
362
|
if (key.startsWith('toolbar-')) {
|
|
354
363
|
toolbar.push(key.replace('toolbar-', ''))
|
|
364
|
+
} else if (key.startsWith('tree-')) {
|
|
365
|
+
search.push(key.replace('tree-', ''))
|
|
355
366
|
} else if (key.startsWith('search-')) {
|
|
356
367
|
search.push(key.replace('search-', ''))
|
|
357
368
|
} else if (key === 'left-drawer') {
|