提交 586b5878 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新编辑表单

上级 490ebc63
.app-form-group { .app-form-group {
.app-form-group-caption {
>.ivu-card-head { padding-left: 20px;
>p {
>i {
margin-right: 8px;
cursor: pointer;
}
}
} }
.collapse-icon {
>.ivu-card-extra { font-size: 20px;
margin-right: 20px;
.item-extract-mode {
display: flex;
.item {
margin-left: 12px;
}
}
} }
} >.ivu-card-body {
padding: 20px 5px 10px 5px;
.app-form-group.app-group-collapse-contant { }
&.app-group-collapse-content {
.ivu-card-body { >.ivu-card-head {
display: none; color: var(--app-color-gray-200);
height: 48px;
border-bottom: none;
}
>.ivu-card-body {
display: none;
}
} }
}
.app-group-flex {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
>.ivu-card-body { &.app-group-flex {
height: calc(100% - 51px); height: 100%;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
>.ivu-card-body {
height: calc(100% - 51px);
overflow-y: auto;
overflow-x: hidden;
}
} }
} }
\ No newline at end of file
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
</app-form-group2> </app-form-group2>
</template> </template>
<template v-else> <template v-else>
<card v-if="isShowCaption === true" :bordered="false" :dis-hover="true" :class="classes"> <card v-if="isShowCaption === true" :dis-hover="true" :class="classes">
<p class='' slot='title'> <span class='app-form-group-caption' slot='title'>
<icon v-if="titleBarCloseMode !== 0" :type="collapseContant ? 'ios-arrow-dropright-circle' : 'ios-arrow-dropdown-circle'" <icon v-if="titleBarCloseMode !== 0" :type="collapseContent ? 'md-add' : 'md-remove'" class="collapse-icon"
@click="clickCollapse"></icon> @click="clickCollapse"></icon>
<span :class="titleClass">{{caption}}</span> <span :class="titleClass">{{caption}}</span>
</p> </span>
<template v-if="uiActionGroup"> <template v-if="uiActionGroup">
<a slot='extra'> <a slot='extra'>
<template v-if="uiActionGroup.extractMode && Object.is(uiActionGroup.extractMode, 'ITEMS')"> <template v-if="uiActionGroup.extractMode && Object.is(uiActionGroup.extractMode, 'ITEMS')">
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<span v-show="detail.visabled" :style="{'pointer-events':detail.disabled?'none':'auto','color':detail.disabled?'#7b7979':'#2d8cf0'}" class='item' @click="doUIAction($event, detail)"> <span v-show="detail.visabled" :style="{'pointer-events':detail.disabled?'none':'auto','color':detail.disabled?'#7b7979':'#2d8cf0'}" class='item' @click="doUIAction($event, detail)">
<template v-if="detail.isShowIcon"> <template v-if="detail.isShowIcon">
<template v-if="detail.icon && !Object.is(detail.icon, '')"> <template v-if="detail.icon && !Object.is(detail.icon, '')">
<i :class="detail.icon" ></i> <i :class="detail.icon"></i>
</template> </template>
<template v-if="!(detail.icon && !Object.is(detail.icon, ''))"> <template v-if="!(detail.icon && !Object.is(detail.icon, ''))">
<div v-if="detail.img && !Object.is(detail.img, '')"> <div v-if="detail.img && !Object.is(detail.img, '')">
...@@ -283,7 +283,7 @@ export default class AppFormGroup extends Vue { ...@@ -283,7 +283,7 @@ export default class AppFormGroup extends Vue {
* @type {boolean} * @type {boolean}
* @memberof AppFormGroup * @memberof AppFormGroup
*/ */
public collapseContant: boolean = false; public collapseContent: boolean = false;
/** /**
* 计算样式 * 计算样式
...@@ -295,7 +295,7 @@ export default class AppFormGroup extends Vue { ...@@ -295,7 +295,7 @@ export default class AppFormGroup extends Vue {
get classes(): string[] { get classes(): string[] {
return [ return [
'app-form-group', 'app-form-group',
this.isShowCaption && this.collapseContant ? 'app-group-collapse-contant' : '', this.isShowCaption && this.collapseContent ? 'app-group-collapse-content' : '',
this.isInfoGroupMode ? 'app-info-group-mode' : '', this.isInfoGroupMode ? 'app-info-group-mode' : '',
Object.is(this.layoutType, 'FLEX') ? 'app-group-flex': '' Object.is(this.layoutType, 'FLEX') ? 'app-group-flex': ''
]; ];
...@@ -318,7 +318,7 @@ export default class AppFormGroup extends Vue { ...@@ -318,7 +318,7 @@ export default class AppFormGroup extends Vue {
* @memberof AppFormGroup * @memberof AppFormGroup
*/ */
public created() { public created() {
this.collapseContant = this.titleBarCloseMode === 2 ? true : false; this.collapseContent = this.titleBarCloseMode === 2 ? true : false;
} }
/** /**
...@@ -327,7 +327,7 @@ export default class AppFormGroup extends Vue { ...@@ -327,7 +327,7 @@ export default class AppFormGroup extends Vue {
* @memberof AppFormGroup * @memberof AppFormGroup
*/ */
public clickCollapse(): void { public clickCollapse(): void {
this.collapseContant = !this.collapseContant; this.collapseContent = !this.collapseContent;
} }
/** /**
......
.app-form-item { .app-form-item {
height: 100%; height: 100%;
padding: 0 6px; padding: 0 15px;
.editor {
height: 100%; .app-form-item-label {
.ivu-form-item-content { line-height: 21px;
height: 100%; padding: 6px 10px 6px 0px;
min-height: 36px; overflow: hidden;
} text-overflow: ellipsis;
} white-space: nowrap;
.app-form-item-label { padding-left: 7px;
line-height: 21px; &.app-form-item-label--required {
padding: 6px 10px 6px 0px; padding-left: 0;
overflow: hidden; }
text-overflow: ellipsis; }
white-space: nowrap;
} .required {
color: var(--app-color-red);
}
} }
.app-form-item.label-top, .app-form-item.label-bottom { .app-form-item.label-top,
.app-form-item-label { .app-form-item.label-bottom {
display: block; .app-form-item-label {
} display: block;
}
} }
.app-form-item.label-left, .app-form-item.label-right { .app-form-item.label-left,
.app-form-item-label, .editor { .app-form-item.label-right {
height: 100%;
} .app-form-item-label,
.editor {
height: 100%;
}
} }
.app-form-item.label-left { .app-form-item.label-left {
.app-form-item-label { .app-form-item-label {
float: left; float: left;
text-align: right; }
}
} }
.app-form-item.label-right { .app-form-item.label-right {
.app-form-item-label { .app-form-item-label {
float: right; float: right;
padding: 6px 0px 6px 10px; padding: 6px 0px 6px 10px;
} }
} }
.app-form-item.label-none { .app-form-item.label-none {
>.app-form-item-label { >.app-form-item-label {
display: none !important; display: none !important;
} }
} }
\ No newline at end of file
...@@ -30,18 +30,18 @@ ...@@ -30,18 +30,18 @@
:style="labelstyle" :style="labelstyle"
:class="labelclasses" :class="labelclasses"
> >
<span v-if="required" style="color:red;">* </span> <span v-show="required" class="required">*</span>
<span v-if="!isEmptyCaption"> <span v-if="!isEmptyCaption">
<el-tooltip v-if="isShowTip" placement="top" effect="light"> <el-tooltip v-if="isShowTip" placement="top" effect="light">
<span v-html="caption"></span> <span v-html="caption"></span>
<template > <template >
<span slot="content" v-html="caption" ></span> <span slot="content" v-html="caption" ></span>
</template>
</el-tooltip>
<template v-if="!isShowTip">
<span v-html="caption" ></span>
</template> </template>
</span> </el-tooltip>
<template v-if="!isShowTip">
<span v-html="caption" ></span>
</template>
</span>
</span> </span>
<div <div
v-if="Object.is(this.labelPos,'TOP') || Object.is(this.labelPos,'LEFT') || Object.is(this.labelPos,'RIGHT')" v-if="Object.is(this.labelPos,'TOP') || Object.is(this.labelPos,'LEFT') || Object.is(this.labelPos,'RIGHT')"
...@@ -221,9 +221,7 @@ export default class AppFormItem extends Vue { ...@@ -221,9 +221,7 @@ export default class AppFormItem extends Vue {
* @memberof AppFormItem * @memberof AppFormItem
*/ */
get labelclasses(): string { get labelclasses(): string {
return this.labelStyle return `app-form-item-label ${this.required ? 'app-form-item-label--required' : ''} ${this.labelStyle || ''}`
? this.labelStyle + " app-form-item-label"
: "app-form-item-label";
} }
/** /**
......
.edit-view-layout { .edit-view-layout {
height: 100%;
padding: 0;
box-shadow: none;
background-color: transparent;
.view-header {
display: flex;
flex-direction: column;
.view-header__content {
display: flex;
justify-content: space-between;
}
}
} }
\ No newline at end of file
.ivu-card {
.ivu-card-head {
font-size: 16px;
padding: 0;
height: 54px;
font-weight: bold;
display: flex;
align-items: center;
color: var(--app-color-black);
border-bottom: 1px solid var(--app-color-gray-235);
}
&.ivu-card-bordered {
border-color: var(--app-color-gray-235);
border-radius: 0;
}
}
\ No newline at end of file
.ivu-form-item {
margin-bottom: 10px;
}
\ No newline at end of file
...@@ -3,4 +3,6 @@ ...@@ -3,4 +3,6 @@
@import './checkbox-group.scss'; @import './checkbox-group.scss';
@import './select.scss'; @import './select.scss';
@import './input.scss'; @import './input.scss';
@import './dropdown.scss'; @import './dropdown.scss';
\ No newline at end of file @import './form-item.scss';
@import './card.scss';
\ No newline at end of file
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
--app-color-gray-100: #747480; --app-color-gray-100: #747480;
// 安永灰2 // 安永灰2
--app-color-gray-200: #C4C4CD; --app-color-gray-200: #C4C4CD;
// 安永灰2 35%
--app-color-gray-235: #E7E7E7;
// 安永灰2 50% // 安永灰2 50%
--app-color-gray-250: #E1E1E6; --app-color-gray-250: #E1E1E6;
// 安永灰4 // 安永灰4
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册