/*
 * @Author: your name
 * @Date: 2021-12-13 10:36:49
 * @LastEditTime: 2021-12-16 20:40:03
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \tms-obc-web\src\app\shared\widget\dict-select\dict-select.widget.ts
 */
import { Component, OnInit } from "@angular/core";
import { ControlWidget } from "@delon/form";

@Component({
  selector: 'sf-dict-select',
  templateUrl: './dict-select.widget.html',
  preserveWhitespaces: false,
})

export class DictSelectWidget extends ControlWidget implements OnInit {


  static readonly KEY = 'dict-select';
  /**
   * 字典数据数组
   */


  dictList: any[] = [];


  ngOnInit(): void {

  }

  change(value: string) {
    if (this.ui.change) this.ui.change(value);
    this.setValue(value);
  }
}
