【问题标题】:Vue template to render function generation用于渲染函数生成的 Vue 模板
【发布时间】:2019-05-15 13:34:43
【问题描述】:

我在 gwt 应用程序 (vuegwt-plugin) 中有一个 Vue 模板。 我的问题是我使用了来自 vuejs 生态系统的第三方库,而我的模板使用了这个插件。我想根据这个模板生成渲染函数。 我用过这个在线生成器:https://vuejs-tips.github.io/compile

这个生成器输出如下函数:

   _c(
                                'span', [
                                    _v(
                                        _s(
                                            entry
                                            .name
                                        )
                                    )
                                ]
                            )
                        ]) : _e(),
                        _l((

我假设 _c 是 render(createElement) 函数的 createElement 参数。

但 _v()、_s()、_e() 等是什么?

【问题讨论】:

    标签: javascript vue.js vue-component


    【解决方案1】:

    您的链接指向 404,但据我所知,这些函数是定义为 herehere 的 vue 内部方法,它们并不是真正供公众使用的。

    您也可以查看component flow types

    【讨论】:

      猜你喜欢
      • 2020-04-01
      • 2020-03-11
      • 2020-07-28
      • 1970-01-01
      • 2017-11-22
      • 2018-07-05
      • 1970-01-01
      • 2014-12-08
      • 1970-01-01
      相关资源
      最近更新 更多