-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
13 changed files
with
150 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:root{ | ||
|
||
|
||
|
||
} |
19 changes: 19 additions & 0 deletions
19
packages/aux-admin/aux-ui/wise-message/__tests__/wise-message.spec.tsx
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,19 @@ | ||
import { ComponentPublicInstance } from 'vue'; | ||
import { DOMWrapper, mount, VueWrapper } from '@vue/test-utils'; | ||
import { WiseMessage } from '..'; | ||
|
||
describe('wise-message', () => { | ||
let wrapper: VueWrapper<ComponentPublicInstance>; | ||
|
||
it('wise-message init render', async () => { | ||
wrapper = mount({ | ||
setup() { | ||
return () => { | ||
return <WiseMessage />; | ||
}; | ||
}, | ||
}); | ||
|
||
// todo | ||
}) | ||
}) |
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,15 @@ | ||
import type { App } from 'vue'; | ||
import WiseMessage from './src/wise-message'; | ||
|
||
export * from './src/wise-message-types'; | ||
|
||
export { WiseMessage }; | ||
|
||
export default { | ||
title: 'WiseMessage 万设消息弹出框', | ||
category: '通用', | ||
status: '1%', // TODO 组件完成状态,开发完组件新特性请及时更新该状态值;若组件开发完成则填入'100%',并删除该注释 | ||
install(app: App): void { | ||
app.component(WiseMessage.name, WiseMessage); | ||
} | ||
}; |
10 changes: 10 additions & 0 deletions
10
packages/aux-admin/aux-ui/wise-message/src/wise-message-types.ts
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,10 @@ | ||
import type { PropType, ExtractPropTypes } from 'vue'; | ||
|
||
export const wiseMessageProps = { | ||
// data: { | ||
// type: type, | ||
// default: defaultValue | ||
// }, | ||
} as const; | ||
|
||
export type WiseMessageProps = ExtractPropTypes<typeof wiseMessageProps>; |
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,4 @@ | ||
// 引入主题变量 | ||
@import '../../styles/global.scss'; | ||
.#{$globa-prefix}-wise-message { | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/aux-admin/aux-ui/wise-message/src/wise-message.tsx
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 @@ | ||
import { defineComponent, toRefs } from 'vue'; | ||
import type { SetupContext } from 'vue'; | ||
import { wiseMessageProps, WiseMessageProps } from './wise-message-types'; | ||
import './wise-message.scss'; | ||
|
||
export default defineComponent({ | ||
name: 'AuxWiseMessage', | ||
props: wiseMessageProps, | ||
emits: [], | ||
setup(props: WiseMessageProps, ctx: SetupContext) { | ||
// 直接解构 props 会导致响应式失效,需要使用 toRefs 进行包裹 | ||
// const { data } = toRefs(props); | ||
// console.log(data.value); | ||
|
||
return () => { | ||
return ( | ||
<div class="aux-wise-message"></div> | ||
); | ||
}; | ||
} | ||
}); |
19 changes: 19 additions & 0 deletions
19
packages/aux-admin/aux-ui/wise-notification/__tests__/wise-notification.spec.tsx
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,19 @@ | ||
import { ComponentPublicInstance } from 'vue'; | ||
import { DOMWrapper, mount, VueWrapper } from '@vue/test-utils'; | ||
import { WiseNotification } from '..'; | ||
|
||
describe('wise-notification', () => { | ||
let wrapper: VueWrapper<ComponentPublicInstance>; | ||
|
||
it('wise-notification init render', async () => { | ||
wrapper = mount({ | ||
setup() { | ||
return () => { | ||
return <WiseNotification />; | ||
}; | ||
}, | ||
}); | ||
|
||
// todo | ||
}) | ||
}) |
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,15 @@ | ||
import type { App } from 'vue'; | ||
import WiseNotification from './src/wise-notification'; | ||
|
||
export * from './src/wise-notification-types'; | ||
|
||
export { WiseNotification }; | ||
|
||
export default { | ||
title: 'WiseNotification 通知', | ||
category: '通用', | ||
status: '1%', // TODO 组件完成状态,开发完组件新特性请及时更新该状态值;若组件开发完成则填入'100%',并删除该注释 | ||
install(app: App): void { | ||
app.component(WiseNotification.name, WiseNotification); | ||
} | ||
}; |
10 changes: 10 additions & 0 deletions
10
packages/aux-admin/aux-ui/wise-notification/src/wise-notification-types.ts
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,10 @@ | ||
import type { PropType, ExtractPropTypes } from 'vue'; | ||
|
||
export const wiseNotificationProps = { | ||
// data: { | ||
// type: type, | ||
// default: defaultValue | ||
// }, | ||
} as const; | ||
|
||
export type WiseNotificationProps = ExtractPropTypes<typeof wiseNotificationProps>; |
4 changes: 4 additions & 0 deletions
4
packages/aux-admin/aux-ui/wise-notification/src/wise-notification.scss
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,4 @@ | ||
// 引入主题变量 | ||
@import '../../styles/global.scss'; | ||
.#{$globa-prefix}-wise-notification { | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/aux-admin/aux-ui/wise-notification/src/wise-notification.tsx
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 @@ | ||
import { defineComponent, toRefs } from 'vue'; | ||
import type { SetupContext } from 'vue'; | ||
import { wiseNotificationProps, WiseNotificationProps } from './wise-notification-types'; | ||
import './wise-notification.scss'; | ||
|
||
export default defineComponent({ | ||
name: 'AuxWiseNotification', | ||
props: wiseNotificationProps, | ||
emits: [], | ||
setup(props: WiseNotificationProps, ctx: SetupContext) { | ||
// 直接解构 props 会导致响应式失效,需要使用 toRefs 进行包裹 | ||
// const { data } = toRefs(props); | ||
// console.log(data.value); | ||
|
||
return () => { | ||
return ( | ||
<div class="aux-wise-notification"></div> | ||
); | ||
}; | ||
} | ||
}); |
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