WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2022-04-22 a580cafe59a8f067cc6f011193952367beadcb2f
forms/input/CInput.vue
@@ -6,7 +6,7 @@
<template>
    <view
        class="c-input"
        :class="unit?'c-input-unit':''"
        :class="[unit?'c-input-unit':'', readOnly ? 'read-only':'']"
    >
        <AtInput
            :name="itemRes.name"
@@ -46,10 +46,18 @@
        placeholder: String,
        // 输入框单位
        unit: String,
        // 只读模式
        readOnly: {
            type: Boolean,
            default: false,
        },
    },
    computed: {
        value() {
            return (itemRes.formData[itemRes.name] || '').replace(/[\n\r]/g, '');
            return (this.itemRes.formData[this.itemRes.name] || '').replace(
                /[\n\r]/g,
                ''
            );
        },
    },
    methods: {