Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
44c2a032
Commit
44c2a032
authored
May 20, 2021
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改组件问题
parent
a8144085
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
base.tsx
packages/base-components/DatePickerCustom/src/demos/base.tsx
+1
-1
index.js
packages/base-components/DatePickerCustom/src/index.js
+1
-1
index.js
packages/base-components/ExportExcel/src/index.js
+5
-5
index.js
packages/extend-components/EC_DeviceTree/src/index.js
+1
-1
No files found.
packages/base-components/DatePickerCustom/src/demos/base.tsx
View file @
44c2a032
...
...
@@ -14,7 +14,7 @@ const Demo = (props) => {
};
return
(
<>
<
DatePickerCustom
onChange=
{
onChange
}
picker=
"da
y
"
style=
{
{
marginRight
:
'10px'
}
}
/>
<
DatePickerCustom
onChange=
{
onChange
}
picker=
"da
te
"
style=
{
{
marginRight
:
'10px'
}
}
/>
<
DatePickerCustom
onChange=
{
onChange
}
picker=
"week"
style=
{
{
marginRight
:
'10px'
}
}
/>
<
DatePickerCustom
onChange=
{
onChange
}
picker=
"month"
style=
{
{
marginRight
:
'10px'
}
}
/>
<
DatePickerCustom
onChange=
{
onChange
}
picker=
"year"
style=
{
{
marginRight
:
'10px'
}
}
/>
...
...
packages/base-components/DatePickerCustom/src/index.js
View file @
44c2a032
...
...
@@ -12,7 +12,7 @@ const FORMATS = {
const
STANTFORMAT
=
'YYYY-MM-DD 00:00:00'
;
const
ENDFORMAT
=
'YYYY-MM-DD 23:59:59'
;
const
DatePickerCustom
=
(
props
)
=>
{
const
modes
=
props
.
picker
?
props
.
picker
:
'day'
;
const
modes
=
props
.
picker
?
(
props
.
picker
!==
'date'
?
props
.
picker
:
'day'
)
:
'day'
;
const
selectedDate
=
props
.
value
?
props
.
value
:
new
Date
();
const
onChange
=
(
date
,
dateString
)
=>
{
const
dateTime
=
moment
(
date
).
format
(
'YYYY-MM-DD'
);
...
...
packages/base-components/ExportExcel/src/index.js
View file @
44c2a032
...
...
@@ -5,11 +5,11 @@ import JSZip from 'jszip';
// 导出Excel表格
const
ExportExcel
=
(
props
)
=>
{
var
option
=
{};
let
option
=
{};
option
.
fileName
=
props
.
name
;
option
.
datas
=
props
.
content
;
var
toExcel
=
new
ExportJsonExcel
(
option
);
//new
let
toExcel
=
new
ExportJsonExcel
(
option
);
//new
toExcel
.
saveExcel
();
};
ExportExcel
.
defaultProps
=
{
...
...
@@ -24,17 +24,17 @@ ExportExcel.propTypes = {
// 导出压缩Excel表格
const
ExportExcelZip
=
(
props
)
=>
{
var
option
=
{};
let
option
=
{};
option
.
fileName
=
props
.
name
;
option
.
saveAsBlob
=
true
;
option
.
datas
=
props
.
content
;
var
toExcel
=
new
ExportJsonExcel
(
option
);
//new
let
toExcel
=
new
ExportJsonExcel
(
option
);
//new
let
file
=
toExcel
.
saveExcel
();
// 压缩文件
var
zip
=
new
JSZip
();
let
zip
=
new
JSZip
();
// 多个excel 依次加入(fileName不能相同)
zip
.
file
(
file
.
name
,
file
);
...
...
packages/extend-components/EC_DeviceTree/src/index.js
View file @
44c2a032
...
...
@@ -41,7 +41,7 @@ const DeviceTree = (props) => {
},
[]);
const
handleData
=
(
data
)
=>
{
data
.
forEach
((
item
)
=>
{
data
.
map
((
item
)
=>
{
item
.
title
=
item
.
deviceName
;
item
.
key
=
item
.
stationID
;
item
.
children
=
handleData
(
item
.
children
);
...
...
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