Refactor #5257
parent
23a21c2407
commit
bcb1b6eb8d
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<nav :id="id" :class="cx('root')" v-bind="ptm('root')">
|
||||
<nav :id="id" :class="cx('root')" v-bind="ptmi('root')">
|
||||
<ol ref="list" :class="cx('menu')" v-bind="ptm('menu')">
|
||||
<template v-for="(item, index) of model" :key="label(item) + '_' + index.toString()">
|
||||
<li
|
||||
|
@ -34,6 +34,7 @@ import BaseSteps from './BaseSteps.vue';
|
|||
export default {
|
||||
name: 'Steps',
|
||||
extends: BaseSteps,
|
||||
inheritAttrs: false,
|
||||
emits: ['update:activeStep', 'step-change'],
|
||||
data() {
|
||||
return {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div :class="cx('root')" v-bind="ptm('root')">
|
||||
<div :class="cx('root')" v-bind="ptmi('root')">
|
||||
<ul ref="nav" :class="cx('menu')" role="menubar" :aria-labelledby="ariaLabelledby" :aria-label="ariaLabel" v-bind="ptm('menu')">
|
||||
<template v-for="(item, i) of model" :key="label(item) + '_' + i.toString()">
|
||||
<li
|
||||
|
@ -37,6 +37,7 @@ import BaseTabMenu from './BaseTabMenu.vue';
|
|||
export default {
|
||||
name: 'TabMenu',
|
||||
extends: BaseTabMenu,
|
||||
inheritAttrs: false,
|
||||
emits: ['update:activeIndex', 'tab-change'],
|
||||
timeout: null,
|
||||
data() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div :class="cx('root')" role="tablist" v-bind="ptm('root')">
|
||||
<div :class="cx('root')" role="tablist" v-bind="ptmi('root')">
|
||||
<div :class="cx('navContainer')" v-bind="ptm('navContainer')">
|
||||
<button
|
||||
v-if="scrollable && !isPrevButtonDisabled"
|
||||
|
@ -102,6 +102,7 @@ import BaseTabView from './BaseTabView.vue';
|
|||
export default {
|
||||
name: 'TabView',
|
||||
extends: BaseTabView,
|
||||
inheritAttrs: false,
|
||||
emits: ['update:activeIndex', 'tab-change', 'tab-click'],
|
||||
data() {
|
||||
return {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<span :class="cx('root')" v-bind="ptm('root')">
|
||||
<span :class="cx('root')" v-bind="ptmi('root')">
|
||||
<component v-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" v-bind="ptm('icon')" />
|
||||
<span v-else-if="icon" :class="[cx('icon'), icon]" v-bind="ptm('icon')"></span>
|
||||
<slot v-if="value || $slots.default">
|
||||
|
@ -13,6 +13,7 @@ import BaseTag from './BaseTag.vue';
|
|||
|
||||
export default {
|
||||
name: 'Tag',
|
||||
extends: BaseTag
|
||||
extends: BaseTag,
|
||||
inheritAttrs: false
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div :class="cx('root')" @click="onClick" v-bind="ptm('root')">
|
||||
<div :class="cx('root')" @click="onClick" v-bind="ptmi('root')">
|
||||
<div v-if="welcomeMessage" v-bind="ptm('welcomeMessage')">{{ welcomeMessage }}</div>
|
||||
<div :class="cx('content')" v-bind="ptm('content')">
|
||||
<div v-for="(command, i) of commands" :key="command.text + i.toString()" v-bind="ptm('commands')">
|
||||
|
@ -22,6 +22,7 @@ import BaseTerminal from './BaseTerminal.vue';
|
|||
export default {
|
||||
name: 'Terminal',
|
||||
extends: BaseTerminal,
|
||||
inheritAttrs: false,
|
||||
data() {
|
||||
return {
|
||||
commandText: null,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<textarea :class="cx('root')" :value="modelValue" @input="onInput" v-bind="ptm('root', ptmParams)"></textarea>
|
||||
<textarea :class="cx('root')" :value="modelValue" @input="onInput" v-bind="ptmi('root', ptmParams)"></textarea>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -8,6 +8,7 @@ import BaseTextarea from './BaseTextarea.vue';
|
|||
export default {
|
||||
name: 'Textarea',
|
||||
extends: BaseTextarea,
|
||||
inheritAttrs: false,
|
||||
emits: ['update:modelValue'],
|
||||
mounted() {
|
||||
if (this.$el.offsetParent && this.autoResize) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<Portal :appendTo="appendTo" :disabled="!popup">
|
||||
<transition name="p-connected-overlay" @enter="onEnter" @after-enter="onAfterEnter" @leave="onLeave" @after-leave="onAfterLeave" v-bind="ptm('transition')">
|
||||
<div v-if="visible" :ref="containerRef" :id="id" :class="cx('root')" @click="onOverlayClick" v-bind="{ ...$attrs, ...ptm('root') }">
|
||||
<div v-if="visible" :ref="containerRef" :id="id" :class="cx('root')" @click="onOverlayClick" v-bind="ptmi('root')">
|
||||
<div v-if="$slots.start" :class="cx('start')" v-bind="ptm('start')">
|
||||
<slot name="start"></slot>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue