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...
Wiremultipleproperties (or sub-properties) usingarray,objectandwildcardformats: setup(){return{...sync('filters@sort',['order','key']),...sync('filters@sort',{sortOrder:'order',sortKey:'key'}),...sync('filters@sort.*')}} Usevariable expansionto dynamically reference store properties: ...
Wiremultipleproperties (or sub-properties) usingarray,objectandwildcardformats: computed:{...sync('filters@sort',['order','key']),...sync('filters@sort',{sortOrder:'order',sortKey:'key'}),...sync('filters@sort.*')} Usevariable expansionto dynamically reference store properties: ...