mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-21 01:31:20 +00:00
added clipboardTextinput
This commit is contained in:
parent
de938d64f5
commit
3ca79f9909
32
web/src/components/ClipBoardTextInput.vue
Normal file
32
web/src/components/ClipBoardTextInput.vue
Normal file
@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div>
|
||||
<input v-model="inputValue" :placeholder="placeholderText" />
|
||||
<button @click="pasteFromClipboard"><i data-feather="clipboard"></i></button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import feather from 'feather-icons'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
inputValue: "",
|
||||
placeholderText: "Enter text here",
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log('mnted all chat', this.allDiscussionPersonalities)
|
||||
nextTick(() => {
|
||||
feather.replace()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
pasteFromClipboard() {
|
||||
navigator.clipboard.readText().then((text) => {
|
||||
this.inputValue = text;
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user