ng-ytl-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
57 lines (50 loc) • 1.05 kB
text/typescript
import {Component} from '@angular/core';
const options = [{
value: 'zhejiang',
label: 'Zhejiang',
children: [{
value: 'hangzhou',
label: 'Hangzhou',
children: [{
value: 'xihu',
label: 'West Lake',
isLeaf: true
}],
}, {
value: 'ningbo',
label: 'Ningbo',
isLeaf: true
}],
}, {
value: 'jiangsu',
label: 'Jiangsu',
children: [{
value: 'nanjing',
label: 'Nanjing',
children: [{
value: 'zhonghuamen',
label: 'Zhong Hua Men',
isLeaf: true
}],
}],
}];
export class NzDemoCascaderHoverComponent {
/** init data */
_options = options;
_value: any[] = null;
_console(value) {
console.log(value);
}
}