Skip to content

Commit ccd9ce6

Browse files
authored
style(action-menu): misspelled word (#2431)
1 parent 86910d8 commit ccd9ce6

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

examples/sites/demos/mobile-first/app/dialog-box/basic-usage.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<template>
22
<div style="height: 330px">
33
<span>
4-
<tiny-button @click="defaultVisable = true">默认属性配置</tiny-button>
5-
<tiny-button @click="hideVisable = true">隐藏头部</tiny-button>
6-
<tiny-button @click="btnVisable = true">隐藏关闭按钮</tiny-button>
4+
<tiny-button @click="defaultVisible = true">默认属性配置</tiny-button>
5+
<tiny-button @click="hideVisible = true">隐藏头部</tiny-button>
6+
<tiny-button @click="btnVisible = true">隐藏关闭按钮</tiny-button>
77
</span>
88

99
<tiny-dialog-box
10-
v-if="defaultVisable"
11-
:visible="defaultVisable"
12-
@update:visible="defaultVisable = $event"
10+
v-if="defaultVisible"
11+
:visible="defaultVisible"
12+
@update:visible="defaultVisible = $event"
1313
:modal-append-to-body="false"
1414
>
1515
<div>自定义内容</div>
@@ -19,19 +19,19 @@
1919
:modal-append-to-body="false"
2020
title="标题1"
2121
:show-header="false"
22-
:visible="hideVisable"
23-
v-if="hideVisable"
24-
@update:visible="hideVisable = $event"
22+
:visible="hideVisible"
23+
v-if="hideVisible"
24+
@update:visible="hideVisible = $event"
2525
><div>自定义内容</div></tiny-dialog-box
2626
>
2727

2828
<tiny-dialog-box
2929
:modal-append-to-body="false"
3030
title="标题1"
3131
:show-close="false"
32-
v-if="btnVisable"
33-
:visible="btnVisable"
34-
@update:visible="btnVisable = $event"
32+
v-if="btnVisible"
33+
:visible="btnVisible"
34+
@update:visible="btnVisible = $event"
3535
><div>自定义内容</div></tiny-dialog-box
3636
>
3737
</div>
@@ -47,9 +47,9 @@ export default {
4747
},
4848
data() {
4949
return {
50-
hideVisable: false,
51-
btnVisable: false,
52-
defaultVisable: false
50+
hideVisible: false,
51+
btnVisible: false,
52+
defaultVisible: false
5353
}
5454
},
5555
methods: {}

packages/theme/src/action-menu/index.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
align-items: center;
3636

3737
// 默认
38-
&.@{action-menu-prefix-cls}__item-visable {
38+
&.@{action-menu-prefix-cls}__item-visible {
3939
.@{dropdown-item-prefix-cls} {
4040
padding: 0;
4141

@@ -83,7 +83,7 @@
8383
}
8484

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

packages/vue/src/action-menu/src/pc.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<div class="tiny-action-menu">
33
<ul :class="{ 'tiny-action-menu__wrap': true, 'tiny-action-menu__card-mode': state.isCardMode }">
44
<li
5-
v-for="(visableItem, index) in state.visibleOptions"
5+
v-for="(visibleItem, index) in state.visibleOptions"
66
:key="index"
77
:class="[
88
'tiny-action-menu__item',
9-
'tiny-action-menu__item-visable',
10-
{ 'is-disabled': visableItem.disabled, 'tiny-action-menu__card-item': state.isCardMode }
9+
'tiny-action-menu__item-visible',
10+
{ 'is-disabled': visibleItem.disabled, 'tiny-action-menu__card-item': state.isCardMode }
1111
]"
1212
>
1313
<tiny-dropdown-item
14-
:item-data="visableItem"
15-
:label="visableItem[textField]"
14+
:item-data="visibleItem"
15+
:label="visibleItem[textField]"
1616
:text-field="textField"
17-
:disabled="visableItem.disabled"
18-
:icon="visableItem.icon"
17+
:disabled="visibleItem.disabled"
18+
:icon="visibleItem.icon"
1919
@item-click="handleItemClick"
2020
>
2121
<template #default="{ itemData }">

0 commit comments

Comments
 (0)