vue-clipboards icon indicating copy to clipboard operation
vue-clipboards copied to clipboard

动态数据

Open niceduang opened this issue 5 years ago • 0 comments

<button v-clipboard="copyData" @click="copy">Copy</button>

Vue.use(VueClipboards);

new Vue({
    data() {
        return {
            copyData: '110'
        }
    },
    methods: {
        copy() {
            this.copyData = '120'
        }
    }
});

ctrl+v,是110还是120?

niceduang avatar Feb 21 '20 10:02 niceduang