sweet-modal-vue icon indicating copy to clipboard operation
sweet-modal-vue copied to clipboard

Question: dynamic icon for sweet-modal

Open kossa opened this issue 6 years ago • 1 comments

Hello,

I want to use only one sweet-model component under my own component, and making the slot and icon dynamic, something like :

<sweet-modal ref="modal" :icon="icon">
	{{ message }}
</sweet-modal>

And under methods I have something like:

this.message ="a custom message"
this.icon = 'error'

this.$refs.modal.open()

Everything works fine only this problem in the console : Cannot read property 'classList' of undefined image

kossa avatar Mar 18 '18 08:03 kossa

Same Issue Here.

ofumbi avatar Nov 09 '18 18:11 ofumbi