Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
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
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
web_component
submodule
Commits
d103ccec
Commit
d103ccec
authored
Jul 24, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update select ui
parent
8972d499
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
54 deletions
+23
-54
editInterface.tsx
components/apolloTable/component/base/edit/editInterface.tsx
+1
-0
index.less
components/apolloTable/component/base/edit/search/index.less
+3
-2
index.tsx
components/apolloTable/component/base/edit/search/index.tsx
+12
-19
index.tsx
components/apolloTable/component/base/edit/select/index.tsx
+2
-19
styles.less
...onents/apolloTable/component/base/edit/select/styles.less
+5
-3
index.less
...loTable/component/base/extra/associationSearch/index.less
+0
-10
readme.md
...ents/apolloTable/component/base/extra/dataEntry/readme.md
+0
-1
No files found.
components/apolloTable/component/base/edit/editInterface.tsx
View file @
d103ccec
...
@@ -40,6 +40,7 @@ export interface ApolloInputSearchProps extends SelectProps<any>, CommonProps {
...
@@ -40,6 +40,7 @@ export interface ApolloInputSearchProps extends SelectProps<any>, CommonProps {
export
interface
ApolloSelectProps
extends
SelectProps
<
any
>
,
CommonProps
{
export
interface
ApolloSelectProps
extends
SelectProps
<
any
>
,
CommonProps
{
isMultiple
?:
boolean
;
isMultiple
?:
boolean
;
options
?:
any
[];
options
?:
any
[];
maxPopHeight
?:
boolean
;
}
}
export
interface
ApolloNumberProps
extends
InputNumberProps
,
CommonProps
{}
export
interface
ApolloNumberProps
extends
InputNumberProps
,
CommonProps
{}
export
interface
ApolloCheckboxProps
extends
CheckboxProps
,
CommonProps
{
export
interface
ApolloCheckboxProps
extends
CheckboxProps
,
CommonProps
{
...
...
components/apolloTable/component/base/edit/search/index.less
View file @
d103ccec
.search {
.search {
width: 100%;
width: 100%;
height: 100%;
//height: 100%;
display: flex;
:global(.ant-select-selection) {
:global(.ant-select-selection) {
width: 100%;
width: 100%;
min-height: 100%;
min-height: 100%;
...
@@ -8,7 +9,7 @@
...
@@ -8,7 +9,7 @@
display: flex;
display: flex;
align-items: center;
align-items: center;
}
}
:global(.ant-select-selection__rendered){
:global(.ant-select-selection__rendered)
{
width: 100%;
width: 100%;
}
}
}
}
components/apolloTable/component/base/edit/search/index.tsx
View file @
d103ccec
...
@@ -7,9 +7,9 @@ import { onBlurFn } from '../onBlurFn';
...
@@ -7,9 +7,9 @@ import { onBlurFn } from '../onBlurFn';
import
s
from
'./index.less'
;
import
s
from
'./index.less'
;
export
const
ApolloSearch
=
(
props
:
ApolloSearchProps
)
=>
{
export
const
ApolloSearch
=
(
props
:
ApolloSearchProps
)
=>
{
const
{
onChange
,
maxCount
,
isMultiple
,
request
,
origin
}
=
props
;
const
{
onChange
,
maxCount
,
isMultiple
,
request
}
=
props
;
const
selfProps
=
antiAssign
(
props
,
[
'columnConfig'
,
'onChange'
,
'isMultiple'
,
'options'
,
'request'
,
'maxCount'
]);
const
selfProps
=
antiAssign
(
props
,
[
'columnConfig'
,
'onChange'
,
'isMultiple'
,
'options'
,
'request'
,
'maxCount'
]);
const
isOpen
=
useRef
();
const
isOpen
:
any
=
useRef
();
if
(
isMultiple
)
{
if
(
isMultiple
)
{
selfProps
.
mode
=
'multiple'
;
selfProps
.
mode
=
'multiple'
;
}
}
...
@@ -35,21 +35,14 @@ export const ApolloSearch = (props: ApolloSearchProps) => {
...
@@ -35,21 +35,14 @@ export const ApolloSearch = (props: ApolloSearchProps) => {
onBlurFn
(
props
);
onBlurFn
(
props
);
}
}
};
};
return
(
return
(
origin
===
'editForm'
?
<
Search
<
Search
className=
{
s
.
search
}
className=
{
s
.
search
}
request=
{
request
}
request=
{
request
}
fieldNames=
{
{
value
:
'fieldValueValue'
,
label
:
'fieldValueName'
}
}
fieldNames=
{
{
value
:
'fieldValueValue'
,
label
:
'fieldValueName'
}
}
{
...
selfProps
}
{
...
selfProps
}
onChange=
{
changeValue
}
onDropdownVisibleChange=
{
selfProps
.
mode
===
'multiple'
?
multipleBlurFn
:
singleBlurFn
}
onDropdownVisibleChange=
{
selfProps
.
mode
===
'multiple'
?
multipleBlurFn
:
singleBlurFn
}
initDataType=
"onfocus"
/>
:
<
Search
className=
{
s
.
search
}
request=
{
request
}
fieldNames=
{
{
value
:
'fieldValueValue'
,
label
:
'fieldValueName'
}
}
{
...
selfProps
}
onChange=
{
changeValue
}
onChange=
{
changeValue
}
initDataType=
"onfocus"
initDataType=
"onfocus"
/>
/>
...
...
components/apolloTable/component/base/edit/select/index.tsx
View file @
d103ccec
...
@@ -6,7 +6,7 @@ import { antiAssign } from '../../../../utils/utils';
...
@@ -6,7 +6,7 @@ import { antiAssign } from '../../../../utils/utils';
import
styles
from
'./styles.less'
;
import
styles
from
'./styles.less'
;
export
const
ApolloSelect
=
(
props
:
ApolloSelectProps
)
=>
{
export
const
ApolloSelect
=
(
props
:
ApolloSelectProps
)
=>
{
const
{
options
=
[],
onChange
,
isMultiple
,
origin
,
maxPopHeight
}
=
props
;
const
{
options
=
[],
onChange
,
isMultiple
,
maxPopHeight
}
=
props
;
const
selfProps
=
antiAssign
(
props
,
[
'columnConfig'
,
'onChange'
,
'isMultiple'
,
'options'
,
'maxPopHeight'
]);
const
selfProps
=
antiAssign
(
props
,
[
'columnConfig'
,
'onChange'
,
'isMultiple'
,
'options'
,
'maxPopHeight'
]);
const
isOpen
:
any
=
useRef
();
const
isOpen
:
any
=
useRef
();
...
@@ -31,29 +31,12 @@ export const ApolloSelect = (props: ApolloSelectProps) => {
...
@@ -31,29 +31,12 @@ export const ApolloSelect = (props: ApolloSelectProps) => {
}
}
};
};
return
origin
===
'editForm'
?
(
<
Select
className=
{
styles
.
select
}
{
...
selfProps
}
onChange=
{
changeValue
}
onDropdownVisibleChange=
{
selfProps
.
mode
===
'multiple'
?
multipleBlurFn
:
singleBlurFn
}
dropdownStyle=
{
{
maxHeight
:
maxPopHeight
,
}
}
>
{
options
.
map
((
item
)
=>
{
return
(
return
(
<
Select
.
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
>
{
item
.
name
}
</
Select
.
Option
>
);
})
}
</
Select
>
)
:
(
<
Select
<
Select
className=
{
styles
.
select
}
className=
{
styles
.
select
}
{
...
selfProps
}
{
...
selfProps
}
onChange=
{
changeValue
}
onChange=
{
changeValue
}
onDropdownVisibleChange=
{
selfProps
.
mode
===
'multiple'
?
multipleBlurFn
:
singleBlurFn
}
dropdownStyle=
{
{
dropdownStyle=
{
{
maxHeight
:
maxPopHeight
,
maxHeight
:
maxPopHeight
,
}
}
}
}
...
...
components/apolloTable/component/base/edit/select/styles.less
View file @
d103ccec
.select {
.select {
width: 100%;
width: 100%;
height: 100%
;
display: flex
;
:global(.ant-select-selector) {
:global(.ant-select-selector) {
height: 100% !important;
height: 100% !important;
align-items: center;
align-items: center;
}
}
:global(.ant-select-selection) {
:global(.ant-select-selection) {
width: 100%;
width: 100%;
min-height: 100%
;
height: auto
;
border-radius: 0;
border-radius: 0;
display: flex;
display: flex;
align-items: center;
align-items: center;
}
}
:global(.ant-select-selection__rendered){
:global(.ant-select-selection__rendered)
{
width: 100%;
width: 100%;
display: flex;
align-items: center;
}
}
}
}
components/apolloTable/component/base/extra/associationSearch/index.less
deleted
100644 → 0
View file @
8972d499
.searchContainer {
width: 100%;
height: 100%;
:global(.ant-select-selection__rendered) {
width: 100%;
}
:global(.ant-select-selection) {
min-height: 100%;
}
}
components/apolloTable/component/base/extra/dataEntry/readme.md
deleted
100644 → 0
View file @
8972d499
## 此组件用于组合数据录入空间几何
\ No newline at end of file
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