Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wangjin-front-end
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
张媛
wangjin-front-end
Commits
f3e6463e
Commit
f3e6463e
authored
Jul 20, 2021
by
张媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
15216412
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
18 deletions
+19
-18
Test.stories.mdx
src/PRDhtml/Test.stories.mdx
+6
-0
progressBarSCom.tsx
src/canvasCom/progressBarSCom/progressBarSCom.tsx
+1
-1
totalCom.less
src/docs/totalCom.less
+8
-5
totalCom.tsx
src/docs/totalCom.tsx
+4
-4
ProgressBarS.ts
src/sourceCode/canvas/ProgressBarS.ts
+0
-1
Test.stories.mdx
test/Test.stories.mdx
+0
-7
No files found.
src/PRDhtml/Test.stories.mdx
0 → 100644
View file @
f3e6463e
import { Meta, Story, Canvas } from '@storybook/addon-docs';
import {linkTo} from '@storybook/addon-links';
<Meta title="PRD页面展示/辽宁工行养老虎" />
<iframe src="https://activity.m.duiba.com.cn/loginOutsource/loginUrlWithIMEI?redirect=https%3A%2F%2Factivity.m.duiba.com.cn%2Fprojectx%2Fp42cacea4%2Findex.html%3FappID%3D78171&imei=13515816999&appKey=28oMTYEVWrGmpFWUdY6xvUNn1eC" frameBorder="0" width = "750" height = "1624" ></iframe>
src/canvasCom/progressBarSCom/progressBarSCom.tsx
View file @
f3e6463e
...
...
@@ -29,7 +29,7 @@ export const ProgressBarSCom = ()=>{
//进度条托管
var
progressBar
=
new
ProgressBarS
(
pro
,
null
,(
v
)
=>
{
progressBarLabel
.
text
=
((
v
*
100
)
>>
0
)
+
"%"
progressBarLabel
.
text
=
((
v
*
100
)
>>
0
)
+
"%"
});
//监听进度条前进信息
...
...
src/docs/totalCom.less
View file @
f3e6463e
...
...
@@ -10,16 +10,19 @@
.itemCom{
width: 250px;
height: 200px;
box-sizing: border-box;
text-align: center;
padding-top:10px;
&:hover{
border: 2px solid #1E94FC;
cursor: pointer;
}
}
.com-link-span{
display: block;
width: 2
0
0px;
width: 2
5
0px;
text-align: center;
color: #ffffff;
&:hover{
color: #1E94FC;
cursor: pointer;
}
}
}
...
...
src/docs/totalCom.tsx
View file @
f3e6463e
...
...
@@ -22,9 +22,9 @@ export const TotalCom = ()=>{
{
canvasData
.
map
((
el
,
index
)
=>
{
return
(
<
div
key=
{
index
}
className=
"itemCom"
>
<
div
key=
{
index
}
className=
"itemCom"
onClick
=
{
canvasClickFun
.
bind
(
this
,
el
.
name
)}
>
<
img
src=
{
el
.
imgUrl
}
width
=
"200"
height
=
"150"
/>
<
span
className=
"com-link-span"
onClick
=
{
canvasClickFun
.
bind
(
this
,
el
.
name
)}
>
{
el
.
name
}
</
span
>
<
span
className=
"com-link-span"
>
{
el
.
name
}
</
span
>
</
div
>
)
})
...
...
@@ -35,9 +35,9 @@ export const TotalCom = ()=>{
{
reactData
.
map
((
el
,
index
)
=>
{
return
(
<
div
key=
{
index
}
className=
"itemCom"
>
<
div
key=
{
index
}
className=
"itemCom"
onClick
=
{
reactClickFun
.
bind
(
this
,
el
.
name
)}
>
<
img
src=
{
el
.
imgUrl
}
width
=
"200"
height
=
"150"
/>
<
span
className=
"com-link-span"
onClick
=
{
reactClickFun
.
bind
(
this
,
el
.
name
)}
>
{
el
.
name
}
</
span
>
<
span
className=
"com-link-span"
>
{
el
.
name
}
</
span
>
</
div
>
)
})
...
...
src/sourceCode/canvas/ProgressBarS.ts
View file @
f3e6463e
...
...
@@ -49,7 +49,6 @@ export class ProgressBarS {
set
value
(
v
)
{
if
(
v
<
0
)
v
=
0
;
if
(
v
>
1
)
v
=
1
;
console
.
log
(
"sssss"
)
this
.
_value
=
v
;
if
(
this
.
progressTxt
)
this
.
progressTxt
.
text
=
((
v
*
100
)
>>
0
)
+
"%"
;
this
.
upImage
.
x
=
this
.
oriX
-
(
1
-
this
.
_value
)
*
this
.
maxLength
;
...
...
test/Test.stories.mdx
deleted
100644 → 0
View file @
15216412
import { Meta, Story, Canvas } from '@storybook/addon-docs';
import {linkTo} from '@storybook/addon-links';
<Meta title="Canvas组件概览" />
# 组件库简介
<iframe src="/pages/totalCom/indexCanvas.html" frameBorder="0" width = "750" height = "1624" ></iframe>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment