UNPKG

fezui

Version:

FEZUI 是一套基于 Vue 的支持多终端的开源UI交互组件库,致力于积木式的快速构建项目,提升产品体验和开发效率、降低开发和维护成本。

28 lines (26 loc) 796 B
const prefixCls = 'fez-picker-panel'; const datePrefixCls = 'fez-date-picker'; export default { methods: { iconBtnCls(direction, type = '') { return [ `${prefixCls}-icon-btn`, `${datePrefixCls}-${direction}-btn`, `${datePrefixCls}-${direction}-btn-arrow${type}`, ]; }, handleShortcutClick(shortcut) { if (shortcut.value) this.$emit('on-pick', shortcut.value()); if (shortcut.onClick) shortcut.onClick(this); }, handlePickClear() { this.$emit('on-pick-clear'); }, handlePickSuccess() { this.$emit('on-pick-success'); }, handlePickClick() { this.$emit('on-pick-click'); } } };