diff --git a/pages/component/input/input.test.js b/pages/component/input/input.test.js
index be9d4e6c8fe5b23f737596e828b7bdb50939abb2..181d8b378b89437bc5893b91d4f95f5c0352c349 100644
--- a/pages/component/input/input.test.js
+++ b/pages/component/input/input.test.js
@@ -147,19 +147,19 @@ describe('component-native-input', () => {
expect(await (await page.$('#uni-input-cursor-color')).attribute("cursor-color")).toBe("red")
})
- it("maxlength default", async () => {
- const input = await page.$('#uni-input-disable');
+ it("maxlength", async () => {
+ const input = await page.$('#uni-input-maxlength');
let str = "";
for(let i = 0;i < 200;i++){
str += `${i}`
}
await page.setData({
- disableValue: str
+ inputMaxLengthValue: str
})
let length = (await input.attribute("value")).length
- expect(length).toBe(140)
+ expect(length).toBe(10)
await page.setData({
- disableValue: ""
+ inputMaxLengthValue: ""
})
})
diff --git a/pages/component/input/input.uvue b/pages/component/input/input.uvue
index 52e85b2d1204875b8d4ba52ace82b0667de218a6..0d34c5f49b32cec3eb8e594827480d555dbbcd77 100644
--- a/pages/component/input/input.uvue
+++ b/pages/component/input/input.uvue
@@ -59,7 +59,7 @@
设置禁用输入框
-
+
@@ -266,7 +266,6 @@
inputPasswordValue: "",
inputFocusKeyBoardChangeValue: true,
holdKeyboard: false,
- disableValue: ""
}
},
methods: {