update Card - Divider

pull/3997/head
Bahadır Sofuoğlu 2023-05-23 15:06:25 +03:00
parent 4549601532
commit 862b35f8e8
2 changed files with 9 additions and 9 deletions

View File

@ -1,19 +1,19 @@
<template>
<div :class="cx('root')" v-bind="ptm('root')">
<div v-if="$slots.header" :class="cx('header')" v-bind="ptm('header')">
<div :class="cx('root')" v-bind="ptm('root')" data-pc-name="card" data-pc-section="root">
<div v-if="$slots.header" :class="cx('header')" v-bind="ptm('header')" data-pc-section="header">
<slot name="header"></slot>
</div>
<div :class="cx('body')" v-bind="ptm('body')">
<div v-if="$slots.title" :class="cx('title')" v-bind="ptm('title')">
<div :class="cx('body')" v-bind="ptm('body')" data-pc-section="body">
<div v-if="$slots.title" :class="cx('title')" v-bind="ptm('title')" data-pc-section="title">
<slot name="title"></slot>
</div>
<div v-if="$slots.subtitle" :class="cx('subtitle')" v-bind="ptm('subtitle')">
<div v-if="$slots.subtitle" :class="cx('subtitle')" v-bind="ptm('subtitle')" data-pc-section="subtitle">
<slot name="subtitle"></slot>
</div>
<div :class="cx('content')" v-bind="ptm('content')">
<div :class="cx('content')" v-bind="ptm('content')" data-pc-section="content">
<slot name="content"></slot>
</div>
<div v-if="$slots.footer" :class="cx('footer')" v-bind="ptm('footer')">
<div v-if="$slots.footer" :class="cx('footer')" v-bind="ptm('footer')" data-pc-section="footer">
<slot name="footer"></slot>
</div>
</div>

View File

@ -1,6 +1,6 @@
<template>
<div :class="cx('root')" role="separator" :aria-orientation="layout" v-bind="ptm('root')">
<div v-if="$slots.default" :class="cx('content')" v-bind="ptm('content')">
<div :class="cx('root')" role="separator" :aria-orientation="layout" v-bind="ptm('root')" data-pc-name="divider" data-pc-section="root">
<div v-if="$slots.default" :class="cx('content')" v-bind="ptm('content')" data-pc-name="content">
<slot></slot>
</div>
</div>