From eb2e63f7fdfb97bfdfebc5980e470ce771574c63 Mon Sep 17 00:00:00 2001 From: dongwei Date: Tue, 8 Mar 2022 18:17:50 +0800 Subject: [PATCH] add test cases Signed-off-by: dongwei --- .../default/pages/pickerView/prop/index.css | 1 + .../default/pages/pickerView/prop/index.hml | 132 ++++++++++++------ .../js/default/pages/pickerView/prop/index.js | 16 +++ .../default/pages/pickerView/router/index.css | 2 +- .../default/pages/pickerView/router/index.hml | 4 +- .../default/pages/pickerView/router/index.js | 7 + 6 files changed, 120 insertions(+), 42 deletions(-) diff --git a/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.css b/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.css index 6faa9ab9d..62149111a 100644 --- a/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.css +++ b/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.css @@ -352,6 +352,7 @@ picker-view { selected-font-size: 12px; height: 60px; disappear-font-size: 12px; + background-color: yellow; } #pickerViewText { background-color: deeppink; diff --git a/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.hml b/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.hml index f040be33f..c24d63b9a 100644 --- a/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.hml @@ -140,6 +140,15 @@ + + + + + + 渲染属性 -- show @@ -164,44 +173,89 @@ picker-view特有属性 -- type - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + picker-view特有属性 -- picker-view + + + + + + picker-view特有属性 -- tid + + + diff --git a/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js b/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js index 8a466d9b2..72b53e8a7 100644 --- a/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js +++ b/ace/ace_standard/src/main/js/default/pages/pickerView/prop/index.js @@ -48,10 +48,19 @@ export default { showPropTrue : null, showPropFalse : null, showPropNone : null, + multitext:[["a", "b", "c"], ["e", "f", "g"], ["h", "i"], ["k", "l", "m"]], + rangetext:['15', "20", "25"], +// multitextselect:[1,2,0], +// pickerViewText: null, +// pickerViewDate: null, +// pickerViewTime: null, +// pickerViewDatetime: null, +// pickerViewMultiText: null }, onShow(){ this.getCommonPropValues(); +// this.getSpecificPropValues(); globalThis.value = { idProp : this.idProp, classProp : this.classProp, @@ -121,4 +130,11 @@ export default { this.showPropFalse = this.$element("showPropFalse").getInspector() this.showPropNone = this.$element("showPropNone").getInspector() }, + getSpecificPropValues () { +// this.pickerViewViewText = this.$element("pickerViewViewText").getInspector() +// this.pickerViewViewDate = this.$element("pickerViewViewDate").getInspector() +// this.pickerViewViewTime = this.$element("pickerViewViewTime").getInspector() +// this.pickerViewViewDatetime = this.$element("pickerViewViewDatetime").getInspector() +// this.pickerViewViewMultiText = this.$element("pickerViewViewMultiText").getInspector() + } } diff --git a/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.css b/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.css index bd61813df..eb7109bdb 100644 --- a/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.css +++ b/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.css @@ -243,7 +243,7 @@ picker { .event4{ width: 100%; - height: 20px; + height: 40px; background-color: blanchedalmond; } diff --git a/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.hml b/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.hml index c6fef1ebe..14d6e0190 100644 --- a/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.hml +++ b/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.hml @@ -152,8 +152,8 @@ picker-view特有事件1 - +
diff --git a/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.js b/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.js index 34525fbc3..a263d0c3b 100644 --- a/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.js +++ b/ace/ace_standard/src/main/js/default/pages/pickerView/router/index.js @@ -88,6 +88,7 @@ export default { data: { defaultTime: "", time: "", + multitext:[["a", "b", "c"], ["e", "f", "g"], ["h", "i"], ["k", "l", "m"]], }, onMenuSelected(e) { prompt.showToast({ @@ -545,4 +546,10 @@ export default { concat(hours, minutes) { return `${this.fill(hours)}:${this.fill(minutes)}`; }, + multiTextChange() { + prompt.showToast({ message:"multiTextChange" }); + }, + columnChange () { + prompt.showToast({ message:"columnChange" }); + }, } -- GitLab