提交 1c9a5d52 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 60c192af
<template> <template>
<div :class="curClassName" :style="curStyle"> <div :class="curClassName" :style="curStyle">
<div v-if="Object.is(labelPos, 'NONE') || !labelPos" class="editor"> <div v-if="Object.is(labelPos, 'NONE') || !labelPos" class="editor">
<div :class="{'check-error': !valueCheck}"> <div :class="{ 'check-error': !valueCheck }">
<slot></slot> <slot></slot>
<span v-if="!valueCheck" class="error-info">{{ error }}</span> <span v-if="!valueCheck" class="error-info">{{ error }}</span>
</div> </div>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
" "
class="editor" class="editor"
> >
<div :class="{'check-error': !valueCheck}"> <div :class="{ 'check-error': !valueCheck }">
<slot></slot> <slot></slot>
<span v-if="!valueCheck" class="error-info">{{ error }}</span> <span v-if="!valueCheck" class="error-info">{{ error }}</span>
</div> </div>
...@@ -39,14 +39,6 @@ export default class AppPanelField extends Vue { ...@@ -39,14 +39,6 @@ export default class AppPanelField extends Vue {
*/ */
@Prop() public name!: string; @Prop() public name!: string;
/**
* 标题
*
* @type {string}
* @memberof AppPanelField
*/
@Prop() public caption!: string;
/** /**
* 下标 * 下标
* *
...@@ -80,6 +72,18 @@ export default class AppPanelField extends Vue { ...@@ -80,6 +72,18 @@ export default class AppPanelField extends Vue {
return this.index ? `${this.name}_${this.index}` : this.name; return this.index ? `${this.name}_${this.index}` : this.name;
} }
/**
* 标题
*
* @memberof AppLoginButton
*/
get caption() {
const layoutModel = this.layoutModelDetails[this.itemName];
if (layoutModel) {
return layoutModel.caption;
}
}
/** /**
* 显示标题 * 显示标题
* *
...@@ -195,7 +199,6 @@ export default class AppPanelField extends Vue { ...@@ -195,7 +199,6 @@ export default class AppPanelField extends Vue {
itemValueRules(newVal: any, oldVal: any) { itemValueRules(newVal: any, oldVal: any) {
this.valueChange = true; this.valueChange = true;
} }
} }
</script> </script>
<style lang='less'> <style lang='less'>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册