未验证 提交 01979c2a 编写于 作者: D Drjingfubo 提交者: GitHub

test(menu): resolve error (#1557)

上级 39d839ec
......@@ -128,9 +128,11 @@ test('menu item title props: nut-menu__title-text html should contain custom tit
test('menu item title icon props: nut-menu__title i classes should contain nut-icon-joy-smile', async () => {
const wrapper = mount(Menu, {
props: {
titleIcon: 'joy-smile'
},
slots: {
default: h(MenuItem, {
titleIcon: 'joy-smile',
modelValue: 0,
options: options1
})
......
......@@ -25,8 +25,8 @@
<nut-menu-item v-model="state.value2" @change="handleChange" :options="options2" />
</nut-menu>
<h2>{{ translate('customIcons') }}</h2>
<nut-menu>
<nut-menu-item v-model="state.value1" :options="options1" titleIcon="joy-smile" />
<nut-menu titleIcon="joy-smile">
<nut-menu-item v-model="state.value1" :options="options1" />
<nut-menu-item v-model="state.value2" @change="handleChange" :options="options2" optionIcon="checklist" />
</nut-menu>
<h2>{{ translate('expandDirection') }}</h2>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册