iter(g136): 新增链接组件 link
This commit is contained in:
@@ -37,6 +37,7 @@ import {
|
||||
formItem,
|
||||
inputNumber,
|
||||
grid,
|
||||
link,
|
||||
list,
|
||||
carousel,
|
||||
treeSelect,
|
||||
@@ -1363,6 +1364,18 @@ const content = h(
|
||||
),
|
||||
),
|
||||
),
|
||||
section(
|
||||
'sec-link',
|
||||
'链接',
|
||||
'link 统一站内 / 站外跳转:external 自动补 ↗、target=_blank 与 rel=noopener noreferrer,并给读屏播报「在新窗口打开」;muted 用于页脚次要链接,disabled 去掉 href 但保留可聚焦与 aria-disabled。',
|
||||
space({ wrap: true, size: 'md' },
|
||||
link({ href: '#sec-link', label: '站内锚点' }),
|
||||
link({ href: 'https://gitea.yinyuanjingling.icu/temp/UI', label: '仓库地址', external: true }),
|
||||
link({ href: '#sec-link', label: '次要说明', muted: true }),
|
||||
link({ href: '#sec-link', label: '已停用', disabled: true }),
|
||||
link({ href: '#sec-link', label: '带埋点的链接', onClick: () => toast.info('点击已上报') }),
|
||||
),
|
||||
),
|
||||
section(
|
||||
'sec-floatbutton',
|
||||
'悬浮操作按钮',
|
||||
|
||||
Reference in New Issue
Block a user