Alert 提示

警告提示,展现需要关注的信息。

何时使用

  • 当某个页面需要向用户显示警告的信息时。
  • 非浮层的静态展现形式,始终展现,不会自动消失,用户可以点击关闭。

代码演示

Base System Alert 我们将在周五凌晨进行停机维护,带来不便深表歉意。 任何未经许可的访问,我们都将在法律允许的最大范围内追究责任。 我们中出了一个叛徒。
<lud-alert type="info">Base System Alert</lud-alert>
<lud-alert type="success" closable="true"><lud-icon type="customapps"></lud-icon>我们将在周五凌晨进行停机维护,带来不便深表歉意。</lud-alert>
<lud-alert type="warning">任何未经许可的访问,我们都将在法律允许的最大范围内追究责任。</lud-alert>
<lud-alert type="danger">我们中出了一个叛徒。</lud-alert>

Avatar 头像

展现用户头像。

代码演示

person name person name person name
<span class="lud-avatar lud-avatar--circle lud-avatar--medium">
 <img src="//oalr77jpg.qnssl.com/avatar/9cbf48ad-61c6-4a1e-9d63-0d2f6334e460.jpg" alt="person name" />
 </span>

 <span class="lud-avatar lud-avatar--medium">
 <img src="//oalr77jpg.qnssl.com/avatar/9cbf48ad-61c6-4a1e-9d63-0d2f6334e460.jpg" alt="person name" />
 </span>

 <span class="lud-avatar lud-avatar--small">
 <img src="//oalr77jpg.qnssl.com/avatar/9cbf48ad-61c6-4a1e-9d63-0d2f6334e460.jpg" alt="person name" />
 </span>

Button 按钮

按钮用于开始一个即时操作。

何时使用

标记了一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。

代码演示

<a href="" class="lud-btn">Default</a>
 <a href="" class="lud-btn lud-btn--primary">Primary</a>
 <a href="" class="lud-btn lud-btn--info">Info</a>
 <a href="" class="lud-btn lud-btn--success">Success</a>
 <a href="" class="lud-btn lud-btn--warning">Warning</a>
 <a href="" class="lud-btn lud-btn--danger">Danger</a>
 <a href="" class="lud-btn lud-btn--inverse">Inverse</a>
<button class="lud-btn lud-btn--primary lud-btn--ghost">Primary</button>
 <button class="lud-btn lud-btn--info lud-btn--ghost">Info</button>
 <button class="lud-btn lud-btn--success lud-btn--ghost">Success</button>
 <button class="lud-btn lud-btn--warning lud-btn--ghost">Warning</button>
 <button class="lud-btn lud-btn--danger lud-btn--ghost">Danger</button>
 <button class="lud-btn lud-btn--inverse lud-btn--ghost">Inverse</button>
<button class="lud-btn lud-btn--sm">Default</button>
 <button class="lud-btn lud-btn">Default</button>
 <button class="lud-btn lud-btn--lg">Default</button>
<button class="lud-btn lud-btn--primary lud-btn--block">Block</button>
Default Primary Info
<a href="" class="lud-btn lud-btn--disabled">Default</a>
 <a href="" class="lud-btn lud-btn--primary lud-btn--disabled">Primary</a>
 <a href="" class="lud-btn lud-btn--info lud-btn--disabled">Info</a>
 <button class="lud-btn lud-btn--success lud-btn--ghost" disabled>Success</button>
<button class="lud-btn lud-btn--sm lud-btn--ghost lud-btn--primary"><lud-icon type="add" class="lud-btn__icon"></lud-icon>添加语料库</button>

Discussion 评论框

A publisher is an advanced longform text input form element.

代码演示

<lud-discussion name="replay-feed" placeholder="输入评论内容..."></lud-discussion>

Dropdown 下拉菜单

向下弹出的列表。

何时使用

  • 当页面上的操作命令过多时,用此组件可以收纳操作元素。点击或移入触点,会出现一个下拉菜单。可在列表中进行选择,并执行相应的命令。

属性

  • align: [left,right] 菜单对齐方式,默认为居中
  • size: [x-small,small,medium,large] 菜单大小,默认为small
  • pointer: Boolean 是否显示角标样式, 默认为false

代码演示

<lud-dropdown align="left" pointer="true">
 <a href="javasctip:;">所有反馈<lud-icon type="down"></lud-icon></a>
 <ul>
 <li><a href="javasctip:;">未处理反馈</a></li>
 <li><a href="javasctip:;">处理中反馈</a></li>
 <li><a href="javasctip:;">已处理反馈</a></li>
 </ul>
 </lud-dropdown>

Figure 缩略图

用于展现缩略图。

代码演示

Description of the image
Image Title
<div style="width:320px;">
 <figure class="lud-image lud-image--card">
 <a href="javascript:void(0);" class="lud-image__crop lud-image__crop--16-by-9">
 <img src="//placehold.it/320x180" alt="Description of the image" />
 </a>
 <figcaption class="lud-image__title lud-image__title--card">
 <span class="lud-image__text lud-truncate" title="Image Title">Image Title</span>
 </figcaption>
 </figure>
 </div>

Form 表单

具有数据收集、校验和提交功能的表单,包含输入框、文本框、单选等元素。

水平表单

示例文档待完善

Icon 图标

有含义的矢量图形,源自Salesforce Lightning Design System. Copyright (c) 2015, salesforce.com, inc. All rights reserved. All icons and images are licensed under Creative Commons Attribution-NoDerivatives 4.0

如何使用

<lud-icon type="people" />

图标列表

  • cloud
    &#xe7be;
    .cloud
  • areachart
    &#xe662;
    .areachart
  • barchart
    &#xe664;
    .barchart
  • barschart
    &#xe6e4;
    .barschart
  • facebook-official
    &#xe6e5;
    .facebookofficial
  • linkedin-square
    &#xe6e6;
    .linkedinsquare
  • skype
    &#xe751;
    .skype
  • twitter
    &#xe7ba;
    .twitter
  • wechat
    &#xe7bb;
    .wechat
  • QQ
    &#xe7bc;
    .qq02
  • weibo
    &#xe7bd;
    .weibo
  • topic
    &#xe655;
    .topic
  • addcontact
    &#xe65a;
    .addcontact
  • announcement
    &#xe65b;
    .announcement
  • apex
    &#xe65c;
    .apex
  • back
    &#xe65d;
    .back
  • call
    &#xe65e;
    .call
  • canvas
    &#xe65f;
    .canvas
  • changeowner
    &#xe660;
    .changeowner
  • changerecordtype
    &#xe661;
    .changerecordtype
  • clone
    &#xe663;
    .clone
  • description
    &#xe667;
    .description
  • dialin
    &#xe668;
    .dialin
  • download
    &#xe669;
    .download
  • editgroups
    &#xe66a;
    .editgroups
  • editrelationship
    &#xe66b;
    .editrelationship
  • edit
    &#xe66c;
    .edit
  • email
    &#xe66d;
    .email
  • fallback
    &#xe66e;
    .fallback
  • filter
    &#xe66f;
    .filter
  • flow
    &#xe670;
    .flow
  • follow
    &#xe671;
    .follow
  • following
    &#xe672;
    .following
  • freezeuser
    &#xe673;
    .freezeuser
  • googlenews
    &#xe674;
    .googlenews
  • info
    &#xe675;
    .info
  • joingroup
    &#xe676;
    .joingroup
  • leadconvert
    &#xe677;
    .leadconvert
  • leavegroup
    &#xe678;
    .leavegroup
  • logevent
    &#xe679;
    .logevent
  • managepermsets
    &#xe67a;
    .managepermsets
  • map
    &#xe67b;
    .map
  • more
    &#xe67c;
    .more
  • newaccount
    &#xe67d;
    .newaccount
  • newcampaign
    &#xe67e;
    .newcampaign
  • newchildcase
    &#xe67f;
    .newchildcase
  • newcontact
    &#xe680;
    .newcontact
  • newcustom2
    &#xe681;
    .newcustom2
  • newcustom3
    &#xe682;
    .newcustom3
  • newcustom5
    &#xe683;
    .newcustom5
  • newcustom9
    &#xe684;
    .newcustom9
  • newcustom14
    &#xe686;
    .newcustom14
  • newcustom15
    &#xe687;
    .newcustom15
  • newcustom16
    &#xe688;
    .newcustom16
  • newcustom17
    &#xe689;
    .newcustom17
  • newcustom18
    &#xe68a;
    .newcustom18
  • newcustom20
    &#xe68b;
    .newcustom20
  • newcustom21
    &#xe68c;
    .newcustom21
  • newcustom24
    &#xe68d;
    .newcustom24
  • newcustom26
    &#xe68e;
    .newcustom26
  • newcustom30
    &#xe68f;
    .newcustom30
  • newcustom31
    &#xe690;
    .newcustom31
  • newcustom32
    &#xe691;
    .newcustom32
  • newcustom33
    &#xe692;
    .newcustom33
  • newcustom34
    &#xe693;
    .newcustom34
  • newcustom35
    &#xe694;
    .newcustom35
  • newcustom36
    &#xe695;
    .newcustom36
  • newcustom37
    &#xe696;
    .newcustom37
  • newcustom38
    &#xe697;
    .newcustom38
  • newcustom39
    &#xe698;
    .newcustom39
  • newcustom40
    &#xe699;
    .newcustom40
  • newcustom41
    &#xe69a;
    .newcustom41
  • newcustom42
    &#xe69b;
    .newcustom42
  • newcustom43
    &#xe69c;
    .newcustom43
  • newcustom44
    &#xe69d;
    .newcustom44
  • newcustom45
    &#xe69e;
    .newcustom45
  • newcustom46
    &#xe69f;
    .newcustom46
  • newcustom47
    &#xe6a0;
    .newcustom47
  • newcustom48
    &#xe6a1;
    .newcustom48
  • newcustom49
    &#xe6a2;
    .newcustom49
  • newcustom50
    &#xe6a3;
    .newcustom50
  • newcustom51
    &#xe6a4;
    .newcustom51
  • newcustom52
    &#xe6a5;
    .newcustom52
  • newcustom54
    &#xe6a6;
    .newcustom54
  • newcustom55
    &#xe6a7;
    .newcustom55
  • newcustom56
    &#xe6a8;
    .newcustom56
  • newcustom57
    &#xe6a9;
    .newcustom57
  • newcustom58
    &#xe6aa;
    .newcustom58
  • newcustom59
    &#xe6ab;
    .newcustom59
  • newcustom60
    &#xe6ac;
    .newcustom60
  • newcustom61
    &#xe6ad;
    .newcustom61
  • newcustom62
    &#xe6ae;
    .newcustom62
  • newcustom63
    &#xe6af;
    .newcustom63
  • newcustom64
    &#xe6b0;
    .newcustom64
  • newcustom65
    &#xe6b1;
    .newcustom65
  • newcustom66
    &#xe6b2;
    .newcustom66
  • newcustom67
    &#xe6b3;
    .newcustom67
  • newcustom68
    &#xe6b4;
    .newcustom68
  • newcustom69
    &#xe6b5;
    .newcustom69
  • newcustom70
    &#xe6b6;
    .newcustom70
  • newcustom71
    &#xe6b7;
    .newcustom71
  • newcustom72
    &#xe6b8;
    .newcustom72
  • newcustom73
    &#xe6b9;
    .newcustom73
  • newcustom74
    &#xe6ba;
    .newcustom74
  • newcustom75
    &#xe6bb;
    .newcustom75
  • newcustom76
    &#xe6bc;
    .newcustom76
  • newcustom77
    &#xe6bd;
    .newcustom77
  • newcustom78
    &#xe6be;
    .newcustom78
  • newcustom79
    &#xe6bf;
    .newcustom79
  • newcustom80
    &#xe6c0;
    .newcustom80
  • newcustom81
    &#xe6c1;
    .newcustom81
  • newcustom82
    &#xe6c2;
    .newcustom82
  • newcustom83
    &#xe6c3;
    .newcustom83
  • newcustom84
    &#xe6c4;
    .newcustom84
  • newcustom85
    &#xe6c5;
    .newcustom85
  • newcustom86
    &#xe6c6;
    .newcustom86
  • newcustom87
    &#xe6c7;
    .newcustom87
  • newcustom88
    &#xe6c8;
    .newcustom88
  • newcustom89
    &#xe6c9;
    .newcustom89
  • newcustom90
    &#xe6ca;
    .newcustom90
  • newcustom91
    &#xe6cb;
    .newcustom91
  • newcustom92
    &#xe6cc;
    .newcustom92
  • newcustom93
    &#xe6cd;
    .newcustom93
  • newcustom94
    &#xe6ce;
    .newcustom94
  • newcustom95
    &#xe6cf;
    .newcustom95
  • newcustom96
    &#xe6d0;
    .newcustom96
  • newcustom97
    &#xe6d1;
    .newcustom97
  • newcustom98
    &#xe6d2;
    .newcustom98
  • newcustom99
    &#xe6d3;
    .newcustom99
  • newcustom100
    &#xe6d4;
    .newcustom100
  • newevent
    &#xe6d5;
    .newevent
  • newgroup
    &#xe6d6;
    .newgroup
  • newlead
    &#xe6d7;
    .newlead
  • newnote
    &#xe6d8;
    .newnote
  • newnotebook
    &#xe6d9;
    .newnotebook
  • newopportunity
    &#xe6da;
    .newopportunity
  • newpersonaccount
    &#xe6db;
    .newpersonaccount
  • newtask
    &#xe6dc;
    .newtask
  • passwordunlock
    &#xe6dd;
    .passwordunlock
  • preview
    &#xe6de;
    .preview
  • priority
    &#xe6df;
    .priority
  • questionpostaction
    &#xe6e0;
    .questionpostaction
  • quote
    &#xe6e1;
    .quote
  • record
    &#xe6e2;
    .record
  • refresh
    &#xe6e3;
    .refresh
  • sharelink
    &#xe6e7;
    .sharelink
  • sharepoll
    &#xe6e8;
    .sharepoll
  • sharepost
    &#xe6e9;
    .sharepost
  • sharethanks
    &#xe6ea;
    .sharethanks
  • share
    &#xe6eb;
    .share
  • sort
    &#xe6ec;
    .sort
  • submitforapproval
    &#xe6ed;
    .submitforapproval
  • updatestatus
    &#xe6ee;
    .updatestatus
  • update
    &#xe6ef;
    .update
  • upload
    &#xe6f0;
    .upload
  • useractivation
    &#xe6f1;
    .useractivation
  • user
    &#xe6f2;
    .user
  • weblink
    &#xe6f3;
    .weblink
  • add
    &#xe6f4;
    .add
  • adduser
    &#xe6f5;
    .adduser
  • announcement
    &#xe6f6;
    .announcement1
  • answer
    &#xe6f7;
    .answer
  • apps
    &#xe6f8;
    .apps
  • arrowdown
    &#xe6f9;
    .arrowdown
  • arrowup
    &#xe6fa;
    .arrowup
  • attach
    &#xe6fb;
    .attach
  • back
    &#xe6fc;
    .back1
  • ban
    &#xe6fd;
    .ban
  • bold
    &#xe6fe;
    .bold
  • bookmark
    &#xe6ff;
    .bookmark
  • broadcast
    &#xe700;
    .broadcast
  • brush
    &#xe701;
    .brush
  • bucket
    &#xe702;
    .bucket
  • builder
    &#xe703;
    .builder
  • call
    &#xe704;
    .call1
  • capslock
    &#xe705;
    .capslock
  • cases
    &#xe706;
    .cases
  • centeraligntext
    &#xe707;
    .centeraligntext
  • chart
    &#xe708;
    .chart
  • chat
    &#xe709;
    .chat
  • check
    &#xe70a;
    .check
  • checkin
    &#xe70b;
    .checkin
  • chevrondown
    &#xe70c;
    .chevrondown
  • chevronleft
    &#xe70d;
    .chevronleft
  • chevronright
    &#xe70e;
    .chevronright
  • chevronup
    &#xe70f;
    .chevronup
  • clear
    &#xe710;
    .clear
  • clock
    &#xe711;
    .clock
  • close
    &#xe712;
    .close
  • comments
    &#xe713;
    .comments
  • company
    &#xe714;
    .company
  • connectedapps
    &#xe715;
    .connectedapps
  • contractalt
    &#xe716;
    .contractalt
  • contract
    &#xe717;
    .contract
  • copy
    &#xe718;
    .copy
  • crossfilter
    &#xe719;
    .crossfilter
  • customapps
    &#xe71a;
    .customapps
  • cut
    &#xe71b;
    .cut
  • datadotcom
    &#xe71c;
    .datadotcom
  • dayview
    &#xe71d;
    .dayview
  • delete
    &#xe71e;
    .delete
  • deprecate
    &#xe71f;
    .deprecate
  • description
    &#xe720;
    .description1
  • desktop
    &#xe721;
    .desktop
  • dockpanel
    &#xe722;
    .dockpanel
  • down
    &#xe723;
    .down
  • download
    &#xe724;
    .download1
  • editform
    &#xe725;
    .editform
  • edit
    &#xe726;
    .edit1
  • email
    &#xe727;
    .email1
  • endcall
    &#xe728;
    .endcall
  • erectwindow
    &#xe729;
    .erectwindow
  • error
    &#xe72a;
    .error
  • event
    &#xe72b;
    .event
  • expandalt
    &#xe72c;
    .expandalt
  • expand
    &#xe72d;
    .expand
  • favorite
    &#xe72e;
    .favorite
  • feed
    &#xe72f;
    .feed
  • file
    &#xe730;
    .file
  • filter
    &#xe731;
    .filter1
  • filterList
    &#xe732;
    .filterlist
  • forward
    &#xe733;
    .forward
  • frozen
    &#xe734;
    .frozen
  • groups
    &#xe735;
    .groups
  • help
    &#xe736;
    .help
  • home
    &#xe737;
    .home
  • identity
    &#xe738;
    .identity
  • image
    &#xe739;
    .image
  • inbox
    &#xe73a;
    .inbox
  • info
    &#xe73b;
    .info1
  • inserttagfield
    &#xe73c;
    .inserttagfield
  • inserttemplate
    &#xe73d;
    .inserttemplate
  • italic
    &#xe73e;
    .italic
  • justifytext
    &#xe73f;
    .justifytext
  • kanban
    &#xe740;
    .kanban
  • keyboarddismiss
    &#xe741;
    .keyboarddismiss
  • knowledgebase
    &#xe742;
    .knowledgebase
  • layers
    &#xe743;
    .layers
  • layout
    &#xe744;
    .layout
  • leftaligntext
    &#xe745;
    .leftaligntext
  • left
    &#xe746;
    .left
  • like
    &#xe747;
    .like
  • link
    &#xe748;
    .link
  • list
    &#xe749;
    .list
  • location
    &#xe74a;
    .location
  • lock
    &#xe74b;
    .lock
  • logacall
    &#xe74c;
    .logacall
  • logout
    &#xe74d;
    .logout
  • magicwand
    &#xe74e;
    .magicwand
  • matrix
    &#xe74f;
    .matrix
  • metrics
    &#xe750;
    .metrics
  • moneybag
    &#xe752;
    .moneybag
  • monthlyview
    &#xe753;
    .monthlyview
  • move
    &#xe754;
    .move
  • muted
    &#xe755;
    .muted
  • newwindow
    &#xe756;
    .newwindow
  • new
    &#xe757;
    .new
  • news
    &#xe758;
    .news
  • note
    &#xe759;
    .note
  • notebook
    &#xe75a;
    .notebook
  • notification
    &#xe75b;
    .notification
  • office365
    &#xe75c;
    .office365
  • offline
    &#xe75d;
    .offline
  • openfolder
    &#xe75e;
    .openfolder
  • open
    &#xe75f;
    .open
  • openedfolder
    &#xe760;
    .openedfolder
  • overflow
    &#xe761;
    .overflow
  • packageorgbeta
    &#xe762;
    .packageorgbeta
  • packageorg
    &#xe763;
    .packageorg
  • package
    &#xe764;
    .package
  • page
    &#xe765;
    .page
  • palette
    &#xe766;
    .palette
  • paste
    &#xe767;
    .paste
  • people
    &#xe768;
    .people
  • phonelandscape
    &#xe769;
    .phonelandscape
  • phoneportrait
    &#xe76a;
    .phoneportrait
  • photo
    &#xe76b;
    .photo
  • picklist
    &#xe76c;
    .picklist
  • power
    &#xe76d;
    .power
  • preview
    &#xe76e;
    .preview1
  • priority
    &#xe76f;
    .priority1
  • process
    &#xe770;
    .process
  • push
    &#xe771;
    .push
  • puzzle
    &#xe772;
    .puzzle
  • question
    &#xe773;
    .question
  • questionsandanswers
    &#xe774;
    .questionsandanswers
  • record
    &#xe775;
    .record1
  • redo
    &#xe776;
    .redo
  • refresh
    &#xe777;
    .refresh1
  • relate
    &#xe778;
    .relate
  • removeformatting
    &#xe779;
    .removeformatting
  • removelink
    &#xe77a;
    .removelink
  • replace
    &#xe77b;
    .replace
  • reply
    &#xe77c;
    .reply
  • resetpassword
    &#xe77d;
    .resetpassword
  • retweet
    &#xe77e;
    .retweet
  • richtextbulletedlist
    &#xe77f;
    .richtextbulletedlist
  • richtextindent
    &#xe780;
    .richtextindent
  • richtextnumberedlist
    &#xe781;
    .richtextnumberedlist
  • richtextoutdent
    &#xe782;
    .richtextoutdent
  • rightaligntext
    &#xe783;
    .rightaligntext
  • right
    &#xe784;
    .right
  • rotate
    &#xe785;
    .rotate
  • rows
    &#xe786;
    .rows
  • search
    &#xe787;
    .search
  • settings
    &#xe788;
    .settings
  • setupassistantguide
    &#xe789;
    .setupassistantguide
  • setup
    &#xe78a;
    .setup
  • sharepost
    &#xe78b;
    .sharepost1
  • share
    &#xe78c;
    .share1
  • shield
    &#xe78d;
    .shield
  • sidelist
    &#xe78e;
    .sidelist
  • signpost
    &#xe78f;
    .signpost
  • sms
    &#xe790;
    .sms
  • snippet
    &#xe791;
    .snippet
  • socialshare
    &#xe792;
    .socialshare
  • sort
    &#xe793;
    .sort1
  • spinner
    &#xe794;
    .spinner
  • standardobjects
    &#xe795;
    .standardobjects
  • stop
    &#xe796;
    .stop
  • strikethrough
    &#xe797;
    .strikethrough
  • success
    &#xe798;
    .success
  • summary
    &#xe799;
    .summary
  • summarydetail
    &#xe79a;
    .summarydetail
  • switch
    &#xe79b;
    .switch
  • table
    &#xe79c;
    .table
  • tabletlandscape
    &#xe79d;
    .tabletlandscape
  • tabletportrait
    &#xe79e;
    .tabletportrait
  • tabset
    &#xe79f;
    .tabset
  • task
    &#xe7a0;
    .task
  • textbackgroundcolor
    &#xe7a1;
    .textbackgroundcolor
  • textcolor
    &#xe7a2;
    .textcolor
  • threedots
    &#xe7a3;
    .threedots
  • tilecardlist
    &#xe7a4;
    .tilecardlist
  • topic
    &#xe7a5;
    .topic1
  • touchaction
    &#xe7a6;
    .touchaction
  • trail
    &#xe7a7;
    .trail
  • undelete
    &#xe7a8;
    .undelete
  • undeprecate
    &#xe7a9;
    .undeprecate
  • underline
    &#xe7aa;
    .underline
  • undo
    &#xe7ab;
    .undo
  • unlock
    &#xe7ac;
    .unlock
  • unmuted
    &#xe7ad;
    .unmuted
  • up
    &#xe7ae;
    .up
  • upload
    &#xe7af;
    .upload1
  • userrole
    &#xe7b0;
    .userrole
  • user
    &#xe7b1;
    .user1
  • volumehigh
    &#xe7b2;
    .volumehigh
  • volumelow
    &#xe7b3;
    .volumelow
  • volumeoff
    &#xe7b4;
    .volumeoff
  • warning
    &#xe7b5;
    .warning
  • weeklyview
    &#xe7b6;
    .weeklyview
  • world
    &#xe7b7;
    .world
  • zoomin
    &#xe7b8;
    .zoomin
  • zoomout
    &#xe7b9;
    .zoomout

Navigation 菜单

为页面和功能提供导航的菜单列表。

何时使用

  • 侧边导航提供多级结构来收纳和排列网站架构。

代码演示

<div class="lud-grid lud-grid--vertical lud-navigation-list--vertical">
 <h2 class="lud-text-title--caps lud-p-around--medium" id="entity-header">Reports</h2>
 <ul>
 <li class="lud-is-active"><a href="javascript:void(0);" class="lud-navigation-list--vertical__action lud-text-link--reset" aria-describedby="entity-header">Recent</a></li>
 <li><a href="javascript:void(0);" class="lud-navigation-list--vertical__action lud-text-link--reset" aria-describedby="entity-header">Created by Me</a></li>
 <li><a href="javascript:void(0);" class="lud-navigation-list--vertical__action lud-text-link--reset" aria-describedby="entity-header">Private Reports</a></li>
 <li><a href="javascript:void(0);" class="lud-navigation-list--vertical__action lud-text-link--reset" aria-describedby="entity-header">Public Reports</a></li>
 <li><a href="javascript:void(0);" class="lud-navigation-list--vertical__action lud-text-link--reset" aria-describedby="entity-header">All Reports</a></li>
 </ul>
 <h2 class="lud-text-title--caps lud-p-around--medium" id="folder-header">Folders</h2>
 <ul>
 <li><a href="javascript:void(0);" class="lud-navigation-list--vertical__action lud-text-link--reset" aria-describedby="folder-header">Created by Me</a></li>
 <li><a href="javascript:void(0);" class="lud-navigation-list--vertical__action lud-text-link--reset" aria-describedby="folder-header">Shared with Me</a></li>
 <li><a href="javascript:void(0);" class="lud-navigation-list--vertical__action lud-text-link--reset" aria-describedby="folder-header">All Reports</a></li>
 </ul>
 </div>

Phone Mockup

显示移动端预览效果。

代码演示

<lud-phone-mockup>
    <img src="http://a3.mzstatic.com/us/r30/Purple62/v4/25/39/23/2539239c-4bdd-b750-84dd-82f6fef81c11/screen696x696.jpeg"/>
 </lud-phone-mockup>

Select 筛选框

弹出一个下拉菜单给用户选择操作,用于代替原生的选择器,或者需要一个更优雅的多选器时。 更多配置可点此查看

代码演示

<select>
 <option value ="表现主义">表现主义</option>
 <option value ="构成主义">构成主义</option>
 <option value="理性主义">理性主义</option>
 </select>
<select data-disabled-select2="true">
 <option value ="表现主义">表现主义</option>
 <option value ="构成主义">构成主义</option>
 <option value="理性主义">理性主义</option>
 </select>

Sheet 浮层

卡片式浮层

何时使用

需要用户处理事务,又不希望跳转页面以致打断工作流程时,可以使用浮层承载相应的操作。

代码演示

触发
<a class="lud-button lud-button--primary" href="javascript:lud.slidePanel({title:'hello',body:'<p>world</p>'})">触发</a>

Spinner 加载中动画

代码演示

<div style="position: relative;width: 100%;height: 10rem;">
 <lud-spinner></lud-spinner>
 </div>

Table 表格

展示行列数据。

## 何时使用

  • 当有大量结构化的数据需要展现时;
  • 当需要对数据进行排序、分页等复杂行为时。

代码演示

状态 提交人 内容 提交时间
270 已处理 谢玉辉 目前无融资历史 5 天前 处理详情(3)
269 已处理 刘培爽 无融资历史,无法申请认证。 5 天前 处理详情(1)
268 已处理 刘培爽 无融资历史,无法申请认证。 5 天前 处理详情(1)
267 已处理 刘培爽 无融资历史,无法申请认证。 5 天前 处理详情(1)
<table class="lud-table">
 <thead>
 <tr>
 <th nowrap=""></th>
 <th nowrap="">状态</th>
 <th nowrap="">提交人</th>
 <th>内容</th>
 <th nowrap="">提交时间</th>
 <th></th>
 </tr>
 </thead>
 <tbody>
 <tr>
 <td nowrap="">270</td>
 <td nowrap=""><span class="lud-tag lud-tag--success">已处理</span></td>
 <td nowrap="">
 <a href="/users/16377/edit">谢玉辉</a>
 </td>
 <td>目前无融资历史</td>
 <td nowrap="">5 天前</td>
 <td nowrap="">
 <a data-disable-with="loading..." data-remote="true" href="/feedbacks/270">处理详情(3)</a>
 </td>
 </tr>
 <tr>
 <td nowrap="">269</td>
 <td nowrap=""><span class="lud-tag lud-tag--success">已处理</span></td>
 <td nowrap="">
 <a href="/users/16548/edit">刘培爽</a>
 </td>
 <td>无融资历史,无法申请认证。</td>
 <td nowrap="">5 天前</td>
 <td nowrap="">
 <a data-disable-with="loading..." data-remote="true" href="/feedbacks/269">处理详情(1)</a>
 </td>
 </tr>
 <tr>
 <td nowrap="">268</td>
 <td nowrap=""><span class="lud-tag lud-tag--success">已处理</span></td>
 <td nowrap="">
 <a href="/users/16548/edit">刘培爽</a>
 </td>
 <td>无融资历史,无法申请认证。</td>
 <td nowrap="">5 天前</td>
 <td nowrap="">
 <a data-disable-with="loading..." data-remote="true" href="/feedbacks/268">处理详情(1)</a>
 </td>
 </tr>
 <tr>
 <td nowrap="">267</td>
 <td nowrap=""><span class="lud-tag lud-tag--success">已处理</span></td>
 <td nowrap="">
 <a href="/users/16548/edit">刘培爽</a>
 </td>
 <td>无融资历史,无法申请认证。</td>
 <td nowrap="">5 天前</td>
 <td nowrap="">
 <a data-disable-with="loading..." data-remote="true" href="/feedbacks/267">处理详情(1)</a>
 </td>
 </tr>
 </tbody>
 </table>

Tag 标签

进行标记和分类的小标签。

何时使用

  • 用于标记事物的属性和维度。
  • 进行分类。

代码演示

Default Primary Danger Warning Info Success
<lud-tag>Default</lud-tag>
 <lud-tag type="primary">Primary</lud-tag>
 <lud-tag type="danger">Danger</lud-tag>
 <lud-tag type="warning">Warning</lud-tag>
 <lud-tag type="info">Info</lud-tag>
 <lud-tag type="success">Success</lud-tag>
Default Primary Danger Warning Info Success
<lud-tag pill="true">Default</lud-tag>
 <lud-tag type="primary" pill="true">Primary</lud-tag>
 <lud-tag type="danger" pill="true">Danger</lud-tag>
 <lud-tag type="warning" pill="true">Warning</lud-tag>
 <lud-tag type="info" pill="true">Info</lud-tag>
 <lud-tag type="success" pill="true">Success</lud-tag>

Toast

警告提示,展现需要关注的信息。

何时使用

  • 当某个页面需要向用户显示警告的信息时。
  • 非浮层的静态展现形式,始终展现,不会自动消失,用户可以点击关闭。

代码演示

<button class="lud-button lud-button--primary" onClick="lud.toast.info('hello word')">触发</button>
lud.toast.info('hello word'):
 lud.toast.success('hello word'):
 lud.toast.warning('hello word'):
 lud.toast.danger('hello word'):

Toggle 开关

开关选择器。

何时使用

  • 需要表示开关状态/两种状态之间的切换时。

代码演示

<div class="lud-form-element">
 <label class="lud-form-element__label" for="text-input-01">Guest Mode</label>
 <div class="lud-form-element__control">
 <lud-toggle name="guest-mode"></lud-toggle>
 </div>
 </div>

 <div class="lud-form-element">
 <label class="lud-form-element__label" for="text-input-01">Admin Mode</label>
 <div class="lud-form-element__control">
 <lud-toggle name="admin-mode" value="root" disabled></lud-toggle>
 </div>
 </div>