3shape-design-system 中文文档教程

发布于 4年前 浏览 20 更新于 3年前

3shape-design-system

How to use

安装包

npm i 3shape-design-system @webcomponents/webcomponentsjs

添加 polyfill 导入

import '@webcomponents/webcomponentsjs/webcomponents-bundle.js';
// or dynamical
import '@webcomponents/webcomponentsjs/webcomponents-loader.js';

添加组件导入

import '3shape-design-system';

使用标签

<g-select
    label="Label"
    name="test"
    required
></g-select>

Props

PropTypeDefaultDescription
{label}Stringnulllabel text
{required}Booleannullshows required field (label is required)
{disabled}Booleannulldisabled state
{name}Stringnullinput name
{hint}Stringnullhint text
{error}Stringnullerror message
{value}Stringnullcontrolled input value
{onChange}Functionnullcontrolled input change handler

How to develop

npm i
npm run watch
npm run serve

访问 http://localhost:8000

3shape-design-system

How to use

Install packages

npm i 3shape-design-system @webcomponents/webcomponentsjs

Add polyfill import

import '@webcomponents/webcomponentsjs/webcomponents-bundle.js';
// or dynamical
import '@webcomponents/webcomponentsjs/webcomponents-loader.js';

Add components import

import '3shape-design-system';

Use tags

<g-select
    label="Label"
    name="test"
    required
></g-select>

Props

PropTypeDefaultDescription
{label}Stringnulllabel text
{required}Booleannullshows required field (label is required)
{disabled}Booleannulldisabled state
{name}Stringnullinput name
{hint}Stringnullhint text
{error}Stringnullerror message
{value}Stringnullcontrolled input value
{onChange}Functionnullcontrolled input change handler

How to develop

npm i
npm run watch
npm run serve

Go to http://localhost:8000

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文