Skip to content

Commit

Permalink
style(action-menu): misspelled word (#2431)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored Nov 12, 2024
1 parent 86910d8 commit ccd9ce6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
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',
{ '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

0 comments on commit ccd9ce6

Please sign in to comment.