Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
d46c0ed0
Commit
d46c0ed0
authored
Feb 09, 2018
by
杨奕
Committed by
GitHub
Feb 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transfer: add clearQuery (#9753)
parent
438b29a4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
0 deletions
+26
-0
examples/docs/en-US/transfer.md
examples/docs/en-US/transfer.md
+5
-0
examples/docs/es/transfer.md
examples/docs/es/transfer.md
+5
-0
examples/docs/zh-CN/transfer.md
examples/docs/zh-CN/transfer.md
+5
-0
packages/theme-chalk/src/transfer.scss
packages/theme-chalk/src/transfer.scss
+1
-0
packages/transfer/src/main.vue
packages/transfer/src/main.vue
+10
-0
No files found.
examples/docs/en-US/transfer.md
View file @
d46c0ed0
...
@@ -278,6 +278,11 @@ By default, Transfer looks for `key`, `label` and `disabled` in a data item. If
...
@@ -278,6 +278,11 @@ By default, Transfer looks for `key`, `label` and `disabled` in a data item. If
| left-footer | content of left list footer |
| left-footer | content of left list footer |
| right-footer | content of right list footer |
| right-footer | content of right list footer |
### Methods
| Method | Description | Parameters |
| ---- | ---- | ---- |
| clearQuery | clear the filter keyword of a certain panel | 'left' / 'right' |
### Events
### Events
| Event Name | Description | Parameters |
| Event Name | Description | Parameters |
|---------- |-------- |---------- |
|---------- |-------- |---------- |
...
...
examples/docs/es/transfer.md
View file @
d46c0ed0
...
@@ -279,6 +279,11 @@ Por defecto Transfer busca los atributos `key`, `label`, y `disabled` en cada el
...
@@ -279,6 +279,11 @@ Por defecto Transfer busca los atributos `key`, `label`, y `disabled` en cada el
| left-footer | Contenido del footer de la lista de la izquierda |
| left-footer | Contenido del footer de la lista de la izquierda |
| right-footer | Contenido del footer de la lista de la derecha |
| right-footer | Contenido del footer de la lista de la derecha |
### Methods
| Method | Description | Parameters |
| ---- | ---- | ---- |
| clearQuery | clear the filter keyword of a certain panel | 'left' / 'right' |
### Eventos
### Eventos
| Nombre | Descripcion | Parametros |
| Nombre | Descripcion | Parametros |
| ------ | ---------------------------------------- | ---------------------------------------- |
| ------ | ---------------------------------------- | ---------------------------------------- |
...
...
examples/docs/zh-CN/transfer.md
View file @
d46c0ed0
...
@@ -275,6 +275,11 @@
...
@@ -275,6 +275,11 @@
| left-footer | 左侧列表底部的内容 |
| left-footer | 左侧列表底部的内容 |
| right-footer | 右侧列表底部的内容 |
| right-footer | 右侧列表底部的内容 |
### Methods
| 方法名 | 说明 | 参数 |
| ---- | ---- | ---- |
| clearQuery | 清空某个面板的搜索关键词 | 'left' / 'right',指定需要清空的面板 |
### Events
### Events
| 事件名称 | 说明 | 回调参数 |
| 事件名称 | 说明 | 回调参数 |
|---------- |-------- |---------- |
|---------- |-------- |---------- |
...
...
packages/theme-chalk/src/transfer.scss
View file @
d46c0ed0
...
@@ -207,6 +207,7 @@
...
@@ -207,6 +207,7 @@
line-height
:
$--transfer-item-height
;
line-height
:
$--transfer-item-height
;
padding
:
6px
15px
0
;
padding
:
6px
15px
0
;
color
:
$--color-text-secondary
;
color
:
$--color-text-secondary
;
text-align
:
center
;
}
}
.el-checkbox__label
{
.el-checkbox__label
{
...
...
packages/transfer/src/main.vue
View file @
d46c0ed0
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<div
class=
"el-transfer"
>
<div
class=
"el-transfer"
>
<transfer-panel
<transfer-panel
v-bind=
"$props"
v-bind=
"$props"
ref=
"leftPanel"
:data=
"sourceData"
:data=
"sourceData"
:title=
"titles[0] || t('el.transfer.titles.0')"
:title=
"titles[0] || t('el.transfer.titles.0')"
:default-checked=
"leftDefaultChecked"
:default-checked=
"leftDefaultChecked"
...
@@ -29,6 +30,7 @@
...
@@ -29,6 +30,7 @@
</div>
</div>
<transfer-panel
<transfer-panel
v-bind=
"$props"
v-bind=
"$props"
ref=
"rightPanel"
:data=
"targetData"
:data=
"targetData"
:title=
"titles[1] || t('el.transfer.titles.1')"
:title=
"titles[1] || t('el.transfer.titles.1')"
:default-checked=
"rightDefaultChecked"
:default-checked=
"rightDefaultChecked"
...
@@ -183,6 +185,14 @@
...
@@ -183,6 +185,14 @@
});
});
this
.
$emit
(
'
input
'
,
currentValue
);
this
.
$emit
(
'
input
'
,
currentValue
);
this
.
$emit
(
'
change
'
,
currentValue
,
'
right
'
,
this
.
leftChecked
);
this
.
$emit
(
'
change
'
,
currentValue
,
'
right
'
,
this
.
leftChecked
);
},
clearQuery
(
which
)
{
if
(
which
===
'
left
'
)
{
this
.
$refs
.
leftPanel
.
query
=
''
;
}
else
if
(
which
===
'
right
'
)
{
this
.
$refs
.
rightPanel
.
query
=
''
;
}
}
}
}
}
};
};
...
...
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