clen cat
clen cat
## 运行时 纯运行时框架比较好理解,举一个例子 `JQuery` .虽然 `JQuery` 并不能称之为框架,但我们可以看到 `JQuery` 的一些特点,不需要在 html 上做一些例如 `v-show` `v-bind` 的标记,也不需要稀奇古怪的写法,也不需要什么特定的环境,引入一个 `script 文件`即可,只是一个单纯的 `js库` ,优化了 `js` 与 `Dom` 之间的交互。同样的,在 `React` 身上我们也可看到许多共通点,React 在 `js` 层面上也没有许多稀奇古怪的写法,以 `一切皆在 js 之下`...
感觉挺有意思的,翻了翻源码,问题应该出在 [这里](https://github.com/vuejs/core/blob/a95554d35c65e5bfd0bf9d1c5b908ae789345a6d/packages/runtime-core/src/renderer.ts#L628) 看样子是有意为之要重用之前的 `el`,具体原因不知。 开发环境和线上环境表现不同是因为开发环境克隆 `dom` 不能 `hmr`。 不过自己操作 `dom` 的行为严格来说就不应该归 `vue` 管了,在组件卸载时可以自己手动卸载 ```ts onBeforeUnmount(() => { (document.querySelector('#map') as HTMLInputElement).innerHTML = '' }); ```
```js getName(state){ return (index: number)=>{ let temp:string[]=[] state.name[index].forEach((item)=>{ temp.push(item.name) }) return temp } } ``` 这个 `getter` 这么写和一个`普通的函数`没什么区别,`computed` 的追踪在第一个 `return` 后就已经结束,不会为返回的函数添加依赖。这么调用 `store.getName(index.value)` 只会返回一个普通的 `temp`
> 有什么办法能让组件中的proxy对象的属性依赖 ` getName(state){ return (index: number)=>{ let temp:string[]=[] state.name[index].forEach((item)=>{ temp.push(item.name) }) return temp } }` 这样的getter,并且当store中的state变化时,proxy对象属性也更新吗? 使用 `watch` 或者 `watchEffect` 监听 `index` 和 `store` 中的数据手动赋值nameList。
Hope there is a better solution
借这个 issues 问下,看到文档里介绍无法添加webpack插件,是指和webpack插件不兼容么?那有没有什么可以平滑兼容的方案?

@jahnli hello,请问这个有支持的想法么,想要不使用预设做定制化的时候很需要
Hello, are there any new releases planned for the near future?I really need the `disabled` feature of `v3.0`
@justintaddei That's so cool, thanks for your work