Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement: 页面体验样式问题优化 #85 #97

Merged
merged 13 commits into from
Apr 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,9 @@ export default {
}
}
.config-name-wrapper {
display: inline-block;
margin: 15px auto 0;
margin: 0 auto;
padding-top: 15px;
width: 430px;
height: 30px;
.name-show-mode {
display: inline-block;
}
Expand Down
47 changes: 15 additions & 32 deletions pipeline/blueflow/src/components/common/PipelineCanvas/MenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
:data-type="item.type"
v-bktooltips.right="item.name"
@click.stop="onSelectNode(item.type)">
<span
v-if="item.type === 'startpoint' || item.type === 'endpoint'">
<div
v-if="item.type === 'startpoint' || item.type === 'endpoint'"
class="node-circle">
{{i18n[item.type]}}
</span>
</div>
</li>
</ul>
</div>
Expand Down Expand Up @@ -290,22 +291,24 @@ export default {
}
}
}
.common-icon-node-startpoint,
.common-icon-node-endpoint{
display: flex;
.node-circle{
margin: 0 auto;
width: 32px;
height: 32px;
margin: 12px;
line-height: 32px;
font-size: 12px;
margin-bottom: 23px;
border-radius: 50%;
background-color: #ffffff;
border: 1px solid #546a9e;
justify-content: center;
align-items: center;
}
.node-endpoint {
margin-top: 20px;
.startpoint-unavailable,
.endpoint-unavailable {
opacity: 0.3;
pointer-events: none;
}
.common-icon-node-tasknode,
.common-icon-node-subflow {
font-size: 24px;
}
.node-list {
position: absolute;
Expand Down Expand Up @@ -434,24 +437,4 @@ export default {

}
}
.startpoint-unavailable, .endpoint-unavailable {
display: flex;
width: 32px;
height: 32px;
line-height: 32px;
border-radius: 50%;
background-color: #ffffff;
border: 1px solid #546a9e;
justify-content: center;
align-items: center;
opacity: 0.3;
pointer-events: none;
}
.endpoint-unavailable {
margin-bottom: 12px;
}
.common-icon-node-tasknode,
.common-icon-node-subflow {
font-size: 24px;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@ export default {
.atom-node {
position: absolute;
top: 86px;
left: 42%;
left: 50%;
transform: translateX(-50%);
z-index: 4;
.atom-number {
color: #a9b2bd;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ import MultipleIpSelector from './MultipleIpSelector.vue'
import SelectCondition from './SelectCondition.vue'

const i18n = {
staticIP: gettext('静态IP'),
dynamicIP: gettext('动态IP'),
staticIp: gettext('静态IP'),
dynamicIp: gettext('动态IP'),
filter: gettext('筛选条件'),
exclude: gettext('排除条件')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
type="textarea"
v-model="textareaValue"
:class="{'rf-view-textarea-value': !formMode, 'rf-view-textarea': !editable}"
:autosize="true"
:disabled="!editable || !formMode"
:rows="3"
:autosize="formMode ? {minRows: 2} : true"
resize="none"
:placeholder="placeholder">
</el-input>
Expand Down Expand Up @@ -81,7 +80,7 @@ export default {
@include scrollbar;
}
}
.rf-view-textarea {
.rf-view-textarea-value {
/deep/ .el-textarea__inner {
padding-left: 0px;
}
Expand Down
1 change: 1 addition & 0 deletions pipeline/blueflow/src/pages/appmaker/AppTaskHome/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ export default {
background: #fafafa;
}
.appmaker-id {
padding-left: 20px;
width: 80px;
}
.appmaker-name {
Expand Down
11 changes: 9 additions & 2 deletions pipeline/blueflow/src/pages/audit/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ export default {
background: #fafafa;
}
.audit-id {
padding-left: 20px;
width: 80px;
}
.audit-name {
Expand Down Expand Up @@ -695,13 +696,19 @@ export default {
}
}
.panagation {
margin-top: 20px;
padding: 10px 20px;
text-align: right;
border: 1px solid #dde4eb;
border-top: none;
background: #fafbfd;
.page-info {
float: left;
margin-top: 10px;
line-height: 36px;
font-size: 14px;
}
.bk-page {
display: inline-block;
}
}
</style>

1 change: 1 addition & 0 deletions pipeline/blueflow/src/pages/functor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@ label.required:after {
background: $whiteNodeBg;
}
.functor-id {
padding-left: 20px;
width: 80px;
}
.functor-name {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ export default {
background: $whiteNodeBg;
}
.periodic-id {
padding-left: 20px;
width: 80px;
}
.periodic-name {
Expand Down
2 changes: 1 addition & 1 deletion pipeline/blueflow/src/pages/task/NodePreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default {
<style lang="scss" scoped>
@import '@/scss/config.scss';
.node-preview-wrapper {
height: 100%;
height: 460px;
}
.canvas-wrapper {
height: calc(100% - 50px);
Expand Down
1 change: 1 addition & 0 deletions pipeline/blueflow/src/pages/task/TaskList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ export default {
background: $whiteNodeBg;
}
.task-id {
padding-left: 20px;
width: 80px;
}
.task-name {
Expand Down
Loading