@lx-frontend/wrap-element-ui 1.0.15-beta.8 → 1.0.16-beta.1

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": "@lx-frontend/wrap-element-ui",
3
- "version": "1.0.15-beta.8",
3
+ "version": "1.0.16-beta.1",
4
4
  "description": "wrap-element-ui",
5
5
  "author": "",
6
6
  "main": "src/components/index.ts",
@@ -8,7 +8,7 @@
8
8
  v-for="({
9
9
  isEmpty = true, key, type, prop, label, placeholder, candidate, filterable=false, withoutAll=false, collapseTags=false,
10
10
  clearable=false, multiple=false, multipleLimit=0, changeCb, inputLimitCallback, slotName, dateType='date',
11
- doubleIsInline = true,
11
+ doubleIsInline = true, maxlength = 255,
12
12
  }) in config"
13
13
  :key="label"
14
14
  :label="showLabel ? label : ''"
@@ -18,6 +18,7 @@
18
18
  v-if="type === 'input'"
19
19
  :placeholder="placeholder ? placeholder : showLabel ? '请输入' : label"
20
20
  :value="formData[prop]"
21
+ :maxlength="maxlength"
21
22
  @input="val => handleInput(val, prop, inputLimitCallback)"
22
23
  />
23
24
  <div
@@ -16,6 +16,7 @@ type SlotOption = Omit<BaseOption, 'prop'> & {
16
16
  type InputOption = BaseOption & {
17
17
  type: 'input'
18
18
  inputLimitCallback?: (value: string) => boolean
19
+ maxlength?: number
19
20
  }
20
21
 
21
22
  type SelectOption = BaseOption & {