背景交代:vue3.0 ant-design-vue 2.1.6 使用jsx语法 <a-select placeholder="请选择" // v-model={state.editData.props[propName]} v-model={selectRef} onChange={e => console.log(e)} > {(() => { return propConfig.options.map(
图1演示了创建store的过程,图2演示了在React中的使用,图3演示了原生使用方式,更清楚地解释了其中的机理,图4演示了如何创建类似Redux的slices。顺便store.$subscribe其实支持第一个参数传入selector,这个selector也是自动收集依赖的,所以其实除了computed咱们也能实现类似Vue的watch……打算过两天把代码理一下,写一些测试...