@@ -105,18 +105,101 @@ export default defineComponent({
105
105
>
106
106
<template #left >
107
107
<div class =" flex flex-col h-full" >
108
- <VueInput
109
- ref =" treeFilterInput"
110
- v-model =" treeFilter"
111
- v-tooltip =" {
112
- content: $t('ComponentTree.filter.tooltip'),
113
- html: true
114
- }"
115
- icon-left =" search"
116
- placeholder =" Find components..."
117
- select-all
118
- class =" search flat border-b border-gray-200 dark:border-gray-800 !min-w-0"
119
- />
108
+ <div class =" flex items-center border-b border-gray-200 dark:border-gray-800" >
109
+ <VueInput
110
+ ref =" treeFilterInput"
111
+ v-model =" treeFilter"
112
+ v-tooltip =" {
113
+ content: $t('ComponentTree.filter.tooltip'),
114
+ html: true
115
+ }"
116
+ icon-left =" search"
117
+ placeholder =" Find components..."
118
+ select-all
119
+ class =" search flat !min-w-0 flex-1"
120
+ />
121
+
122
+ <VueButton
123
+ v-tooltip =" {
124
+ content: $t('ComponentTree.select.tooltip'),
125
+ html: true
126
+ }"
127
+ class =" icon-button flat"
128
+ icon-left =" gps_fixed"
129
+ @click =" startPickingComponent()"
130
+ />
131
+
132
+ <VueButton
133
+ v-tooltip =" {
134
+ content: $t('ComponentTree.refresh.tooltip'),
135
+ html: true
136
+ }"
137
+ class =" icon-button flat"
138
+ :class =" {
139
+ 'animate-icon': animateRefresh,
140
+ }"
141
+ icon-left =" refresh"
142
+ @click =" refresh()"
143
+ />
144
+
145
+ <VueDropdown
146
+ placement =" bottom-end"
147
+ >
148
+ <template #trigger >
149
+ <VueButton
150
+ icon-left =" more_vert"
151
+ class =" icon-button flat"
152
+ />
153
+ </template >
154
+
155
+ <div class =" space-y-1 px-3 py-2 text-sm" >
156
+ <div >Component names:</div >
157
+
158
+ <VueGroup
159
+ v-model =" $shared.componentNameStyle"
160
+ >
161
+ <VueGroupButton
162
+ value =" original"
163
+ label =" Original"
164
+ />
165
+ <VueGroupButton
166
+ value =" class"
167
+ label =" PascalCase"
168
+ />
169
+ <VueGroupButton
170
+ value =" kebab"
171
+ label =" kebab-case"
172
+ />
173
+ </VueGroup >
174
+ </div >
175
+
176
+ <div class =" space-y-1 px-3 py-2 text-sm" >
177
+ <VueSwitch v-model =" $shared.editableProps" >
178
+ Editable props
179
+ </VueSwitch >
180
+ <div class =" flex items-center space-x-1 text-xs opacity-50" >
181
+ <VueIcon
182
+ icon =" warning"
183
+ class =" w-4 h-4 flex-none"
184
+ />
185
+ <span >May print warnings in the console</span >
186
+ </div >
187
+ </div >
188
+
189
+ <div class =" space-y-1 px-3 py-2 text-sm" >
190
+ <VueSwitch v-model =" $shared.flashUpdates" >
191
+ Highlight updates
192
+ </VueSwitch >
193
+ <div class =" flex items-center space-x-1 text-xs opacity-50" >
194
+ <VueIcon
195
+ icon =" warning"
196
+ class =" w-4 h-4 flex-none"
197
+ />
198
+ <span >Don't enable if you are sensitive to flashing</span >
199
+ </div >
200
+ </div >
201
+ </VueDropdown >
202
+ </div >
120
203
121
204
<div
122
205
ref =" treeScroller"
@@ -136,82 +219,6 @@ export default defineComponent({
136
219
</template >
137
220
</SplitPane >
138
221
139
- <SafeTeleport to =" #more-menu" >
140
- <div class =" space-y-1 px-3 py-2 text-sm" >
141
- <div >Component names:</div >
142
-
143
- <VueGroup
144
- v-model =" $shared.componentNameStyle"
145
- >
146
- <VueGroupButton
147
- value =" original"
148
- label =" Original"
149
- />
150
- <VueGroupButton
151
- value =" class"
152
- label =" PascalCase"
153
- />
154
- <VueGroupButton
155
- value =" kebab"
156
- label =" kebab-case"
157
- />
158
- </VueGroup >
159
- </div >
160
-
161
- <div class =" space-y-1 px-3 py-2 text-sm" >
162
- <VueSwitch v-model =" $shared.editableProps" >
163
- Editable props
164
- </VueSwitch >
165
- <div class =" flex items-center space-x-1 text-xs opacity-50" >
166
- <VueIcon
167
- icon =" warning"
168
- class =" w-4 h-4 flex-none"
169
- />
170
- <span >May print warnings in the console</span >
171
- </div >
172
- </div >
173
-
174
- <div class =" space-y-1 px-3 py-2 text-sm" >
175
- <VueSwitch v-model =" $shared.flashUpdates" >
176
- Highlight updates
177
- </VueSwitch >
178
- <div class =" flex items-center space-x-1 text-xs opacity-50" >
179
- <VueIcon
180
- icon =" warning"
181
- class =" w-4 h-4 flex-none"
182
- />
183
- <span >Don't enable if you are sensitive to flashing</span >
184
- </div >
185
- </div >
186
-
187
- <div class =" border-t border-gray-200 dark:border-gray-800 my-1" />
188
- </SafeTeleport >
189
-
190
- <SafeTeleport to =" #header-end" >
191
- <VueButton
192
- v-tooltip =" {
193
- content: $t('ComponentTree.select.tooltip'),
194
- html: true
195
- }"
196
- class =" icon-button flat"
197
- icon-left =" gps_fixed"
198
- @click =" startPickingComponent()"
199
- />
200
-
201
- <VueButton
202
- v-tooltip =" {
203
- content: $t('ComponentTree.refresh.tooltip'),
204
- html: true
205
- }"
206
- class =" icon-button flat"
207
- :class =" {
208
- 'animate-icon': animateRefresh,
209
- }"
210
- icon-left =" refresh"
211
- @click =" refresh()"
212
- />
213
- </SafeTeleport >
214
-
215
222
<SafeTeleport to =" #root" >
216
223
<div
217
224
v-if =" pickingComponent"
0 commit comments