Git Product home page Git Product logo

Comments (4)

zdy1988 avatar zdy1988 commented on May 12, 2024

sorry , i donot know what is SSR !!!

from vue-jstree.

be-next-hotdog avatar be-next-hotdog commented on May 12, 2024

Simply server side rendering :) (ps: ID 真美)

from vue-jstree.

zdy1988 avatar zdy1988 commented on May 12, 2024

原来是是服务器渲染啊 😄
这两天看了一下,好像服务器渲染和组件的支持没什么联系
你可以把需要展示的数据 用 vuex 传递到树的 data 属性应该就可以了吧
我没接触过服务器渲染,所说的不知道对不对,我觉得大概是这样的!
如果只展示部分数据,就先在服务器生成部分过去,其他的通过 async 这个方法加载

from vue-jstree.

be-next-hotdog avatar be-next-hotdog commented on May 12, 2024

事实上的确和组件支持本身没太多关系,但在加载第三方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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.