fe-interview icon indicating copy to clipboard operation
fe-interview copied to clipboard

[vue] 实际工作中,你总结的vue最佳实践有哪些?

Open haizhilin2013 opened this issue 7 years ago • 5 comments

[vue] 实际工作中,你总结的vue最佳实践有哪些?

haizhilin2013 avatar Jun 22 '19 21:06 haizhilin2013

存一份 defaultData 方便直接初始化,特别是带表单的弹窗也写在一起没有生命周期的时候。

forever-z-133 avatar Jun 28 '19 09:06 forever-z-133

vue ts写法 vue-tsx-support vue-property-decorator

yelingfeng avatar Jul 10 '19 02:07 yelingfeng

.babelrc 是目前 babel-polyfill 的最佳实践 { "presets": [ [ "@babel/preset-env", { "corejs": "3", "modules": false, "useBuiltIns": "usage" } ] ], "plugins": [ [ "@babel/plugin-transform-runtime", { "corejs": false, "helpers": true, "regenerator": false, "useESModules": true } ] ] }

iugu516 avatar Sep 04 '19 12:09 iugu516

全部存在vue风格指南里面了

mingyec avatar Mar 30 '20 14:03 mingyec

全部存在vue风格指南里面了

小机灵鬼

radio-qq avatar Dec 31 '20 02:12 radio-qq