File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/cool/modules/copy/directives Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " front-next-vue3-vite " ,
3
- "version" : " 0.0.0 " ,
2
+ "name" : " front-next" ,
3
+ "version" : " 0.0.1 " ,
4
4
"scripts" : {
5
5
"dev" : " vite" ,
6
6
"build" : " vue-tsc --noEmit && vite build" ,
Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ function copyboard() {
18
18
copyboard ( ) ;
19
19
20
20
export default {
21
- inserted : ( el : HTMLElement , binding : any ) => {
21
+ mounted : ( el : HTMLElement , binding : any ) => {
22
22
el . className = el . className + " _copy-btn" ;
23
23
el . setAttribute ( "data-clipboard-text" , binding . value ) ;
24
24
} ,
25
- update : ( el : HTMLElement , binding : any ) => {
25
+ beforeUpdate : ( el : HTMLElement , binding : any ) => {
26
+ console . log ( el ) ;
26
27
el . setAttribute ( "data-clipboard-text" , binding . value ) ;
27
28
}
28
29
} ;
You can’t perform that action at this time.
0 commit comments