Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(action-menu): misspelled word #2431

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions examples/sites/demos/mobile-first/app/dialog-box/basic-usage.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<template>
<div style="height: 330px">
<span>
<tiny-button @click="defaultVisable = true">默认属性配置</tiny-button>
<tiny-button @click="hideVisable = true">隐藏头部</tiny-button>
<tiny-button @click="btnVisable = true">隐藏关闭按钮</tiny-button>
<tiny-button @click="defaultVisible = true">默认属性配置</tiny-button>
<tiny-button @click="hideVisible = true">隐藏头部</tiny-button>
<tiny-button @click="btnVisible = true">隐藏关闭按钮</tiny-button>
</span>

<tiny-dialog-box
v-if="defaultVisable"
:visible="defaultVisable"
@update:visible="defaultVisable = $event"
v-if="defaultVisible"
:visible="defaultVisible"
@update:visible="defaultVisible = $event"
:modal-append-to-body="false"
>
<div>自定义内容</div>
Expand All @@ -19,19 +19,19 @@
:modal-append-to-body="false"
title="标题1"
:show-header="false"
:visible="hideVisable"
v-if="hideVisable"
@update:visible="hideVisable = $event"
:visible="hideVisible"
v-if="hideVisible"
@update:visible="hideVisible = $event"
><div>自定义内容</div></tiny-dialog-box
>

<tiny-dialog-box
:modal-append-to-body="false"
title="标题1"
:show-close="false"
v-if="btnVisable"
:visible="btnVisable"
@update:visible="btnVisable = $event"
v-if="btnVisible"
:visible="btnVisible"
@update:visible="btnVisible = $event"
><div>自定义内容</div></tiny-dialog-box
>
</div>
Expand All @@ -47,9 +47,9 @@ export default {
},
data() {
return {
hideVisable: false,
btnVisable: false,
defaultVisable: false
hideVisible: false,
btnVisible: false,
defaultVisible: false
}
},
methods: {}
Expand Down
4 changes: 2 additions & 2 deletions packages/theme/src/action-menu/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
align-items: center;

// 默认
&.@{action-menu-prefix-cls}__item-visable {
&.@{action-menu-prefix-cls}__item-visible {
.@{dropdown-item-prefix-cls} {
padding: 0;

Expand Down Expand Up @@ -83,7 +83,7 @@
}

.@{action-menu-prefix-cls}__item {
&.@{action-menu-prefix-cls}__item-visable {
&.@{action-menu-prefix-cls}__item-visible {
.@{dropdown-item-prefix-cls}__wrap {
color: var(--tv-ActionMenu-text-color-card);

Expand Down
14 changes: 7 additions & 7 deletions packages/vue/src/action-menu/src/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
<div class="tiny-action-menu">
<ul :class="{ 'tiny-action-menu__wrap': true, 'tiny-action-menu__card-mode': state.isCardMode }">
<li
v-for="(visableItem, index) in state.visibleOptions"
v-for="(visibleItem, index) in state.visibleOptions"
:key="index"
:class="[
'tiny-action-menu__item',
'tiny-action-menu__item-visable',
{ 'is-disabled': visableItem.disabled, 'tiny-action-menu__card-item': state.isCardMode }
'tiny-action-menu__item-visible',
zzcr marked this conversation as resolved.
Show resolved Hide resolved
{ 'is-disabled': visibleItem.disabled, 'tiny-action-menu__card-item': state.isCardMode }
]"
>
<tiny-dropdown-item
:item-data="visableItem"
:label="visableItem[textField]"
:item-data="visibleItem"
:label="visibleItem[textField]"
:text-field="textField"
:disabled="visableItem.disabled"
:icon="visableItem.icon"
:disabled="visibleItem.disabled"
:icon="visibleItem.icon"
@item-click="handleItemClick"
>
<template #default="{ itemData }">
Expand Down
Loading