computed: { value: sync('module/object@value'), c: sync('module/object@a.b.c'), ...sync('module', [ // 数组模式 'value', 'str' ]), ...sync('module', { // 对象模式,别名模式 altValue: 'value', altStr: 'str' }) } API 路径语法 Pathify有两种语法类型,用于处理非get / set...
store.get('products@items.0.name')store.set('products@items.1.name','Vuex Pathify') Set upone or two-waydata binding onanystore value withoutbloatorfuss: setup(){return{products:get('products'),category:sync('filters@category')}}
store.get('products@items.0.name')store.set('products@items.1.name','Vuex Pathify') Set upone or two-waydata binding onanystore value withoutbloatorfuss: computed:{products:get('products'),category:sync('filters@category')} Wiremultipleproperties (or sub-properties) usingarray,objectandwild...