Skip to content

Commit

Permalink
release: v0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
winixt committed Dec 31, 2021
1 parent 613585f commit f5cf488
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 11 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [0.1.9](https://github.com/WeBankFinTech/fes-design/compare/v0.1.8...v0.1.9) (2021-12-31)


### Features

* 虚拟列表监听item大小事件 ([212ac6d](https://github.com/WeBankFinTech/fes-design/commit/212ac6d9b2fd5a13d6cf0bf217440025702b2216))
* select支持虚拟滚动 ([afeb90b](https://github.com/WeBankFinTech/fes-design/commit/afeb90b0edd69c6d46f371708e71f37089f0a721))
* select支持options配置 ([f3f525a](https://github.com/WeBankFinTech/fes-design/commit/f3f525aa2321e8b1b9cf19123fd384a39c749304))
* selectTree支持虚拟列表 ([#27](https://github.com/WeBankFinTech/fes-design/issues/27)) ([9409415](https://github.com/WeBankFinTech/fes-design/commit/94094151ddb6d4825b1d3cee365e9c00cca13f19))
* tabs支持前后插槽 ([3f02d76](https://github.com/WeBankFinTech/fes-design/commit/3f02d76b024985dcc3b82db0f24e4c6adb63e9d8))
* Tree 支持虚拟列表 ([#23](https://github.com/WeBankFinTech/fes-design/issues/23)) ([1cd0c87](https://github.com/WeBankFinTech/fes-design/commit/1cd0c876e6b9dbd9d4df23a2f33a88651d040b63))



## [0.1.8](https://github.com/WeBankFinTech/fes-design/compare/v0.1.7...v0.1.8) (2021-12-29)


Expand Down
32 changes: 24 additions & 8 deletions components/_util/noticeManager.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import { createApp, defineComponent, onMounted, ref, TransitionGroup } from 'vue';
import { InfoCircleFilled, CloseCircleFilled, CheckCircleFilled, ExclamationCircleFilled } from '../icon';
import {
createApp,
defineComponent,
onMounted,
ref,
TransitionGroup,
} from 'vue';
import {
InfoCircleFilled,
CloseCircleFilled,
CheckCircleFilled,
ExclamationCircleFilled,
} from '../icon';
import { useTheme } from '../_theme/useTheme';

let seed = 0;
Expand All @@ -11,9 +22,7 @@ function genUid() {
const Notification = defineComponent({
props: {
maxCount: Number,
class: String,
transitionName: String,
style: Object,
},
setup(props) {
const notices = ref([]);
Expand Down Expand Up @@ -49,10 +58,16 @@ const Notification = defineComponent({
};
},
render() {
const { notices, class: className, transitionName, style } = this;
const children = notices.map((notice) => <div key={notice.key}>{typeof notice.children === 'function' ? notice.children() : notice.children}</div>);
const { notices, transitionName } = this;
const children = notices.map((notice) => (
<div key={notice.key}>
{typeof notice.children === 'function'
? notice.children()
: notice.children}
</div>
));
return (
<TransitionGroup name={transitionName} tag="div" class={className} style={style}>
<TransitionGroup name={transitionName} tag="div">
{children}
</TransitionGroup>
);
Expand All @@ -74,7 +89,8 @@ export function createManager(opt = {}) {
useTheme();
const notificationRef = ref(null);
const instance = {
append: (noticeProps) => notificationRef.value.append(noticeProps),
append: (noticeProps) =>
notificationRef.value.append(noticeProps),
remove: (key) => notificationRef.value.remove(key),
destroy() {
app.unmount(div);
Expand Down
10 changes: 9 additions & 1 deletion components/message/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ const managerStyle = reactive({
top: mergeConfig.top,
});

async function create({ type, content, duration, icon, closable, afterClose, colorful }) {
async function create({
type,
content,
duration,
icon,
closable,
afterClose,
colorful,
}) {
managerStyle.zIndex = PopupManager.nextZIndex();
if (!messageInstance?.exited?.()) {
messageInstance = await createManager({
Expand Down
2 changes: 1 addition & 1 deletion components/version/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const version = '0.1.8';
const version = '0.1.9';

export default version;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fesjs/fes-design",
"version": "0.1.8",
"version": "0.1.9",
"description": "fes-design for PC",
"main": "dist/fesDesign.js",
"module": "es/index.js",
Expand Down

0 comments on commit f5cf488

Please sign in to comment.