chore: use get in useUI

This commit is contained in:
Benjamin Canac
2023-09-21 12:50:18 +02:00
parent c937736734
commit 86dc49ecc9
34 changed files with 36 additions and 36 deletions

View File

@@ -176,7 +176,7 @@ export default defineComponent({
},
emits: ['update:modelValue', 'close'],
setup (props, { emit, expose }) {
const { ui, attrs } = useUI('commandPalette', props.ui, config, { mergeWrapper: true })
const { ui, attrs } = useUI('ui.commandPalette', props.ui, config, { mergeWrapper: true })
const query = ref('')
const comboboxInput = ref<ComponentPublicInstance<HTMLInputElement>>()

View File

@@ -113,7 +113,7 @@ export default defineComponent({
},
emits: ['update:modelValue'],
setup (props, { emit }) {
const { ui, attrs } = useUI('pagination', props.ui, config, { mergeWrapper: true })
const { ui, attrs } = useUI('ui.pagination', props.ui, config, { mergeWrapper: true })
const currentPage = computed({
get () {

View File

@@ -95,7 +95,7 @@ export default defineComponent({
},
emits: ['update:modelValue', 'change'],
setup (props, { emit }) {
const { ui, attrs } = useUI('tabs', props.ui, config, { mergeWrapper: true })
const { ui, attrs } = useUI('ui.tabs', props.ui, config, { mergeWrapper: true })
const listRef = ref<HTMLElement>()
const itemRefs = ref<HTMLElement[]>([])

View File

@@ -70,7 +70,7 @@ export default defineComponent({
}
},
setup (props) {
const { ui, attrs } = useUI('verticalNavigation', props.ui, config, { mergeWrapper: true })
const { ui, attrs } = useUI('ui.verticalNavigation', props.ui, config, { mergeWrapper: true })
return {
// eslint-disable-next-line vue/no-dupe-keys