优化现有代码问题
This commit is contained in:
@@ -16,7 +16,7 @@ class CustomChar extends CharField {
|
||||
|
||||
onMounted() {
|
||||
super.onMounted();
|
||||
console.log('CustomChar.onMounted1');
|
||||
// console.log('CustomChar.onMounted1');
|
||||
// 当光标聚焦于输入框时,选中输入框内容
|
||||
this.input.el.addEventListener('focus', function () {
|
||||
this.select();
|
||||
|
||||
@@ -14,11 +14,11 @@ class CustomMany2One extends Many2OneField {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
setup() {
|
||||
console.log('CustomMany2One.setup11111111111111');
|
||||
// console.log('CustomMany2One.setup11111111111111');
|
||||
super.setup();
|
||||
}
|
||||
onMounted() {
|
||||
console.log('CustomMany2One.onMounted1');
|
||||
// console.log('CustomMany2One.onMounted1');
|
||||
// 当光标聚焦于输入框时,选中输入框内容
|
||||
this.input.el.addEventListener('focus', function () {
|
||||
this.select();
|
||||
|
||||
Reference in New Issue
Block a user