Comments (4)
sorry , i donot know what is SSR !!!
from vue-jstree.
Simply server side rendering :) (ps: ID 真美)
from vue-jstree.
原来是是服务器渲染啊 😄
这两天看了一下,好像服务器渲染和组件的支持没什么联系
你可以把需要展示的数据 用 vuex 传递到树的 data 属性应该就可以了吧
我没接触过服务器渲染,所说的不知道对不对,我觉得大概是这样的!
如果只展示部分数据,就先在服务器生成部分过去,其他的通过 async 这个方法加载
from vue-jstree.
事实上的确和组件支持本身没太多关系,但在加载第三方plugin(比如你项目中的jstreee)用于生成目标组件时 render 过程中会有问题,要判断render的环境是server还是browser之类的。你有空可以看一下这个proj https://github.com/surmon-china/vue-quill-editor 对SSR 做了特别改动支持。
很抱歉,最近很忙,否则我就自己做了交PR了
改装后可以用
https://github.com/doabit/vue-ssr-starter-kit
或者
https://github.com/devCrossNet/vue-starter
这两个SSR starter boilerplate 在非主加载模块中调用一个router 异步加载的模块看是否能稳定支持SSR。
我也是Angular / React 转来试用 Vue 做项目的,说错了什么指正我。😄
from vue-jstree.
Related Issues (20)
- 自定义的右键菜单事件如何调用data里面的数据
- 为什么把自定义事件的类型设置为对象,且要写在data里面,这样没有办法在自定义事件里面去操作data里面的变量
- Adding custom data or objects on node
- 如何修改Sprites图片 HOT 1
- Wrap long label? HOT 1
- openChildren
- http://zdy1988.github.io/vue-jstree
- Color Scheme of divider HOT 1
- Custom Icon HOT 4
- How to get node item in itemEvents ?
- Parent folder doesn't open HOT 2
- TypeError: this.$refs.tree.addAfterNode is not a function" HOT 1
- How to add multi level hierarchy at one time
- Check row only when clicking checkbox
- Parent folder doesn't open when using api data HOT 1
- how to change the data dynamically
- 大量节点的数据,是否可以支持虚拟滚动
- Vue 3 Compatibility HOT 3
- Children Checkbox is not showing checked until it is hovered HOT 1
- 有vue3版本的吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-jstree.