Skip to content

Commit

Permalink
feat: add elementUI Link
Browse files Browse the repository at this point in the history
  • Loading branch information
KiligFei committed Jul 9, 2023
1 parent b2af716 commit 9c19415
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/elementUI/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import ElRow from './row.json'
import ElCol from './col.json'
import ElAlert from './alert.json'
import ElButton from './button.json'
import ElLink from './link.json'

export function elementUI() {
const map: any = [
ElRow,
ElCol,
ElAlert,
ElButton,
ElLink,
]

return map.reduce((result: any, item: any) => {
Expand Down
41 changes: 41 additions & 0 deletions src/ui/elementUI/link.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "ElLink",
"props": {
"type": {
"value": [
"primary",
"success",
"warning",
"danger",
"info"
],
"description": "类型",
"default": "default",
"type": "string"
},
"underline": {
"value": "",
"description": "是否下划线",
"default": "true",
"type": "boolean"
},
"disabled": {
"value": "",
"description": "是否禁用状态",
"default": "false",
"type": "boolean"
},
"href": {
"value": "",
"description": "原生 href 属性",
"default": "",
"type": "string"
},
"icon": {
"value": "",
"description": "图标类名",
"default": "",
"type": "string"
}
}
}

0 comments on commit 9c19415

Please sign in to comment.