We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug描述 输入过程中失焦触发blur后,再次输入时,该blur事件,匪夷所思的变成了input事件的效果
复现bug的步骤
问题截图
编译环境信息
运行环境信息
代码 {{label}}:
The text was updated successfully, but these errors were encountered:
input.txt 问题代码
Sorry, something went wrong.
No branches or pull requests
bug描述
输入过程中失焦触发blur后,再次输入时,该blur事件,匪夷所思的变成了input事件的效果
复现bug的步骤
问题截图
编译环境信息
运行环境信息
代码
<script> import cml from 'chameleon-api' import store from '../../store' const animation = cml.createAnimation(); class DemoCom { props = { label: { type: String, default: '手机号' }, placeholders: { type: String, default: '请输入手机号' }, reg: { type: String, default: 'phone' } } data = { message: "Hello world!", animationData: {}, current_transform: [3, 1], animationCode: 3, content: '' } computed = { ...store.mapState([ // ... 'count' ]), ...store.mapGetters([ 'getUserInfo' ]) } watch = { } methods = { ...store.mapActions({ userInfo: 'updateUserInfo' }), handleTabbarClick () { }, // 抖动动画 transform () { this.current_transform = this.current_transform[0] === 0 ? [0, 1]:[3, 1.2]; this.animationData = animation .rotate("6") // .scale(this.current_transform[1.2]) .step({ duration: 100, timingFunction: 'ease-out', delay: 0 }) .rotate("-6") .scale(1) .step({ duration: 100, timingFunction: 'ease-out', delay: 0 }) .rotate("0") .scale(1) .step({ duration: 16, timingFunction: 'ease-out', delay: 0 }) .export() }, inputBlur () { let regex = /^0?(13|15|18|14|17|16|19)[0-9]{9}$/ if (this.content && !regex.test(this.content)) { this.transform() } } } beforeCreate() { } created() { } beforeMount() { } mounted() { } beforeDestroy() { } destroyed() { } } export default new DemoCom(); </script> <style> .microloan_input{ width: 100%; padding: 10cpx 0; box-shadow: 0 1px 10px 0 red; border-radius: 10cpx; /* border: 1px solid red; */ } .cml-input{ border: 1px solid red; } .label{ height: 80cpx; line-height: 80cpx; } .flex_wrap{ flex-wrap: wrap; } </style> <script cml-type="json"> { "base": { "usingComponents": {} } } </script>{{label}}:
The text was updated successfully, but these errors were encountered: