This commit is contained in:
wangshiming
2022-03-24 18:19:56 +08:00
parent 28cf54a525
commit 87bb6a731d
3 changed files with 20 additions and 17 deletions

View File

@ -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 = [];
}
}

View File

@ -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';