-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b11782f
commit 29aced5
Showing
59 changed files
with
1,468 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div> | ||
<p> | ||
<vxe-empty></vxe-empty> | ||
</p> | ||
<p> | ||
<vxe-empty image-url="https://vxeui.com/resource/img/fj577.jpg"></vxe-empty> | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<template> | ||
<div> | ||
<p> | ||
<vxe-result title="成功" type="success" content="操作成功"></vxe-result> | ||
</p> | ||
<p> | ||
<vxe-result title="失败" type="error" content="操作失败"></vxe-result> | ||
</p> | ||
<p> | ||
<vxe-result title="警告" type="warning" content="请确认是否操作"> | ||
<template #extra> | ||
<vxe-button status="primary">返回</vxe-button> | ||
<vxe-button status="error">刷新</vxe-button> | ||
</template> | ||
</vxe-result> | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { App } from 'vue' | ||
import { VxeUI } from '@vxe-ui/core' | ||
import VxeAvatarComponent from './src/avatar' | ||
import { dynamicApp } from '../dynamics' | ||
|
||
export const VxeAvatar = Object.assign({}, VxeAvatarComponent, { | ||
install (app: App) { | ||
app.component(VxeAvatarComponent.name as string, VxeAvatarComponent) | ||
} | ||
}) | ||
|
||
dynamicApp.use(VxeAvatar) | ||
VxeUI.component(VxeAvatarComponent) | ||
|
||
export const Avatar = VxeAvatar | ||
export default VxeAvatar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { defineComponent, ref, h, reactive } from 'vue' | ||
import XEUtils from 'xe-utils' | ||
import { createEvent } from '../../ui' | ||
|
||
import type { AvatarReactData, VxeAvatarEmits, AvatarMethods, AvatarPrivateMethods, ValueOf, AvatarPrivateRef, VxeAvatarPrivateComputed, VxeAvatarConstructor, VxeAvatarPrivateMethods } from '../../../types' | ||
|
||
export default defineComponent({ | ||
name: 'VxeAvatar', | ||
props: { | ||
}, | ||
emits: [ | ||
] as VxeAvatarEmits, | ||
setup (props, context) { | ||
const { emit } = context | ||
|
||
const xID = XEUtils.uniqueId() | ||
|
||
const refElem = ref<HTMLDivElement>() | ||
|
||
const reactData = reactive<AvatarReactData>({ | ||
}) | ||
|
||
const refMaps: AvatarPrivateRef = { | ||
refElem | ||
} | ||
|
||
const computeMaps: VxeAvatarPrivateComputed = { | ||
} | ||
|
||
const $xeAvatar = { | ||
xID, | ||
props, | ||
context, | ||
reactData, | ||
|
||
getRefMaps: () => refMaps, | ||
getComputeMaps: () => computeMaps | ||
} as unknown as VxeAvatarConstructor & VxeAvatarPrivateMethods | ||
|
||
const dispatchEvent = (type: ValueOf<VxeAvatarEmits>, params: Record<string, any>, evnt: Event | null) => { | ||
emit(type, createEvent(evnt, { $avatar: $xeAvatar }, params)) | ||
} | ||
|
||
const collapsePaneMethods: AvatarMethods = { | ||
dispatchEvent | ||
} | ||
|
||
const collapsePanePrivateMethods: AvatarPrivateMethods = { | ||
} | ||
|
||
Object.assign($xeAvatar, collapsePaneMethods, collapsePanePrivateMethods) | ||
|
||
const renderVN = () => { | ||
return h('div', { | ||
ref: refElem, | ||
class: 'vxe-avatar' | ||
}, []) | ||
} | ||
|
||
$xeAvatar.renderVN = renderVN | ||
|
||
return $xeAvatar | ||
}, | ||
render () { | ||
return this.renderVN() | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { App } from 'vue' | ||
import { VxeUI } from '@vxe-ui/core' | ||
import VxeBadgeComponent from './src/badge' | ||
import { dynamicApp } from '../dynamics' | ||
|
||
export const VxeBadge = Object.assign({}, VxeBadgeComponent, { | ||
install (app: App) { | ||
app.component(VxeBadgeComponent.name as string, VxeBadgeComponent) | ||
} | ||
}) | ||
|
||
dynamicApp.use(VxeBadge) | ||
VxeUI.component(VxeBadgeComponent) | ||
|
||
export const Badge = VxeBadge | ||
export default VxeBadge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { defineComponent, ref, h, reactive } from 'vue' | ||
import XEUtils from 'xe-utils' | ||
import { createEvent } from '../../ui' | ||
|
||
import type { BadgeReactData, VxeBadgeEmits, BadgeMethods, BadgePrivateMethods, ValueOf, BadgePrivateRef, VxeBadgePrivateComputed, VxeBadgeConstructor, VxeBadgePrivateMethods } from '../../../types' | ||
|
||
export default defineComponent({ | ||
name: 'VxeBadge', | ||
props: { | ||
}, | ||
emits: [ | ||
] as VxeBadgeEmits, | ||
setup (props, context) { | ||
const { emit } = context | ||
|
||
const xID = XEUtils.uniqueId() | ||
|
||
const refElem = ref<HTMLDivElement>() | ||
|
||
const reactData = reactive<BadgeReactData>({ | ||
}) | ||
|
||
const refMaps: BadgePrivateRef = { | ||
refElem | ||
} | ||
|
||
const computeMaps: VxeBadgePrivateComputed = { | ||
} | ||
|
||
const $xeBadge = { | ||
xID, | ||
props, | ||
context, | ||
reactData, | ||
|
||
getRefMaps: () => refMaps, | ||
getComputeMaps: () => computeMaps | ||
} as unknown as VxeBadgeConstructor & VxeBadgePrivateMethods | ||
|
||
const dispatchEvent = (type: ValueOf<VxeBadgeEmits>, params: Record<string, any>, evnt: Event | null) => { | ||
emit(type, createEvent(evnt, { $badge: $xeBadge }, params)) | ||
} | ||
|
||
const collapsePaneMethods: BadgeMethods = { | ||
dispatchEvent | ||
} | ||
|
||
const collapsePanePrivateMethods: BadgePrivateMethods = { | ||
} | ||
|
||
Object.assign($xeBadge, collapsePaneMethods, collapsePanePrivateMethods) | ||
|
||
const renderVN = () => { | ||
return h('div', { | ||
ref: refElem, | ||
class: 'vxe-badge' | ||
}, []) | ||
} | ||
|
||
$xeBadge.renderVN = renderVN | ||
|
||
return $xeBadge | ||
}, | ||
render () { | ||
return this.renderVN() | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.