提交 62662feb 编写于 作者: Neuromancer255's avatar Neuromancer255

编辑器禁用功能修改 --fix1

上级 8191c6df
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
} }
.app-form-item.item-has-value { .app-form-item.item-has-value {
>ion-label { >ion-label {
color:rgb(50, 50, 50); color: #888888;
font-size: 15px; font-size: 15px;
} }
} }
...@@ -55,8 +55,9 @@ ...@@ -55,8 +55,9 @@
} }
.item-disabled { .item-disabled {
opacity: 0.6;
ion-label{ ion-label{
-webkit-opacity: 1.5 !important; -webkit-opacity: 1 !important;
-webkit-text-fill-color: #000; -webkit-text-fill-color: #000;
} }
} }
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="app-mobile-check-list"> <div class="app-mobile-check-list">
<ion-icon v-if="curValue" name="close-outline" @click="clear"></ion-icon> <ion-icon v-if="curValue" name="close-outline" @click="clear"></ion-icon>
<div v-if="curValue== null || curValue==''" class="ion-select-icon"></div> <div v-if="curValue== null || curValue==''" class="ion-select-icon"></div>
<ion-select ref="checkList" @ionChange="change" :disabled="disabled" multiple="true" :ok-text="$t('app.button.confirm')" :cancel-text="$t('app.button.cancel')"> <ion-select ref="checkList" @ionChange="change" multiple="true" :ok-text="$t('app.button.confirm')" :cancel-text="$t('app.button.cancel')">
<ion-select-option v-for="option of options" :key="option.value" :value="option.value">{{option.text}} <ion-select-option v-for="option of options" :key="option.value" :value="option.value">{{option.text}}
</ion-select-option> </ion-select-option>
</ion-select> </ion-select>
...@@ -56,14 +56,6 @@ ...@@ -56,14 +56,6 @@
*/ */
public options: any[] = []; public options: any[] = [];
/**
* 是否禁用
*
* @type {string}
* @memberof AppCheckList
*/
@Prop() public disabled ? : string;
/** /**
* 代码表标识 * 代码表标识
* *
......
<template> <template>
<van-radio-group class="app-mobile-radio-list" v-model="curValue" :disabled="disabled" direction="horizontal" @change="change"> <van-radio-group class="app-mobile-radio-list" v-model="curValue" direction="horizontal" @change="change">
<van-radio v-for="(item,index) in options" :key="index" :name="item.value">{{item.text}}</van-radio> <van-radio v-for="(item,index) in options" :key="index" :name="item.value">{{item.text}}</van-radio>
</van-radio-group> </van-radio-group>
</template> </template>
...@@ -61,14 +61,6 @@ export default class AppMobRadio extends Vue { ...@@ -61,14 +61,6 @@ export default class AppMobRadio extends Vue {
*/ */
public curValue?: any = this.value; public curValue?: any = this.value;
/**
* 禁用
*
* @type {boolean}
* @memberof AppMobRadio
*/
@Prop() public disabled?: boolean;
/** /**
* change事件 * change事件
* *
......
<template> <template>
<van-rate class="app-mobile-rate" v-model="curValue" :disabled="disabled"/> <van-rate class="app-mobile-rate" v-model="curValue"/>
</template> </template>
<script lang="ts"> <script lang="ts">
...@@ -39,15 +39,6 @@ export default class AppRate extends Vue { ...@@ -39,15 +39,6 @@ export default class AppRate extends Vue {
set curValue(val:any){ set curValue(val:any){
this.$emit('change',val); this.$emit('change',val);
} }
/**
* 禁用
*
* @type {boolean}
* @memberof AppRate
*/
@Prop() public disabled?: boolean;
public mounted(){ public mounted(){
this.changeLabelStyle(); this.changeLabelStyle();
......
<template> <template>
<div class="app-mobile-slider"> <div class="app-mobile-slider">
<ion-range :value="value" :disabled="disabled" min="0" max="100" pin color="secondary" @ionChange="change"></ion-range> <ion-range :value="value" min="0" max="100" pin color="secondary" @ionChange="change"></ion-range>
</div> </div>
</template> </template>
...@@ -23,15 +23,6 @@ export default class AppMobSlider extends Vue { ...@@ -23,15 +23,6 @@ export default class AppMobSlider extends Vue {
*/ */
@Prop() public value?:number; @Prop() public value?:number;
/**
* 是否禁用
*
* @type {boolean}
* @memberof AppMobSlider
*/
@Prop() public disabled?:boolean;
/** /**
* change事件 * change事件
*/ */
......
<template> <template>
<van-stepper class="app-mobile-stepper" v-model="curValue" :disabled="disabled"/> <van-stepper class="app-mobile-stepper" v-model="curValue"/>
</template> </template>
<script lang="ts"> <script lang="ts">
...@@ -20,14 +20,6 @@ export default class AppStepper extends Vue { ...@@ -20,14 +20,6 @@ export default class AppStepper extends Vue {
*/ */
@Prop() public value?:number; @Prop() public value?:number;
/**
* 是否禁用
*
* @type {number}
* @memberof AppStepper
*/
@Prop() public disabled?:boolean;
get curValue(){ get curValue(){
return this.value; return this.value;
} }
......
<template> <template>
<ion-toggle <ion-toggle
:disabled="disabled"
:checked="curValue" :checked="curValue"
@ionChange="change" @ionChange="change"
> >
...@@ -37,17 +36,7 @@ export default class AppMobSwitch extends Vue { ...@@ -37,17 +36,7 @@ export default class AppMobSwitch extends Vue {
public change(value:any){ public change(value:any){
this.$emit('change',value.detail.checked == true ? '1':'0'); this.$emit('change',value.detail.checked == true ? '1':'0');
} }
}
/**
* 禁用
*
* @type {boolean}
* @memberof Appswitch
*/
@Prop() public disabled?: boolean;
}
</script> </script>
<style lang="less"> <style lang="less">
@import './app-mob-switch.less'; @import './app-mob-switch.less';
......
<template> <template>
<ion-textarea <ion-textarea
:disabled="disabled"
:placeholder="placeholder" :placeholder="placeholder"
:auto-grow = "true" :auto-grow = "true"
:value = "value" :value = "value"
...@@ -33,14 +32,6 @@ export default class AppTextarea extends Vue { ...@@ -33,14 +32,6 @@ export default class AppTextarea extends Vue {
this.$emit('change',event.detail.value); this.$emit('change',event.detail.value);
} }
/**
* 禁用
*
* @type {boolean}
* @memberof AppTextarea
*/
@Prop() public disabled?: boolean;
/** /**
* 占位提示文字 * 占位提示文字
* *
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<van-checkbox-group v-model="curValue"> <van-checkbox-group v-model="curValue">
<van-checkbox <van-checkbox
shape="square" shape="square"
:disabled="disabled"
:name="item.value" :name="item.value"
v-for="item in options" v-for="item in options"
:key="item.id" :key="item.id"
...@@ -84,14 +83,6 @@ export default class AppMultipleSelect extends Vue { ...@@ -84,14 +83,6 @@ export default class AppMultipleSelect extends Vue {
*/ */
@Prop({ default: "," }) public valueSeparator?: string; @Prop({ default: "," }) public valueSeparator?: string;
/**
* 禁用
*
* @type {boolean}
* @memberof AppInput
*/
@Prop() public disabled?: boolean;
/** /**
* 数据显示分隔符 * 数据显示分隔符
* *
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
v-bind:key="index" v-bind:key="index"
:name="item.value" :name="item.value"
style="padding-right: 8px;" style="padding-right: 8px;"
:disabled="disabled"
>{{item.text}}</van-radio> >{{item.text}}</van-radio>
</van-radio-group> </van-radio-group>
</template> </template>
...@@ -94,15 +93,6 @@ export default class AppRadio extends Vue { ...@@ -94,15 +93,6 @@ export default class AppRadio extends Vue {
this.$emit("change", val); this.$emit("change", val);
} }
/**
* 禁用
*
* @type {boolean}
* @memberof AppRadio
*/
@Prop() public disabled?: boolean;
public created() { public created() {
if (this.tag && this.type) { if (this.tag && this.type) {
if (Object.is(this.type, "dynamic")) { if (Object.is(this.type, "dynamic")) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册