Ai大模型相关案例,AI
Vue.js 1.0.0 Alpha 4 发布,最新的绑定语法请看 #1173
重大改进
- Literal directives now use the
#=syntax instead of.= - Prop binding type indicators are now placed in the attribute name instead of the value
v-elandv-refare deprecated and now use dedicate syntaxv-componenthas been deprecated in favor of theisattribute, which is now usable on any element.- The
prefixglobal config has been deprecated.
新特性
v-else: must be used following an element withv-if.12<div v-if="ok">OK</div><div v-else>NOT OK</div>- Unsafe delimiters for HTML interpolation can now be configured separately:1
Vue.config.unsafeDelimiters = ['{!!','!!}']Note in 1.0.0-alpha when you set
Vue.config.delimiters, it will still implicitly update the unsafe delimiters following the current rules, but in 1.0.0-beta and above settingdelimiterswill have no effect onunsafeDelimiters.
小改进
- Removed overly aggressive “unobservable object” warnings.
slotattributes on transcluded content are now preserved.
Bug 修复
- Fixed issue where minified build calling non-existent deprecation warning when using legacy syntax
- #1249
v-forerror when used with 3rd party sortable plugins (@weislanes) - #1268 component
<slot>not compiled in correct scope when insidev-for - #1282
<slot>fallback content not compiled in correct scope when insidev-for - #1295 error when triggering transitions on fragments
内部改进
FragmentFactoryis now exposed asVue.FragmentFactory.- User can now extend Vue’s option merging strategies by adding functions to
Vue.config.optionMergeStrategies - The above function will be called when calling
Vue.extend({ myOptions: { ... }}), or when applying a mixin that includesmyOption.
下载:https://github.com/yyx990803/vue/archive/1.0.0-alpha.4.zip
同时还发布了 vue.js 0.12.14 版本,主要是 bug 修复:
- Removed overly aggressive “unobservable object” warnings
- #1291 component
attachedhook not called when toggled byv-ifinside transcluded content - #1299
v-modeloptionsrebuild error when using optgroups (@evantre)
下载:https://github.com/yyx990803/vue/archive/0.12.14.zip。
Vue.js 是构建 Web 界面的 JavaScript 库,提供数据驱动的组件,还有简单灵活的 API,使得 MVVM 更简单。
主要特性:
- 可扩展的数据绑定
- 将普通的 JS 对象作为 model
- 简洁明了的 API
- 组件化 UI 构建
- 配合别的库使用
支持的浏览器:https://saucelabs.com/u/vuejs










