【发布时间】:2019-09-02 06:16:45
【问题描述】:
Material Web Components (link) 和 Material Components Web (link) 之间有什么区别吗?
Material Web Components 除了
之外没有太多解释建立在 Material Components Web 项目和 LitElement 之上, Material Web Components 支持可靠的开发工作流程 构建美观实用的 Web 项目。
而 Material Components Web 是
Material Components for web (MDC Web) 帮助开发人员执行 材料设计。由工程师和用户体验核心团队开发 Google 的设计师,这些组件可实现可靠的开发 构建美观实用的 Web 项目的工作流程。
它只是在 LitElement 中使用 Web 组件重新实现所有 MDC 组件吗?
关于 Material Web Components 的文档目前非常稀少,因此很难在测试应用程序中使用它们进行比较。
顺便说一句,这个命名糟糕,希望他们在预发布期间更改名称。
【问题讨论】:
-
如果您查看如何使用它们的示例,您会发现其中的不同。一个提供您可以使用的实际 Web 组件(Material Web Components),例如
<mwc-button raised label="raised"></mwc-button>,而另一个提供您可以应用于标准控件(Web 的 Material 组件)的样式,例如<button class="mdc-button"></button> -
是的,这就是我在 LitElements 中使用 Web 组件重新实现 MDC 的意思。还有其他区别吗?
标签: javascript material-design web-component custom-element material-components-web