UNPKG

fast-element-ui

Version:

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

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