ds-dfb-npm

## 时间选择器(angular中使用) npm install ds-dfb-npm

Usage no npm install needed!

<script type="module">
  import dsDfbNpm from 'https://cdn.skypack.dev/ds-dfb-npm';
</script>

README

ds插件库

时间选择器(angular中使用)

npm install ds-dfb-npm

在angular.json中

、、、、、、
"scripts": [
    "node_modules/ds-dfb-npm/dist/iScroll4.js"
]
、、、、、、

使用

<ds-date-picker-five ></ds-date-picker-five>

配置

newDate = new Date();

@Input() startOpts = new DsDate();

@Input() inputOpts = new DsDate(this.newDate.getFullYear(), this.newDate.getMonth() + 1,
    this.newDate.getDate(), this.newDate.getHours(), this.newDate.getMinutes(), this.newDate.getSeconds());

@Input() endOpts = new DsDate(this.newDate.getFullYear(), this.newDate.getMonth() + 1,
    this.newDate.getDate(), this.newDate.getHours(), this.newDate.getMinutes(), this.newDate.getSeconds());

@Input() dateType: 'yyyy-MM-dd hh:mm:ss' | 'yyyy-MM-dd' | 'hh:mm:ss' | 'yyyy-MM-dd hh:mm'
   = 'yyyy-MM-dd';

@Output() outTime = new EventEmitter<any>();