UNPKG

cloud-ui.vusion

Version:
36 lines (33 loc) 881 B
import Single from './index.vue'; import Range from './range.vue'; export default { name: 'u-time-picker-wrap', inheritAttrs: false, components: { Single, Range, }, props: { range: { type: Boolean, default: false, }, }, render(createElement) { const component = this.range ? Range : Single; return createElement(component, { props: this.$attrs, attrs: { 'vusion-node-tag': this.$attrs['vusion-node-tag'], 'vusion-node-path': this.$attrs['vusion-node-path'], }, on: this.$listeners, slots: this.$slots, scopedSlots: this.$scopedSlots, }); }, }; export const formatterOptions = { second: ['HH:mm:ss', 'HH时mm分ss秒'], minute: ['HH:mm', 'HH时mm分'], };