✌️
This commit is contained in:
		
							parent
							
								
									54dc54f2ae
								
							
						
					
					
						commit
						28c9458b85
					
				
					 3 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -224,7 +224,7 @@ export default Vue.extend({
 | 
				
			||||||
					> p.is-deleted
 | 
										> p.is-deleted
 | 
				
			||||||
						color rgba(255, 255, 255, 0.5)
 | 
											color rgba(255, 255, 255, 0.5)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					> .text
 | 
										> .text >>>
 | 
				
			||||||
						&, *
 | 
											&, *
 | 
				
			||||||
							color #fff !important
 | 
												color #fff !important
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,5 +37,6 @@ export default (os) => (opts) => {
 | 
				
			||||||
		vm.$once('cancel', recover);
 | 
							vm.$once('cancel', recover);
 | 
				
			||||||
		vm.$once('post', recover);
 | 
							vm.$once('post', recover);
 | 
				
			||||||
		document.body.appendChild(vm.$el);
 | 
							document.body.appendChild(vm.$el);
 | 
				
			||||||
 | 
							(vm as any).focus();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,10 +49,13 @@ export default Vue.extend({
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	mounted() {
 | 
						mounted() {
 | 
				
			||||||
		this.$nextTick(() => {
 | 
							this.$nextTick(() => {
 | 
				
			||||||
			(this.$refs.text as any).focus();
 | 
								this.focus();
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	methods: {
 | 
						methods: {
 | 
				
			||||||
 | 
							focus() {
 | 
				
			||||||
 | 
								(this.$refs.text as any).focus();
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
		chooseFile() {
 | 
							chooseFile() {
 | 
				
			||||||
			(this.$refs.file as any).click();
 | 
								(this.$refs.file as any).click();
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue