diff --git a/src/attributes.vue b/src/attributes.vue index e6c59de..aef2a74 100644 --- a/src/attributes.vue +++ b/src/attributes.vue @@ -15,6 +15,9 @@ + + +
diff --git a/src/widgets/date/input.vue b/src/widgets/date/input.vue index fbd278e..9061233 100644 --- a/src/widgets/date/input.vue +++ b/src/widgets/date/input.vue @@ -4,6 +4,7 @@ v-model="item.value" value-format="yyyy-MM-dd HH:mm:ss" type="date" + :readonly="'readonly' in item.attributes ? item.attributes.readonly : false" :placeholder="item.attributes.placeholder" > diff --git a/src/widgets/datetime/input.vue b/src/widgets/datetime/input.vue index 70e111a..2a277b7 100644 --- a/src/widgets/datetime/input.vue +++ b/src/widgets/datetime/input.vue @@ -4,6 +4,7 @@ v-model="item.value" type="datetime" :placeholder="item.attributes.placeholder" + :readonly="'readonly' in item.attributes ? item.attributes.readonly : false" > diff --git a/src/widgets/multi-select/input.vue b/src/widgets/multi-select/input.vue index 9195d6d..c8d7a87 100644 --- a/src/widgets/multi-select/input.vue +++ b/src/widgets/multi-select/input.vue @@ -4,6 +4,7 @@ v-model="item.value" multiple :placeholder="item.attributes.placeholder" + :readonly="'readonly' in item.attributes ? item.attributes.readonly : false" > diff --git a/src/widgets/select/input.vue b/src/widgets/select/input.vue index 4aa69bc..6eb3306 100644 --- a/src/widgets/select/input.vue +++ b/src/widgets/select/input.vue @@ -4,6 +4,7 @@ v-model="item.value" :placeholder="item.attributes.placeholder" > + :readonly="'readonly' in item.attributes ? item.attributes.readonly : false" - + diff --git a/src/widgets/textarea/input.vue b/src/widgets/textarea/input.vue index 32d0fd9..78c47bc 100644 --- a/src/widgets/textarea/input.vue +++ b/src/widgets/textarea/input.vue @@ -4,6 +4,7 @@ type="textarea" :rows="item.attributes.rows||3" :placeholder="item.attributes.placeholder" + :readonly="'readonly' in item.attributes ? item.attributes.readonly : false" >