n20-common-lib 2.21.7 → 2.21.9

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": "n20-common-lib",
3
- "version": "2.21.7",
3
+ "version": "2.21.9",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -365,7 +365,9 @@ export default {
365
365
  ruleErrorHide: item.ruleErrorHide,
366
366
  rules: item.rules,
367
367
  readonly: item.type === 'search',
368
- placeholder: item.props && item.props.placeholder ? item.props.placeholder : $lc('请输入')
368
+ placeholder: item.props && item.props.placeholder ? item.props.placeholder : $lc('请输入'),
369
+ maxlength: item.props && item.props.maxlength,
370
+ minlength: item.props && item.props.minlength
369
371
  },
370
372
 
371
373
  directives: [
@@ -779,7 +781,9 @@ export default {
779
781
  'rule-form': 'ruleValidate',
780
782
  rules: item.rules,
781
783
  ruleErrorHide: item.ruleErrorHide,
782
- placeholder: item.props && item.props.placeholder ? item.props.placeholder : $lc('请输入')
784
+ placeholder: item.props && item.props.placeholder ? item.props.placeholder : $lc('请输入'),
785
+ maxlength: item.props && item.props.maxlength,
786
+ minlength: item.props && item.props.minlength
783
787
  },
784
788
  on: {
785
789
  blur: this.handleBlur,
@@ -13,7 +13,7 @@
13
13
  <div v-for="(item, i) in otherAttData" :key="i" class="flex-box flex-v" style="width: 100%; padding: 0 20px">
14
14
  <el-form-item
15
15
  class="m-r-ss m-b-s"
16
- label-width="210px"
16
+ :label-width="labelWidth"
17
17
  :class="item.cfgHasRemark === '1' ? 'flex-auto' : 'flex-1'"
18
18
  :label="item.cfgName"
19
19
  >
@@ -110,6 +110,10 @@
110
110
  import axios from '../../utils/axios'
111
111
  export default {
112
112
  props: {
113
+ labelWidth: {
114
+ type: String,
115
+ default: '12em'
116
+ },
113
117
  taskId: {
114
118
  type: [String, Number],
115
119
  default: ''
@@ -43,6 +43,7 @@
43
43
  :other-att-data-a="otherAttDataA"
44
44
  :proc-inst-id="procInstId || this.$route.query.processInstanceId"
45
45
  :required="true"
46
+ :label-width="labelWidth"
46
47
  />
47
48
  </div>
48
49
  </el-form>