Commit 7c72662d authored by wildfirecode13's avatar wildfirecode13

1

parent dcb77cf6
......@@ -34,6 +34,15 @@
"spark-wrapper-fyge": "^1.0.4"
}
},
"@spark/ui": {
"version": "1.0.25",
"resolved": "http://npm.dui88.com:80/@spark%2fui/-/ui-1.0.25.tgz",
"integrity": "sha512-NjY36x9pcPH/ULPr6TJMXFJFVRLnyb1uEvJp5pqwK+1JJF33yxmY5g/gDEXI/p/hWTAuO7XRL/2fpjylfddvpA==",
"requires": {
"@types/react": "^16.9.56",
"spark-wrapper-fyge": "^1.0.4"
}
},
"@spark/utils": {
"version": "1.0.30",
"resolved": "http://npm.dui88.com:80/@spark%2futils/-/utils-1.0.30.tgz",
......
......@@ -10,6 +10,7 @@
"dependencies": {
"@spark/api-base": "^1.0.11",
"@spark/projectx": "^1.0.3",
"@spark/ui": "^1.0.25",
"axios": "^0.19.2",
"css-loader": "^3.6.0",
"duiba-utils": "^1.0.2",
......
......@@ -8,3 +8,56 @@ body {
width: 100%;
height: 100%;
}
#toast_container * {
box-sizing: border-box;
}
.toast-list {
box-sizing: border-box;
position: fixed;
top: 50%;
left: 50%;
z-index: 2001;
line-height: 1.5;
text-align: center;
transform: translate(-50%, -50%);
}
.toast-message {
opacity: 1;
margin-bottom: 10px;
font-size: 0;
transition: height 0.3s, opacity 0.3s, transform 0.3s;
}
.toast-content {
display: inline-block;
overflow: hidden;
min-width: 520px;
padding: 50px 22px;
background: rgba(0, 0, 10, 0.75);
box-shadow: 1px 2px 5px 1px rgba(0, 0, 0, 0.2);
border-radius: 10px;
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color: #fff;
font-size: 24px;
text-align: center;
line-height: 1.5;
}
.toast-enter {
height: 0;
}
.toast-enter-active {
opacity: 1;
}
.toast-enter-done {
opacity: 1;
}
.toast-exit-active {
transform: translateY(-10px);
}
.btn_heartbeats {
transform-origin: center center;
animation: heartbeats 0.775s infinite;
}
\ No newline at end of file
......@@ -4,6 +4,8 @@ import React, { Component } from 'react';
import resList from '../../resconfig/resList'; //import API from '../../api';
import './sign.less';
import {Toast, Loading, Badge, CountDownButton, InputNumber} from '@spark/ui'
class Sign extends Component {
constructor(props) {
......@@ -13,6 +15,12 @@ class Sign extends Component {
};
}
componentDidMount(){
setTimeout(() => {
Toast('sdfsdfsdfsdf',1000*100)
}, 1000);
}
render() {
return (
<div className="sign " uuid="14a66aed-4e41-4fea-9d16-6aa02c1bad5a">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment