Skip to content

Commit 488ff50

Browse files
authored
fix: better Oruga UI detection (#36)
1 parent 6197b20 commit 488ff50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

detectors/uis.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
},
99
"detectors": {
1010
"js": [
11-
"[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__?.$oruga)).filter(Boolean).length",
12-
"[...document.querySelectorAll('*')].filter((el) => ['o-autocomplete', 'o-button', 'o-checkbox ', 'o-collapse', 'o-dropdown', 'o-field', 'o-icon', 'o-input', 'o-loading', 'o-modal', 'o-pagination', 'o-radio', 'o-select', 'o-sidebar', 'o-skeleton', 'o-slider', 'o-steps', 'o-switch', 'o-table', 'o-tabs', 'o-tooltip', 'o-upload', 'o-carousel', 'o-dialog', 'o-clockpicker', 'o-datepicker', 'o-datimepicker', 'o-numberinput', 'o-timepicker', 'o-taginput', 'o-image', 'o-notification', 'o-navbar', 'o-menu', 'o-tag'].includes(el.__vue__?.$options?._componentTag)).length"
11+
"[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__?.$options.isOruga)).filter(Boolean).length",
12+
"[...document.querySelectorAll('*')].map((el) => Boolean(el.__vueParentComponent?.ctx.$options.isOruga)).filter(Boolean).length"
1313
]
1414
}
1515
},

0 commit comments

Comments
 (0)