fix bug
This commit is contained in:
@ -61,13 +61,12 @@ export class EAFromToWidget extends ControlWidget implements OnInit {
|
||||
}
|
||||
|
||||
onChange(result: Array<any>): void {
|
||||
console.log('onChange: ', result);
|
||||
|
||||
// console.log('onChange: ', result);
|
||||
if (this.type === 'date') {
|
||||
if (JSON.stringify(result) !== '[]') {
|
||||
this.setValue({ start: format(result[0], this.format), end: format(result[1], this.format) });
|
||||
} else {
|
||||
this.setValue(null);
|
||||
this.setValue({ start: '', end: '' });
|
||||
}
|
||||
} else if (this.type === 'number') {
|
||||
} else {
|
||||
@ -82,4 +81,8 @@ export class EAFromToWidget extends ControlWidget implements OnInit {
|
||||
_change(value: string): void {
|
||||
this.setValue(value);
|
||||
}
|
||||
|
||||
reset(value: string) {
|
||||
this.date = [];
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,3 +1,13 @@
|
||||
/*
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-11-29 10:04:12
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-03-24 18:18:00
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\shared\\widget\\tinymce\\tinymce.widget.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ControlWidget } from '@delon/form';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user