placehloder_svg_tag

为一个给定的占位符名称生成一个HTML <svg> 标签。

接受以下占位符名称:

  • collection-1
  • collection-2
  • collection-3
  • collection-4
  • collection-5
  • collection-6
  • image
  • lifestyle-1
  • lifestyle-2
  • product-1
  • product-2
  • product-3
  • product-4
  • product-5
  • product-6

参数

  • name {String} placehoder name, required
  • [custom-class] {String} custom class, optional
  • returns {String} html <svg> stirng

用法

{{ placeholder_svg_tag name [custom-class] }}

例子

{{ placeholder_svg_tag 'image' 'custom-class' }}

Output

这篇文章对你有帮助吗?

Error loading component.

Error loading component.