-
Notifications
You must be signed in to change notification settings - Fork 0
input.vue props
Carl's edited this page Jun 2, 2021
·
1 revision
- preset
let wrapper = mount(Foo)
await wrapper.setProps({ value: '1' })
- test
document.querySelector(".vue-keyboard-input-text").innerHTML==`<span class="vue-keyboard-text-item" tabindex="0">1</span>`
- return true
- preset
let wrapper = mount(Foo)
await wrapper.setProps({ value: "\r\n" })
- test
document.querySelector(".vue-keyboard-input-text").innerHTML==`<br>`
- return true
- preset
let wrapper = mount(Foo)
await wrapper.setProps({ value: "<img attr-img="" vue-keyboard-cn-emoji"="" class=" emoji-icon icon-smile" src="https://raw.githubusercontent.com/MTTTM/vue-keyboard-cn/main/src/dev/assets/images//person/1_smile.png">" })
- test
document.querySelector(".vue-keyboard-input-text").innerHTML==`<img attr-img="" vue-keyboard-cn-emoji"="" class=" emoji-icon icon-smile" src="https://raw.githubusercontent.com/MTTTM/vue-keyboard-cn/main/src/dev/assets/images//person/1_smile.png">`
- return true
happy,ending!!