
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
best-template-vue
Advanced tools
[toc]
2021-1-22 vue3 compositionAPI 还不够完善, 等支持动态ref组件再做template-plus
使用 git clone 更新拉取模板,vue 有更新会第一时间更新模板, 当前为 vue-cli3 vue2.6。
版本信息
{
"axios": "^0.19.2",
"core-js": "^3.6.4",
"element-ui": "^2.13.1",
"vue": "^2.6.11",
"vue-i18n": "^8.17.6",
"vue-router": "^3.1.6",
"vuex": "^3.1.3"
}
原因 window 自带的事件机制是:
如果监听在
dispathEvent之后,则无法获取到这个信息, 你需要写多个 if else 判断当前信息是否存在,存在即运行不存在则监听
event 事件越来越多,即时用一个 constant.js 管理,也显得十分混乱
原因:
更改数值,页面马上显示无需命令式执行逻辑
组件使用 vuex 值,无须担心是否无法获取到这个信息
更改数值,全部使用方法调用,配合 vue-tool 甚至可以实现时间旅行!
没有集成任何预处理工具
已集成国际化,在
i18n/lang文件夹中可自定义语言, 默认中文 cn
使用
prettier
兼容IE9 部分html5的语法polyfill见
src/polyfill
flex最低要求IE10,意味着ie9不能使用flex布局``
BaseForm 组件继承自 ElementUi Form 组件, ElementUI 组件一切属性均有效,以下是特有的属性
| 属性 | 描述 |
|---|---|
| c-required | 添加校验规则为必填 |
| mobile | 添加校验规则为手机 |
| 添加校验规则为邮箱 |
添加自定义规则:
只需在 baseComponent/validator/index.js,添加正则校验即可。BaseForm 组件会自动读取 validator 中的
key值
以前因为vue2是基于Object.defineProperties做的数据追踪,如果动态添加对象属性,则动态添加的属性无法进行追踪(响应式)
现在,使用BaseForm可以不在写初始化时写具体属性
对应的prop全部用空字符串作为初始化内容,如果想作为bool初始化,可加type="bool"
BasePopup 组件继承自 ElementUi Dialog 组件, ElementUI 组件一切属性均有效,以下是特有的属性
| 属性 | 描述 | 默认 |
|---|---|---|
| draggable | 是否可以拖拽弹窗 | false |
已集成
vuex, 在store/modules中添加数据
集成tailwindcss
FAQs
vue 架构模板
We found that best-template-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.