【问题标题】:<render-mode> not working with dynamic Material UI<render-mode> 不适用于动态材质 UI
【发布时间】:2021-09-04 00:20:36
【问题描述】:

我使用 标签在我的屏幕中包含一些 html:

<?xml version="1.0" encoding="UTF-8"?>
<screen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/xml-screen-2.1.xsd"
    require-authentication="anonymous-all">
<widgets>
    <label type="h1" text="Hello world!"/>
    <render-mode>
        <text type="html,vuet" location="component://tutorial/template/hello.html"/>
    </render-mode>
    <label type="h1" text="after Hello world!"/>
</widgets>
</screen>

使用“标准 UI”或“动态 Bootstrap UI”可以很好地显示包含的 hello.html 文件,但使用“动态 Material UI”时不会显示。 有没有办法启用它?我更喜欢动态 Material UI 的外观和导航。

谢谢!

【问题讨论】:

    标签: moqui


    【解决方案1】:

    它没有在 qapps 下显示的原因是 qapps 使用了一种新的渲染模式“qvt”,就像 vapps 使用渲染模式“vuet”一样。要使其显示在 /qapps 下,只需更改:

    <text type="html,vuet" ...
    

    到:

    <text type="html,vuet,qvt" ...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-21
      • 1970-01-01
      • 2020-03-06
      • 2020-01-05
      • 2020-12-29
      • 2021-04-18
      • 1970-01-01
      相关资源
      最近更新 更多