holmes icon indicating copy to clipboard operation
holmes copied to clipboard

How to use it with Vue.

Open Yoruichi opened this issue 7 years ago • 8 comments

It seems NOT work with Vue's 'v-for'. simple example:

<div class="result">
    <blockquote v-for="item in items">
       {{ item }}
    </blockquote>
</div>
<script>
    data:{items:['aaa','bbb','ccc','abc']}
</script>

Yoruichi avatar Jun 24 '17 07:06 Yoruichi

Did you try with dynamic: true ?

Could you make a codepen with a minimal example?

Haroenv avatar Jun 24 '17 08:06 Haroenv

hi Haroenv. the dynamic:true works for me.but i found it does not support Chinese words.so please help me again.THX

Yoruichi avatar Jun 24 '17 08:06 Yoruichi

I can’t read chinese, could you give me an example of the problem?

Haroenv avatar Jun 24 '17 08:06 Haroenv

oh, i got it.It's my fault.I use a Chinese input. THX again.

Yoruichi avatar Jun 24 '17 08:06 Yoruichi

Could you show me what the exact problem is? I’d love to solve this!

Haroenv avatar Jun 24 '17 08:06 Haroenv

OK.Actually i use a Chinese input.it means if i want to input a Chinese word '王' , i need to click 'w','a','n','g' and space key.So Holmes will search five times for 'w','wa','wan','wang' and last one '王'. I set onInput: function(input) {console.log(input)} to find this.If i may,i think you should give a method to set when Holmes need to search.

Yoruichi avatar Jun 24 '17 09:06 Yoruichi

Hmm sounds interesting, I didn’t have this problem yet before, I’ll come back to you on this!

Haroenv avatar Jun 24 '17 09:06 Haroenv

related to https://github.com/guardian/scribe/issues/422

Haroenv avatar Aug 25 '17 16:08 Haroenv