Skip to content
New issue

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

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

Open
haizhilin2013 opened this issue Jun 22, 2019 · 5 comments
Open
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

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

@haizhilin2013 haizhilin2013 added the vue vue label Jun 22, 2019
@forever-z-133
Copy link

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

@yelingfeng
Copy link

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

@iugu516
Copy link

iugu516 commented Sep 4, 2019

.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
}
]
]
}

@mingyec
Copy link

mingyec commented Mar 30, 2020

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

@qq-radio
Copy link

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

小机灵鬼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vue vue
Projects
None yet
Development

No branches or pull requests

6 participants