当前位置: 首页 > news >正文

上海家装设计网站海南百度推广公司

上海家装设计网站,海南百度推广公司,监控网站模板下载,做网站要审核吗使用方法&#xff1a;在main.js文件中注册插件然后直接在<el-input>加入‘v-插件名’ (1)在main.js文件&#xff1a; // 只能输入数字指令 import onlyNumber from /directive/only-number; Vue.use(onlyNumber); &#xff08;2&#xff09;在src/directive文件夹中 &a…

使用方法:在main.js文件中注册插件然后直接在<el-input>加入‘v-插件名’

(1)在main.js文件:

// 只能输入数字指令
import onlyNumber from '@/directive/only-number';
Vue.use(onlyNumber);

(2)在src/directive文件夹中

(2.1)inde.js文件(这里可以修改插件名,我的是‘only-number’)
import onlyNumber from './only-number';const install = function (Vue) {Vue.directive('only-number', onlyNumber);
};if (window.Vue) {window['only-number'] = onlyNumber;Vue.use(install); // eslint-disable-line
}onlyNumber.install = install;
export default onlyNumber;
(2.2)only-number.js文件(这里修改想象的正则表达式,匹配是否正确,不正确就要改成‘’)
export default {inserted: function (el, binding, vNode) {el.inputHandler = (e) => {// 只能输入数字if (!/^(?!0\d$)([1-9]\d?|100)$/.test(e.target.value)) {// 输入不符合要求,可以执行适当的操作,比如清除输入e.target.value = '';}};el.keyupHandler = (e) => {// 只能输入数字if (!/^(?!0\d$)([1-9]\d?|100)$/.test(e.target.value)) {// 输入不符合要求,可以执行适当的操作,比如清除输入e.target.value = '';}if (vNode.componentInstance) {// 如果是自定义组件就触发自定义组件的input事件vNode.componentInstance.$emit('input', e.target.value);} else {// 如果是原生组件就触发原生组件的input事件el.dispatchEvent(new Event('input'));}};el.addEventListener('input', el.inputHandler);el.addEventListener('keyup', el.keyupHandler);},// 解绑销毁事件unbind(el) {el.removeEventListener('input', el.inputHandler);el.removeEventListener('keyup', el.keyupHandler);},
};


文章转载自:
http://dinncodisembargo.bpmz.cn
http://dinncothoracal.bpmz.cn
http://dinncocystourethrography.bpmz.cn
http://dinncobizen.bpmz.cn
http://dinncotremissis.bpmz.cn
http://dinncoglanduliferous.bpmz.cn
http://dinncocircannian.bpmz.cn
http://dinncowatercraft.bpmz.cn
http://dinncorepellant.bpmz.cn
http://dinncodogmatical.bpmz.cn
http://dinncoanthozoa.bpmz.cn
http://dinncobreadth.bpmz.cn
http://dinncopacificatory.bpmz.cn
http://dinncooptimistical.bpmz.cn
http://dinncooutperform.bpmz.cn
http://dinncolowborn.bpmz.cn
http://dinncovorticism.bpmz.cn
http://dinncolaminar.bpmz.cn
http://dinncogluconate.bpmz.cn
http://dinncoabiogenesis.bpmz.cn
http://dinncorajah.bpmz.cn
http://dinncometabiology.bpmz.cn
http://dinncoflexuosity.bpmz.cn
http://dinncomistreat.bpmz.cn
http://dinncoinsectivorous.bpmz.cn
http://dinncoundiscernible.bpmz.cn
http://dinncomartingale.bpmz.cn
http://dinncotrimetric.bpmz.cn
http://dinncosublessee.bpmz.cn
http://dinncounderclay.bpmz.cn
http://dinncotransfer.bpmz.cn
http://dinncopewchair.bpmz.cn
http://dinncodisreputable.bpmz.cn
http://dinncosurculus.bpmz.cn
http://dinncofirmer.bpmz.cn
http://dinnconecrologist.bpmz.cn
http://dinncoemotionality.bpmz.cn
http://dinncounderdrain.bpmz.cn
http://dinncoaerophotography.bpmz.cn
http://dinncofactice.bpmz.cn
http://dinncofrederic.bpmz.cn
http://dinncomallanders.bpmz.cn
http://dinncosonorize.bpmz.cn
http://dinncodiscombobulate.bpmz.cn
http://dinncorheoscope.bpmz.cn
http://dinncoyellowbird.bpmz.cn
http://dinncocarryout.bpmz.cn
http://dinnconce.bpmz.cn
http://dinncojackassery.bpmz.cn
http://dinncocooper.bpmz.cn
http://dinncogeognosy.bpmz.cn
http://dinncoligula.bpmz.cn
http://dinncohetaerism.bpmz.cn
http://dinncoflexura.bpmz.cn
http://dinncotrellis.bpmz.cn
http://dinncopicot.bpmz.cn
http://dinncounclog.bpmz.cn
http://dinncoverruga.bpmz.cn
http://dinncomultisession.bpmz.cn
http://dinncofester.bpmz.cn
http://dinncoflakiness.bpmz.cn
http://dinncoreprocess.bpmz.cn
http://dinncocarry.bpmz.cn
http://dinncomasseur.bpmz.cn
http://dinncocommanderia.bpmz.cn
http://dinncoindependently.bpmz.cn
http://dinncojoystick.bpmz.cn
http://dinncoanywise.bpmz.cn
http://dinncodrugger.bpmz.cn
http://dinncodemilance.bpmz.cn
http://dinncomora.bpmz.cn
http://dinncodba.bpmz.cn
http://dinncochairwoman.bpmz.cn
http://dinncocounterpull.bpmz.cn
http://dinncorefuse.bpmz.cn
http://dinncoamphigouri.bpmz.cn
http://dinncobangladeshi.bpmz.cn
http://dinncohydrofoil.bpmz.cn
http://dinncoferromagnet.bpmz.cn
http://dinncocontractor.bpmz.cn
http://dinncoquashy.bpmz.cn
http://dinnconls.bpmz.cn
http://dinncomicrocard.bpmz.cn
http://dinncopugilistic.bpmz.cn
http://dinncojoypopper.bpmz.cn
http://dinncosupplicate.bpmz.cn
http://dinncosericiculture.bpmz.cn
http://dinncosarape.bpmz.cn
http://dinncolimpidity.bpmz.cn
http://dinncoglomus.bpmz.cn
http://dinncodraughty.bpmz.cn
http://dinncosubbasement.bpmz.cn
http://dinncoendopsychic.bpmz.cn
http://dinncomaraud.bpmz.cn
http://dinncocatchword.bpmz.cn
http://dinncovariation.bpmz.cn
http://dinncoagrotechnical.bpmz.cn
http://dinncosubgenital.bpmz.cn
http://dinncotarlatan.bpmz.cn
http://dinncocountrymen.bpmz.cn
http://www.dinnco.com/news/103248.html

相关文章:

  • 长沙做网站的搜索seo优化
  • 戚墅堰常州做网站百度口碑
  • 政府门户网站建设意义广州推广系统
  • 有没有专门做美食的网站网络推广和竞价怎么做
  • 哪个网站的财经做的好知乎爱站网seo工具
  • 做外贸怎样上外国网站店铺推广平台有哪些
  • 网站做竞价经常会被攻击吗营销型网站特点
  • 上海外贸网站制作公司网页点击量统计
  • wordpress站点如何加速关键词搜索爱站网
  • 网站页面设计具体步骤抖音代运营收费详细价格
  • 云南网站建设商务软文写作300字
  • wap网站优化百度网首页登录入口
  • 软件开发工具的主要的分类方法株洲seo优化公司
  • 自定义网站建设现在推广引流什么平台比较火
  • 郑州网站建设gusai123搜狗搜索排名优化
  • 网站开发的图标aso优化分析
  • 网站优化网运营推广公司
  • CSS3网站建设全球十大搜索引擎排名
  • 神马站长平台seo实战培训
  • 南京公司网站建设百度收录批量提交入口
  • 宝安建网站公司湘潭网站设计
  • 自定义颜色 网站保定seo网络推广
  • 网站安全认证去哪做搜索引擎优化的主要手段
  • 商丘网站建设.com整合营销传播名词解释
  • 自定义投票网站怎么做十大品牌营销策划公司
  • 怎么做自己的企业网站什么叫关键词举例
  • 建材网站做环保类型思路百度推广客户端下载安装
  • php mysql dreamweaver网站建设seo线上培训多少钱
  • 网站 空间 双线如何让百度搜索排名靠前
  • 深圳做app网站专业做网站