@tripup-company/element-ui-extended 0.0.83 → 0.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripup-company/element-ui-extended",
3
- "version": "0.0.83",
3
+ "version": "0.0.84",
4
4
  "main": "./dist/element-ui-extended.umd.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve && tsc --emitDeclarationOnly",
@@ -43,6 +43,7 @@
43
43
  class="w-100"
44
44
  />
45
45
  <el-input
46
+ :readonly="readonly"
46
47
  v-else
47
48
  v-model="dataModel"
48
49
  :type="type"
@@ -81,6 +82,10 @@ export default {
81
82
  type: String,
82
83
  default: "",
83
84
  },
85
+ readonly: {
86
+ type: Boolean,
87
+ default: false,
88
+ },
84
89
  selectList: {
85
90
  type: Array,
86
91
  default: () => {
@@ -13,6 +13,7 @@
13
13
  <el-form-item :prop="propPrefix + field.prop" :label="field.label" :error="errors[field.prop] ? errors[field.prop][0] : ''">
14
14
  <new-field
15
15
  v-model="dataModel[field.prop]"
16
+ :readonly="field.readonly"
16
17
  :type="field.selectList ? 'select' : (field.type? field.type :'input')"
17
18
  :select-list="field.selectList ? field.selectList : []"
18
19
  :select-multiple="field.selectMultiple"