[update] 修改bug80690
This commit is contained in:
@@ -157,3 +157,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/deep/ .van-field {
|
||||||
|
.van-field__control[readonly]{
|
||||||
|
color: #969799;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<van-field
|
<van-field
|
||||||
readonly
|
readonly
|
||||||
|
:class="readonly ? 'field-readonly' : 'not-field-readonly'"
|
||||||
clickable
|
clickable
|
||||||
type="text"
|
type="text"
|
||||||
name="calendar"
|
name="calendar"
|
||||||
@@ -70,3 +71,18 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="less">
|
||||||
|
|
||||||
|
.not-field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #1D2129 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #969799 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<van-field
|
<van-field
|
||||||
readonly
|
readonly
|
||||||
|
:class="readonly ? 'field-readonly' : 'not-field-readonly'"
|
||||||
clickable
|
clickable
|
||||||
name="picker"
|
name="picker"
|
||||||
:value="showValue"
|
:value="showValue"
|
||||||
@@ -185,4 +186,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.not-field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #1D2129 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #969799 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<van-field
|
<van-field
|
||||||
readonly
|
readonly
|
||||||
|
:class="readonly ? 'field-readonly' : 'not-field-readonly'"
|
||||||
clickable
|
clickable
|
||||||
name="picker"
|
name="picker"
|
||||||
:value="showValue"
|
:value="showValue"
|
||||||
@@ -135,6 +136,16 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="less">
|
||||||
|
.not-field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #1D2129 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #969799 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<van-field
|
<van-field
|
||||||
readonly
|
readonly
|
||||||
|
:class="readonly ? 'field-readonly' : 'not-field-readonly'"
|
||||||
clickable
|
clickable
|
||||||
name="picker"
|
name="picker"
|
||||||
:value="showValue"
|
:value="showValue"
|
||||||
@@ -261,4 +262,15 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.not-field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #1D2129 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #969799 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<van-field
|
<van-field
|
||||||
:class="(required ? 'required ' : '') + 'form-item label-weight'"
|
:class="(required ? 'required ' : '') + 'form-item label-weight ' + (readonly ? 'field-readonly' : 'not-field-readonly')"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:label="label"
|
:label="label"
|
||||||
clearable
|
clearable
|
||||||
@@ -270,4 +270,16 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.not-field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #1D2129 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #969799 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
:label="label"
|
:label="label"
|
||||||
:placeholder="$t('pleaseSelect') + label"
|
:placeholder="$t('pleaseSelect') + label"
|
||||||
readonly
|
readonly
|
||||||
|
:class="readonly ? 'field-readonly' : 'not-field-readonly'"
|
||||||
rows="1"
|
rows="1"
|
||||||
autosize
|
autosize
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
@@ -120,6 +121,18 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="less">
|
||||||
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
|
.not-field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #1D2129 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #969799 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
:label="label"
|
:label="label"
|
||||||
:placeholder="$t('pleaseSelect') + (label ? label : '')"
|
:placeholder="$t('pleaseSelect') + (label ? label : '')"
|
||||||
readonly
|
readonly
|
||||||
|
:class="readonly ? 'field-readonly' : 'not-field-readonly'"
|
||||||
rows="1"
|
rows="1"
|
||||||
autosize
|
autosize
|
||||||
:required="rules ? rules[0].required : false"
|
:required="rules ? rules[0].required : false"
|
||||||
@@ -124,4 +125,15 @@ export default {
|
|||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
@import '~@assets/less/common.less';
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
|
.not-field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #1D2129 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-readonly {
|
||||||
|
/deep/ .van-field__control{
|
||||||
|
color: #969799 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user