UNPKG

fast-element-ui

Version:

Vue项目快速开发组件框架,使用element-ui为基础库二次封装构建。

26 lines (24 loc) 593 B
/** * @desc input 隐藏控件 */ import { devConsole } from '../helper/util.js' import FastTextInput from '../text-input/index.js' const FastTextHidden = { name: 'FastTextHidden', extends: FastTextInput, props: { type: { type: String, default: 'hidden' } } } FastTextHidden.install = function (Vue, ElInput) { // 用于按需加载的时候独立使用 devConsole(FastTextHidden.name + '----install----') if (ElInput) { Vue.use(ElInput) } Vue.component(FastTextHidden.name, FastTextHidden) } export default FastTextHidden