refactor(Sideber): improve setup perf

This commit is contained in:
chenjiahan
2020-09-27 16:46:47 +08:00
parent a3a8f2961c
commit 81bca27544
2 changed files with 82 additions and 67 deletions
+2 -2
View File
@@ -27,10 +27,10 @@ export default createComponent({
emits: ['focus'],
setup(props, { emit }) {
function onTouchStart(event) {
const onTouchStart = (event) => {
event.stopPropagation();
emit('focus', event);
}
};
return () => {
const { mask, value, length, gutter, focused, errorInfo } = props;