diff --git a/examples/showcase/src/main/config.json b/examples/showcase/src/main/config.json index 2bf9789ddeae0bc266361a2ab0b7dcced49eea84..350086031ca3d70deb943b181358bc123364824b 100755 --- a/examples/showcase/src/main/config.json +++ b/examples/showcase/src/main/config.json @@ -13,10 +13,7 @@ }, "deviceConfig": {}, "module": { - "deviceType": [ - "liteWearable", - "smartVision" - ], + "deviceType": ["liteWearable", "smartVision"], "distro": { "deliveryWithInstall": true, "moduleName": "entry", diff --git a/examples/showcase/src/main/js/default/common/js/chart.js b/examples/showcase/src/main/js/default/common/js/chart.js index c0be255b3e09379b959011b96ccb3bbed2f438c8..c72a62672348d1000a5507df3f337d70009b0fb8 100755 --- a/examples/showcase/src/main/js/default/common/js/chart.js +++ b/examples/showcase/src/main/js/default/common/js/chart.js @@ -83,4 +83,4 @@ export const changeDisplay = function() { } else { this.display = "flex"; } -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/common/js/general.js b/examples/showcase/src/main/js/default/common/js/general.js index f0fa790e96d1834b795e99174d3e940a7e56f380..22661f91c79cfd311796d0985fbd421d3647da7a 100755 --- a/examples/showcase/src/main/js/default/common/js/general.js +++ b/examples/showcase/src/main/js/default/common/js/general.js @@ -55,4 +55,4 @@ export const eventCommon = function() { this.text3 = "swipe方向:" + e.direction; } }; -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/common/js/image.js b/examples/showcase/src/main/js/default/common/js/image.js index e57b0397aab77378035493d00c025c43252bed74..2060d13fa9043308e58d4050fdcb67da28c2323c 100755 --- a/examples/showcase/src/main/js/default/common/js/image.js +++ b/examples/showcase/src/main/js/default/common/js/image.js @@ -13,10 +13,10 @@ * limitations under the License. */ // image.js -export const changeStatus = function () { +export const changeStatus = function() { if (this.status == true) { this.status = false; } else { this.status = true; } -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/common/js/input.js b/examples/showcase/src/main/js/default/common/js/input.js index 88fd6ca6ee2d2e009f55cb27d057d5440789d7c8..45a3ac94449c356ee2d621422dc22803debc49f9 100755 --- a/examples/showcase/src/main/js/default/common/js/input.js +++ b/examples/showcase/src/main/js/default/common/js/input.js @@ -25,4 +25,4 @@ export const changeIf = function() { } else { this.ifStatus = true; } -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/common/js/list.js b/examples/showcase/src/main/js/default/common/js/list.js index 73efdbf2e7e3fa52d5f3fe64b85fc98cbc2456d8..77f9229057f6a0489e8a46b231ce39400680f6e9 100755 --- a/examples/showcase/src/main/js/default/common/js/list.js +++ b/examples/showcase/src/main/js/default/common/js/list.js @@ -13,10 +13,10 @@ * limitations under the License. */ // list.js -export const changeStatus = function () { +export const changeStatus = function() { if (this.status == true) { this.status = false; } else { this.status = true; } -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/common/js/marquee.js b/examples/showcase/src/main/js/default/common/js/marquee.js index 873b5aa35329525d13b4927bcf246e97bb0afff0..eb02a9a2e041e15febfc5802d11ed352dc0b5a58 100755 --- a/examples/showcase/src/main/js/default/common/js/marquee.js +++ b/examples/showcase/src/main/js/default/common/js/marquee.js @@ -25,4 +25,4 @@ export const changeIfStatus = function() { } else { this.ifstatus = true; } -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/common/js/picker_view.js b/examples/showcase/src/main/js/default/common/js/picker_view.js index 82131a9bdc4afd164785de47d4a112a0d32f4774..5b211a48b4c07d2d08cadcd459e3aa92090b2c77 100755 --- a/examples/showcase/src/main/js/default/common/js/picker_view.js +++ b/examples/showcase/src/main/js/default/common/js/picker_view.js @@ -13,10 +13,10 @@ * limitations under the License. */ // picker_view.js -export const changeStatus = function () { +export const changeStatus = function() { if (this.status == true) { this.status = false; } else { this.status = true; } -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/common/js/progress.js b/examples/showcase/src/main/js/default/common/js/progress.js index 70d3b3ea282fd7548e5f1902e99c5125c08bd4f9..26994d74bc603fe7c9fef98c5b9ed9da1e7847e7 100755 --- a/examples/showcase/src/main/js/default/common/js/progress.js +++ b/examples/showcase/src/main/js/default/common/js/progress.js @@ -43,4 +43,4 @@ export const longpressEvent = function() { }; export const swipeEvent = function(e) { this.value = "swipe方向:" + e.direction; -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/common/js/stack.js b/examples/showcase/src/main/js/default/common/js/stack.js index be7ff8c4cf55e0646fa031dedb4540a619a24c54..179ef16fb4c03e4ba691a62c015a754a04978a5e 100755 --- a/examples/showcase/src/main/js/default/common/js/stack.js +++ b/examples/showcase/src/main/js/default/common/js/stack.js @@ -13,10 +13,10 @@ * limitations under the License. */ // stack.js -export const changeStatus = function () { +export const changeStatus = function() { if (this.status == true) { this.status = false; } else { this.status = true; } -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/common/js/swiper.js b/examples/showcase/src/main/js/default/common/js/swiper.js index f1a474bdfbfee712aca7115060257243f136f7f2..722acfd4e0a97e2dd38f8d53fd83aa8e59008164 100755 --- a/examples/showcase/src/main/js/default/common/js/swiper.js +++ b/examples/showcase/src/main/js/default/common/js/swiper.js @@ -21,4 +21,4 @@ export const changeStatus = function() { } else { this.status = true; } -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/common/js/text.js b/examples/showcase/src/main/js/default/common/js/text.js index b427f37dd5fc6817de5788c896d38c0294541845..c0733b1bf20f4528ed90eb4819834d0520774775 100755 --- a/examples/showcase/src/main/js/default/common/js/text.js +++ b/examples/showcase/src/main/js/default/common/js/text.js @@ -25,4 +25,4 @@ export const changeStatusIf = function() { } else { this.ifStatus = true; } -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.css b/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.css index 3917d6bbb657b8f119e90932df226b2a87b29bd4..1d21d4ab551a9790096dd030498cff9975bf4f16 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.css +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.css @@ -22,7 +22,7 @@ .divBlock { width: 200px; height: 80px; - left:120px; + left: 120px; background-color: #ff0000; } @@ -30,7 +30,7 @@ animation-duration: 3000ms; animation-timing-function: linear; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } @keyframes animationChange1 { @@ -44,18 +44,18 @@ @keyframes animationChange2 { from { - width:200px; + width: 200px; } to { - width:250px; + width: 250px; } } @keyframes animationChange3 { from { - height:80px; + height: 80px; } to { - height:130px; + height: 130px; } } diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.hml b/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.hml index 98b42a61bef5ea4dfb8864daf178e11c03b8f64f..2de171c6b3c2475878287a7b40f46b58daba3f5f 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.hml +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.hml @@ -13,26 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - -
- - background-color - -
-
- - width - -
-
- - height - -
-
\ No newline at end of file + + + + + +
+ background-color +
+
+ width +
+
+ height +
+
diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.js b/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.js index 57832e2f88cc1d3f8e9a84e72531eb8159bc9b82..40aef984293b01378780755a62801d5a283d34b0 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.js +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation1/animation1.js @@ -15,5 +15,5 @@ // animation1.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/animation/index1/index") -} \ No newline at end of file + ...backPage("pages/component/animation/index1/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.css b/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.css index 2de53929f98fe1f021e3635a7de8f87bb727da65..ed4fb5d1e195455725004a1964e3440f3501c350 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.css +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.css @@ -22,7 +22,7 @@ .divBlock { width: 200px; height: 80px; - left:120px; + left: 120px; background-color: #ff0000; } @@ -31,7 +31,7 @@ animation-timing-function: linear; animation-fill-mode: none; animation-delay: 3000ms; - animation-iteration-count:1; + animation-iteration-count: 1; } @keyframes animationChange1 { diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.hml b/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.hml index 3eded0ff71fb1fb681218cb8fc4d1663a3e6df63..2c0dc298abe5c3134dbad938f37caa995fa1055b 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.hml +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.hml @@ -13,16 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - -
- - delay:3000ms - -
-
\ No newline at end of file + + + + + +
+ delay:3000ms +
+
diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.js b/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.js index 4b9764fe5687390a193e2e0867bc6039604995f5..c6efdd9d5b171f9d406bec12ff9e325bcceeda4c 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.js +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation2/animation2.js @@ -15,5 +15,5 @@ // animation2.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/animation/index1/index") -} \ No newline at end of file + ...backPage("pages/component/animation/index1/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.css b/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.css index e3597bcab019d43099e1c7ae357c423d40205f8e..2acbc1ecaf9905dd2985d343fd6d26558294ffdd 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.css +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.css @@ -22,7 +22,7 @@ .divBlock { width: 200px; height: 80px; - left:120px; + left: 120px; background-color: #ff0000; } @@ -30,21 +30,21 @@ animation-duration: 3000ms; animation-timing-function: linear; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } .divAnimationStyle2 { animation-duration: 5000ms; animation-timing-function: linear; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } .divAnimationStyle3 { animation-duration: 10000ms; animation-timing-function: linear; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } @keyframes animationChange { diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.hml b/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.hml index d25cc0c1bb0d6e3ca417ab4e18b86b83eab91acc..0fd32c0590a47ad4d9357741d85b9cb3648f466f 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.hml +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.hml @@ -13,26 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - -
- - duration:3000ms - -
-
- - duration:5000ms - -
-
- - duration:10000ms; - -
-
\ No newline at end of file + + + + + +
+ duration:3000ms +
+
+ duration:5000ms +
+
+ duration:10000ms; +
+
diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.js b/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.js index f83a82388628a5f9c7a442af1d14dd0e01332b8b..0f30338698e276ee1a950c8d5ce00d8abbf10628 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.js +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation3/animation3.js @@ -15,5 +15,5 @@ // animation3.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/animation/index1/index") -} \ No newline at end of file + ...backPage("pages/component/animation/index1/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.css b/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.css index f10a3e73c5283e8d193e1fc9793cd6616f46dc06..37459ba06cb9df19620eb75d486a56089ddf0132 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.css +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.css @@ -22,7 +22,7 @@ .divBlock { width: 200px; height: 80px; - left:120px; + left: 120px; background-color: #ff0000; } @@ -30,14 +30,14 @@ animation-duration: 2000ms; animation-timing-function: linear; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } .divAnimationStyle2 { animation-duration: 2000ms; animation-timing-function: linear; animation-fill-mode: none; - animation-iteration-count:2; + animation-iteration-count: 2; } .divAnimationStyle3 { diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.hml b/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.hml index d68cdca06569ff155eef2a848c38fc1596332fe3..099c439050ebf914d9c74f8e31bd2829ddbd151c 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.hml +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.hml @@ -13,26 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - -
- - 1 - -
-
- - 2 - -
-
- - infinite - -
-
\ No newline at end of file + + + + + +
+ 1 +
+
+ 2 +
+
+ infinite +
+
diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.js b/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.js index b1bf8325f0f4e627926ecd2fa581377c4675480b..352f10f911e18cdd03717665354f77064b2bfd74 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.js +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation4/animation4.js @@ -15,5 +15,5 @@ // animation4.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/animation/index1/index") -} \ No newline at end of file + ...backPage("pages/component/animation/index1/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.css b/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.css index 29f50b5d01bded9310e7c54edf074ac6119f5600..b053e749ec395f51296db1a50be98188ce015482 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.css +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.css @@ -22,7 +22,7 @@ .divBlock { width: 200px; height: 70px; - left:80px; + left: 80px; background-color: #ff0000; } @@ -30,35 +30,35 @@ animation-duration: 3000ms; animation-timing-function: linear; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } .divAnimationStyle2 { animation-duration: 3000ms; animation-timing-function: ease-in; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } .divAnimationStyle3 { animation-duration: 3000ms; animation-timing-function: ease-out; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } .divAnimationStyle4 { animation-duration: 3000ms; animation-timing-function: ease-in-out; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } @keyframes animationChange { from { - width:200px; + width: 200px; } to { - width:280px; + width: 280px; } } diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.hml b/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.hml index 7c0ea73217c1dc59c7874cf5e4861cf734871fa4..e6c8f783293cdb36f0e370e8765b4b856f69b9ab 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.hml +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.hml @@ -13,31 +13,21 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - -
- - linear - -
-
- - ease-in - -
-
- - ease-out - -
-
- - ease-in-out - -
-
\ No newline at end of file + + + + + +
+ linear +
+
+ ease-in +
+
+ ease-out +
+
+ ease-in-out +
+
diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.js b/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.js index 8b96ccaa09bf90a0c0332e8ca9ba91ef1b52fa94..66f7c948c1ad8b895f3b858178e44839d275da99 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.js +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation5/animation5.js @@ -15,5 +15,5 @@ // animation5.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/animation/index2/index") -} \ No newline at end of file + ...backPage("pages/component/animation/index2/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.css b/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.css index 2532a80c60a4aa74246014ebb5188e0e09b9fd1c..49fec8e15fc5604cd4974b5e5e0941bf4db74717 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.css +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.css @@ -22,7 +22,7 @@ .divBlock { width: 200px; height: 70px; - left:120px; + left: 120px; background-color: #ff0000; } @@ -30,14 +30,14 @@ animation-duration: 3000ms; animation-timing-function: linear; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } .divAnimationStyle2 { animation-duration: 3000ms; animation-timing-function: linear; animation-fill-mode: forwards; - animation-iteration-count:1; + animation-iteration-count: 1; } @keyframes animationChange { diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.hml b/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.hml index 812b3033449af95fe50210d25cef2c74d7a6cb8f..7e8da551edfb3fba33a3ceb289f9c1ca9a165a00 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.hml +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.hml @@ -13,21 +13,15 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - -
- - none - -
-
- - forwards - -
-
\ No newline at end of file + + + + + +
+ none +
+
+ forwards +
+
diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.js b/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.js index 2f2d02a4d783975d068c9329efbe87356fe51148..581de134d37f36b64c0b7b2a05e9bc3c3a280cfc 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.js +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation6/animation6.js @@ -15,5 +15,5 @@ // animation6.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/animation/index2/index") -} \ No newline at end of file + ...backPage("pages/component/animation/index2/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.css b/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.css index 377718a2827721df7fa956a52db6fd515760cc48..aee787d9996d9b13ff556f840573c0347fb59901 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.css +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.css @@ -22,7 +22,7 @@ .divBlock { width: 200px; height: 60px; - left:120px; + left: 120px; background-color: #ff0000; } @@ -30,7 +30,7 @@ animation-duration: 3000ms; animation-timing-function: linear; animation-fill-mode: none; - animation-iteration-count:1; + animation-iteration-count: 1; } @keyframes animationChange1 { diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.hml b/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.hml index 8500499a314e70384ea7bb7c1f2bfc82a55ba2be..c1546ba4e3a1bc515230b335eee7e987fc56977f 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.hml +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.hml @@ -13,23 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - -
- - translateX - -
-
- - translateY - -
- - -
\ No newline at end of file + + + + + +
+ translateX +
+
+ translateY +
+ + +
diff --git a/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.js b/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.js index 3cb7096af7927f6cf72e6c5fd3ace44afbc7c0fe..dd032404283cd6898b79216c6b449e7ca7934717 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.js +++ b/examples/showcase/src/main/js/default/pages/component/animation/animation7/animation7.js @@ -15,5 +15,5 @@ // animation7.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/animation/index2/index") -} \ No newline at end of file + ...backPage("pages/component/animation/index2/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/animation/index/index.hml b/examples/showcase/src/main/js/default/pages/component/animation/index/index.hml index 5197d7bcc0e18ded3d4920099c1554b6168345ff..227692036ab6902d93b05bbe556d60cebc71a68b 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/animation/index/index.hml @@ -13,34 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - animation - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + animation + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/animation/index/index.js b/examples/showcase/src/main/js/default/pages/component/animation/index/index.js index 160378639c8f2ed19269bf8fde263404b367bc2f..bf283baae577fd0127148fb7e1b6b1f0a0efb9d6 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/animation/index/index.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/otherIndex/index"), - changePage1: routePage("pages/component/animation/index1/index").changePage, - changePage2: routePage("pages/component/animation/index2/index").changePage -} \ No newline at end of file + ...backPage("pages/component/index/otherIndex/index"), + changePage1: routePage("pages/component/animation/index1/index").changePage, + changePage2: routePage("pages/component/animation/index2/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/animation/index1/index.hml b/examples/showcase/src/main/js/default/pages/component/animation/index1/index.hml index 7a6d1053357a0b619f6c6d473ced1c6ec4fcd81b..e73654b76be1fee47ab1b1489338edbf54664d03 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/index1/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/animation/index1/index.hml @@ -13,68 +13,70 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 动画样式 - - - - - - - - animation-name - - - - - - - - - - - animation-delay - - - - - - - - - - - animation-duration - - - - - - - - - - - animation-iteration-count - - - - - - - - - \ No newline at end of file + + + + + + + + + + 动画样式 + + + + + animation-name + + + + + + + animation-delay + + + + + + + animation-duration + + + + + + + animation-iteration-count + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/animation/index1/index.js b/examples/showcase/src/main/js/default/pages/component/animation/index1/index.js index 3ff40cb67b631ff918b200e9a809b294a9ff499d..e6e9d6a32f9688943ef72e62fe7c24e5809f2e77 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/index1/index.js +++ b/examples/showcase/src/main/js/default/pages/component/animation/index1/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/animation/index/index"), - changePage1: routePage("pages/component/animation/animation1/animation1").changePage, - changePage2: routePage("pages/component/animation/animation2/animation2").changePage, - changePage3: routePage("pages/component/animation/animation3/animation3").changePage, - changePage4: routePage("pages/component/animation/animation4/animation4").changePage -} \ No newline at end of file + ...backPage("pages/component/animation/index/index"), + changePage1: routePage("pages/component/animation/animation1/animation1").changePage, + changePage2: routePage("pages/component/animation/animation2/animation2").changePage, + changePage3: routePage("pages/component/animation/animation3/animation3").changePage, + changePage4: routePage("pages/component/animation/animation4/animation4").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/animation/index2/index.hml b/examples/showcase/src/main/js/default/pages/component/animation/index2/index.hml index f6b0f2a4ed6ce39a21ee04beeb21a4fe47a0af51..8135c79e19e48512eb47a0ff93ad4db48796bb10 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/index2/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/animation/index2/index.hml @@ -13,57 +13,58 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 动画样式 - - - - - - - - animation-timing-function - - - - - - - - - - - animation-fill-mode - - - - - - - - - - - transform - - - - - - - - - \ No newline at end of file + + + + + + + + + + 动画样式 + + + + + animation-timing-function + + + + + + + animation-fill-mode + + + + + + + transform + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/animation/index2/index.js b/examples/showcase/src/main/js/default/pages/component/animation/index2/index.js index f52b36051491f3700181d3f928a2eb7b0cd86dfe..0fc1106b80e59cac893fb2b14f4a1437c821056c 100755 --- a/examples/showcase/src/main/js/default/pages/component/animation/index2/index.js +++ b/examples/showcase/src/main/js/default/pages/component/animation/index2/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/animation/index/index"), - changePage1: routePage("pages/component/animation/animation5/animation5").changePage, - changePage2: routePage("pages/component/animation/animation6/animation6").changePage, - changePage3: routePage("pages/component/animation/animation7/animation7").changePage -} \ No newline at end of file + ...backPage("pages/component/animation/index/index"), + changePage1: routePage("pages/component/animation/animation5/animation5").changePage, + changePage2: routePage("pages/component/animation/animation6/animation6").changePage, + changePage3: routePage("pages/component/animation/animation7/animation7").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas1/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/canvas1/index.hml index 66b530707433a1f556a097fbe1160000e32d23a7..a2676d9d222e027707010215dac02ecaed743260 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas1/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas1/index.hml @@ -13,22 +13,22 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - -
- - - - -
- - {{text1}} - -
\ No newline at end of file +
+ + + + + + +
+ + +
+ + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas1/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/canvas1/index.js index 09d297462c3e388af79f04c831c07eb6a6787c1d..30decb8bb23b823be791146d97e74e713c101152 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas1/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas1/index.js @@ -13,23 +13,23 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "点击按钮改变状态", - status: true - }, - ...backPage("pages/component/canvas/indexAttr/index"), - fillRectFunc: function () { - var canvasRef = this.$refs.canvas1; - var ctx = canvasRef.getContext("2d"); - ctx.fillRect(20,20,100,150); - }, - changeStatus: function () { - if (this.status == true) { - this.status = false; - } else { - this.status = true; - } + data: { + text1: "点击按钮改变状态", + status: true + }, + ...backPage("pages/component/canvas/indexAttr/index"), + fillRectFunc: function() { + var canvasRef = this.$refs.canvas1; + var ctx = canvasRef.getContext("2d"); + ctx.fillRect(20, 20, 100, 150); + }, + changeStatus: function() { + if (this.status == true) { + this.status = false; + } else { + this.status = true; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas2/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/canvas2/index.hml index 6520530c07421213ece07f113408c1b18919d93c..6302adb6d2763854f7716ddc16eb04fba58a0903 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas2/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas2/index.hml @@ -13,22 +13,22 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - -
- - - - -
- - {{text1}} - -
\ No newline at end of file +
+ + + + + + +
+ + +
+ + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas2/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/canvas2/index.js index 53109f42920cb783148c6ee5661cc02b51d2b0b7..80348157fd17d7f9bf4c7545234a85e63c80bb3c 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas2/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas2/index.js @@ -13,23 +13,23 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "点击按钮改变状态", - ifStatus: true - }, - ...backPage("pages/component/canvas/indexAttr/index"), - fillRectFunc: function () { - var canvasRef = this.$refs.canvas1; - var ctx = canvasRef.getContext("2d"); - ctx.fillRect(20,20,100,150); - }, - changeIf: function () { - if (this.ifStatus == true) { - this.ifStatus = false; - } else { - this.ifStatus = true; - } + data: { + text1: "点击按钮改变状态", + ifStatus: true + }, + ...backPage("pages/component/canvas/indexAttr/index"), + fillRectFunc: function() { + var canvasRef = this.$refs.canvas1; + var ctx = canvasRef.getContext("2d"); + ctx.fillRect(20, 20, 100, 150); + }, + changeIf: function() { + if (this.ifStatus == true) { + this.ifStatus = false; + } else { + this.ifStatus = true; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas3/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/canvas3/index.hml index 1e1ee6b279bec6400497db15393642df4b5396c1..4fdb0c7bc761173303317bbcb345535f07544e32 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas3/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas3/index.hml @@ -13,20 +13,21 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - -
- - -
- - {{text1}} - -
\ No newline at end of file +
+ + + + + + +
+ +
+ + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas3/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/canvas3/index.js index 3600bc10a9aa0e473b0ac43db441c4ddb8aff547..5ba27e3fb23ed37e5c43356a3bbd49ff71e9b372 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas3/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas3/index.js @@ -13,19 +13,19 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - listData:["a", "b"], - text1: "for类型canvas" - }, - ...backPage("pages/component/canvas/indexAttr/index"), - fillRectFunc: function () { - var canvasRefa = this.$refs.canvasa; - var ctxa = canvasRefa.getContext("2d"); - ctxa.fillRect(20,20,40,150); - var canvasRefb = this.$refs.canvasb; - var ctxb = canvasRefb.getContext("2d"); - ctxb.fillRect(20,20,30,100); - } -} \ No newline at end of file + data: { + listData: ["a", "b"], + text1: "for类型canvas" + }, + ...backPage("pages/component/canvas/indexAttr/index"), + fillRectFunc: function() { + var canvasRefa = this.$refs.canvasa; + var ctxa = canvasRefa.getContext("2d"); + ctxa.fillRect(20, 20, 40, 150); + var canvasRefb = this.$refs.canvasb; + var ctxb = canvasRefb.getContext("2d"); + ctxb.fillRect(20, 20, 30, 100); + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas4/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/canvas4/index.hml index e303b5c9cfefa5be34e1306b98eb8b328cba4410..0ea7e02d3b4543765025945545a997ed9acff6c0 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas4/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas4/index.hml @@ -13,22 +13,19 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - - \ No newline at end of file + + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + + diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas4/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/canvas4/index.js index cfc22ede6aee789bf61e44e0365196c116b81398..bdc917d2f477b40e674832a6f78706a6adda218d 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas4/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas4/index.js @@ -13,17 +13,17 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "上面绿块为canvas", - text2: "背景=绿,", - text3: "left=85,top=120" - }, - ...backPage("pages/component/canvas/indexCommonStyle/index"), - fillRect: function () { - var canvasRef = this.$refs.canvasObj; - var ctx = canvasRef.getContext("2d"); - ctx.fillRect(20,20,100,150); - } -} \ No newline at end of file + data: { + text1: "上面绿块为canvas", + text2: "背景=绿,", + text3: "left=85,top=120" + }, + ...backPage("pages/component/canvas/indexCommonStyle/index"), + fillRect: function() { + var canvasRef = this.$refs.canvasObj; + var ctx = canvasRef.getContext("2d"); + ctx.fillRect(20, 20, 100, 150); + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas5/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/canvas5/index.hml index a00c423f62975788975abe94f825d322e318b755..3d94e6c560ad227c2e3836bd88ecd0851e6c8a49 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas5/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas5/index.hml @@ -13,22 +13,19 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas5/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/canvas5/index.js index 483f3a96381487ca0b955f2416645bddf0733f38..deeda9eb0e994399c7a4c1c6484703a7794ffe7a 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas5/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas5/index.js @@ -13,12 +13,12 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "上面黄块为canvas", - text2: "margin=20", - text3: "width=280,height=80" - }, - ...backPage("pages/component/canvas/indexCommonStyle/index") -} \ No newline at end of file + data: { + text1: "上面黄块为canvas", + text2: "margin=20", + text3: "width=280,height=80" + }, + ...backPage("pages/component/canvas/indexCommonStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas6/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/canvas6/index.hml index 80b3016b13e3b3137f478d0284a6064faae3dbae..eadc0d4031ea36ab3594169ac66066c5eb01c75b 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas6/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas6/index.hml @@ -13,18 +13,29 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas6/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/canvas6/index.js index aa1466d6de0ac37772f995b498642ba410518799..d8a80c3dd8662a763eed7f041e1c3f5566030981 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas6/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas6/index.js @@ -13,17 +13,17 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "边框和内边距" - }, - ...backPage("pages/component/canvas/indexCommonStyle/index"), - fillStyleFunc: function () { - var canvasRef = this.$refs.canvas1; - var ctx = canvasRef.getContext("2d"); - ctx.fillStyle = "#00ff00"; - ctx.strokeStyle = "#ff0000"; // 因为是填充图形,所以边框设置无效 - ctx.fillRect(0,0,100,150); - } -} \ No newline at end of file + data: { + text1: "边框和内边距" + }, + ...backPage("pages/component/canvas/indexCommonStyle/index"), + fillStyleFunc: function() { + var canvasRef = this.$refs.canvas1; + var ctx = canvasRef.getContext("2d"); + ctx.fillStyle = "#00ff00"; + ctx.strokeStyle = "#ff0000"; // 因为是填充图形,所以边框设置无效 + ctx.fillRect(0, 0, 100, 150); + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas7/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/canvas7/index.hml index aea7691b3ad2a0c0655b80821baa3e4ec1621e62..f5f7302fbc05c18c9006cff9dac8faf93a4c8d34 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas7/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas7/index.hml @@ -13,22 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas7/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/canvas7/index.js index 4c4f4645f954daff9d10eae4f679377050e6fcca..a708e7b531fe857a1499fb4c13445e2ef6c33968 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas7/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas7/index.js @@ -13,12 +13,12 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "上面绿块为canvas", - text2: "左外=40,上外=15,", - text3: "右外=10,下外=20" - }, - ...backPage("pages/component/canvas/indexCommonStyle/index") -} \ No newline at end of file + data: { + text1: "上面绿块为canvas", + text2: "左外=40,上外=15,", + text3: "右外=10,下外=20" + }, + ...backPage("pages/component/canvas/indexCommonStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas8/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/canvas8/index.hml index cba1c29e25ead0f83d38a9901cc16efea35e108f..feb00db02a84b9d9294691ed73049c4f74c3aa73 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas8/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas8/index.hml @@ -13,24 +13,25 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas8/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/canvas8/index.js index b2b1b965870a764e4b0e931160067ad090cf1d0c..878e11a17bfb3042a7faf52f2d11741e08fc8779 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas8/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas8/index.js @@ -13,21 +13,20 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "上面绿块为canvas", - text2: "点击按钮切换display", - text3: "支持flex/none", - displayValue: "flex" - }, - ...backPage("pages/component/canvas/indexCommonStyle/index"), - changeDisplay: function () { - if (this.displayValue === "flex") { - this.displayValue = "none"; - } else { - this.displayValue = "flex"; - } + data: { + text1: "上面绿块为canvas", + text2: "点击按钮切换display", + text3: "支持flex/none", + displayValue: "flex" + }, + ...backPage("pages/component/canvas/indexCommonStyle/index"), + changeDisplay: function() { + if (this.displayValue === "flex") { + this.displayValue = "none"; + } else { + this.displayValue = "flex"; } - -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas9/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/canvas9/index.hml index 4fa2db61cc0c5bf1f675b86cff3c2efb35788abb..fb6c5316bc17093cfbc9e90e1081da5e125ca5ac 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas9/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas9/index.hml @@ -13,22 +13,22 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - + + + + - + - - {{text1}} + + {{ text1 }} - - 矩形为canvas组件 - - - 点击/长按/滑动canvas内部任意位置触发事件 - - \ No newline at end of file + 矩形为canvas组件 + 点击/长按/滑动canvas内部任意位置触发事件 + diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/canvas9/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/canvas9/index.js index fb1af4e93dc454b16f5e64994a57cc8c349e92bd..5337930761837f2285c13ff66d7a07937c02a3cf 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/canvas9/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/canvas9/index.js @@ -13,29 +13,29 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "" - }, - ...backPage("pages/component/canvas/indexEvent/index"), - clickFunc: function () { - this.text1 = "点击事件被触发"; - var canvasRef = this.$refs.canvas1; - var ctx = canvasRef.getContext("2d"); - ctx.fillStyle = "#ffff00"; - ctx.strokeStyle = "#ff0000"; // 因为是填充图形,所以边框设置无效 - ctx.fillRect(10,10,50,100); - }, - longPressFunc: function () { - this.text1 = "长按事件被触发"; - var canvasRef = this.$refs.canvas1; - var ctx = canvasRef.getContext("2d"); - ctx.fillStyle = "#ff0000"; - ctx.strokeStyle = "#ff0000"; // 因为是填充图形,所以边框设置无效 - ctx.fillRect(10,10,50,100); - }, - swipeFunc: function (e) { - this.text1 = "swipe方向:" + e.direction; - } -} \ No newline at end of file + data: { + text1: "" + }, + ...backPage("pages/component/canvas/indexEvent/index"), + clickFunc: function() { + this.text1 = "点击事件被触发"; + var canvasRef = this.$refs.canvas1; + var ctx = canvasRef.getContext("2d"); + ctx.fillStyle = "#ffff00"; + ctx.strokeStyle = "#ff0000"; // 因为是填充图形,所以边框设置无效 + ctx.fillRect(10, 10, 50, 100); + }, + longPressFunc: function() { + this.text1 = "长按事件被触发"; + var canvasRef = this.$refs.canvas1; + var ctx = canvasRef.getContext("2d"); + ctx.fillStyle = "#ff0000"; + ctx.strokeStyle = "#ff0000"; // 因为是填充图形,所以边框设置无效 + ctx.fillRect(10, 10, 50, 100); + }, + swipeFunc: function(e) { + this.text1 = "swipe方向:" + e.direction; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/index/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/index/index.hml index 29ed14fe85a55c40714edc0643a7063af621fee1..c7dc12213c9e1d6ff296fa66107d5b23f72b95e3 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/index/index.hml @@ -11,41 +11,34 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ---> - - - - - - - - - - - +--> + + + + + + + + + - - - - + + - - - + + - - - + + - - - + + - + - \ No newline at end of file + diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/index/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/index/index.js index 8f1675bb5f35eacf7247c26b6be71d59cc984117..e968147b5687ad629e7df38a36671fc20e3a74ee 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/index/index.js @@ -13,11 +13,11 @@ * limitations under the License. */ -import {goPage, routePage} from "../../../../common/js/general"; +import { goPage, routePage } from "../../../../common/js/general"; export default { - ...goPage("pages/component/index/baseIndex/index"), - changePage1: routePage("pages/component/canvas/indexAttr/index").changePage, - changePage2: routePage("pages/component/canvas/indexCommonStyle/index").changePage, - changePage3: routePage("pages/component/canvas/indexEvent/index").changePage, - changePage4: routePage("pages/component/canvas/indexAPI/index").changePage -} \ No newline at end of file + ...goPage("pages/component/index/baseIndex/index"), + changePage1: routePage("pages/component/canvas/indexAttr/index").changePage, + changePage2: routePage("pages/component/canvas/indexCommonStyle/index").changePage, + changePage3: routePage("pages/component/canvas/indexEvent/index").changePage, + changePage4: routePage("pages/component/canvas/indexAPI/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPI/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPI/index.hml index edeeadd245532fb23c4d48a3eca2a73a9743be28..a1e8587a87c79151d512576c1f2c6251196c3916 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPI/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPI/index.hml @@ -13,29 +13,24 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - + + + + + + + + - - - - + + - - - + + - + - \ No newline at end of file + diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPI/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPI/index.js index 955b018e0a73b03ea5c505d0435a8b7f8edadd87..ecec08f7c5872976e3084db3e179986eb3d60659 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPI/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPI/index.js @@ -13,9 +13,9 @@ * limitations under the License. */ -import {goPage, routePage} from "../../../../common/js/general"; +import { goPage, routePage } from "../../../../common/js/general"; export default { - ...goPage("pages/component/canvas/index/index"), - changePage1: routePage("pages/component/canvas/indexAPIAttr/index").changePage, - changePage2: routePage("pages/component/canvas/indexAPIDraw/index").changePage -} \ No newline at end of file + ...goPage("pages/component/canvas/index/index"), + changePage1: routePage("pages/component/canvas/indexAPIAttr/index").changePage, + changePage2: routePage("pages/component/canvas/indexAPIDraw/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIAttr/index.hml index 8f1deddb5570774cbb4e6845d6ba0231374a0ec0..77db2c598981e7a7a1d1099dd41432bb24bf0aba 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIAttr/index.hml @@ -13,68 +13,51 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - + + + + + + + + - - canvas属性接口 - - - - - - - - - - - - - - - - - + canvas属性接口 - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - \ No newline at end of file + diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIAttr/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIAttr/index.js index bfc87078e8af340832eea210fd19b04763fbdd3e..25a1f638cafa79c721b9827d97f65dfffb8be96c 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIAttr/index.js @@ -13,100 +13,100 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/canvas/indexAPI/index"), - fillStyleFunc: function () { - var canvasRef = this.$refs.canvas1; - var ctx = canvasRef.getContext("2d"); - - var getFillStyle1 = ctx.fillStyle; // getter默认fillStyle - console.info("getFillStyle1=" + getFillStyle1); - - var getFillStyle2 = ctx.fillStyle; // 再次getter默认fillStyle - console.info("getFillStyle2=" + getFillStyle2); - - ctx.fillStyle = "#00ff00"; // setter - //ctx.fillStyle = "rgba(0,255,0,1)"; //支持 - //ctx.fillStyle = "red"; //不支持 - ctx.strokeStyle = "#ff0000"; // 因为是填充图形,所以边框设置无效 - - var getFillStyle3 = ctx.fillStyle; // setter后getter fillStyle - console.info("getFillStyle3=" + getFillStyle3); - ctx.fillRect(20,20,100,150); - }, - strokeStyleFunc: function () { - var canvasRef = this.$refs.canvas2; - var ctx = canvasRef.getContext("2d"); - - var getStrokeStyle1 = ctx.strokeStyle; // getter默认strokeStyle - console.info("getStrokeStyle1=" + getStrokeStyle1); - var getStrokeStyle2 = ctx.strokeStyle; // 再次getter默认strokeStyle - console.info("getStrokeStyle2=" + getStrokeStyle2); - - ctx.fillStyle = "#00ff00"; // 因为是画矩形框,所以填充设置无效 - ctx.strokeStyle = "#0000ff"; // setter - - var getStrokeStyle3 = ctx.strokeStyle; // setter之后getter strokeStyle - console.info("getStrokeStyle3=" + getStrokeStyle3); - ctx.strokeRect(20,20,100,150); - }, - lineWidthFunc: function () { - var canvasRef = this.$refs.canvas3; - var ctx = canvasRef.getContext("2d"); - - var getLineWidth1 = ctx.lineWidth; // getter默认lineWidth - console.info("getLineWidth1=" + getLineWidth1); - - var getLineWidth2 = ctx.lineWidth; // 再次getter默认lineWidth - console.info("getLineWidth2=" + getLineWidth2); - - ctx.strokeStyle = "#ff0000"; - ctx.lineWidth = "10"; // setter - - var getLineWidth3 = ctx.lineWidth; // setter后getter lineWidth - console.info("getLineWidth3=" + getLineWidth3); - - ctx.strokeRect(20,20,100,150); - }, - fontFunc: function () { - var canvasRef = this.$refs.canvas4; - var ctx = canvasRef.getContext("2d"); - - var getFont1 = ctx.font; // getter默认font - console.info("getFont1=" + getFont1); - - var getFont2 = ctx.font; // 再次getter默认font - console.info("getFont2=" + getFont2); - - ctx.font = " 30px HYQiHei-65S two three f "; // setter - //ctx.font = " "; // setter - - var getFont3 = ctx.font; // setter后getter font - console.info("getFont3=" + getFont3); - - ctx.fillText("Hello ACE", 10, 50); - }, - textAlignFunc: function () { - var canvasRef = this.$refs.canvas5; - var ctx = canvasRef.getContext("2d"); - - var getTextAlign1 = ctx.textAlign; // getter默认text align - console.info("getTextAlign1=" + getTextAlign1); - - var getTextAlign2 = ctx.textAlign; // 再次getter默认text align - console.info("getTextAlign2=" + getTextAlign2); - - ctx.font = "30px HYQiHei-65S"; - ctx.textAlign = "left"; // setter - ctx.fillText("left", 110, 10); - ctx.textAlign = "right"; // setter - ctx.fillText("right", 110, 50); - ctx.textAlign = "center"; // setter - ctx.fillText("center", 110, 100); - - var getTextAlign3 = ctx.textAlign; // setter后 getter text align - console.info("getTextAlign3=" + getTextAlign3); - }, - jumpFunc: routePage("pages/component/canvas/indexAPIAttr/index").changePage -} \ No newline at end of file + ...backPage("pages/component/canvas/indexAPI/index"), + fillStyleFunc: function() { + var canvasRef = this.$refs.canvas1; + var ctx = canvasRef.getContext("2d"); + + var getFillStyle1 = ctx.fillStyle; // getter默认fillStyle + console.info("getFillStyle1=" + getFillStyle1); + + var getFillStyle2 = ctx.fillStyle; // 再次getter默认fillStyle + console.info("getFillStyle2=" + getFillStyle2); + + ctx.fillStyle = "#00ff00"; // setter + //ctx.fillStyle = "rgba(0,255,0,1)"; //支持 + //ctx.fillStyle = "red"; //不支持 + ctx.strokeStyle = "#ff0000"; // 因为是填充图形,所以边框设置无效 + + var getFillStyle3 = ctx.fillStyle; // setter后getter fillStyle + console.info("getFillStyle3=" + getFillStyle3); + ctx.fillRect(20, 20, 100, 150); + }, + strokeStyleFunc: function() { + var canvasRef = this.$refs.canvas2; + var ctx = canvasRef.getContext("2d"); + + var getStrokeStyle1 = ctx.strokeStyle; // getter默认strokeStyle + console.info("getStrokeStyle1=" + getStrokeStyle1); + var getStrokeStyle2 = ctx.strokeStyle; // 再次getter默认strokeStyle + console.info("getStrokeStyle2=" + getStrokeStyle2); + + ctx.fillStyle = "#00ff00"; // 因为是画矩形框,所以填充设置无效 + ctx.strokeStyle = "#0000ff"; // setter + + var getStrokeStyle3 = ctx.strokeStyle; // setter之后getter strokeStyle + console.info("getStrokeStyle3=" + getStrokeStyle3); + ctx.strokeRect(20, 20, 100, 150); + }, + lineWidthFunc: function() { + var canvasRef = this.$refs.canvas3; + var ctx = canvasRef.getContext("2d"); + + var getLineWidth1 = ctx.lineWidth; // getter默认lineWidth + console.info("getLineWidth1=" + getLineWidth1); + + var getLineWidth2 = ctx.lineWidth; // 再次getter默认lineWidth + console.info("getLineWidth2=" + getLineWidth2); + + ctx.strokeStyle = "#ff0000"; + ctx.lineWidth = "10"; // setter + + var getLineWidth3 = ctx.lineWidth; // setter后getter lineWidth + console.info("getLineWidth3=" + getLineWidth3); + + ctx.strokeRect(20, 20, 100, 150); + }, + fontFunc: function() { + var canvasRef = this.$refs.canvas4; + var ctx = canvasRef.getContext("2d"); + + var getFont1 = ctx.font; // getter默认font + console.info("getFont1=" + getFont1); + + var getFont2 = ctx.font; // 再次getter默认font + console.info("getFont2=" + getFont2); + + ctx.font = " 30px HYQiHei-65S two three f "; // setter + //ctx.font = " "; // setter + + var getFont3 = ctx.font; // setter后getter font + console.info("getFont3=" + getFont3); + + ctx.fillText("Hello ACE", 10, 50); + }, + textAlignFunc: function() { + var canvasRef = this.$refs.canvas5; + var ctx = canvasRef.getContext("2d"); + + var getTextAlign1 = ctx.textAlign; // getter默认text align + console.info("getTextAlign1=" + getTextAlign1); + + var getTextAlign2 = ctx.textAlign; // 再次getter默认text align + console.info("getTextAlign2=" + getTextAlign2); + + ctx.font = "30px HYQiHei-65S"; + ctx.textAlign = "left"; // setter + ctx.fillText("left", 110, 10); + ctx.textAlign = "right"; // setter + ctx.fillText("right", 110, 50); + ctx.textAlign = "center"; // setter + ctx.fillText("center", 110, 100); + + var getTextAlign3 = ctx.textAlign; // setter后 getter text align + console.info("getTextAlign3=" + getTextAlign3); + }, + jumpFunc: routePage("pages/component/canvas/indexAPIAttr/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIDraw/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIDraw/index.hml index 19c3a6f350fdefa5054a2254fb619eb12a1f9787..1abc77ecb6814d6b8668134012ba5a91fe394a3d 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIDraw/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIDraw/index.hml @@ -13,54 +13,41 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - + + + + + + + + - - canvas绘图接口 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + canvas绘图接口 + + + + + + + + + + + + + + + + + + + + - \ No newline at end of file + diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIDraw/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIDraw/index.js index 7fd486378d9a495f46252a413da434057b88e212..b2bd815472744352a1d2ccfebb2d9a0b4ed78a96 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIDraw/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexAPIDraw/index.js @@ -13,30 +13,30 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/canvas/indexAPI/index"), - fillRectFunc: function () { - var canvasRef = this.$refs.canvas1; - var ctx = canvasRef.getContext("2d"); - ctx.fillRect(20,20,100,150); - }, - strokeRectFunc: function () { - var canvasRef = this.$refs.canvas2; - var ctx = canvasRef.getContext("2d"); - ctx.strokeRect(20,20,100,150); - }, - fillTextFunc: function () { - var canvasRef = this.$refs.canvas3; - var ctx = canvasRef.getContext("2d"); - ctx.font = "30px HYQiHei-65S"; - ctx.fillText("Hello ACE", 10, 50); - }, - arcFunc: function () { - var canvasRef = this.$refs.canvas4; - var ctx = canvasRef.getContext("2d"); - ctx.beginPath(); - ctx.arc(50,50,50,Math.PI*2*(1/36),Math.PI*2*(5/36),true); - ctx.stroke(); - } -} \ No newline at end of file + ...backPage("pages/component/canvas/indexAPI/index"), + fillRectFunc: function() { + var canvasRef = this.$refs.canvas1; + var ctx = canvasRef.getContext("2d"); + ctx.fillRect(20, 20, 100, 150); + }, + strokeRectFunc: function() { + var canvasRef = this.$refs.canvas2; + var ctx = canvasRef.getContext("2d"); + ctx.strokeRect(20, 20, 100, 150); + }, + fillTextFunc: function() { + var canvasRef = this.$refs.canvas3; + var ctx = canvasRef.getContext("2d"); + ctx.font = "30px HYQiHei-65S"; + ctx.fillText("Hello ACE", 10, 50); + }, + arcFunc: function() { + var canvasRef = this.$refs.canvas4; + var ctx = canvasRef.getContext("2d"); + ctx.beginPath(); + ctx.arc(50, 50, 50, Math.PI * 2 * (1 / 36), Math.PI * 2 * (5 / 36), true); + ctx.stroke(); + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/indexAttr/index.hml index 4d83a9480c73dcd890f6c094edb3ee162b575d0f..62f8bf3d2e5d6eaf6a164e9e5e47c8d4655c9946 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexAttr/index.hml @@ -13,55 +13,37 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - + + + + + + + + - - canvas通用属性 - + canvas通用属性 - - - - - - show - + + + + show - - - - + - - - - if - + + + + if - - - - + - - - - for - + + + + for - - + - \ No newline at end of file + diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/indexAttr/index.js index a418d0576d1acbb6cbc19266eb0bfbb6b8b0b591..8fefde29a73c236087c5599367b4a4b749acbaa9 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexAttr/index.js @@ -13,10 +13,10 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/canvas/index/index"), - changePage1: routePage("pages/component/canvas/canvas1/index").changePage, - changePage2: routePage("pages/component/canvas/canvas2/index").changePage, - changePage3: routePage("pages/component/canvas/canvas3/index").changePage -} \ No newline at end of file + ...backPage("pages/component/canvas/index/index"), + changePage1: routePage("pages/component/canvas/canvas1/index").changePage, + changePage2: routePage("pages/component/canvas/canvas2/index").changePage, + changePage3: routePage("pages/component/canvas/canvas3/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexCommonStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/indexCommonStyle/index.hml index 1ce5f3aeed9890d69dcf4735e0b261deca475deb..cfec120addadfabca4d303443f62ed377aff12fe 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexCommonStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexCommonStyle/index.hml @@ -13,101 +13,59 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - + + + + + + + - - canvas通用样式 - + canvas通用样式 - - - - - - 背景色 - - - left - - - top - + + + + 背景色 + left + top - - - - + - - - - margin - - - height - - - width - + + + + margin + height + width - - + - - - - - - border - - - padding - + + + + border + padding - - - - + - - - - margin-left - - - margin-top - - - margin-right - - - margin-bottom - + + + + margin-left + margin-top + margin-right + margin-bottom - - - - + - - - - display - + + + + display - - + - \ No newline at end of file + diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexCommonStyle/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/indexCommonStyle/index.js index afdfbfb51187e61232270195de605527c5b4fb6f..cece0e010b52c5e8ca84caadb433a57a9efa479e 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexCommonStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexCommonStyle/index.js @@ -13,12 +13,12 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/canvas/index/index"), - changePage1: routePage("pages/component/canvas/canvas4/index").changePage, - changePage2: routePage("pages/component/canvas/canvas5/index").changePage, - changePage3: routePage("pages/component/canvas/canvas6/index").changePage, - changePage4: routePage("pages/component/canvas/canvas7/index").changePage, - changePage5: routePage("pages/component/canvas/canvas8/index").changePage -} \ No newline at end of file + ...backPage("pages/component/canvas/index/index"), + changePage1: routePage("pages/component/canvas/canvas4/index").changePage, + changePage2: routePage("pages/component/canvas/canvas5/index").changePage, + changePage3: routePage("pages/component/canvas/canvas6/index").changePage, + changePage4: routePage("pages/component/canvas/canvas7/index").changePage, + changePage5: routePage("pages/component/canvas/canvas8/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/canvas/indexEvent/index.hml index 0c0b05256c167e56a9ea88f12acba7d925488f0a..b760f48714559aa475119085e9ed89b61d68a9fa 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexEvent/index.hml @@ -13,39 +13,25 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - + + + + + + + - - canvas通用事件 - - - + canvas通用事件 - - - - click - - - longpress - - - swipe - + + + + click + longpress + swipe - - + - \ No newline at end of file + diff --git a/examples/showcase/src/main/js/default/pages/component/canvas/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/canvas/indexEvent/index.js index be8dbab56ac4cf2ad05b7bf09dafe272ab760c8c..0e37df0316834ecf1faf6b8f5290861c45d3119c 100755 --- a/examples/showcase/src/main/js/default/pages/component/canvas/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/canvas/indexEvent/index.js @@ -13,8 +13,8 @@ * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/canvas/index/index"), - changePage1: routePage("pages/component/canvas/canvas9/index").changePage -} \ No newline at end of file + ...backPage("pages/component/canvas/index/index"), + changePage1: routePage("pages/component/canvas/canvas9/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.css b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.hml index 88df24c0965ae72df2b2fdaf79e6ce2a7bab469d..d687d1387646dad616fb171942fe05143f89d2c9 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.hml @@ -13,22 +13,28 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.js index 0c2a70a5c584ef3ff7b2ef6786a69c816c4c9282..482aa81132c70f5102a244cf89590d7c6e4710e4 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart1/barChart1.js @@ -12,18 +12,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage, eventCommon} from "../../../../../common/js/general"; -import {dataCommon} from "../../../../../common/js/chart"; +import { backPage, routePage, eventCommon } from "../../../../../common/js/general"; +import { dataCommon } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/barChart/indexEvent/index"), - data: { - text1: eventCommon().text1, - text2: eventCommon().text2, - text3: eventCommon().text3, - datasets: dataCommon.datasets.barsets, - options: dataCommon.options - }, - clickFunc: eventCommon().clickFunc, - longpressFunc: eventCommon().longpressFunc, - swipeFunc: eventCommon().swipeFunc -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/indexEvent/index"), + data: { + text1: eventCommon().text1, + text2: eventCommon().text2, + text3: eventCommon().text3, + datasets: dataCommon.datasets.barsets, + options: dataCommon.options + }, + clickFunc: eventCommon().clickFunc, + longpressFunc: eventCommon().longpressFunc, + swipeFunc: eventCommon().swipeFunc +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.css b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.css index f07e5b95d68eb8a98138b9eb7954add66ddfff1b..7a5644b2d7d430ce2af8ef88f1461498626311ca 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.css @@ -24,5 +24,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.hml index 6f4fc8345c497b7a133b781d9c5ba944aed4246d..fad371feee18ac1cfe4ffad391470588eb925d99 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.hml @@ -15,10 +15,8 @@ limitations under the License. - - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.js index 748ebc23b9813b9b284d4cc035edb36ac81f324c..e37706856c5db8e8eeb5a8cee938407f8cccae3e 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart2/barChart2.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/barChart/indexStyle/index"), - data: { - text1: "背景色绿色", - text2: "left设置85", - text3: "top设置170", - datasets: dataCommon.datasets.barsets, - options: dataCommon.options, - } -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/indexStyle/index"), + data: { + text1: "背景色绿色", + text2: "left设置85", + text3: "top设置170", + datasets: dataCommon.datasets.barsets, + options: dataCommon.options + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.css b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.css index 0e8a333f829b08261747c8fb53b2e13850507bb3..a59cb2f9257d798c9cbc87caec5bd8a73c671be4 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.css @@ -19,19 +19,19 @@ } .item { - width: 280px; - height: 50px; + width: 280px; + height: 50px; } .div1 { - height: 145px; - width: 160px; - border-width: 1px; - border-color: #ff0000; + height: 145px; + width: 160px; + border-width: 1px; + border-color: #ff0000; } .div2 { - width: 100px; - height: 50px; - background-color: #00ff00; -} \ No newline at end of file + width: 100px; + height: 50px; + background-color: #00ff00; +} diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.hml index 595aea0a8865048acc4b9dda0ae4775bfe4fdf00..3bab7eefea0d4fac2db4e1bd20cb6077e90fdc6a 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.hml @@ -13,48 +13,48 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
- - -
-
- - -
-
- - - - 宽100px;高50px - - - - - div1左边距100px - - - - - div1上边距20px - - - - - div2右边距20px - - - - - div2下边距20px - - - -
\ No newline at end of file +
+ + + + +
+
+ + +
+
+ + +
+
+ + + 宽100px;高50px + + + div1左边距100px + + + div1上边距20px + + + div2右边距20px + + + div2下边距20px + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.js index fb90893bb38faf83aad659e7a94fc19eeee3cb31..215d9257e04bbcd1fcff1642a6c54d576360ad4c 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart3/barChart3.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/barChart/indexStyle/index"), - data: { - text1: "margin左边距85", - text2: "margin上边距10", - text3: "宽高已设置", - datasets: dataCommon.datasets.barsets, - options: dataCommon.options, - } -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/indexStyle/index"), + data: { + text1: "margin左边距85", + text2: "margin上边距10", + text3: "宽高已设置", + datasets: dataCommon.datasets.barsets, + options: dataCommon.options + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart4/barChart4.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart4/barChart4.hml index 224f485f6705cae21bb89b8eb78ce09e9a8bf51b..5328b32589d731dd65555074fa8be5bda2614164 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart4/barChart4.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart4/barChart4.hml @@ -13,15 +13,33 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - -
\ No newline at end of file +
+ + + + + + + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart4/barChart4.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart4/barChart4.js index 943ad92ab0596cd7c4bde0198b21fbedab8066f3..3977cc945ab3970dbf7bf80a034d5dd54d1c7cf1 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart4/barChart4.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart4/barChart4.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/barChart/indexStyle/index"), - data: { - datasets: dataCommon.datasets.barsets, - options: dataCommon.options, - } -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/indexStyle/index"), + data: { + datasets: dataCommon.datasets.barsets, + options: dataCommon.options + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart5/barChart5.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart5/barChart5.hml index cd9e5f07ee88928596e9f74e3faeb19fe1eb138f..8652250ca51cae0fffd5b96f672411b9b0086ef0 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart5/barChart5.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart5/barChart5.hml @@ -13,13 +13,16 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - -
\ No newline at end of file +
+ + + + + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart5/barChart5.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart5/barChart5.js index 7428a0b4b8f62055e7744f9928a5c1e7540a614b..94601b148ac1d944943a6725cb475924cb41ac9a 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart5/barChart5.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart5/barChart5.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/barChart/indexAttr/index"), - data: { - datasets: dataCommon.datasets.barsets, - options: dataCommon.optionsNoDisplay - } -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/indexAttr/index"), + data: { + datasets: dataCommon.datasets.barsets, + options: dataCommon.optionsNoDisplay + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.css b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.hml index d2cbd07e4e0fbb63a0f14a996903e267ec9124b0..39868d178dc4e523da14dc1fab3250c566afbfe0 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.hml @@ -13,18 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.js index 09849541ebe25c79d7594b6c18ca0411e28fc5c0..f3e99039da709ba93104ced0d2f73827adfd6fb1 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart6/barChart6.js @@ -12,16 +12,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon, changeStatus} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon, changeStatus } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/barChart/indexAttr/index"), - data: { - text1: "显示状态改变", - chart01: "chart01", - status: true, - datasets: dataCommon.datasets.barsets, - options: dataCommon.options - }, - changeStatus: changeStatus, -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/indexAttr/index"), + data: { + text1: "显示状态改变", + chart01: "chart01", + status: true, + datasets: dataCommon.datasets.barsets, + options: dataCommon.options + }, + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.css b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.hml index e9eff2edb734e4fcd03192f04a37cd4461680bb3..55131a2136e6a2ea0f79b97bc702bbbb24dad3b9 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.hml @@ -13,16 +13,24 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - 循环3次,点击改变display - -
\ No newline at end of file +
+ + + + + + + + 循环3次,点击改变display + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.js index 83d386b47fce89ca033684c455a1333caa99f026..06dc2549891bbdef160a1e872352fc9dcb2e3ca1 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart7/barChart7.js @@ -12,18 +12,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon, changeStatus, changeDisplay} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon, changeStatus, changeDisplay } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/barChart/indexAttr/index"), - data: { - datasets: dataCommon.datasets.barsets, - options: dataCommon.options, - status: true, - text1: "显示状态改变", - loopArray: ["1", "2", "3"], - display: "flex", - }, - changeStatus: changeStatus, - changeDisplay: changeDisplay -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/indexAttr/index"), + data: { + datasets: dataCommon.datasets.barsets, + options: dataCommon.options, + status: true, + text1: "显示状态改变", + loopArray: ["1", "2", "3"], + display: "flex" + }, + changeStatus: changeStatus, + changeDisplay: changeDisplay +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.css b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.hml index 84d80b081b98d9c273c7f4b79f62e71d82c8db7f..f1f58afa418d9efd1a775d4397ee75b4ad80be80 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.hml @@ -13,18 +13,26 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.js index 3087601d2c658c217a8c7798a651264492ec7a82..de94f2a06ca31b3e3f564ab5f575ecd293f18b9f 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/barChart8/barChart8.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon, changeStatus} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon, changeStatus } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/barChart/indexAttr/index"), - data: { - datasets: dataCommon.datasets.barsets, - options: dataCommon.options, - status: true, - text1: "显示状态改变" - }, - changeStatus: changeStatus -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/indexAttr/index"), + data: { + datasets: dataCommon.datasets.barsets, + options: dataCommon.options, + status: true, + text1: "显示状态改变" + }, + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/index/index.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/index/index.hml index 624a83373266b76330bb26eb247d09577c812f40..9da35585846a352c78744e7e9ca73c5ffa126ace 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/index/index.hml @@ -13,37 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - bar-chart - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + bar-chart + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/index/index.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/index/index.js index 2779495f486b5d62a1b78eafe38785015f4a4b8c..ed594e8c1d2994d7d48c5acf758d4a0c64ad5905 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/chart/index/index"), - changePage1: routePage("pages/component/chart/barChart/indexAttr/index").changePage, - changePage2: routePage("pages/component/chart/barChart/indexStyle/index").changePage, - changePage3: routePage("pages/component/chart/barChart/indexEvent/index").changePage -} \ No newline at end of file + ...backPage("pages/component/chart/index/index"), + changePage1: routePage("pages/component/chart/barChart/indexAttr/index").changePage, + changePage2: routePage("pages/component/chart/barChart/indexStyle/index").changePage, + changePage3: routePage("pages/component/chart/barChart/indexEvent/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexAttr/index.hml index defadedd19470751fc91fbb6b3d30acbe292430c..75bb2ad037c3c40a2e2fdaf2a79640b9e958fcca 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexAttr/index.hml @@ -13,84 +13,77 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用属性 - - - - - - - - show - - - - - - - - - - - for - - - - - - - - - - - if - - - - - - - - - - 特有属性 - - - - - - - - datasets: - - - 全量属性 - - - options - - - 全量属性 - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用属性 + + + + + show + + + + + + + for + + + + + + + if + + + + + + 特有属性 + + + + + datasets: + 全量属性 + options + 全量属性 + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexAttr/index.js index 360827723559667c15f4c07248a98f931d6cab32..1139db674206ec70f743a34f2d2eb931ca8157fc 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexAttr/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/chart/barChart/index/index"), - changePage1: routePage("pages/component/chart/barChart/barChart6/barChart6").changePage, - changePage2: routePage("pages/component/chart/barChart/barChart5/barChart5").changePage, - changePage3: routePage("pages/component/chart/barChart/barChart7/barChart7").changePage, - changePage4: routePage("pages/component/chart/barChart/barChart8/barChart8").changePage -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/index/index"), + changePage1: routePage("pages/component/chart/barChart/barChart6/barChart6").changePage, + changePage2: routePage("pages/component/chart/barChart/barChart5/barChart5").changePage, + changePage3: routePage("pages/component/chart/barChart/barChart7/barChart7").changePage, + changePage4: routePage("pages/component/chart/barChart/barChart8/barChart8").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexEvent/index.hml index bf1a4cbf65bc641640df8559ae49d3fb3a5afc23..6bdca1e2db2eb763c494ac6c0f8926a11aa7e89c 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexEvent/index.hml @@ -13,41 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用事件 - - - - - - - - click - - - longpress - - - swipe - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用事件 + + + + + click + longpress + swipe + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexEvent/index.js index cbcf63a134e8dd1217ba97dbe58286e93be85303..f31f79b6d05d3325474c81db29de5e1b571304d3 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexEvent/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/chart/barChart/index/index"), - changePage1: routePage("pages/component/chart/barChart/barChart1/barChart1").changePage -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/index/index"), + changePage1: routePage("pages/component/chart/barChart/barChart1/barChart1").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexStyle/index.hml index ef0254e506118e6b7c939982ce9b63434e76a4fd..8c48d0cacee6181104934628bde2bfc2cbf39d64 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexStyle/index.hml @@ -13,72 +13,63 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用样式 - - - - - - - - 背景色 - - - left - - - top - - - - - - - - - - - margin - - - height - - - width - - - - - - - - - - - border - - - padding - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用样式 + + + + + 背景色 + left + top + + + + + + + margin + height + width + + + + + + + border + padding + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexStyle/index.js b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexStyle/index.js index 2742b64916a1e0e00d2c089d03c999b34f7d49b8..eb5869343b6b54e5fff020096bac3e360806ce34 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/barChart/indexStyle/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/chart/barChart/index/index"), - changePage1: routePage("pages/component/chart/barChart/barChart2/barChart2").changePage, - changePage2: routePage("pages/component/chart/barChart/barChart3/barChart3").changePage, - changePage3: routePage("pages/component/chart/barChart/barChart4/barChart4").changePage -} \ No newline at end of file + ...backPage("pages/component/chart/barChart/index/index"), + changePage1: routePage("pages/component/chart/barChart/barChart2/barChart2").changePage, + changePage2: routePage("pages/component/chart/barChart/barChart3/barChart3").changePage, + changePage3: routePage("pages/component/chart/barChart/barChart4/barChart4").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/index/index.hml b/examples/showcase/src/main/js/default/pages/component/chart/index/index.hml index 1691b09b2f02198891c9da9a9fb863a9d0c72fe5..f519c57a02a370c6431d0d44c40c6fa65ea5774b 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/index/index.hml @@ -13,39 +13,42 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - - bar - - - - - - - - - - - line - - - - - - - - - \ No newline at end of file + + + + + + + + + + + bar + + + + + + + line + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/index/index.js b/examples/showcase/src/main/js/default/pages/component/chart/index/index.js index 334e21ed6abb324cda17df6a18bbcdaf7d15e89b..cfe5ed126f5c59d1c6ffa9fdf0f04329637c8a21 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/index/index.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/baseIndex/index"), - changeBar: routePage("pages/component/chart/barChart/index/index").changePage, - changeLine: routePage("pages/component/chart/lineChart/index/index").changePage -} \ No newline at end of file + ...backPage("pages/component/index/baseIndex/index"), + changeBar: routePage("pages/component/chart/barChart/index/index").changePage, + changeLine: routePage("pages/component/chart/lineChart/index/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/index/index.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/index/index.hml index 75f37b13bd5c4dd21ea9989445f50ebf0cbb3b8f..32fbefbfc5901fbc0fa36b6d58e9617589e42566 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/index/index.hml @@ -13,37 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - line-chart - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + line-chart + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/index/index.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/index/index.js index 8ba4b1a40f614a9bc94f4e423027567b3ff239f9..30f8dc448c2d952e3821236d25d8b9aeb2dd62c4 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/chart/index/index"), - changePage1: routePage("pages/component/chart/lineChart/indexAttr/index").changePage, - changePage2: routePage("pages/component/chart/lineChart/indexStyle/index").changePage, - changePage3: routePage("pages/component/chart/lineChart/indexEvent/index").changePage -} \ No newline at end of file + ...backPage("pages/component/chart/index/index"), + changePage1: routePage("pages/component/chart/lineChart/indexAttr/index").changePage, + changePage2: routePage("pages/component/chart/lineChart/indexStyle/index").changePage, + changePage3: routePage("pages/component/chart/lineChart/indexEvent/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexAttr/index.hml index 5e0e09bb17d165000bdd24b10da920cd26294596..75bb2ad037c3c40a2e2fdaf2a79640b9e958fcca 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexAttr/index.hml @@ -13,84 +13,77 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用属性 - - - - - - - - show - - - - - - - - - - - for - - - - - - - - - - - if - - - - - - - - - - 特有属性 - - - - - - - - datasets: - - - 全量属性 - - - options - - - 全量属性 - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用属性 + + + + + show + + + + + + + for + + + + + + + if + + + + + + 特有属性 + + + + + datasets: + 全量属性 + options + 全量属性 + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexAttr/index.js index fdd1633bcb378c2ecbdf8c29474ec1da85cc3692..49a2644323e5f65dfe22043c5a9e98455f1ca5b8 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexAttr/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/chart/lineChart/index/index"), - changePage1: routePage("pages/component/chart/lineChart/lineChart6/lineChart6").changePage, - changePage2: routePage("pages/component/chart/lineChart/lineChart5/lineChart5").changePage, - changePage3: routePage("pages/component/chart/lineChart/lineChart7/lineChart7").changePage, - changePage4: routePage("pages/component/chart/lineChart/lineChart8/lineChart8").changePage -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/index/index"), + changePage1: routePage("pages/component/chart/lineChart/lineChart6/lineChart6").changePage, + changePage2: routePage("pages/component/chart/lineChart/lineChart5/lineChart5").changePage, + changePage3: routePage("pages/component/chart/lineChart/lineChart7/lineChart7").changePage, + changePage4: routePage("pages/component/chart/lineChart/lineChart8/lineChart8").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexEvent/index.hml index bf1a4cbf65bc641640df8559ae49d3fb3a5afc23..6bdca1e2db2eb763c494ac6c0f8926a11aa7e89c 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexEvent/index.hml @@ -13,41 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用事件 - - - - - - - - click - - - longpress - - - swipe - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用事件 + + + + + click + longpress + swipe + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexEvent/index.js index 8d0cc0136fd6f015a79bf7d88e80cf0818a73cdf..1584aa4ec5adcda7418f837a2b1578b0fe83e1e0 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexEvent/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/chart/lineChart/index/index"), - changePage1: routePage("pages/component/chart/lineChart/lineChart1/lineChart1").changePage -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/index/index"), + changePage1: routePage("pages/component/chart/lineChart/lineChart1/lineChart1").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexStyle/index.hml index ef0254e506118e6b7c939982ce9b63434e76a4fd..8c48d0cacee6181104934628bde2bfc2cbf39d64 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexStyle/index.hml @@ -13,72 +13,63 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用样式 - - - - - - - - 背景色 - - - left - - - top - - - - - - - - - - - margin - - - height - - - width - - - - - - - - - - - border - - - padding - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用样式 + + + + + 背景色 + left + top + + + + + + + margin + height + width + + + + + + + border + padding + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexStyle/index.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexStyle/index.js index 5e37a4ed9e1740e5999d88f3d55f39bbeb512acc..1dd154c4e76c43f056ba80082e889bdd82ea5242 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/indexStyle/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/chart/lineChart/index/index"), - changePage1: routePage("pages/component/chart/lineChart/lineChart2/lineChart2").changePage, - changePage2: routePage("pages/component/chart/lineChart/lineChart3/lineChart3").changePage, - changePage3: routePage("pages/component/chart/lineChart/lineChart4/lineChart4").changePage -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/index/index"), + changePage1: routePage("pages/component/chart/lineChart/lineChart2/lineChart2").changePage, + changePage2: routePage("pages/component/chart/lineChart/lineChart3/lineChart3").changePage, + changePage3: routePage("pages/component/chart/lineChart/lineChart4/lineChart4").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.css b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.hml index 0ee9cdc8ea73319ddd2a5df862837634d23ca26a..34eae6dfb73e36da0561c1ab3900b3c1d3674aea 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.hml @@ -13,22 +13,28 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.js index e88ea2529636207bac08b7f7a3614567f901f39e..73d597eee8ff1848f14c5696f13f23915e64489b 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart1/lineChart1.js @@ -12,18 +12,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage, eventCommon} from "../../../../../common/js/general"; -import {dataCommon} from "../../../../../common/js/chart"; +import { backPage, routePage, eventCommon } from "../../../../../common/js/general"; +import { dataCommon } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/lineChart/indexEvent/index"), - data: { - datasets: dataCommon.datasets.linesets, - options: dataCommon.options, - text1: eventCommon().text1, - text2: eventCommon().text2, - text3: eventCommon().text3, - }, - clickFunc: eventCommon().clickFunc, - longpressFunc: eventCommon().longpressFunc, - swipeFunc: eventCommon().swipeFunc -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/indexEvent/index"), + data: { + datasets: dataCommon.datasets.linesets, + options: dataCommon.options, + text1: eventCommon().text1, + text2: eventCommon().text2, + text3: eventCommon().text3 + }, + clickFunc: eventCommon().clickFunc, + longpressFunc: eventCommon().longpressFunc, + swipeFunc: eventCommon().swipeFunc +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.css b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.css index f07e5b95d68eb8a98138b9eb7954add66ddfff1b..7a5644b2d7d430ce2af8ef88f1461498626311ca 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.css @@ -24,5 +24,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.hml index 4fde80c9ee28b94f913564625a5c7c88fc46c64e..a119decec8209e480e559a7665d6f01efdbe2771 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.hml @@ -15,10 +15,8 @@ limitations under the License. - - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.js index 7aecba95af413a751489a6de8a6d4821c7c1b962..6c554a9285dbfe7554f57c227dc0d60ce1509262 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart2/lineChart2.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/lineChart/indexStyle/index"), - data: { - text1: "背景色绿色", - text2: "left设置85", - text3: "top设置170", - datasets: dataCommon.datasets.linesets, - options: dataCommon.options, - } -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/indexStyle/index"), + data: { + text1: "背景色绿色", + text2: "left设置85", + text3: "top设置170", + datasets: dataCommon.datasets.linesets, + options: dataCommon.options + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.css b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.css index 0e8a333f829b08261747c8fb53b2e13850507bb3..a59cb2f9257d798c9cbc87caec5bd8a73c671be4 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.css @@ -19,19 +19,19 @@ } .item { - width: 280px; - height: 50px; + width: 280px; + height: 50px; } .div1 { - height: 145px; - width: 160px; - border-width: 1px; - border-color: #ff0000; + height: 145px; + width: 160px; + border-width: 1px; + border-color: #ff0000; } .div2 { - width: 100px; - height: 50px; - background-color: #00ff00; -} \ No newline at end of file + width: 100px; + height: 50px; + background-color: #00ff00; +} diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.hml index 2560862864ffd1b7ff40f86c845cb79c3f85b560..4b694d765e37395215d4a1addac4c236dc561b7a 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.hml @@ -13,48 +13,41 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
- - -
-
- - -
-
- - - - 宽100px;高50px - - - - - div1左边距100px - - - - - div1上边距20px - - - - - div2右边距20px - - - - - div2下边距20px - - - -
\ No newline at end of file +
+ + + + +
+
+ + +
+
+ + +
+
+ + + 宽100px;高50px + + + div1左边距100px + + + div1上边距20px + + + div2右边距20px + + + div2下边距20px + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.js index b7bdaed4422d275c10ba431ad8d6c04184a7a446..60845ffe25aa8eba7c690ea07b8d21d09255c505 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart3/lineChart3.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/lineChart/indexStyle/index"), - data: { - datasets: dataCommon.datasets.linesets, - options: dataCommon.options, - text1: "margin左边距85", - text2: "margin上边距10", - text3: "宽高已设置", - } -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/indexStyle/index"), + data: { + datasets: dataCommon.datasets.linesets, + options: dataCommon.options, + text1: "margin左边距85", + text2: "margin上边距10", + text3: "宽高已设置" + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart4/lineChart4.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart4/lineChart4.hml index afdb410fa83e03e500d452deb1ee17aa89f01e01..ee3b1471d460115f2cd8d9e0b7b4e246784f5d07 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart4/lineChart4.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart4/lineChart4.hml @@ -13,15 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - -
\ No newline at end of file +
+ + + + + + + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart4/lineChart4.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart4/lineChart4.js index 17dc9ca2d53c50152ff345d36be3b9f5a18c275d..11c25adbdf6528491fa93ac065d65490fcddfefb 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart4/lineChart4.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart4/lineChart4.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/lineChart/indexStyle/index"), - data: { - datasets: dataCommon.datasets.linesets, - options: dataCommon.options - } -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/indexStyle/index"), + data: { + datasets: dataCommon.datasets.linesets, + options: dataCommon.options + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart5/lineChart5.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart5/lineChart5.hml index b6107368e9678f549904157690272a9805e7782e..bcde144f737c865518df3327329fe92c721068e7 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart5/lineChart5.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart5/lineChart5.hml @@ -13,13 +13,16 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - -
\ No newline at end of file +
+ + + + + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart5/lineChart5.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart5/lineChart5.js index 0a822383e89de276c52860da8af628a0eaf81c72..ac1bc0d16c5382d9abb6902bfa7f16af23358ae4 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart5/lineChart5.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart5/lineChart5.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/lineChart/indexAttr/index"), - data: { - datasets: dataCommon.datasets.linesets, - options: dataCommon.optionsNoDisplay - } -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/indexAttr/index"), + data: { + datasets: dataCommon.datasets.linesets, + options: dataCommon.optionsNoDisplay + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.css b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.hml index c43b8565655bcb30805e0ed4ea2a326e943e5b9c..6ffff6b486b49bd2c79364ade014a357fe4ff671 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.hml @@ -13,18 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.js index 3fd3a8139c364cfbc7ed04b697af760683612338..a870b1486bace8ef904e6d9167596dcf7bad5da9 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart6/lineChart6.js @@ -12,16 +12,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon, changeStatus} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon, changeStatus } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/lineChart/indexAttr/index"), - data: { - datasets: dataCommon.datasets.linesets, - options: dataCommon.options, - chart01: "chart01", - status: true, - text1: "显示状态改变" - }, - changeStatus: changeStatus -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/indexAttr/index"), + data: { + datasets: dataCommon.datasets.linesets, + options: dataCommon.options, + chart01: "chart01", + status: true, + text1: "显示状态改变" + }, + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.css b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.hml index 13c9f227c3b771f2b52b9cc288c2f35e1e66710f..a0493360ce3ffcf54430fcf289f57cbe0be4eb1f 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.hml @@ -13,16 +13,23 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - 循环3次,点击改变display - -
\ No newline at end of file +
+ + + + + + + + 循环3次,点击改变display + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.js index 571c7895b88448c17866f607a52f95032c829622..86a6d766ed608a09755a3af46712c3c0a418dcc6 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart7/lineChart7.js @@ -12,18 +12,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon, changeStatus, changeDisplay} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon, changeStatus, changeDisplay } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/lineChart/indexAttr/index"), - changeStatus: changeStatus, - changeDisplay: changeDisplay, - data: { - loopArray: ["1", "2", "3"], - display: "flex", - status: true, - text1: "显示状态改变", - datasets: dataCommon.datasets.linesets, - options: dataCommon.options - } -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/indexAttr/index"), + changeStatus: changeStatus, + changeDisplay: changeDisplay, + data: { + loopArray: ["1", "2", "3"], + display: "flex", + status: true, + text1: "显示状态改变", + datasets: dataCommon.datasets.linesets, + options: dataCommon.options + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.css b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.css +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.hml b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.hml index 7abb2cf920aa4925f3b6f848aac6506fcfb8b214..cb6284888254b6f609a52b5ddd689e525c1c07cf 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.hml +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.hml @@ -13,18 +13,25 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.js b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.js index 400785c3888e9016916de2ae3402e8cc8e5d46c4..d9c519f781f35d584600fe03e5136c3b48cad0f4 100755 --- a/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.js +++ b/examples/showcase/src/main/js/default/pages/component/chart/lineChart/lineChart8/lineChart8.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {dataCommon, changeStatus} from "../../../../../common/js/chart"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { dataCommon, changeStatus } from "../../../../../common/js/chart"; export default { - ...backPage("pages/component/chart/lineChart/indexAttr/index"), - data: { - status: true, - text1: "显示状态改变", - datasets: dataCommon.datasets.linesets, - options: dataCommon.options, - }, - changeStatus: changeStatus -} \ No newline at end of file + ...backPage("pages/component/chart/lineChart/indexAttr/index"), + data: { + status: true, + text1: "显示状态改变", + datasets: dataCommon.datasets.linesets, + options: dataCommon.options + }, + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div1/div1.css b/examples/showcase/src/main/js/default/pages/component/div/div1/div1.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div1/div1.css +++ b/examples/showcase/src/main/js/default/pages/component/div/div1/div1.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/div/div1/div1.hml b/examples/showcase/src/main/js/default/pages/component/div/div1/div1.hml index 3769d398e5991ff0bec7271a66be6c676a58c087..d6acb906ec185cb99aa338c0e444d46ee8fd2efd 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div1/div1.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div1/div1.hml @@ -13,25 +13,31 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
- - 操作div触发事件 - -
- - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + +
+ 操作div触发事件 +
+ + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div1/div1.js b/examples/showcase/src/main/js/default/pages/component/div/div1/div1.js index 52d5035763c3ef04196fa8fc27f1852eddf6d677..7b3579453effa0b92fd8708bdca12461d4be3208 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div1/div1.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div1/div1.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, eventCommon} from "../../../../common/js/general"; +import { backPage, eventCommon } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexEvent/index"), - data: { - text1: eventCommon().text1, - text2: eventCommon().text2, - text3: eventCommon().text3 - }, - clickFunc: eventCommon().clickFunc, - longpressFunc: eventCommon().longpressFunc, - swipeFunc: eventCommon().swipeFunc -} \ No newline at end of file + ...backPage("pages/component/div/indexEvent/index"), + data: { + text1: eventCommon().text1, + text2: eventCommon().text2, + text3: eventCommon().text3 + }, + clickFunc: eventCommon().clickFunc, + longpressFunc: eventCommon().longpressFunc, + swipeFunc: eventCommon().swipeFunc +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div10/div10.css b/examples/showcase/src/main/js/default/pages/component/div/div10/div10.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div10/div10.css +++ b/examples/showcase/src/main/js/default/pages/component/div/div10/div10.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/div/div10/div10.hml b/examples/showcase/src/main/js/default/pages/component/div/div10/div10.hml index 700c3a8a52dafa7d0b16244c61abd63a8adb6312..2df40d9093a1e70c5eda02b20611f4722fc70d36 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div10/div10.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div10/div10.hml @@ -13,21 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
- - 观察show属性作用 - -
- - - - {{text1}} - -
\ No newline at end of file +
+ + + + +
+ 观察show属性作用 +
+ + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div10/div10.js b/examples/showcase/src/main/js/default/pages/component/div/div10/div10.js index 4b6ae2b2040aad2799a98048a557ce5885516348..fa0134692e5128fca136578b3d2f9e1f782b5140 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div10/div10.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div10/div10.js @@ -12,19 +12,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; +import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexAttr/index"), - data: { - text1: "点击按钮改变状态", - status: true, - div01: "div01" - }, - changeStatus: function () { - if (this.status == true) { - this.status = false; - } else { - this.status = true; - } + ...backPage("pages/component/div/indexAttr/index"), + data: { + text1: "点击按钮改变状态", + status: true, + div01: "div01" + }, + changeStatus: function() { + if (this.status == true) { + this.status = false; + } else { + this.status = true; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div11/div11.css b/examples/showcase/src/main/js/default/pages/component/div/div11/div11.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div11/div11.css +++ b/examples/showcase/src/main/js/default/pages/component/div/div11/div11.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/div/div11/div11.hml b/examples/showcase/src/main/js/default/pages/component/div/div11/div11.hml index 18d3b3b2e6f8c75e45cdd24aa2eb16e8a8e94e17..1e88abe0770966acb8b4dcdf679a7472976d3db8 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div11/div11.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div11/div11.hml @@ -13,21 +13,29 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
- - 观察if属性作用 - -
- - - - {{text1}} - -
\ No newline at end of file +
+ + + + +
+ 观察if属性作用 +
+ + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div11/div11.js b/examples/showcase/src/main/js/default/pages/component/div/div11/div11.js index 0bf1e19a95b61c164859b230474dd8c95db4a5ef..9e6d8323c96764798255e3b08353cd810da917e2 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div11/div11.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div11/div11.js @@ -12,18 +12,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; +import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexAttr/index"), - data: { - text1: "点击按钮改变状态", - status: true - }, - changeStatus: function () { - if (this.status == true) { - this.status = false; - } else { - this.status = true; - } + ...backPage("pages/component/div/indexAttr/index"), + data: { + text1: "点击按钮改变状态", + status: true + }, + changeStatus: function() { + if (this.status == true) { + this.status = false; + } else { + this.status = true; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div12/div12.css b/examples/showcase/src/main/js/default/pages/component/div/div12/div12.css index 90290c39527544c2594433322777336ebfbc0872..90b0df90fb576bbf0240ac59b46faf8e39f98de6 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div12/div12.css +++ b/examples/showcase/src/main/js/default/pages/component/div/div12/div12.css @@ -17,11 +17,10 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .image { width: 130px; height: 50px; } - diff --git a/examples/showcase/src/main/js/default/pages/component/div/div12/div12.hml b/examples/showcase/src/main/js/default/pages/component/div/div12/div12.hml index df43897bd6d9d1670827ea8d1fd7d89800c80f2e..4f8f371788a953a5fcd97037e20241edda613497 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div12/div12.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div12/div12.hml @@ -13,20 +13,28 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
- - loop - - -
- - 循环3次,点击改变display - -
\ No newline at end of file +
+ + + + +
+ loop + +
+ + 循环3次,点击改变display + +
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div12/div12.js b/examples/showcase/src/main/js/default/pages/component/div/div12/div12.js index 154d4226c50fd5cfc33da42abd787e55f750e4f1..18ea77eadde9940d7e60e820439d63b42f3a3376 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div12/div12.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div12/div12.js @@ -12,19 +12,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; +import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexAttr/index"), - data: { - text1: "点击按钮改变状态", - loopArray: ["1", "2", "3"], - display: "flex" - }, - changeDisplay: function () { - if (this.display === "flex") { - this.display = "none"; - } else { - this.display = "flex"; - } + ...backPage("pages/component/div/indexAttr/index"), + data: { + text1: "点击按钮改变状态", + loopArray: ["1", "2", "3"], + display: "flex" + }, + changeDisplay: function() { + if (this.display === "flex") { + this.display = "none"; + } else { + this.display = "flex"; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div2/div2.css b/examples/showcase/src/main/js/default/pages/component/div/div2/div2.css index f07e5b95d68eb8a98138b9eb7954add66ddfff1b..7a5644b2d7d430ce2af8ef88f1461498626311ca 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div2/div2.css +++ b/examples/showcase/src/main/js/default/pages/component/div/div2/div2.css @@ -24,5 +24,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/div/div2/div2.hml b/examples/showcase/src/main/js/default/pages/component/div/div2/div2.hml index c16ffddb346e43c131cfd7e0a493b1e8515d84e2..637107b4357f0539667a02e9ff944d8ec50a08ef 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div2/div2.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div2/div2.hml @@ -13,25 +13,26 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - -
- - div已设置对应样式 - -
- - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file + + + + + +
+ div已设置对应样式 +
+ + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div2/div2.js b/examples/showcase/src/main/js/default/pages/component/div/div2/div2.js index 3bdedd21ca66d3dec6419b7cfda8ab71642893bf..43889425ae7dae767ff72476ce0aba36c8eca86a 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div2/div2.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div2/div2.js @@ -12,18 +12,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; +import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexCommonStyle/index"), - data: { - text1: "背景色绿色", - text2: "left设置85", - text3: "top设置170" - }, - clickFunc: function () { - this.text1 = "点击事件已触发"; - }, - longpressFunc: function () { - this.text2 = "长按事件已触发"; - } -} \ No newline at end of file + ...backPage("pages/component/div/indexCommonStyle/index"), + data: { + text1: "背景色绿色", + text2: "left设置85", + text3: "top设置170" + }, + clickFunc: function() { + this.text1 = "点击事件已触发"; + }, + longpressFunc: function() { + this.text2 = "长按事件已触发"; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div3/div3.css b/examples/showcase/src/main/js/default/pages/component/div/div3/div3.css index 0e8a333f829b08261747c8fb53b2e13850507bb3..a59cb2f9257d798c9cbc87caec5bd8a73c671be4 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div3/div3.css +++ b/examples/showcase/src/main/js/default/pages/component/div/div3/div3.css @@ -19,19 +19,19 @@ } .item { - width: 280px; - height: 50px; + width: 280px; + height: 50px; } .div1 { - height: 145px; - width: 160px; - border-width: 1px; - border-color: #ff0000; + height: 145px; + width: 160px; + border-width: 1px; + border-color: #ff0000; } .div2 { - width: 100px; - height: 50px; - background-color: #00ff00; -} \ No newline at end of file + width: 100px; + height: 50px; + background-color: #00ff00; +} diff --git a/examples/showcase/src/main/js/default/pages/component/div/div3/div3.hml b/examples/showcase/src/main/js/default/pages/component/div/div3/div3.hml index 6784135fda898d68e94de3ce0c2e27f38a81dc05..fa73784b7dd5dacf34890bc14d9b21a6e8c7368d 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div3/div3.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div3/div3.hml @@ -13,54 +13,43 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
-
- - div1 - -
-
-
-
- - div2 - -
-
-
- - - - 宽100px;高50px - - - - - div1左边距100px - - - - - div1上边距20px - - - - - div2右边距20px - - - - - div2下边距20px - - - -
\ No newline at end of file +
+ + + + +
+
+
+ div1 +
+
+
+
+ div2 +
+
+
+ + + 宽100px;高50px + + + div1左边距100px + + + div1上边距20px + + + div2右边距20px + + + div2下边距20px + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div3/div3.js b/examples/showcase/src/main/js/default/pages/component/div/div3/div3.js index 67da9f17da7114f70483424c25784b44df03c695..477954fcbb0c6f63bb7af9c2db5476cb768c7fb8 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div3/div3.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div3/div3.js @@ -15,5 +15,5 @@ // div3.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexCommonStyle/index") -} \ No newline at end of file + ...backPage("pages/component/div/indexCommonStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div4/div4.css b/examples/showcase/src/main/js/default/pages/component/div/div4/div4.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div4/div4.css +++ b/examples/showcase/src/main/js/default/pages/component/div/div4/div4.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/div/div4/div4.hml b/examples/showcase/src/main/js/default/pages/component/div/div4/div4.hml index 5b3ef40b8137d3e77096fc7bad9170f120e545dd..634d3f7bc8a4d7ca64f8d98382c5dfc1c220fc13 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div4/div4.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div4/div4.hml @@ -13,18 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
-
- - 内边距和边框 - -
-
\ No newline at end of file +
+ + + + +
+
+ 内边距和边框 +
+
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div4/div4.js b/examples/showcase/src/main/js/default/pages/component/div/div4/div4.js index 4a9ad8ba9a6050c586171d9b29ce4c313ccd3080..bf709b1ab2554b3c7c88fdd2c0983fceb4667096 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div4/div4.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div4/div4.js @@ -15,5 +15,5 @@ // div4.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexCommonStyle/index") -} \ No newline at end of file + ...backPage("pages/component/div/indexCommonStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div5/div5.hml b/examples/showcase/src/main/js/default/pages/component/div/div5/div5.hml index 2fcc411767a192648fa3a2eeac9549487594e95c..81e65f97db90824894704fd07c9b7b63cac4fa67 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div5/div5.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div5/div5.hml @@ -13,19 +13,29 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
-
-
-
-
-
-
-
\ No newline at end of file +
+ + + + +
+
+
+
+
+
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div5/div5.js b/examples/showcase/src/main/js/default/pages/component/div/div5/div5.js index ad9ba8d6641879f1bef8ae948d18f36cf293919b..85e39dd1dacf97917ced374ab67471f496ee4eac 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div5/div5.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div5/div5.js @@ -15,5 +15,5 @@ // div5.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexSpecStyle/index") -} \ No newline at end of file + ...backPage("pages/component/div/indexSpecStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div6/div6.hml b/examples/showcase/src/main/js/default/pages/component/div/div6/div6.hml index c0e7f50e1f6fa5227689e83538bc7374b545e1f9..7252531523ab551f896d8e7f7c303d561c3b39f4 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div6/div6.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div6/div6.hml @@ -13,19 +13,29 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
-
-
-
-
-
-
-
\ No newline at end of file +
+ + + + +
+
+
+
+
+
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div6/div6.js b/examples/showcase/src/main/js/default/pages/component/div/div6/div6.js index 94d03b352c5e92727a6a02a865e50a663b9850a9..c01694922e97be8540182c584488ba17ae17d0d4 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div6/div6.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div6/div6.js @@ -15,5 +15,5 @@ // div6.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexSpecStyle/index") -} \ No newline at end of file + ...backPage("pages/component/div/indexSpecStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div7/div7.hml b/examples/showcase/src/main/js/default/pages/component/div/div7/div7.hml index e447b4005ad132079e1cd7dddc1cfb6f519f9b26..55ad7d9d12f06bb3d50286085850864b8f890e45 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div7/div7.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div7/div7.hml @@ -13,27 +13,33 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file +
+ + + + +
+
+
+
+
+
+
+
+
+
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div7/div7.js b/examples/showcase/src/main/js/default/pages/component/div/div7/div7.js index 77dfffb2ff984fcc08a8971ac741d6cd7c61d01e..30abde756d6278f0f40331c1f6c2a7275cc8def3 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div7/div7.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div7/div7.js @@ -15,5 +15,5 @@ // div7.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexSpecStyle/index") -} \ No newline at end of file + ...backPage("pages/component/div/indexSpecStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div8/div8.hml b/examples/showcase/src/main/js/default/pages/component/div/div8/div8.hml index 7dfa8fd36f2696e432b40f1c7bd08a781342bf6b..62020ba42fabf50a3df84925fd2715e74fd9cda6 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div8/div8.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div8/div8.hml @@ -13,19 +13,29 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
-
-
-
-
-
-
-
\ No newline at end of file +
+ + + + +
+
+
+
+
+
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div8/div8.js b/examples/showcase/src/main/js/default/pages/component/div/div8/div8.js index ca6c314c4661f96179aecd7ae75e19684b28ee9e..ca5621d1a2e28730004bbd8d7949f38d1dde7279 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div8/div8.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div8/div8.js @@ -15,5 +15,5 @@ // div8.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexSpecStyle/index") -} \ No newline at end of file + ...backPage("pages/component/div/indexSpecStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/div9/div9.hml b/examples/showcase/src/main/js/default/pages/component/div/div9/div9.hml index 42521b01cf90d8caaad605ddcb1f961a4bfafff4..f8e6d4c1cc0c974be824edb7b86cb3763fdee002 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div9/div9.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/div9/div9.hml @@ -13,27 +13,33 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file +
+ + + + +
+
+
+
+
+
+
+
+
+
diff --git a/examples/showcase/src/main/js/default/pages/component/div/div9/div9.js b/examples/showcase/src/main/js/default/pages/component/div/div9/div9.js index 567bab66890b2f075013d5e4a90724d49d9951f3..33e89a40db8470b2a0da197dd896ad095a75dcda 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/div9/div9.js +++ b/examples/showcase/src/main/js/default/pages/component/div/div9/div9.js @@ -15,5 +15,5 @@ // div9.js import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/indexSpecStyle/index") -} \ No newline at end of file + ...backPage("pages/component/div/indexSpecStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/index/index.hml b/examples/showcase/src/main/js/default/pages/component/div/index/index.hml index a64e0ebc71723ef44ecf0a22a33d4c0a4e0e07c0..06091ed82a3ff664c10a41fdb5f737236fdcaf51 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/index/index.hml @@ -13,42 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - div - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + div + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/div/index/index.js b/examples/showcase/src/main/js/default/pages/component/div/index/index.js index 3acaa4d65258275563f24fb593ffda2cd1050072..cca77d7439e138c57f75988c3bedcc9f99c5180d 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/div/index/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/containerIndex/index"), - changePage1: routePage("pages/component/div/indexAttr/index").changePage, - changePage2: routePage("pages/component/div/indexCommonStyle/index").changePage, - changePage3: routePage("pages/component/div/indexSpecStyle/index").changePage, - changePage4: routePage("pages/component/div/indexEvent/index").changePage -} \ No newline at end of file + ...backPage("pages/component/index/containerIndex/index"), + changePage1: routePage("pages/component/div/indexAttr/index").changePage, + changePage2: routePage("pages/component/div/indexCommonStyle/index").changePage, + changePage3: routePage("pages/component/div/indexSpecStyle/index").changePage, + changePage4: routePage("pages/component/div/indexEvent/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/div/indexAttr/index.hml index 6fb269b318cd352a32aca5ef29e7488f24364d59..ee6c7202dec0d1b4a17453057117393e1d9e5cf6 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/indexAttr/index.hml @@ -13,57 +13,58 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用属性 - - - - - - - - if - - - - - - - - - - - show - - - - - - - - - - - for - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用属性 + + + + + if + + + + + + + show + + + + + + + for + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/div/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/div/indexAttr/index.js index 7df46f8c2b175b08917e9c2c32eadf6934a95fb6..a6a2b8032fc582c1f12bdd643289531bac2411f3 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/div/indexAttr/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/index/index"), - changePage1: routePage("pages/component/div/div11/div11").changePage, - changePage2: routePage("pages/component/div/div10/div10").changePage, - changePage3: routePage("pages/component/div/div12/div12").changePage -} \ No newline at end of file + ...backPage("pages/component/div/index/index"), + changePage1: routePage("pages/component/div/div11/div11").changePage, + changePage2: routePage("pages/component/div/div10/div10").changePage, + changePage3: routePage("pages/component/div/div12/div12").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/indexCommonStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/div/indexCommonStyle/index.hml index c016c71a1804a55e4cea53c70854c85dfeb3613e..436dd484a71c80531f0101b57a0f86d835c0d8eb 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/indexCommonStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/indexCommonStyle/index.hml @@ -13,72 +13,63 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用样式 - - - - - - - - 背景色 - - - left - - - top - - - - - - - - - - - margin - - - height - - - width - - - - - - - - - - - border - - - padding - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用样式 + + + + + 背景色 + left + top + + + + + + + margin + height + width + + + + + + + border + padding + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/div/indexCommonStyle/index.js b/examples/showcase/src/main/js/default/pages/component/div/indexCommonStyle/index.js index 934e06757b56a0ce6c0e6a9830a6d1a07a61ea1b..685f00b48477ff53410fda40d6d3965817e7f540 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/indexCommonStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/div/indexCommonStyle/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/index/index"), - changePage1: routePage("pages/component/div/div2/div2").changePage, - changePage2: routePage("pages/component/div/div3/div3").changePage, - changePage3: routePage("pages/component/div/div4/div4").changePage -} \ No newline at end of file + ...backPage("pages/component/div/index/index"), + changePage1: routePage("pages/component/div/div2/div2").changePage, + changePage2: routePage("pages/component/div/div3/div3").changePage, + changePage3: routePage("pages/component/div/div4/div4").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/div/indexEvent/index.hml index 772bd6a7fa67551e5651edfffc0842bdf64ff69d..7a743edc60848ce1e078c3fef02f222d613ecc46 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/indexEvent/index.hml @@ -13,41 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用事件 - - - - - - - - click - - - longpress - - - swipe - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用事件 + + + + + click + longpress + swipe + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/div/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/div/indexEvent/index.js index f883e8cafd6eb199bb1c6c805c6510f18887108f..d9db99bfeef4e673bfc00a6820efbb52a69eb968 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/div/indexEvent/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/index/index"), - changePage1: routePage("pages/component/div/div1/div1").changePage -} \ No newline at end of file + ...backPage("pages/component/div/index/index"), + changePage1: routePage("pages/component/div/div1/div1").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/div/indexSpecStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/div/indexSpecStyle/index.hml index 82435d02205026a3125fe42fb630554a449cb387..48fad672267069767dd6e263f787f5b4efa94ed9 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/indexSpecStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/div/indexSpecStyle/index.hml @@ -13,94 +13,87 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 特有样式 - - - - - - - - justify-content:flex-end; - - - align-items:center - - - - - - - - - - - flex-direction:column; - - - justify-content:space-between - - - - - - - - - - - flex-wrap:wrap; - - - justify-content:center - - - - - - - - - - - flex-direction:column; - - - align-items:flex-end - - - - - - - - - - - flex-wrap:wrap; - - - justify-content:space-around - - - - - - - - - \ No newline at end of file + + + + + + + + + + 特有样式 + + + + + justify-content:flex-end; + align-items:center + + + + + + + flex-direction:column; + justify-content:space-between + + + + + + + flex-wrap:wrap; + justify-content:center + + + + + + + flex-direction:column; + align-items:flex-end + + + + + + + flex-wrap:wrap; + justify-content:space-around + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/div/indexSpecStyle/index.js b/examples/showcase/src/main/js/default/pages/component/div/indexSpecStyle/index.js index 9e9f0d10b147ae1a545f12c54b420dfbd1e23fef..8be12e652a31c0ab479fb7582e3d2ad4f2294e97 100755 --- a/examples/showcase/src/main/js/default/pages/component/div/indexSpecStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/div/indexSpecStyle/index.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/div/index/index"), - changePage1: routePage("pages/component/div/div5/div5").changePage, - changePage2: routePage("pages/component/div/div6/div6").changePage, - changePage3: routePage("pages/component/div/div7/div7").changePage, - changePage4: routePage("pages/component/div/div8/div8").changePage, - changePage5: routePage("pages/component/div/div9/div9").changePage -} \ No newline at end of file + ...backPage("pages/component/div/index/index"), + changePage1: routePage("pages/component/div/div5/div5").changePage, + changePage2: routePage("pages/component/div/div6/div6").changePage, + changePage3: routePage("pages/component/div/div7/div7").changePage, + changePage4: routePage("pages/component/div/div8/div8").changePage, + changePage5: routePage("pages/component/div/div9/div9").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/image1/image1.hml b/examples/showcase/src/main/js/default/pages/component/image/image1/image1.hml index fe95f4427e95d41af00455fbb0d7bae533dda803..f1805af4bc6ad8fc1eda9e1c40fa2fb2236c6554 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image1/image1.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/image1/image1.hml @@ -15,10 +15,8 @@ limitations under the License.
- - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/image/image1/image1.js b/examples/showcase/src/main/js/default/pages/component/image/image1/image1.js index db12706b403a3ea7240fb80fa895f29203a1eccb..6da54493282b27f273f69c903c0e80b68b4967d4 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image1/image1.js +++ b/examples/showcase/src/main/js/default/pages/component/image/image1/image1.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; +import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/image/indexAttr/index") -} \ No newline at end of file + ...backPage("pages/component/image/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/image2/image2.css b/examples/showcase/src/main/js/default/pages/component/image/image2/image2.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image2/image2.css +++ b/examples/showcase/src/main/js/default/pages/component/image/image2/image2.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/image/image2/image2.hml b/examples/showcase/src/main/js/default/pages/component/image/image2/image2.hml index 384360942fe66f6203ad72743fd3c6d0d533829a..ff85fb199703598ca6df90e46817e1ccd9f5e2fe 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image2/image2.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/image2/image2.hml @@ -13,22 +13,26 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/image/image2/image2.js b/examples/showcase/src/main/js/default/pages/component/image/image2/image2.js index 039d9a56fcaff407b3e1012485f5612126f2ceaa..9bfb50ba3cacbb2177f74bdd8b41d36784d2d2b2 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image2/image2.js +++ b/examples/showcase/src/main/js/default/pages/component/image/image2/image2.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, eventCommon} from "../../../../common/js/general"; +import { backPage, eventCommon } from "../../../../common/js/general"; export default { - ...backPage("pages/component/image/indexEvent/index"), - clickFunc: eventCommon().clickFunc, - longpressFunc: eventCommon().longpressFunc, - swipeFunc: eventCommon().swipeFunc, - data: { - text3: eventCommon().text3, - text2: eventCommon().text2, - text1: eventCommon().text1 - } -} \ No newline at end of file + ...backPage("pages/component/image/indexEvent/index"), + clickFunc: eventCommon().clickFunc, + longpressFunc: eventCommon().longpressFunc, + swipeFunc: eventCommon().swipeFunc, + data: { + text3: eventCommon().text3, + text2: eventCommon().text2, + text1: eventCommon().text1 + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/image3/image3.css b/examples/showcase/src/main/js/default/pages/component/image/image3/image3.css index 26bc10183260a8fbe326d7201ab058f37e76c9fd..c56bf1d359b8bda1753a43d01a977c8582bb2f9a 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image3/image3.css +++ b/examples/showcase/src/main/js/default/pages/component/image/image3/image3.css @@ -17,7 +17,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .stack { diff --git a/examples/showcase/src/main/js/default/pages/component/image/image3/image3.hml b/examples/showcase/src/main/js/default/pages/component/image/image3/image3.hml index f4c6212a1e4e937a370dab932ea80f9c612c9406..320ee0d31ac7d3a13b3e0f5c3a39df78ab100ed2 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image3/image3.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/image3/image3.hml @@ -15,10 +15,8 @@ limitations under the License. - - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/image/image3/image3.js b/examples/showcase/src/main/js/default/pages/component/image/image3/image3.js index e635a1391eec8d8e2c3432ea9173f032ff7401f4..4d5288bbbabce0e651edad4249cf6e8fdf24494c 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image3/image3.js +++ b/examples/showcase/src/main/js/default/pages/component/image/image3/image3.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; +import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/image/indexStyle/index"), - data: { - text1: "距离背景已设置" - } -} \ No newline at end of file + ...backPage("pages/component/image/indexStyle/index"), + data: { + text1: "距离背景已设置" + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/image4/image4.css b/examples/showcase/src/main/js/default/pages/component/image/image4/image4.css index a72cf8a005a6657e173f08a0fd7a0848f1ed243f..dd87cfaf20cba45a3b782217b8bc62a531f7eea0 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image4/image4.css +++ b/examples/showcase/src/main/js/default/pages/component/image/image4/image4.css @@ -19,19 +19,19 @@ } .item { - width: 280px; - height: 50px; + width: 280px; + height: 50px; } .div1 { - height: 145px; - width: 160px; - border-width: 1px; - border-color: #ff0000; + height: 145px; + width: 160px; + border-width: 1px; + border-color: #ff0000; } .image { - width: 100px; - height: 50px; - background-color: #00ff00; -} \ No newline at end of file + width: 100px; + height: 50px; + background-color: #00ff00; +} diff --git a/examples/showcase/src/main/js/default/pages/component/image/image4/image4.hml b/examples/showcase/src/main/js/default/pages/component/image/image4/image4.hml index 5b0f1331feb81998ffeba60e86f46022c1de095f..7330d9dccfb5fdde67e049b834a7d86b7aba656e 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image4/image4.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/image4/image4.hml @@ -13,48 +13,34 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
- - -
-
- - -
-
- - - - 宽100px;高50px - - - - - 左图左边距100px - - - - - 左图上边距20px - - - - - 右图右边距20px - - - - - 右图下边距20px - - - -
\ No newline at end of file +
+ + + + +
+
+ +
+
+ +
+
+ + + 宽100px;高50px + + + 左图左边距100px + + + 左图上边距20px + + + 右图右边距20px + + + 右图下边距20px + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/image/image4/image4.js b/examples/showcase/src/main/js/default/pages/component/image/image4/image4.js index 17272ddc514b9ebe6985957786a0671c0a23a825..7277d6c9a4372a7c6ed5335c4254ddae798a0d5c 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image4/image4.js +++ b/examples/showcase/src/main/js/default/pages/component/image/image4/image4.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; +import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/image/indexStyle/index"), - data: { - text1: "margin已设置", - text2: "宽高已设置" - } -} \ No newline at end of file + ...backPage("pages/component/image/indexStyle/index"), + data: { + text1: "margin已设置", + text2: "宽高已设置" + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/image5/image5.css b/examples/showcase/src/main/js/default/pages/component/image/image5/image5.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image5/image5.css +++ b/examples/showcase/src/main/js/default/pages/component/image/image5/image5.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/image/image5/image5.hml b/examples/showcase/src/main/js/default/pages/component/image/image5/image5.hml index d78737fa1c18fd772b4b54158958fc10c008b73c..093f2b66df31cb2c5bee6fa79094cf1e26e10b43 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image5/image5.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/image5/image5.hml @@ -13,16 +13,24 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - 内边距和边框 - -
\ No newline at end of file +
+ + + + + + + 内边距和边框 +
diff --git a/examples/showcase/src/main/js/default/pages/component/image/image5/image5.js b/examples/showcase/src/main/js/default/pages/component/image/image5/image5.js index 168e427ded6f5d082d0e4ec9f342d6e960db24cb..0cbc25a8057f42cb3c2e1870e0a40632db7da539 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image5/image5.js +++ b/examples/showcase/src/main/js/default/pages/component/image/image5/image5.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; +import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/image/indexStyle/index") -} \ No newline at end of file + ...backPage("pages/component/image/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/image6/image6.css b/examples/showcase/src/main/js/default/pages/component/image/image6/image6.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image6/image6.css +++ b/examples/showcase/src/main/js/default/pages/component/image/image6/image6.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/image/image6/image6.hml b/examples/showcase/src/main/js/default/pages/component/image/image6/image6.hml index 345cdff06e909ccfb5a9895234e9e1a811785e4c..64aa945d615d7ac98841ef028d851f2a7f6ab46e 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image6/image6.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/image6/image6.hml @@ -13,18 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/image/image6/image6.js b/examples/showcase/src/main/js/default/pages/component/image/image6/image6.js index f71f833420506c0b13624e5efb5b21df3d798668..71849691b932195492cf6060bebe8ba62c32b6df 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image6/image6.js +++ b/examples/showcase/src/main/js/default/pages/component/image/image6/image6.js @@ -12,14 +12,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; -import {changeStatus} from "../../../../common/js/image"; +import { backPage } from "../../../../common/js/general"; +import { changeStatus } from "../../../../common/js/image"; export default { - data: { - text1: "点击按钮改变状态", - status: true, - div01: "div01" - }, - ...backPage("pages/component/image/indexAttr/index"), - changeStatus: changeStatus -} \ No newline at end of file + data: { + text1: "点击按钮改变状态", + status: true, + div01: "div01" + }, + ...backPage("pages/component/image/indexAttr/index"), + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/image7/image7.css b/examples/showcase/src/main/js/default/pages/component/image/image7/image7.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image7/image7.css +++ b/examples/showcase/src/main/js/default/pages/component/image/image7/image7.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/image/image7/image7.hml b/examples/showcase/src/main/js/default/pages/component/image/image7/image7.hml index 5e11331b6a468cd7bd7855b1b29c9e96511dcbd8..4d9eed33ea0222b2fbeab7f875fa3c304ecd6055 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image7/image7.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/image7/image7.hml @@ -13,16 +13,27 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - 循环3次,点击改变display - -
\ No newline at end of file +
+ + + + + + + + 循环3次,点击改变display + +
diff --git a/examples/showcase/src/main/js/default/pages/component/image/image7/image7.js b/examples/showcase/src/main/js/default/pages/component/image/image7/image7.js index d2d3235726ce9db9c8c106f10b9e07ff1fe467f0..08e8d020130ed3f01bcfde204a51a4699ebe2683 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image7/image7.js +++ b/examples/showcase/src/main/js/default/pages/component/image/image7/image7.js @@ -12,18 +12,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; +import { backPage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/image/indexAttr/index"), - changeDisplay: function () { - if (this.display === "flex") { - this.display = "none"; - } else { - this.display = "flex"; - } - }, - data: { - loopArray: ["1", "2", "3"], - display: "flex" + ...backPage("pages/component/image/indexAttr/index"), + changeDisplay: function() { + if (this.display === "flex") { + this.display = "none"; + } else { + this.display = "flex"; } -} \ No newline at end of file + }, + data: { + loopArray: ["1", "2", "3"], + display: "flex" + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/image8/image8.css b/examples/showcase/src/main/js/default/pages/component/image/image8/image8.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image8/image8.css +++ b/examples/showcase/src/main/js/default/pages/component/image/image8/image8.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/image/image8/image8.hml b/examples/showcase/src/main/js/default/pages/component/image/image8/image8.hml index 85071a21aed16b01c31dd91af40d539e664bc194..f4426a8f1e8b94b34b2be074bd34e3f2680f7c54 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image8/image8.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/image8/image8.hml @@ -13,18 +13,29 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/image/image8/image8.js b/examples/showcase/src/main/js/default/pages/component/image/image8/image8.js index 7a2b17a8e291cf348be460b4d05a6ec882579217..865b0650903f3fbc2b52f51b532d00c1771d8186 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/image8/image8.js +++ b/examples/showcase/src/main/js/default/pages/component/image/image8/image8.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage} from "../../../../common/js/general"; -import {changeStatus} from "../../../../common/js/image"; +import { backPage } from "../../../../common/js/general"; +import { changeStatus } from "../../../../common/js/image"; export default { - ...backPage("pages/component/image/indexAttr/index"), - changeStatus: changeStatus, - data: { - text1: "点击按钮改变状态", - status: true - } -} \ No newline at end of file + ...backPage("pages/component/image/indexAttr/index"), + changeStatus: changeStatus, + data: { + text1: "点击按钮改变状态", + status: true + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/index/index.hml b/examples/showcase/src/main/js/default/pages/component/image/index/index.hml index 88917e6f83bd94f297b51766830c8873c41ca6a5..81ee3be15f906428ff21665d0ca45b06b8e61345 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/index/index.hml @@ -13,37 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - image - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + image + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/image/index/index.js b/examples/showcase/src/main/js/default/pages/component/image/index/index.js index 90b57da264390169ff9bd1039c4c954b58bba0d7..5c55340cf36196a3b7768ca3c7cb93ccb0cbd262 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/image/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/baseIndex/index"), - changePage1: routePage("pages/component/image/indexAttr/index").changePage, - changePage2: routePage("pages/component/image/indexStyle/index").changePage, - changePage3: routePage("pages/component/image/indexEvent/index").changePage -} \ No newline at end of file + ...backPage("pages/component/index/baseIndex/index"), + changePage1: routePage("pages/component/image/indexAttr/index").changePage, + changePage2: routePage("pages/component/image/indexStyle/index").changePage, + changePage3: routePage("pages/component/image/indexEvent/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/image/indexAttr/index.hml index bf9e1fa7a061f0a43920e9af513fe1fb65ed97da..c1da0dab903a0fc7e152a6566a300f2a91757488 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/indexAttr/index.hml @@ -13,71 +13,72 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用属性 - - - - - - - - show - - - - - - - - - for - - - - - - - - - if - - - - - - - - - - 特有属性 - - - - - - - - src - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用属性 + + + + + show + + + + + + for + + + + + + if + + + + + + 特有属性 + + + + + src + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/image/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/image/indexAttr/index.js index 86b2c3e2d40a93360cc98b395c05d15d1adf16c1..e65c6f9f6e1b83d97443941bf6acf187c9b46871 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/image/indexAttr/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/image/index/index"), - changePage1: routePage("pages/component/image/image6/image6").changePage, - changePage2: routePage("pages/component/image/image7/image7").changePage, - changePage3: routePage("pages/component/image/image8/image8").changePage, - changePage4: routePage("pages/component/image/image1/image1").changePage -} \ No newline at end of file + ...backPage("pages/component/image/index/index"), + changePage1: routePage("pages/component/image/image6/image6").changePage, + changePage2: routePage("pages/component/image/image7/image7").changePage, + changePage3: routePage("pages/component/image/image8/image8").changePage, + changePage4: routePage("pages/component/image/image1/image1").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/image/indexEvent/index.hml index bf1a4cbf65bc641640df8559ae49d3fb3a5afc23..6bdca1e2db2eb763c494ac6c0f8926a11aa7e89c 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/indexEvent/index.hml @@ -13,41 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用事件 - - - - - - - - click - - - longpress - - - swipe - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用事件 + + + + + click + longpress + swipe + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/image/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/image/indexEvent/index.js index b186105bd422bbab50a766be201930ac0033924b..8d72f226cc1ddb5f95d24c718e0a5370c34f65c3 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/image/indexEvent/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/image/index/index"), - changePage1: routePage("pages/component/image/image2/image2").changePage -} \ No newline at end of file + ...backPage("pages/component/image/index/index"), + changePage1: routePage("pages/component/image/image2/image2").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/image/indexStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/image/indexStyle/index.hml index ef0254e506118e6b7c939982ce9b63434e76a4fd..8c48d0cacee6181104934628bde2bfc2cbf39d64 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/indexStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/image/indexStyle/index.hml @@ -13,72 +13,63 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用样式 - - - - - - - - 背景色 - - - left - - - top - - - - - - - - - - - margin - - - height - - - width - - - - - - - - - - - border - - - padding - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用样式 + + + + + 背景色 + left + top + + + + + + + margin + height + width + + + + + + + border + padding + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/image/indexStyle/index.js b/examples/showcase/src/main/js/default/pages/component/image/indexStyle/index.js index f3b75b0928de111c472532d3d3df80e0b41cbea0..8af6d79663174f7316914ca2c3102ce6df781bbb 100755 --- a/examples/showcase/src/main/js/default/pages/component/image/indexStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/image/indexStyle/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/image/index/index"), - changePage1: routePage("pages/component/image/image3/image3").changePage, - changePage2: routePage("pages/component/image/image4/image4").changePage, - changePage3: routePage( "pages/component/image/image5/image5").changePage -} \ No newline at end of file + ...backPage("pages/component/image/index/index"), + changePage1: routePage("pages/component/image/image3/image3").changePage, + changePage2: routePage("pages/component/image/image4/image4").changePage, + changePage3: routePage("pages/component/image/image5/image5").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/index/baseIndex/index.hml b/examples/showcase/src/main/js/default/pages/component/index/baseIndex/index.hml index 0d1d7be8155a389eaf7eee0cf06fea55390d028b..9a62604f3c8a07dd3343ad3f614892bfe4080d23 100755 --- a/examples/showcase/src/main/js/default/pages/component/index/baseIndex/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/index/baseIndex/index.hml @@ -13,49 +13,38 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 基础组件 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + 基础组件 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/index/baseIndex/index.js b/examples/showcase/src/main/js/default/pages/component/index/baseIndex/index.js index 1a53a4e6eccaa3968302d22dd75de59227dc4717..c4f7e43c0c7d11a3b39eda668dd56fd887829db7 100755 --- a/examples/showcase/src/main/js/default/pages/component/index/baseIndex/index.js +++ b/examples/showcase/src/main/js/default/pages/component/index/baseIndex/index.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/index/index"), + ...backPage("pages/index/index"), changeImage: routePage("pages/component/image/index/index").changePage, changeProgress: routePage("pages/component/progress/index/index").changePage, changeText: routePage("pages/component/text/index/index").changePage, changeMarquee: routePage("pages/component/marquee/index/index").changePage, changeChart: routePage("pages/component/chart/index/index").changePage, changeCanvas: routePage("pages/component/canvas/index/index").changePage -} \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/pages/component/index/containerIndex/index.hml b/examples/showcase/src/main/js/default/pages/component/index/containerIndex/index.hml index dcbb0976e6210406a76197e4c96defdaf88a033e..e94442682e7ad665f080ce8d0b5028a4012db219 100755 --- a/examples/showcase/src/main/js/default/pages/component/index/containerIndex/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/index/containerIndex/index.hml @@ -13,39 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 容器组件 - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + 容器组件 + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/index/containerIndex/index.js b/examples/showcase/src/main/js/default/pages/component/index/containerIndex/index.js index a642ca393cdccc7c3bde6bf032c8efe0928190b1..fcb8702d5588e88e58424f353ca6fef8db354db4 100755 --- a/examples/showcase/src/main/js/default/pages/component/index/containerIndex/index.js +++ b/examples/showcase/src/main/js/default/pages/component/index/containerIndex/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/index/index"), + ...backPage("pages/index/index"), changeDiv: routePage("pages/component/div/index/index").changePage, changeList: routePage("pages/component/list/index/index").changePage, changeStack: routePage("pages/component/stack/index/index").changePage, changeSwiper: routePage("pages/component/swiper/index/index").changePage -} \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/pages/component/index/formIndex/index.hml b/examples/showcase/src/main/js/default/pages/component/index/formIndex/index.hml index 4a252444bd497f6ba601ffb5f634196440dca26b..048ebb754b9ba01e7d69928d2471036e06d02d33 100755 --- a/examples/showcase/src/main/js/default/pages/component/index/formIndex/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/index/formIndex/index.hml @@ -13,39 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 表单组件 - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + 表单组件 + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/index/formIndex/index.js b/examples/showcase/src/main/js/default/pages/component/index/formIndex/index.js index 71645af3c46091e74b4d80f1aeaf0b7787cb6bba..fad7c4098b78d097d8cf4ae97f234fd228725960 100755 --- a/examples/showcase/src/main/js/default/pages/component/index/formIndex/index.js +++ b/examples/showcase/src/main/js/default/pages/component/index/formIndex/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/index/index"), + ...backPage("pages/index/index"), changeInput: routePage("pages/component/input/index/index").changePage, changeSlider: routePage("pages/component/slider/index/index").changePage, changeSwitch: routePage("pages/component/switch/index/index").changePage, changePickerView: routePage("pages/component/picker_view/index/index").changePage -} \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/pages/component/index/otherIndex/index.hml b/examples/showcase/src/main/js/default/pages/component/index/otherIndex/index.hml index 7275af0e185c336c19b01ccabeceea60930ba7e0..a8baae5a4b95982c44dcbfd9a6789dad08c423c7 100755 --- a/examples/showcase/src/main/js/default/pages/component/index/otherIndex/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/index/otherIndex/index.hml @@ -13,24 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 其他 - - - - - - - - - - \ No newline at end of file + + + + + + + + 其他 + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/index/otherIndex/index.js b/examples/showcase/src/main/js/default/pages/component/index/otherIndex/index.js index ebbe807cb5eb9bc7727746afdd2db585fbe0926f..9518e7ff554d38692d684dc2b55d0997e963acf4 100755 --- a/examples/showcase/src/main/js/default/pages/component/index/otherIndex/index.js +++ b/examples/showcase/src/main/js/default/pages/component/index/otherIndex/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/index/index"), + ...backPage("pages/index/index"), changeAnimation: routePage("pages/component/animation/index/index").changePage -} \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.css b/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.css index afbab363444960d42212e71bf3ea9f845b63b531..a842ca3acc21a7bb3d955dca3bc4523c2d01f134 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.css +++ b/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.css @@ -31,7 +31,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-title { @@ -51,11 +51,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.hml b/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.hml index 4bf00885facf2cc2c425931e357bdaf19ef4a7fa..aeb338a68eb38d41b87031cf8e2a75c8129eeb1d 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.hml @@ -13,69 +13,61 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用属性 - - - - -
-
- show -
-
- - -
-
-
- - - -
-
- if -
-
- - -
-
-
- - - -
-
- for -
-
- -
-
-
- - - - 特有属性 - - - - -
- value为show - -
-
- - -
\ No newline at end of file + + + + + + + + + 通用属性 + + + +
+
+ show +
+
+ + +
+
+
+ + +
+
+ if +
+
+ + +
+
+
+ + +
+
+ for +
+
+ +
+
+
+ + + 特有属性 + + + +
+ value为show + +
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.js b/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.js index 7d1b1502cd9455cd1830d5917da9d3b63375c812..476f50f7005d15c73c419938ceba46a77fee5adc 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.js +++ b/examples/showcase/src/main/js/default/pages/component/input/button/attr/attr.js @@ -23,4 +23,4 @@ export default { ...goPage("pages/component/input/button/index/index"), changeStatus: changeStatus, changeIf: changeIf -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/event/event.css b/examples/showcase/src/main/js/default/pages/component/input/button/event/event.css index 32613f01aecd92a2aa14809dfcfd67d0489d4992..4e4ae1c978496136083837941b05a9d6ec466655 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/event/event.css +++ b/examples/showcase/src/main/js/default/pages/component/input/button/event/event.css @@ -31,7 +31,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-title { @@ -51,11 +51,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -91,6 +91,6 @@ height: 100px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; text-overflow: ellipsis; } diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/event/event.hml b/examples/showcase/src/main/js/default/pages/component/input/button/event/event.hml index daf15c62ac24ab46bd061fbb12d047f7fa420260..29f72c488f3059cde45285d50104a6396fc6ea19 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/event/event.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/button/event/event.hml @@ -13,33 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用事件 - - - - -
-
- click - longpress - swipe -
-
- - {{name}} -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用事件 + + + +
+
+ click + longpress + swipe +
+
+ + {{ name }} +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/event/event.js b/examples/showcase/src/main/js/default/pages/component/input/button/event/event.js index f1e8115ccc2dfcaa36ef516184dee9883c877af1..6686c5f6d3ea73568a2328edf194f80a0d9ee7ba 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/event/event.js +++ b/examples/showcase/src/main/js/default/pages/component/input/button/event/event.js @@ -12,19 +12,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../../common/js/general"; +import { goPage, routePage } from "../../../../../common/js/general"; export default { - data: { - name: "点击触发" - }, - clickEvent() { - this.name = "点击事件触发"; - }, - longpressEvent() { - this.name = "长按事件触发"; - }, - swipeEvent(e) { - this.name = "swipe方向:" + e.direction; - }, - ...goPage("pages/component/input/button/index/index") -} \ No newline at end of file + data: { + name: "点击触发" + }, + clickEvent() { + this.name = "点击事件触发"; + }, + longpressEvent() { + this.name = "长按事件触发"; + }, + swipeEvent(e) { + this.name = "swipe方向:" + e.direction; + }, + ...goPage("pages/component/input/button/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/index/index.hml b/examples/showcase/src/main/js/default/pages/component/input/button/index/index.hml index c0b30fea358d54cdeae9b0e80feb80a16fd1954e..aef2e75fda234dcd7523b8a878148b9bdac177b6 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/button/index/index.hml @@ -13,37 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - button - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + button + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/index/index.js b/examples/showcase/src/main/js/default/pages/component/input/button/index/index.js index d16edffcffdb33dc06e6ee1aac1b2d77fb0b2bba..9a575792479e07b762d1ba967dc3e36f39749d48 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/input/button/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage,routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - changePage1: routePage("pages/component/input/button/attr/attr").changePage, - changePage2: routePage("pages/component/input/button/style/style").changePage, - changePage3: routePage("pages/component/input/button/event/event").changePage, - ...backPage("pages/component/input/index/index") -} \ No newline at end of file + changePage1: routePage("pages/component/input/button/attr/attr").changePage, + changePage2: routePage("pages/component/input/button/style/style").changePage, + changePage3: routePage("pages/component/input/button/event/event").changePage, + ...backPage("pages/component/input/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/style/style.css b/examples/showcase/src/main/js/default/pages/component/input/button/style/style.css index b4f550defd590345cce3d381764ecf9f9da293b4..4dda956c6c57e2409642f10f1df98b58ee9bb666 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/style/style.css +++ b/examples/showcase/src/main/js/default/pages/component/input/button/style/style.css @@ -24,7 +24,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-title { @@ -44,11 +44,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -131,32 +131,31 @@ .style-button { width: 150px; height: 50px; - font-size:38px; + font-size: 38px; color: red; font-family: HYQiHei-65S; } - -.backColorBtn{ +.backColorBtn { width: 150px; - height:50px; - margin-left:100px; + height: 50px; + margin-left: 100px; margin-top: 10px; - background-color: aqua + background-color: aqua; } -.backColorBtn:active{ -background-color: coral +.backColorBtn:active { + background-color: coral; } -.backImgBtn{ +.backImgBtn { width: 150px; - height:50px; - margin-left:100px; + height: 50px; + margin-left: 100px; margin-top: 10px; - background-image: url(common/icon_small.png) + background-image: url(common/icon_small.png); } -.backImgBtn:active{ -background-image: url(common/icon.png) +.backImgBtn:active { + background-image: url(common/icon.png); } diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/style/style.hml b/examples/showcase/src/main/js/default/pages/component/input/button/style/style.hml index 5dc7de86a83ff857735804eaa1fa47befaf0881f..8ebc5e355b262cabaad811ddd31db03e750216b6 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/style/style.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/button/style/style.hml @@ -13,93 +13,87 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用样式 - - - - -
-
- 背景 - left为50 - top为50 -
- - - -
-
- - - -
-
- margin - height - width -
-
- -
-
-
- - - -
-
- border - padding -
- -
-
- - - - 特有样式 - - - - -
-
- color为red - font-size - font-family -
- -
-
- - - - 伪类支持 - - - - -
- backgroundColor - -
-
- - - -
- backgroundImg - -
-
-
\ No newline at end of file + + + + + + + + + 通用样式 + + + +
+
+ 背景 + left为50 + top为50 +
+ + + +
+
+ + +
+
+ margin + height + width +
+
+ +
+
+
+ + +
+
+ border + padding +
+ +
+
+ + + 特有样式 + + + +
+
+ color为red + font-size + font-family +
+ +
+
+ + + 伪类支持 + + + +
+ backgroundColor + +
+
+ + +
+ backgroundImg + +
+
+
diff --git a/examples/showcase/src/main/js/default/pages/component/input/button/style/style.js b/examples/showcase/src/main/js/default/pages/component/input/button/style/style.js index 8796705ba9bbec7bfed92d650dccdee5bef03abb..143ef7aa049ab7694b738d302a75f4ef79f49b46 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/button/style/style.js +++ b/examples/showcase/src/main/js/default/pages/component/input/button/style/style.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../../common/js/general"; +import { goPage, routePage } from "../../../../../common/js/general"; export default { - ...goPage("pages/component/input/index/index") -} \ No newline at end of file + ...goPage("pages/component/input/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.css b/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.css index ae03a4eed01bc53624788d1c00cb9096bcc44597..f46f34841c474d51283c45e4d11aa3171cde4318 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.css +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.css @@ -31,7 +31,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-title { @@ -51,11 +51,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.hml b/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.hml index 6f62faec2423714a2853c1d3c9e76c752896b1f7..728dd87a6087852558c94742c2b570239ffbc71c 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.hml @@ -13,72 +13,64 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用属性 - - - - -
-
- show -
-
- - -
-
-
- - - -
-
- if -
-
- - -
-
-
- - - -
-
- for -
-
- -
-
-
- - - - 特有属性 - - - - -
- checked -
-
- - 值为{{show}} -
-
- - -
\ No newline at end of file + + + + + + + + + 通用属性 + + + +
+
+ show +
+
+ + +
+
+
+ + +
+
+ if +
+
+ + +
+
+
+ + +
+
+ for +
+
+ +
+
+
+ + + 特有属性 + + + +
+ checked +
+
+ + 值为{{ show }} +
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.js b/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.js index d7e99ba112fb8ca4f33e79c67e80edf7d8fb5de4..08303adfd31a88a07f1d95c66b429941efa8646c 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.js +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/attr/attr.js @@ -12,22 +12,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../../common/js/general"; +import { goPage, routePage } from "../../../../../common/js/general"; import { changeStatus, changeIf } from "../../../../../common/js/input"; export default { - data: { - show: true, - status: true, - ifStatus:true, - listData:[true, false] - }, - ...goPage("pages/component/input/checkbox/index/index"), - changeEvent(e) { - this.checked = "change触发"; - }, - changeStatus(e) { - this.show = e.checked; - }, - changeShow: changeStatus, - changeIf: changeIf -} \ No newline at end of file + data: { + show: true, + status: true, + ifStatus: true, + listData: [true, false] + }, + ...goPage("pages/component/input/checkbox/index/index"), + changeEvent(e) { + this.checked = "change触发"; + }, + changeStatus(e) { + this.show = e.checked; + }, + changeShow: changeStatus, + changeIf: changeIf +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.css b/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.css index 9b893798c101cd191ec635c8636c1f97d663e90c..910baf8e108ad6d6f7a55f37e047c0cf53024193 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.css +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.css @@ -31,7 +31,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .text2 { @@ -39,7 +39,7 @@ height: 100px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; text-overflow: ellipsis; } @@ -60,11 +60,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.hml b/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.hml index a9d33e4b2f59e746f64564c98d154359a694f886..4734b6143cba8e15909f3a3f1de3045aa5be4e3e 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.hml @@ -13,51 +13,51 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用事件 - - - - -
-
- click - longpress - swipe -
-
- - {{name}} -
-
-
- - - - 特有事件 - - - - -
-
- change -
-
- - {{checked}} -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用事件 + + + +
+
+ click + longpress + swipe +
+
+ + {{ name }} +
+
+
+ + + 特有事件 + + + +
+
+ change +
+
+ + {{ checked }} +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.js b/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.js index 6f9e5136f067b57218c4e932d5396a39dbaf9164..e5bf40ad3793a833bdfbdf3bd1008eea79357759 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.js +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/event/event.js @@ -12,24 +12,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../../common/js/general"; +import { goPage, routePage } from "../../../../../common/js/general"; export default { - data: { - name: "点击或长按", - checked: "触发change", - show: true - }, - clickEvent() { - this.name = "点击事件触发" - }, - longpressEvent() { - this.name = "长按事件触发"; - }, - swipeEvent(e) { - this.name = "swipe方向:" + e.direction; - }, - changeEvent(e) { - this.checked = "change触发"; - }, - ...goPage("pages/component/input/checkbox/index/index") -} \ No newline at end of file + data: { + name: "点击或长按", + checked: "触发change", + show: true + }, + clickEvent() { + this.name = "点击事件触发"; + }, + longpressEvent() { + this.name = "长按事件触发"; + }, + swipeEvent(e) { + this.name = "swipe方向:" + e.direction; + }, + changeEvent(e) { + this.checked = "change触发"; + }, + ...goPage("pages/component/input/checkbox/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/index/index.hml b/examples/showcase/src/main/js/default/pages/component/input/checkbox/index/index.hml index 16e3036baa5d54972d70bf7e6a74d28e152c0f6f..1fac9fcba3e290506d8a554273c3bc03c4c842a3 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/index/index.hml @@ -13,37 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - checkbox - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + checkbox + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/index/index.js b/examples/showcase/src/main/js/default/pages/component/input/checkbox/index/index.js index 79035430f7aba0cf412c5e6028284bb418ba527f..fc33c05d6b21fc6d98078f419e21072db65b83a9 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/input/index/index"), - changePage1: routePage("pages/component/input/checkbox/attr/attr").changePage, - changePage2: routePage("pages/component/input/checkbox/style/style").changePage, - changePage3: routePage("pages/component/input/checkbox/event/event").changePage -} \ No newline at end of file + ...backPage("pages/component/input/index/index"), + changePage1: routePage("pages/component/input/checkbox/attr/attr").changePage, + changePage2: routePage("pages/component/input/checkbox/style/style").changePage, + changePage3: routePage("pages/component/input/checkbox/event/event").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.css b/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.css index c1d0d0b18c1cf2f28ad1b4a5ec4a3c98bd38bc3e..ca9e3528b915b41ddcbc2a198ea940457fd8441e 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.css +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.css @@ -24,7 +24,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-title { @@ -44,11 +44,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.hml b/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.hml index 57f34db7cd534549ec841c48a326c1082d413269..d1c22ad945334752fe11fa9d6d44fa51fe442a6c 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.hml @@ -13,59 +13,56 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用样式 - - - - -
-
- 背景红色 - left为50 - top为50 -
- - - -
-
- - - -
-
- margin - height - width -
-
- -
-
-
- - - -
-
- border - padding -
-
- -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用样式 + + + +
+
+ 背景红色 + left为50 + top为50 +
+ + + +
+
+ + +
+
+ margin + height + width +
+
+ +
+
+
+ + +
+
+ border + padding +
+
+ +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.js b/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.js index 5a6cd87429683d4dc62bb67aafee820e261ba5cb..15b424da345515f1c01c32b57e5e7cb4190f505e 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.js +++ b/examples/showcase/src/main/js/default/pages/component/input/checkbox/style/style.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../../common/js/general"; +import { goPage, routePage } from "../../../../../common/js/general"; export default { - ...goPage("pages/component/input/checkbox/index/index") -} \ No newline at end of file + ...goPage("pages/component/input/checkbox/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/index/index.hml b/examples/showcase/src/main/js/default/pages/component/input/index/index.hml index ea121a277a73ac9a01b19c26934df69ea3973c75..e91c3b076617d060a3193751cc2fef60ecc76da3 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/index/index.hml @@ -13,26 +13,22 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/input/index/index.js b/examples/showcase/src/main/js/default/pages/component/input/index/index.js index 627fbb4e45f15608fdc25a430116efd58f3521e2..e8e2e2ed3d693f98751438f3c8f2b80eb69aaac2 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/input/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../common/js/general"; +import { goPage, routePage } from "../../../../common/js/general"; export default { - ...goPage("pages/component/index/formIndex/index"), - changeButton: routePage("pages/component/input/button/index/index").changePage, - changeCheckbox: routePage("pages/component/input/checkbox/index/index").changePage, - changeRadio:routePage("pages/component/input/radio/index/index").changePage -} \ No newline at end of file + ...goPage("pages/component/index/formIndex/index"), + changeButton: routePage("pages/component/input/button/index/index").changePage, + changeCheckbox: routePage("pages/component/input/checkbox/index/index").changePage, + changeRadio: routePage("pages/component/input/radio/index/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.css b/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.css index 08c2fa14765515f19597d0dff576319b798bef8a..3712436ad7b112a6e44ee5c0dab2e5e0547644ef 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.css +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.css @@ -104,4 +104,4 @@ margin-top: 20px; margin-left: 10px; flex-direction: column; -} \ No newline at end of file +} diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.hml b/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.hml index 2f8771a61748260666d37449549cf2673b56c999..d5921b9228a34f3bf5b2ec40217ff2fc28683979 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.hml @@ -13,58 +13,51 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用属性 - - - - -
-
- show -
-
- - -
-
-
- - - - 特有属性 - - - - -
- checked -
-
- - 值为{{show}} -
-
- - - -
- name -
-
- - 值为{{name}} -
-
- - -
\ No newline at end of file + + + + + + + + + 通用属性 + + + +
+
+ show +
+
+ + +
+
+
+ + + 特有属性 + + + +
+ checked +
+
+ + 值为{{ show }} +
+
+ + +
+ name +
+
+ + 值为{{ name }} +
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.js b/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.js index 67a93ed0bedd04b473cb37d906258d3d0f2bd705..4638e78d0a838457a67587adc3bee958a2c67e9c 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.js +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/attr/attr.js @@ -1,36 +1,36 @@ -/* - * Copyright (c) 2020 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import {goPage, routePage} from "../../../../../common/js/general"; +/* + * Copyright (c) 2020 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { goPage, routePage } from "../../../../../common/js/general"; export default { - data:{ - show:"false", - name:"show", - status:true - }, - ...goPage("pages/component/input/radio/index/index"), - changeShow:function() { - this.status = !this.status; - }, - showName:function(e) { - this.name = e.name; - }, - changeChecked:function(e) { - if(e.checked) { - this.show = "true"; - } else { - this.show = "false"; - } + data: { + show: "false", + name: "show", + status: true + }, + ...goPage("pages/component/input/radio/index/index"), + changeShow: function() { + this.status = !this.status; + }, + showName: function(e) { + this.name = e.name; + }, + changeChecked: function(e) { + if (e.checked) { + this.show = "true"; + } else { + this.show = "false"; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.css b/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.css index 3dea6313068b4da5aa46e544795e2ec1a0cc7b23..eb41b4fe88f30e42f8906d93c316aa1e3eb7895d 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.css +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.css @@ -134,4 +134,4 @@ top: 0px; width: 150px; height: 200px; -} \ No newline at end of file +} diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.hml b/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.hml index f9d8cadbe26c077930f0d2a95b50a0e5203438a6..84014c55f4463f78d2a705aa6db848d43c9660e0 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.hml @@ -13,51 +13,45 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用事件 - - - - -
-
- click - longpress - swipe -
-
- - {{name}} -
-
-
- - - - 特有事件 - - - - -
-
- change -
-
- - {{checked}} -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用事件 + + + +
+
+ click + longpress + swipe +
+
+ + {{ name }} +
+
+
+ + + 特有事件 + + + +
+
+ change +
+
+ + {{ checked }} +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.js b/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.js index 188f3e2f164fcfa7cc8b693e0ce1dd3276abde9a..885422c467307889c3cefa7b4e9e73298f117fbe 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.js +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/event/event.js @@ -12,24 +12,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../../common/js/general"; +import { goPage, routePage } from "../../../../../common/js/general"; export default { - data: { - name: "点击或长按", - checked: "触发change", - show: true - }, - ...goPage("pages/component/input/radio/index/index"), - clickEvent() { - this.name = "点击事件触发" - }, - longpressEvent() { - this.name = "长按事件触发"; - }, - swipeEvent(e) { - this.name = "swipe方向:" + e.direction; - }, - changeEvent(e) { - this.checked = "change触发"; - } -} \ No newline at end of file + data: { + name: "点击或长按", + checked: "触发change", + show: true + }, + ...goPage("pages/component/input/radio/index/index"), + clickEvent() { + this.name = "点击事件触发"; + }, + longpressEvent() { + this.name = "长按事件触发"; + }, + swipeEvent(e) { + this.name = "swipe方向:" + e.direction; + }, + changeEvent(e) { + this.checked = "change触发"; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.css b/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.css index 86615c91ff4ea7c1e70b4098b176d80b9f9e4d7c..e71ae21d08d41f482c3471ad321a03deb8cc5fbd 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.css +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.css @@ -39,4 +39,4 @@ width: 200px; height: 60px; margin-left: 130px; -} \ No newline at end of file +} diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.hml b/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.hml index 3d3fb4ef4c7380ed3b9294044077c1eea503ef3f..c9342c4dd92527df69fc6fc68a62b7c91a1199cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.hml @@ -13,37 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - radio - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + radio + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.js b/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.js index 5d8c7f1111fa46bddf802e4ef8db5219330aaccf..eba22c702f25b8a579b5356acbe9e1eef2e51465 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -export default { - goAttrs: routePage("pages/component/input/radio/attr/attr").changePage, - goStyle: routePage("pages/component/input/radio/style/style").changePage, - goEvent: routePage("pages/component/input/radio/event/event").changePage, - ...backPage("pages/component/input/index/index") -} \ No newline at end of file +import { backPage, routePage } from "../../../../../common/js/general"; +export default { + goAttrs: routePage("pages/component/input/radio/attr/attr").changePage, + goStyle: routePage("pages/component/input/radio/style/style").changePage, + goEvent: routePage("pages/component/input/radio/event/event").changePage, + ...backPage("pages/component/input/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.css b/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.css index c96f83071669b97da7c0154edff3daacd0d906db..ca9e3528b915b41ddcbc2a198ea940457fd8441e 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.css +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.css @@ -120,4 +120,4 @@ top: 0px; width: 150px; height: 200px; -} \ No newline at end of file +} diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.hml b/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.hml index 8b09356c41d4000a9fe10dd97cb9afbaa7cdcd58..b943ad900c35d1ff7d803a02b9da6e515472f0bd 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.hml +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.hml @@ -13,59 +13,56 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用样式 - - - - -
-
- 背景红色 - left为50 - top为50 -
- - - -
-
- - - -
-
- margin - height - width -
-
- -
-
-
- - - -
-
- border - padding -
-
- -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用样式 + + + +
+
+ 背景红色 + left为50 + top为50 +
+ + + +
+
+ + +
+
+ margin + height + width +
+
+ +
+
+
+ + +
+
+ border + padding +
+
+ +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.js b/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.js index 62c3a71a9a68aff5292cae55d5c71730d4402222..1ea73f584d91612e64f783ddadf4b6242287f723 100755 --- a/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.js +++ b/examples/showcase/src/main/js/default/pages/component/input/radio/style/style.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../../common/js/general"; -export default { - ...goPage("pages/component/input/radio/index/index") -} \ No newline at end of file +import { goPage, routePage } from "../../../../../common/js/general"; +export default { + ...goPage("pages/component/input/radio/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/index/index.hml b/examples/showcase/src/main/js/default/pages/component/list/index/index.hml index ca6f24598bea175aa88097e76ec9caf1b6b60587..ff8a4d6f86e4d3b1fb666e440f981df302bed079 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/index/index.hml @@ -13,39 +13,42 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - - list - - - - - - - - - - - list-item - - - - - - - - - \ No newline at end of file + + + + + + + + + + + list + + + + + + + list-item + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/index/index.js b/examples/showcase/src/main/js/default/pages/component/list/index/index.js index c488eb7a0b7f75c97a218a5c670e9c26e4e99ecf..8d30558c651730a290be5d241997a1c1784d1b89 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/index/index.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/containerIndex/index"), - changePage1: routePage("pages/component/list/list/index/index").changePage, - changePage2: routePage("pages/component/list/list-item/index/index").changePage -} \ No newline at end of file + ...backPage("pages/component/index/containerIndex/index"), + changePage1: routePage("pages/component/list/list/index/index").changePage, + changePage2: routePage("pages/component/list/list-item/index/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/index/index.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/index/index.hml index ff9b52cb7ecb1865f3e7f619f827296b98029f39..34038bc490db2aaaba07ebefc005c993917c5cf7 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/index/index.hml @@ -13,41 +13,35 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - list-item - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + list-item + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/index/index.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/index/index.js index 6e7e94e701434ec6a40f89c1b29993989b664118..805ba3e96c302a3288cf6c20b93f4d5c67dce162 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/list/index/index"), - changePage1: routePage("pages/component/list/list-item/indexAttr/index").changePage, - changePage2: routePage("pages/component/list/list-item/indexCommonStyle/index").changePage, - changePage4: routePage("pages/component/list/list-item/indexEvent/index").changePage -} \ No newline at end of file + ...backPage("pages/component/list/index/index"), + changePage1: routePage("pages/component/list/list-item/indexAttr/index").changePage, + changePage2: routePage("pages/component/list/list-item/indexCommonStyle/index").changePage, + changePage4: routePage("pages/component/list/list-item/indexEvent/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexAttr/index.hml index 232037f33e2cdd24c6c4cc87da9eab3d7595595e..e512ecba70cdec534a5e1edbc0b15a5ec1e40ecb 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexAttr/index.hml @@ -13,51 +13,55 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - list-item通用属性 - - - - - - - - show - - - - - - - - - if - - - - - - - - - for - - - - - - - + + + + + + + + + + list-item通用属性 + + + + + show + + + + + + if + + + + + + for + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexAttr/index.js index 2619959fb55edcbaaa8c2c965f1c009f1cbcb693..5318f51c08a8e6df29a333705c53bc2ecd5f9d6c 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexAttr/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/list/list-item/index/index"), - changePage1: routePage("pages/component/list/list-item/item8/item8").changePage, - changePage2: routePage("pages/component/list/list-item/item9/item9").changePage, - changePage3: routePage("pages/component/list/list-item/item12/item12").changePage, -} + ...backPage("pages/component/list/list-item/index/index"), + changePage1: routePage("pages/component/list/list-item/item8/item8").changePage, + changePage2: routePage("pages/component/list/list-item/item9/item9").changePage, + changePage3: routePage("pages/component/list/list-item/item12/item12").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexCommonStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexCommonStyle/index.hml index 36e74ae09a8f77d061ee200110b8ce7454919fcc..f0797cb8424c246fa3434db669ca5db25ecf99af 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexCommonStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexCommonStyle/index.hml @@ -13,64 +13,60 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - list-item通用样式 - - - - - - - - 背景色 - - - height - - - width - - - - - - - - - - - border - - - padding - - - - - - - - - - - display - - - - - - - \ No newline at end of file + + + + + + + + + + list-item通用样式 + + + + + 背景色 + height + width + + + + + + + border + padding + + + + + + + display + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexCommonStyle/index.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexCommonStyle/index.js index e7d780527be44becc0788a1df530513a1759bceb..71263468fa9b221d59f50735121e3aee0c8330b2 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexCommonStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexCommonStyle/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/list/list-item/index/index"), - changePage1: routePage("pages/component/list/list-item/item3/item3").changePage, - changePage2: routePage("pages/component/list/list-item/item5/item5").changePage, - changePage3: routePage("pages/component/list/list-item/item11/item11").changePage -} \ No newline at end of file + ...backPage("pages/component/list/list-item/index/index"), + changePage1: routePage("pages/component/list/list-item/item3/item3").changePage, + changePage2: routePage("pages/component/list/list-item/item5/item5").changePage, + changePage3: routePage("pages/component/list/list-item/item11/item11").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexEvent/index.hml index 24644c93e5c8983dfdf482ad7a7b332118331465..f3ea4bccfea2b4fb5f061611a5ab5a7d906e37d2 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexEvent/index.hml @@ -13,36 +13,34 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - list-item通用事件 - - - - - - - - click - - - longpress - - - - - - - \ No newline at end of file + + + + + + + + + + list-item通用事件 + + + + + click + longpress + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexEvent/index.js index f2201d7fd04700c6229d1c61be33054281a61ea3..fc24e2837bc39336e714716917aa6e048aed0bc3 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/indexEvent/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/list/list-item/index/index"), - changePage1: routePage("pages/component/list/list-item/item1/item1").changePage -} \ No newline at end of file + ...backPage("pages/component/list/list-item/index/index"), + changePage1: routePage("pages/component/list/list-item/item1/item1").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.css b/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.css index 99437a67e041e2ffe0c67e641a3d18c1be56810e..31facbbf1dbee0a1211bfa20240353be167e7493 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.css @@ -24,6 +24,6 @@ height: 100px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; text-overflow: ellipsis; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.hml index 4ec26a7c3d160d4b12f0ff2617218905db7df809..cff4c0a4687d1a6b5bba9149a80dec3565fe0ab2 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.hml @@ -13,27 +13,23 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - {{text1}} - - - - - 矩形为list组件 - - - 蓝色区域为list-item - - - 点击或长按list-item内部任意位置 - - \ No newline at end of file + + + + + + + + + {{ text1 }} + + + + 矩形为list组件 + 蓝色区域为list-item + 点击或长按list-item内部任意位置 + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.js index e9f092ecca39d1f93b4cf03721f623c83e04730b..67b16cfa217859b0754898082e82f74c53696a40 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item1/item1.js @@ -12,17 +12,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "" - }, - ...backPage("pages/component/list/list-item/indexEvent/index"), - changePage1: routePage("pages/component/list/list-item/item1/item1").changePage, - clickFunc: function () { - this.text1 = "点击事件被触发"; - }, - longPressFunc: function () { - this.text1 = "长按事件被触发"; - } -} \ No newline at end of file + data: { + text1: "" + }, + ...backPage("pages/component/list/list-item/indexEvent/index"), + changePage1: routePage("pages/component/list/list-item/item1/item1").changePage, + clickFunc: function() { + this.text1 = "点击事件被触发"; + }, + longPressFunc: function() { + this.text1 = "长按事件被触发"; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.css b/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.css index 3e1faaad0bb2d9378f5dc9fc07697252b9920f40..ed21126c971291188616885d55751c55a4ffb00b 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.css @@ -17,7 +17,7 @@ height: 100px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; border-width: 1px; border-color: red; text-overflow: ellipsis; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.hml index 69607440e756a6cefd6ec68917805b0b0f5b7fe7..8f497509401739036eda0c8435ef3a68db203da9 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.hml @@ -13,28 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - abcd - - - - - efgh - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + abcd + + + efgh + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.js index 4741481f644a2595136e3f215fab1ff287e5f840..30d86e81f7ba09a847ca5d3331a52cc8294ac2e0 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item11/item11.js @@ -12,22 +12,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; var displayData = ["flex", "none"]; export default { - data: { - text1: "item-abcd设置display,点击按钮切换display", - status: true, - displayValue: displayData[0] - }, - changeDisplay: function () { - if (this.status == true) { - this.displayValue = displayData[1]; - this.status = false; - } else { - this.displayValue = displayData[0]; - this.status = true; - } - }, - ...backPage("pages/component/list/list-item/indexCommonStyle/index") -} \ No newline at end of file + data: { + text1: "item-abcd设置display,点击按钮切换display", + status: true, + displayValue: displayData[0] + }, + changeDisplay: function() { + if (this.status == true) { + this.displayValue = displayData[1]; + this.status = false; + } else { + this.displayValue = displayData[0]; + this.status = true; + } + }, + ...backPage("pages/component/list/list-item/indexCommonStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.css b/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.css index b21bf20090b15a8e31207f1d85ea7364aae3df08..a293331b8906ce7227f2515553068e1d1788f7cf 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.css @@ -18,5 +18,5 @@ margin-top: 10px; margin-left: 10px; text-overflow: ellipsis; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.hml index 35bbd78ccdb31298494813e3cc659d7365f3555c..3ee0ca3b7418bdaef5fee7add68dff8a846ccaf5 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.hml @@ -13,21 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - {{$idx}}--{{$item}} - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + {{ $idx }}--{{ $item }} + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.js index 82e48b199f894623b71d2108d392cb729368716f..64843f7a6b86dbd326dfb67f69c57194ccd2332a 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item12/item12.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - listData:["a", "b", "c", "d"], - text1: "for类型list-item包含4个item" - }, - ...backPage("pages/component/list/list-item/indexAttr/index") -} \ No newline at end of file + data: { + listData: ["a", "b", "c", "d"], + text1: "for类型list-item包含4个item" + }, + ...backPage("pages/component/list/list-item/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.css b/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.css index 26bc10183260a8fbe326d7201ab058f37e76c9fd..c56bf1d359b8bda1753a43d01a977c8582bb2f9a 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.css @@ -17,7 +17,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .stack { diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.hml index 26918bd41fed193534aefaf78bb19bd0d5dcc890..77136770315f596302a8a2a41534a71c96a4eafd 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.hml @@ -13,25 +13,20 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - - - {{text1}} - - - {{text2}} - - \ No newline at end of file + + + + + + + + + + + + {{ text1 }} + + + {{ text2 }} + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.js index 68ee90617c217eb6d06539e0b5da8a268b2e48a1..213c051b83f94ce63bdffa616000e16f0ddba0d3 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item3/item3.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "上面list有3个item", - text2: "item背景和宽高已设置" - }, - ...backPage("pages/component/list/list-item/indexCommonStyle/index") -} \ No newline at end of file + data: { + text1: "上面list有3个item", + text2: "item背景和宽高已设置" + }, + ...backPage("pages/component/list/list-item/indexCommonStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.css b/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.css index 2f4a3cf21e118ee18c063748b20f39d4c74583ba..614181950b39483e95b624713912c93e338b85bb 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.css @@ -17,6 +17,6 @@ height: 100px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; text-overflow: ellipsis; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.hml index b24bb1df31a805007e7ce54a8943c3ae2449145c..a5c6305c7b1bd0852aafb19c551e5127832836a3 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.hml @@ -13,26 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - abcd - - - - - efgh - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + abcd + + + efgh + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.js index a1764307f6250b96212d475826376789c769338d..5a5622feb921c084109ed08f16b636162b02b2ec 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item5/item5.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "list-item的border边框和padding内边距" - }, - ...backPage("pages/component/list/list-item/indexCommonStyle/index") -} \ No newline at end of file + data: { + text1: "list-item的border边框和padding内边距" + }, + ...backPage("pages/component/list/list-item/indexCommonStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.css b/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.css index f1df549c329f623ee0e06133acf8217df95ee47b..a98e4c97ba8f9ece81f222a10e24ec3d6f6599e0 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.css @@ -15,5 +15,5 @@ .text { width: 280px; height: 50px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.hml index 384a2578f5a7b1a9fa5a1c0458545b37b586f0e4..fb8954bbfaf7274b201c573a71834b87a0739fe8 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.hml @@ -13,28 +13,41 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - item-show - - - - - item-common - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + item-show + + + item-common + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.js index 1abd8a5f3952c6ce5f9956c7b69fe07724c0c3e5..eeec64bdcbebd51413cb9c09c3ae93a101b26937 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item8/item8.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {changeStatus} from "../../../../../common/js/list" +import { backPage, routePage } from "../../../../../common/js/general"; +import { changeStatus } from "../../../../../common/js/list"; export default { - data: { - text1: "点击按钮改变状态", - status: true - }, - ...backPage("pages/component/list/list-item/indexAttr/index"), - changeStatus: changeStatus -} \ No newline at end of file + data: { + text1: "点击按钮改变状态", + status: true + }, + ...backPage("pages/component/list/list-item/indexAttr/index"), + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.css b/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.hml b/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.hml index b65519e728c0aaec9ff4e0043368a9a409ac854d..d4bcd9455b94ba954bbd19d58cda2b87b0a9782b 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.hml @@ -13,28 +13,41 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - item-if - - - - - item-common - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + item-if + + + item-common + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.js b/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.js index 101d9323f988b48fd67be307d13cbfef03eab8bf..d4432ef5e3562d324731153c675695413ea36f02 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list-item/item9/item9.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {changeStatus} from "../../../../../common/js/list" +import { backPage, routePage } from "../../../../../common/js/general"; +import { changeStatus } from "../../../../../common/js/list"; export default { - data: { - text1: "点击按钮改变状态", - status: true - }, - changeStatus: changeStatus, - ...backPage("pages/component/list/list-item/indexAttr/index") -} \ No newline at end of file + data: { + text1: "点击按钮改变状态", + status: true + }, + changeStatus: changeStatus, + ...backPage("pages/component/list/list-item/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/index/index.hml b/examples/showcase/src/main/js/default/pages/component/list/list/index/index.hml index 050cafb968bac644f041d8eb267e9913da04cd41..0ee0255a17a4fdba4558fc63a763d1b2803ef00f 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/index/index.hml @@ -13,49 +13,42 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - list - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + list + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/index/index.js b/examples/showcase/src/main/js/default/pages/component/list/list/index/index.js index 9f6e4e084743567edf1f9b397db4ea2f6a4340ea..3574e2b981bac7dba69389690d132611034509a8 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/index/index.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/list/index/index"), - changePage1: routePage("pages/component/list/list/indexAttr/index").changePage, - changePage2: routePage("pages/component/list/list/indexCommonStyle/index").changePage, - changePage3: routePage("pages/component/list/list/indexSpecStyle/index").changePage, - changePage4: routePage("pages/component/list/list/indexEvent/index").changePage, - changePage5: routePage("pages/component/list/list/indexOperation/index").changePage -} \ No newline at end of file + ...backPage("pages/component/list/index/index"), + changePage1: routePage("pages/component/list/list/indexAttr/index").changePage, + changePage2: routePage("pages/component/list/list/indexCommonStyle/index").changePage, + changePage3: routePage("pages/component/list/list/indexSpecStyle/index").changePage, + changePage4: routePage("pages/component/list/list/indexEvent/index").changePage, + changePage5: routePage("pages/component/list/list/indexOperation/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/list/list/indexAttr/index.hml index 33f1a0465146e2a37df019bdd089ba89d3036606..cc9c5e2bb274cffbae3f139f3d7a951e036b2233 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/indexAttr/index.hml @@ -13,53 +13,56 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - list通用属性 - - - - - - - - show - - - - - - - - - if - - - - - - - - - for - - - - - - - - - \ No newline at end of file + + + + + + + + + + list通用属性 + + + + + show + + + + + + if + + + + + + for + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/list/list/indexAttr/index.js index 5d9b87dbd4fc31eb8cebef2efc843f1ba8282d3e..a3ef22d713d454c2740266dda3cea7b1731e668e 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/indexAttr/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/list/list/index/index"), - changePage1: routePage("pages/component/list/list/list8/list8").changePage, - changePage2: routePage("pages/component/list/list/list9/list9").changePage, - changePage3: routePage("pages/component/list/list/list12/list12").changePage -} \ No newline at end of file + ...backPage("pages/component/list/list/index/index"), + changePage1: routePage("pages/component/list/list/list8/list8").changePage, + changePage2: routePage("pages/component/list/list/list9/list9").changePage, + changePage3: routePage("pages/component/list/list/list12/list12").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/indexCommonStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/list/list/indexCommonStyle/index.hml index 95f8fcfa62c77cfe52b588554fc18e20f346b190..afa4ddae8a86b38cb58a9d997fdfadd7912c0153 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/indexCommonStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/indexCommonStyle/index.hml @@ -13,101 +13,89 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - list通用样式 - - - - - - - - 背景色 - - - left - - - top - - - - - - - - - - - margin - - - height - - - width - - - - - - - - - - - border - - - padding - - - - - - - - - - - margin-left - - - margin-top - - - margin-right - - - margin-bottom - - - - - - - - - - - display - - - - - - - \ No newline at end of file + + + + + + + + + + list通用样式 + + + + + 背景色 + left + top + + + + + + + margin + height + width + + + + + + + border + padding + + + + + + + margin-left + margin-top + margin-right + margin-bottom + + + + + + + display + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/indexCommonStyle/index.js b/examples/showcase/src/main/js/default/pages/component/list/list/indexCommonStyle/index.js index 06af8012acb37be8799f948fcb7e685fad1cde9c..aeef1c33020cbc227503c20ca07c01a88c0461b3 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/indexCommonStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/indexCommonStyle/index.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/list/list/index/index"), - changePage1: routePage("pages/component/list/list/list3/list3").changePage, - changePage2: routePage("pages/component/list/list/list4/list4").changePage, - changePage3: routePage("pages/component/list/list/list5/list5").changePage, - changePage4: routePage("pages/component/list/list/list10/list10").changePage, - changePage5: routePage("pages/component/list/list/list11/list11").changePage -} \ No newline at end of file + ...backPage("pages/component/list/list/index/index"), + changePage1: routePage("pages/component/list/list/list3/list3").changePage, + changePage2: routePage("pages/component/list/list/list4/list4").changePage, + changePage3: routePage("pages/component/list/list/list5/list5").changePage, + changePage4: routePage("pages/component/list/list/list10/list10").changePage, + changePage5: routePage("pages/component/list/list/list11/list11").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/list/list/indexEvent/index.hml index 25f06a440191d37d9c176647bec6427f937f2f87..d031773fd9398a63ffc15d7e93471cfcc53c89f4 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/indexEvent/index.hml @@ -13,56 +13,51 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - list通用事件 - - - - - - - - click - - - swipe - - - - - - - - - - list特有事件 - - - - - - - - scrollend - - - - - - - - - \ No newline at end of file + + + + + + + + + + list通用事件 + + + + + click + swipe + + + + + + list特有事件 + + + + + scrollend + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/list/list/indexEvent/index.js index 556a684859cdf49aa2dba5a1f9f3c7fc730d091f..20a0f073f1db69ab22202c34774e5e14cee28b90 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/indexEvent/index.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/list/list/index/index"), - changePage1: routePage("pages/component/list/list/list1/list1").changePage, - changePage2: routePage("pages/component/list/list/list2/list2").changePage -} \ No newline at end of file + ...backPage("pages/component/list/list/index/index"), + changePage1: routePage("pages/component/list/list/list1/list1").changePage, + changePage2: routePage("pages/component/list/list/list2/list2").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/indexOperation/index.hml b/examples/showcase/src/main/js/default/pages/component/list/list/indexOperation/index.hml index d68d511840639517b121849c14ef6111b6fa1005..b7cbd25185803f7229e969e96c69426281385823 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/indexOperation/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/indexOperation/index.hml @@ -13,42 +13,44 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - list特有效果 - - - - - - - - list数组对象方法 - - - - - - - - - - - list组件方法 - - - - - - - + + + + + + + + + list特有效果 + + + + + list数组对象方法 + + + + + + + list组件方法 + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/indexOperation/index.js b/examples/showcase/src/main/js/default/pages/component/list/list/indexOperation/index.js index b283a087041782746d09be63dfa7a79b553ea28c..928ed8bc7fbb299ddd68e4b2148049d40e399478 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/indexOperation/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/indexOperation/index.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/list/list/index/index"), - changePage1: routePage("pages/component/list/list/list7/list7").changePage, - changePage2: routePage("pages/component/list/list/list13/list13").changePage -} \ No newline at end of file + ...backPage("pages/component/list/list/index/index"), + changePage1: routePage("pages/component/list/list/list7/list7").changePage, + changePage2: routePage("pages/component/list/list/list13/list13").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/indexSpecStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/list/list/indexSpecStyle/index.hml index b8999fece34aa2c26f28f66796a8707ed54976f4..b729acd896f679f6f2cacaab2babf82af74befcd 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/indexSpecStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/indexSpecStyle/index.hml @@ -13,38 +13,35 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - list特有样式 - - - - - - - - flex-direction: - - - row - - - - - - - - - \ No newline at end of file + + + + + + + + + + list特有样式 + + + + + flex-direction: + row + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/indexSpecStyle/index.js b/examples/showcase/src/main/js/default/pages/component/list/list/indexSpecStyle/index.js index 64e4ee87b855263b0416940b0e5f20236901f0e5..b92445aecf43138ded62dcdde7d58bd3521c9e33 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/indexSpecStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/indexSpecStyle/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/list/list/index/index"), - changePage1: routePage("pages/component/list/list/list6/list6").changePage -} \ No newline at end of file + ...backPage("pages/component/list/list/index/index"), + changePage1: routePage("pages/component/list/list/list6/list6").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.css b/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.hml index 56fc60e3bac40e5265ce730373c94e7f5ec86b2f..e8e5626873f762bf4d873b53b4965208a359faf7 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.hml @@ -13,30 +13,26 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - 矩形为list组件 - - - - - 请在list内部点击或滑动 - - - - - {{text1}} - - - - - \ No newline at end of file + + + + + + + + 矩形为list组件 + + + 请在list内部点击或滑动 + + + + {{ text1 }} + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.js b/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.js index eed9575e0397369855408af4f08a851724c4c687..19cefaa8b99db6cf87906b886c1f8f81113af5e1 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list1/list1.js @@ -12,16 +12,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "" - }, - ...backPage("pages/component/list/list/indexEvent/index"), - clickFunc: function () { - this.text1 = "点击事件已触发"; - }, - listswipe: function(e) { - this.text1 = "swipe方向:" + e.direction; - } -} \ No newline at end of file + data: { + text1: "" + }, + ...backPage("pages/component/list/list/indexEvent/index"), + clickFunc: function() { + this.text1 = "点击事件已触发"; + }, + listswipe: function(e) { + this.text1 = "swipe方向:" + e.direction; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.css b/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.css index f2429f853b67da3b163aa6ea246defabc22e9efd..c7cfc7a47ce920b36b20b760ce70582389752c0e 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.css @@ -17,7 +17,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; border-width: 1px; border-color: red; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.hml index 160c58e77e2256893bd686369b4ec235b1bdaec9..2ed1b451c6a79c457574235ce06e42426ff35907 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.hml @@ -13,24 +13,33 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.js b/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.js index adafd414e9f73493a2edcd759ba1a1d4f1249f46..57f1efdc10cfd2cc6a34f70b0b6b125693e1d88f 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list10/list10.js @@ -12,19 +12,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "上面绿块为list", - text2: "margin已设置", - text3: "宽高已设置" - }, - ...backPage("pages/component/list/list/indexCommonStyle/index"), - changeStatus: function () { - if (this.status == true) { - this.status = false; - } else { - this.status = true; - } + data: { + text1: "上面绿块为list", + text2: "margin已设置", + text3: "宽高已设置" + }, + ...backPage("pages/component/list/list/indexCommonStyle/index"), + changeStatus: function() { + if (this.status == true) { + this.status = false; + } else { + this.status = true; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.css b/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.css index f2429f853b67da3b163aa6ea246defabc22e9efd..c7cfc7a47ce920b36b20b760ce70582389752c0e 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.css @@ -17,7 +17,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; border-width: 1px; border-color: red; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.hml index 3b76bacde30d856dbfa46ad515e74b2a74c16982..df0c9740af75d80f00265fd678cce55d621aaf26 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.hml @@ -13,26 +13,24 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.js b/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.js index a3ea615473eaac286ee4941d5de582fa1925041c..51fa2acb16e68f7cf53ec41e726381c135ecdd9f 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list11/list11.js @@ -12,20 +12,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "上面绿块为list", - text2: "点击按钮切换display", - text3: "支持flex/none", - display: "flex" - }, - ...backPage("pages/component/list/list/indexCommonStyle/index"), - changeDisplay: function () { - if (this.display === "flex") { - this.display = "none"; - } else { - this.display = "flex"; - } + data: { + text1: "上面绿块为list", + text2: "点击按钮切换display", + text3: "支持flex/none", + display: "flex" + }, + ...backPage("pages/component/list/list/indexCommonStyle/index"), + changeDisplay: function() { + if (this.display === "flex") { + this.display = "none"; + } else { + this.display = "flex"; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.css b/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.css index f9ba36209c11eabff08e98398256c9f6d831ea20..092642b1c38cf60a70ca3c682daf3a0c95877480 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.hml index ecd62085b37f5f0047ffca9b9f8810dff9c5c6bd..e32e823b9c39bbd003dbf2aeaf2af3c386d56d51 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.hml @@ -13,18 +13,23 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.js b/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.js index bed42ecd4ea75cf16f34730d67f1be5bd413e12d..d957428b988f90df66dfb32b57e080b4d69471f1 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list12/list12.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - listData:["a", "b", "c", "d"], - text1: "for类型list包含4个list" - }, - ...backPage("pages/component/list/list/indexAttr/index") -} \ No newline at end of file + data: { + listData: ["a", "b", "c", "d"], + text1: "for类型list包含4个list" + }, + ...backPage("pages/component/list/list/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.css b/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.css index 70a7105b60eee17bae65d69855ed6a45ea0d0a6e..231d8ffafe67178688a438788a5a129bbcf2a86e 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.css @@ -18,4 +18,4 @@ margin-top: 10px; margin-left: 10px; font-size: 30; -} \ No newline at end of file +} diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.hml index f563ba0d548b1e996a3295bd1485e7ed12e9fafb..bee344f7b181d08bb27961497bdd10e206dac932 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.hml @@ -13,22 +13,22 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - +
+ + + - - - - item-{{$idx}} - + + + item-{{ $idx }} - - - 点击button回到item-2 - -
\ No newline at end of file + + 点击button回到item-2 +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.js b/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.js index fdd3890c56e327bcf36d8a9faf933b3353463757..104a98d6aa9c936fa01b098e23da4d668ac7e448 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list13/list13.js @@ -15,22 +15,13 @@ var router = require("@system.router"); module.exports = { data: { - listData: [ - "a", - "b", - "c", - "d", - "e", - "f", - "g", - "h" - ] + listData: ["a", "b", "c", "d", "e", "f", "g", "h"] }, - backMain: function () { - router.replace({ uri: "pages/index/index" }); + backMain: function() { + router.replace({ uri: "pages/index/index" }); }, - backSuperior: function () { - router.replace({ uri: "pages/component/list/list/indexOperation/index" }); + backSuperior: function() { + router.replace({ uri: "pages/component/list/list/indexOperation/index" }); }, listClick() { router.replace({ uri: "pages/component/list/list/list13/list13" }); @@ -41,13 +32,13 @@ module.exports = { console.log("list onscrollend is triggered, state=" + endState); }, clickscrollTo() { - this.$refs.listObj.scrollTo({index:2}); + this.$refs.listObj.scrollTo({ index: 2 }); }, onInit() { console.log("on init called..."); }, onShow() { - this.$refs.listObj.scrollTo({index:3}); + this.$refs.listObj.scrollTo({ index: 3 }); console.log("on Ready called..."); - }, + } }; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.css b/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.hml index 8b839a052eebfdee6c05f50119fc34572f12d7ce..6b20ea78d84f6d60660424124ae734292cf5d39c 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.hml @@ -13,32 +13,23 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - 当前为list组件 - - - - - 滑动到底部 - - - - - - - {{text1}} - - - - - \ No newline at end of file + + + + + + + + 当前为list组件 + + + 滑动到底部 + + + + + {{ text1 }} + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.js b/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.js index 327810f0d0c7b3a8c4711cb575a342f591092022..399542900a1348924539d7dc885eb9162b817d50 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list2/list2.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "scrollend未触发" - }, - ...backPage("pages/component/list/list/indexEvent/index"), - scrollendFunc: function () { - this.text1 = "scrollend已触发"; - } -} \ No newline at end of file + data: { + text1: "scrollend未触发" + }, + ...backPage("pages/component/list/list/indexEvent/index"), + scrollendFunc: function() { + this.text1 = "scrollend已触发"; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.css b/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.css index 26bc10183260a8fbe326d7201ab058f37e76c9fd..c56bf1d359b8bda1753a43d01a977c8582bb2f9a 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.css @@ -17,7 +17,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .stack { diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.hml index b44fd630fc8a08b5c674443beac2cf3a0db001dc..f2fc1750adf754d9dd20f6ae019cf051fc34a9a5 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.hml @@ -13,21 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - {{text1}} - - - {{text2}} - - \ No newline at end of file + + + + + + + + + + {{ text1 }} + + + {{ text2 }} + + diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.js b/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.js index c97bc34bba86be72469cebc6860f8b83b249b2d7..e0065b912aee0f766cd49dd0b3d84458f05e7d35 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list3/list3.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "上面绿块为list", - text2: "背景距离已设置" - }, - ...backPage("pages/component/list/list/indexCommonStyle/index") -} \ No newline at end of file + data: { + text1: "上面绿块为list", + text2: "背景距离已设置" + }, + ...backPage("pages/component/list/list/indexCommonStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.css b/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.css index f2429f853b67da3b163aa6ea246defabc22e9efd..c7cfc7a47ce920b36b20b760ce70582389752c0e 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.css @@ -17,7 +17,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; border-width: 1px; border-color: red; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.hml index dbd81456f9b1a835e4a5ca68ce7846e8548709a7..a263593dab7037de30c183f0cd23760f1e745a43 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.hml @@ -13,24 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.js b/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.js index 30620077cc6a995535be821b252ab8d56d6865d5..f87f2ba06c6a2c67b27122ad1170927f24bc91fb 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list4/list4.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "上面绿块为list", - text2: "margin已设置", - text3: "宽高已设置" - }, - ...backPage("pages/component/list/list/indexCommonStyle/index") -} \ No newline at end of file + data: { + text1: "上面绿块为list", + text2: "margin已设置", + text3: "宽高已设置" + }, + ...backPage("pages/component/list/list/indexCommonStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.css b/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.hml index cd3c4ecfe0bcf0299e9e98a41249762f161d408f..f618c7949e68f473a73c10ddbfe7550e204540fb 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.hml @@ -13,22 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.js b/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.js index 8f0d6bf6e477475e208dade667b4c918316464e1..2fba3be0e5bb1d90327ebfe6a482a38600ee35f1 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list5/list5.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "内边距和边框" - }, - ...backPage("pages/component/list/list/indexCommonStyle/index") -} \ No newline at end of file + data: { + text1: "内边距和边框" + }, + ...backPage("pages/component/list/list/indexCommonStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.css b/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.hml index 73a79202998040197dab7f48b45098bf08b2d400..9ed92e176f8034f063f318c0b7e9d73e2f694e1b 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.hml @@ -13,40 +13,41 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
- - {{text1}} - -
\ No newline at end of file +
+ + + + + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.js b/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.js index 0055fd0ec8e664155d4ec8f2cb0160c3208275b2..1e4c4c5fd2e247cd165b0e619cd35accd3ee8d76 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list6/list6.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "div方块横向排列" - }, - ...backPage("pages/component/list/list/indexSpecStyle/index") -} \ No newline at end of file + data: { + text1: "div方块横向排列" + }, + ...backPage("pages/component/list/list/indexSpecStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list7/list7.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list7/list7.hml index f7e2bae2b4fe2784286c134e6b78eedaed903e31..104ebc365a8765160363401ce3a172555ef40c9e 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list7/list7.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list7/list7.hml @@ -13,30 +13,26 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - {{$item}}--{{$idx}} - - - - - - - - - - - - - - - -
\ No newline at end of file +
+ + + + + + + {{ $item }}--{{ $idx }} + + + + + + + + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list7/list7.js b/examples/showcase/src/main/js/default/pages/component/list/list/list7/list7.js index 7cbaa22fae787a6fe23309fc689d2516fa774cf0..e21279b17059bae27123645bc4baa7ac41b4f373 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list7/list7.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list7/list7.js @@ -12,34 +12,30 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - listData: [ - "text组件b", - "text组件c", - "text组件d" - ] - }, - ...backPage("pages/component/list/list/indexOperation/index"), - pushItem: function () { - console.log("push an item."); - this.listData.push("text组件z"); - }, - popItem: function () { - console.log("pop an item."); - this.listData.pop(); - }, - shiftItem: function () { - console.log("shift an item."); - this.listData.shift(); - }, - unshiftItem: function () { - console.log("unshift an item."); - this.listData.unshift("text组件a"); - }, - spliceItem: function () { - console.log("splice items."); - this.listData.splice(0, 1, "text组件x", "text组件y"); - } -} \ No newline at end of file + data: { + listData: ["text组件b", "text组件c", "text组件d"] + }, + ...backPage("pages/component/list/list/indexOperation/index"), + pushItem: function() { + console.log("push an item."); + this.listData.push("text组件z"); + }, + popItem: function() { + console.log("pop an item."); + this.listData.pop(); + }, + shiftItem: function() { + console.log("shift an item."); + this.listData.shift(); + }, + unshiftItem: function() { + console.log("unshift an item."); + this.listData.unshift("text组件a"); + }, + spliceItem: function() { + console.log("splice items."); + this.listData.splice(0, 1, "text组件x", "text组件y"); + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.css b/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.hml index dce165290db7962aa3fc05ab8e648baf8a0d69b0..b838abdd59be872c511dcf629cb3f5f0a5810140 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.hml @@ -13,20 +13,29 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.js b/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.js index 003d2871d24d7bfac51d9ed35c8b4064017b0454..4a7332ac84786512ae7422f764663eb8db48ae90 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list8/list8.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {changeStatus} from "../../../../../common/js/list" +import { backPage, routePage } from "../../../../../common/js/general"; +import { changeStatus } from "../../../../../common/js/list"; export default { - data: { - text1: "点击按钮改变状态", - status: true - }, - ...backPage("pages/component/list/list/indexAttr/index"), - changeStatus: changeStatus -} \ No newline at end of file + data: { + text1: "点击按钮改变状态", + status: true + }, + ...backPage("pages/component/list/list/indexAttr/index"), + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.css b/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.css +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.hml b/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.hml index ed52ea1f253a30d5353144158bb669bb7fb1bcca..c2719198509a857f1bce2e1eaddc525ff24c77b2 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.hml +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.hml @@ -13,20 +13,29 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.js b/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.js index c2e96f3772ae88643fae47b793a098c805e38153..3f83ce54271f1b2fd9b9199b08ceec743c3d120f 100755 --- a/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.js +++ b/examples/showcase/src/main/js/default/pages/component/list/list/list9/list9.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {changeStatus} from "../../../../../common/js/list" +import { backPage, routePage } from "../../../../../common/js/general"; +import { changeStatus } from "../../../../../common/js/list"; export default { - data: { - text1: "点击按钮改变状态", - status: true - }, - changeStatus: changeStatus, - ...backPage("pages/component/list/list/indexAttr/index") -} \ No newline at end of file + data: { + text1: "点击按钮改变状态", + status: true + }, + changeStatus: changeStatus, + ...backPage("pages/component/list/list/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.css b/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.css index 9483c19f1491aa4ced879f2e0f38c9f041d905f2..b75795926564523e6f57f96d03ba41eed5a36cb9 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.css +++ b/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.css @@ -38,11 +38,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -51,7 +51,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .text-big { @@ -59,7 +59,7 @@ height: 70px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-attribute { @@ -88,4 +88,4 @@ height: 100px; width: 200px; flex-direction: column; -} \ No newline at end of file +} diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.hml b/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.hml index 5f807e67788627340d8b444baebbc6483544bde0..111945a1fb4846a4f362e87e1f2f49a534948842 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.hml +++ b/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.hml @@ -13,53 +13,41 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用属性 - - - - -
- -
-
- - if 标签 if status, Hello ACE - - - 如果点击if按钮,会占用上面文字滚动区域 - -
-
- -
- -
-
- - 显示文字abcedfghijklmn - -
-
- -
- -
-
- - {{$idx}} -- {{$item}} - -
-
- - -
\ No newline at end of file + + + + + + + + + 通用属性 + + + +
+ +
+
+ if 标签 if status, Hello ACE + 如果点击if按钮,会占用上面文字滚动区域 +
+
+ +
+ +
+
+ 显示文字abcedfghijklmn +
+
+ +
+ +
+
+ {{ $idx }} -- {{ $item }} +
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.js b/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.js index cafabf411056b2383c468f91b4cadd848c7a650a..061c2afe23ab1340ff2b66429338d1607c7f6436 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.js +++ b/examples/showcase/src/main/js/default/pages/component/marquee/attr/attr.js @@ -12,18 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../common/js/general"; -import {changeStatus, changeIfStatus} from "../../../../common/js/marquee" +import { goPage, routePage } from "../../../../common/js/general"; +import { changeStatus, changeIfStatus } from "../../../../common/js/marquee"; export default { data: { status: true, ifstatus: true, - marqueefor: [ - "1.marquee测试for标签,abcdefg", - "2.marquee测试for标签,abcdefg" - ] + marqueefor: ["1.marquee测试for标签,abcdefg", "2.marquee测试for标签,abcdefg"] }, ...goPage("pages/component/marquee/index/index"), changeStatus: changeStatus, changeIfStatus: changeIfStatus -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.css b/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.css index dad1a7ac2314354c3b803fcc17ca8834f3308f31..eb7dde22dfc16e727f831c1ab85e5a1dd6ce04e4 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.css +++ b/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.css @@ -38,11 +38,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -51,7 +51,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-three { @@ -126,13 +126,13 @@ } .show { - opacity:1; + opacity: 1; border-width: 5px; border-color: #0000ff; - border-radius:5px; - padding:10px; + border-radius: 5px; + padding: 10px; width: 150px; height: 50px; background-color: red; margin-left: 10px; -} \ No newline at end of file +} diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.hml b/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.hml index e5e19e5cb84dba6199f93c00bde1677ea82fdf1a..e1658064e1d4956d0636414e2dd48cc8fd1f8475 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.hml +++ b/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.hml @@ -14,20 +14,10 @@ limitations under the License. --> - + - - + + @@ -36,12 +26,12 @@ limitations under the License.
-
+
背景红色 left为50 top为50
- + show-text
@@ -49,46 +39,39 @@ limitations under the License.
-
+
margin为40 height为60 width为100
-
- show-text +
+ show-text
-
+
border padding
-
- show-text +
+ show-text
-
+
display - {{displayVal}} + {{ displayVal }}
-
- display val is flex +
+ display val is flex
- - \ No newline at end of file + + diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.js b/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.js index f7cdbbf4cf16063c22ed04d76ba3a381fda27f4d..e5eb79405ce7442ecd9c52993dcd29a6af6af528 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.js +++ b/examples/showcase/src/main/js/default/pages/component/marquee/commonStyle/commonStyle.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../common/js/general"; +import { goPage, routePage } from "../../../../common/js/general"; export default { data: { displayVal: "flex", @@ -28,4 +28,4 @@ export default { } }, ...goPage("pages/component/marquee/index/index") -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/event/event.css b/examples/showcase/src/main/js/default/pages/component/marquee/event/event.css index ef7c8994a34fec464bdc1f51b334527e175d7d45..d396d80c02a86e399018ba26cd431d70803134fd 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/event/event.css +++ b/examples/showcase/src/main/js/default/pages/component/marquee/event/event.css @@ -38,11 +38,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -51,7 +51,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-two { diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/event/event.hml b/examples/showcase/src/main/js/default/pages/component/marquee/event/event.hml index 80abbc33c0f59b654fa1f26b059fd850255ba2fe..70211e15085e9dfb25fedac3c69b37449b2f127f 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/event/event.hml +++ b/examples/showcase/src/main/js/default/pages/component/marquee/event/event.hml @@ -13,32 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用事件 - - - - -
-
- click - longpress - swipe -
-
- {{text}} -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用事件 + + + +
+
+ click + longpress + swipe +
+
+ {{ + text + }} +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/event/event.js b/examples/showcase/src/main/js/default/pages/component/marquee/event/event.js index 6194b30c11bcdd2c5c62b3e6b2467d4b889b0e32..47e913455feb828d1c975be994b72499c7b3e4f8 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/event/event.js +++ b/examples/showcase/src/main/js/default/pages/component/marquee/event/event.js @@ -27,4 +27,4 @@ export default { swipeEvent(e) { this.text = "swipe方向:" + e.direction; } -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/index/index.hml b/examples/showcase/src/main/js/default/pages/component/marquee/index/index.hml index 440adeaf31503d9cceeb4fcf4e40dee06907e4cb..4ac9bcf8ba6ba79d143d111acdc17fd48d26f7ba 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/marquee/index/index.hml @@ -13,42 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - marquee - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + marquee + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/index/index.js b/examples/showcase/src/main/js/default/pages/component/marquee/index/index.js index 1f9991a811f85b0f197e6a7bc9c72f4de909296c..6febea5fab4a55534a10f82c5a144c1f93545c60 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/marquee/index/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - changePage1: routePage("pages/component/marquee/attr/attr").changePage, - changePage2: routePage("pages/component/marquee/commonStyle/commonStyle").changePage, - changePage3: routePage("pages/component/marquee/specStyle/specStyle").changePage, - changePage4: routePage("pages/component/marquee/event/event").changePage, - ...backPage("pages/component/index/baseIndex/index") -}; \ No newline at end of file + changePage1: routePage("pages/component/marquee/attr/attr").changePage, + changePage2: routePage("pages/component/marquee/commonStyle/commonStyle").changePage, + changePage3: routePage("pages/component/marquee/specStyle/specStyle").changePage, + changePage4: routePage("pages/component/marquee/event/event").changePage, + ...backPage("pages/component/index/baseIndex/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.css b/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.css index 88824f8866e795b971936c811add617189490bd8..cef758aa6741a525492a6d018b28a486837d62e8 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.css +++ b/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.css @@ -38,11 +38,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -51,7 +51,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-special { @@ -69,8 +69,8 @@ .special-left-div { width: 250px; height: 200px; - top:0px; - left:0px; + top: 0px; + left: 0px; flex-direction: column; } diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.hml b/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.hml index 009125cd79c34bfdda4356609983ee17c3b23b23..4afb41559509aa2ead3799feb334e571f5d8dd7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.hml +++ b/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.hml @@ -13,30 +13,38 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 特有样式 - - - - -
-
- scrollamount;color;font-size;font-family -
-
- show-abcedfghijklmn -
-
-
- - -
\ No newline at end of file + + + + + + + + + 特有样式 + + + +
+
+ scrollamount;color;font-size;font-family +
+
+ show-abcedfghijklmn +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.js b/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.js index eb6dfe8cdb3f249bb28293e6943318d849013d10..109b3badc3d9ceecef2734a980bdc123554d1211 100755 --- a/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.js +++ b/examples/showcase/src/main/js/default/pages/component/marquee/specStyle/specStyle.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../common/js/general"; +import { goPage, routePage } from "../../../../common/js/general"; export default { ...goPage("pages/component/marquee/index/index") -}; \ No newline at end of file +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/index/index.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/index/index.hml index 855ed35fd94102989f9b90544f6be670318f9cdf..52ec297c5c78aafb9489c427c05be16f11c8e088 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/index/index.hml @@ -13,29 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/index/index.js b/examples/showcase/src/main/js/default/pages/component/picker_view/index/index.js index ea92253ca1e250521b05961344375abd77a2d8e4..60e70d7e90180c0fc57a3d9bee30e116f5d526ae 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/index/index.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/formIndex/index"), - changeTextPicker: routePage("pages/component/picker_view/text_picker/index/index").changePage, - changeTimePicker: routePage("pages/component/picker_view/time_picker/index/index").changePage -} \ No newline at end of file + ...backPage("pages/component/index/formIndex/index"), + changeTextPicker: routePage("pages/component/picker_view/text_picker/index/index").changePage, + changeTimePicker: routePage("pages/component/picker_view/time_picker/index/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/index/index.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/index/index.hml index 8c584ec20688202e7d61754dc26f9990acef0ee8..22b1406d461f2e1b338a086f0b402e9fbb84ab09 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/index/index.hml @@ -13,39 +13,34 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - text_picker - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + text_picker + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/index/index.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/index/index.js index 08a310c7f7dd34c05034fb30e5d8a5f9b2b3ac1c..ae3d297eb58c36d6104e4837dafa8c5565fc021e 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/index/index"), - changePage1: routePage("pages/component/picker_view/text_picker/indexAttr/index").changePage, - changePage2: routePage("pages/component/picker_view/text_picker/indexStyle/index").changePage, - changePage3: routePage("pages/component/picker_view/text_picker/indexEvent/index").changePage -} \ No newline at end of file + ...backPage("pages/component/picker_view/index/index"), + changePage1: routePage("pages/component/picker_view/text_picker/indexAttr/index").changePage, + changePage2: routePage("pages/component/picker_view/text_picker/indexStyle/index").changePage, + changePage3: routePage("pages/component/picker_view/text_picker/indexEvent/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexAttr/index.hml index c849aff855f58b69c41ecbfc56ada375d68bc28f..1ee767ba3e5841985058284fbe3c27a5032dfa34 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexAttr/index.hml @@ -13,78 +13,75 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用属性 - - - - - - - - for - - - - - - - - - - - if - - - - - - - - - - - show - - - - - - - - - - 特有属性 - - - - - - - - range - - - selected - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用属性 + + + + + for + + + + + + + if + + + + + + + show + + + + + + 特有属性 + + + + + range + selected + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexAttr/index.js index 96427cd1f6d3b382ce396779947bfef50a463f5f..91b1b532094688dbeddc16c2265408f13962ecde 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexAttr/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/text_picker/index/index"), - changePage1: routePage("pages/component/picker_view/text_picker/text_picker6/text_picker6").changePage, - changePage2: routePage("pages/component/picker_view/text_picker/text_picker5/text_picker5").changePage, - change2If: routePage("pages/component/picker_view/text_picker/text_picker7/text_picker7").changePage, - change2For: routePage("pages/component/picker_view/text_picker/text_picker8/text_picker8").changePage -} \ No newline at end of file + ...backPage("pages/component/picker_view/text_picker/index/index"), + changePage1: routePage("pages/component/picker_view/text_picker/text_picker6/text_picker6").changePage, + changePage2: routePage("pages/component/picker_view/text_picker/text_picker5/text_picker5").changePage, + change2If: routePage("pages/component/picker_view/text_picker/text_picker7/text_picker7").changePage, + change2For: routePage("pages/component/picker_view/text_picker/text_picker8/text_picker8").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexEvent/index.hml index 6fbdc511a556a49ce03d21aa68f77cda304adcb0..bc78641d713c5534dd38bed72692c7b16d210c82 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexEvent/index.hml @@ -13,35 +13,34 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 特有事件 - - - - - - - - change - - - - - - - - - \ No newline at end of file + + + + + + + + + + 特有事件 + + + + + change + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexEvent/index.js index e2b3de6481bf55d0edc73525ce48c223c6668e01..c94f7ea9eb98e57568efd91d067554c31ea6ccd2 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexEvent/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/text_picker/index/index"), - changePage1: routePage("pages/component/picker_view/text_picker/text_picker1/text_picker1").changePage -} \ No newline at end of file + ...backPage("pages/component/picker_view/text_picker/index/index"), + changePage1: routePage("pages/component/picker_view/text_picker/text_picker1/text_picker1").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexStyle/index.hml index 0ad17b6d268481ffdae84be5cb0b16a8ed5dfafd..0295e86dda6126a36fc55f3d140b0a9f8f92f38b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexStyle/index.hml @@ -13,104 +13,92 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用样式 - - - - - - - - 背景色 - - - left - - - top - - - - - - - - - - - margin - - - height - - - width - - - - - - - - - - - border - - - padding - - - - - - - - - - - display - - - - - - - - - - 特有样式 - - - - - - - - color - - - font - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用样式 + + + + + 背景色 + left + top + + + + + + + margin + height + width + + + + + + + border + padding + + + + + + + display + + + + + + 特有样式 + + + + + color + font + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexStyle/index.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexStyle/index.js index d40a3dbd8d97a3f37a84ce9829ad1459c2c78a6c..4815ddf31e9f4065a11cd2e86956c25bc7631d1b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/indexStyle/index.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/text_picker/index/index"), - changePage1: routePage("pages/component/picker_view/text_picker/text_picker2/text_picker2").changePage, - changePage2: routePage("pages/component/picker_view/text_picker/text_picker3/text_picker3").changePage, - changePage3: routePage("pages/component/picker_view/text_picker/text_picker4/text_picker4").changePage, - change2Style: routePage("pages/component/picker_view/text_picker/text_picker9/text_picker9").changePage, - change2Display: routePage("pages/component/picker_view/text_picker/text_picker10/text_picker10").changePage -} \ No newline at end of file + ...backPage("pages/component/picker_view/text_picker/index/index"), + changePage1: routePage("pages/component/picker_view/text_picker/text_picker2/text_picker2").changePage, + changePage2: routePage("pages/component/picker_view/text_picker/text_picker3/text_picker3").changePage, + changePage3: routePage("pages/component/picker_view/text_picker/text_picker4/text_picker4").changePage, + change2Style: routePage("pages/component/picker_view/text_picker/text_picker9/text_picker9").changePage, + change2Display: routePage("pages/component/picker_view/text_picker/text_picker10/text_picker10").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.css b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.hml index c0c77ca00b67f73957c442f289f8b0b68984e5ac..ea3bae5022ae7d19151bafe7b78050d25fbad847 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.hml @@ -13,19 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - change索引为{{text1}} - - - change值为{{text2}} - -
\ No newline at end of file +
+ + + + + + + change索引为{{ text1 }} + change值为{{ text2 }} +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.js index 7a3df344fdb4f020f2f52a255b466e7398069fe7..98d05e70fbae425fdfff7557e25e684db9300994 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker1/text_picker1.js @@ -12,16 +12,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: 0, - text2: "a", - textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] - }, - ...backPage("pages/component/picker_view/text_picker/indexEvent/index"), - getText: function (e1) { - this.text1 = e1.newSelected; - this.text2 = e1.newValue; - } -} \ No newline at end of file + data: { + text1: 0, + text2: "a", + textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] + }, + ...backPage("pages/component/picker_view/text_picker/indexEvent/index"), + getText: function(e1) { + this.text1 = e1.newSelected; + this.text2 = e1.newValue; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.css b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.hml index 9e0f40d0b10304cc1572ca30178b83fa88cf6ed2..aebd8f831cce8da3a99a1e1f150c29499ebf2f01 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.hml @@ -13,18 +13,17 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - 点击改状态 - -
\ No newline at end of file +
+ + + + + + + + 点击改状态 +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.js index 8d416d445f590393f2c43857fbce695e39dc5848..b337cc00fc565f366298a28c8b11758414eb0ad0 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker10/text_picker10.js @@ -12,18 +12,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"], - status: "flex" - }, - ...backPage("pages/component/picker_view/text_picker/indexStyle/index"), - changeStatus: function () { - if (this.status === "flex") { - this.status = "none"; - } else { - this.status = "flex"; - } + data: { + textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"], + status: "flex" + }, + ...backPage("pages/component/picker_view/text_picker/indexStyle/index"), + changeStatus: function() { + if (this.status === "flex") { + this.status = "none"; + } else { + this.status = "flex"; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.css b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.css index f07e5b95d68eb8a98138b9eb7954add66ddfff1b..7a5644b2d7d430ce2af8ef88f1461498626311ca 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.css @@ -24,5 +24,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.hml index 4e529ca2b68def89877a9c095b0694daa422aef9..a48545c47799b17dc4e9b15be1c5c66db51be377 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.hml @@ -15,10 +15,8 @@ limitations under the License. - - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.js index 0a2ba3bdd1f131ff25ab1489fc46b9249ec764ce..907d003c201335bef177d09a69785b02234e2197 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker2/text_picker2.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "背景色绿色", - text2: "left设置85", - text3: "top设置170", - textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] - }, - ...backPage("pages/component/picker_view/text_picker/indexStyle/index") -} \ No newline at end of file + data: { + text1: "背景色绿色", + text2: "left设置85", + text3: "top设置170", + textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] + }, + ...backPage("pages/component/picker_view/text_picker/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.css b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.hml index 18780fc280fc4af116361bb6eaee72d1b586fca4..344204a9a2eb552054282c4beb4fecbc816a6d68 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.hml @@ -13,22 +13,24 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.js index a23e1a176c79d6f20dee5d9c7ccf41d70c7d394b..1a8e33832a1327a2a2126a7dd61c320bf0c4efd0 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker3/text_picker3.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "margin左边距85", - text2: "margin上边距10", - text3: "宽高已设置", - textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] - }, - ...backPage("pages/component/picker_view/text_picker/indexStyle/index") -} \ No newline at end of file + data: { + text1: "margin左边距85", + text2: "margin上边距10", + text3: "宽高已设置", + textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] + }, + ...backPage("pages/component/picker_view/text_picker/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker4/text_picker4.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker4/text_picker4.hml index 96912092b3da5215aba8fa9c97b7fd8ea2331525..eb6883f7992f1ad57ccf88de55f025db7cdf95e7 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker4/text_picker4.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker4/text_picker4.hml @@ -13,15 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - -
\ No newline at end of file +
+ + + + + + + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker4/text_picker4.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker4/text_picker4.js index b6b6f57804026f234333f1e157d06a6a2f3ce988..1d7c1f1656c05a5a3e3d53b138e77e3c7660ad10 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker4/text_picker4.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker4/text_picker4.js @@ -15,8 +15,8 @@ // text_picker4.js import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] - }, - ...backPage("pages/component/picker_view/text_picker/indexStyle/index") -} \ No newline at end of file + data: { + textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] + }, + ...backPage("pages/component/picker_view/text_picker/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.css b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.hml index 7c0bffb97feeff197e22f22ca7d97601c07411a6..b83864abacdd4f3d19d45b69ae222278b1b61200 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.hml @@ -13,19 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - range范围a-j - - - selected为e - -
\ No newline at end of file +
+ + + + + + + range范围a-j + selected为e +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.js index 525715cb8e08503dcc3d0f9d7ec853536b676018..ada6d52c74d215168ac09606806044319ac84852 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker5/text_picker5.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] - }, - ...backPage("pages/component/picker_view/text_picker/indexAttr/index") -} \ No newline at end of file + data: { + textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] + }, + ...backPage("pages/component/picker_view/text_picker/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.css b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.hml index 80de2a9d4c08a08923c3b8a5dafe6c2c23fbab87..42fcf00cc78886f37abe97c764bd78ee509d3af9 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.hml @@ -13,18 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - 点击改状态 - -
\ No newline at end of file +
+ + + + + + + + 点击改状态 +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.js index d9d4fb6bf8bfe2087370641b6c10ac0996110d74..33b3936690fcc2946bdd4ba63218b7f44d957979 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker6/text_picker6.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {changeStatus} from "../../../../../common/js/picker_view"; +import { backPage, routePage } from "../../../../../common/js/general"; +import { changeStatus } from "../../../../../common/js/picker_view"; export default { - data: { - textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"], - status: true - }, - changeStatus: changeStatus, - ...backPage("pages/component/picker_view/text_picker/indexAttr/index") -} \ No newline at end of file + data: { + textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"], + status: true + }, + changeStatus: changeStatus, + ...backPage("pages/component/picker_view/text_picker/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.css b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.hml index b3fb311f4c1139ee7ba1db2a19bde06e402e6c8d..56d8188be43adf222776d7fc5e359466013c9dca 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.hml @@ -13,18 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - 点击改状态 - -
\ No newline at end of file +
+ + + + + + + + 点击改状态 +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.js index a46e7780dd333395cad339c607b81fde9da63f96..6b57721d011c19e6037d37b42e3f419a37b6977b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker7/text_picker7.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; -import {changeStatus} from "../../../../../common/js/picker_view" +import { backPage, routePage } from "../../../../../common/js/general"; +import { changeStatus } from "../../../../../common/js/picker_view"; export default { - data: { - textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"], - status: true - }, - ...backPage("pages/component/picker_view/text_picker/indexAttr/index"), - changeStatus: changeStatus -} \ No newline at end of file + data: { + textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"], + status: true + }, + ...backPage("pages/component/picker_view/text_picker/indexAttr/index"), + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.css b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.hml index bfd6405b98f9bd04b07e32c1b00a701446681f9c..cd4794267f318686d4e3b4e433f4c2bff98ff6d4 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.hml @@ -13,15 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
- - -
-
\ No newline at end of file +
+ + + + +
+ + +
+
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.js index e1350c20e6e2d94fde00dcc9e0af6833d901d8bd..9f9ad90f757562900641bec4b51952142c42e979 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker8/text_picker8.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"], - forData: [0, 1, 2] - }, - ...backPage("pages/component/picker_view/text_picker/indexAttr/index") -} \ No newline at end of file + data: { + textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"], + forData: [0, 1, 2] + }, + ...backPage("pages/component/picker_view/text_picker/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.css b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.css index 5c389be94684387719fc61cf12b3a54eb3c6b34a..b54053f320992b6008c79de77a39de9462428182 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.css @@ -13,10 +13,10 @@ * limitations under the License. */ .textPickStyle { - color:green; - font-size:30px; - font-family:HYQiHei-65S; - selected-color:#7ff708; - selected-font-size:38px; - selected-font-family:HYQiHei-65S; + color: green; + font-size: 30px; + font-family: HYQiHei-65S; + selected-color: #7ff708; + selected-font-size: 38px; + selected-font-family: HYQiHei-65S; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.hml index 259520c3d6ef776a6b3e84e76f08499bf3db60e8..da421949249d3b95761be13b02209ab098f0b441 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.hml @@ -13,13 +13,16 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - -
\ No newline at end of file +
+ + + + + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.js b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.js index 0c203234603c4fe904064fd0ad53c5464725e05a..b957d1aad8eeefaa9b05ec8597ffc602eb30c4fc 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/text_picker/text_picker9/text_picker9.js @@ -15,8 +15,8 @@ // text_picker9.js import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] - }, - ...backPage("pages/component/picker_view/text_picker/indexStyle/index") -} \ No newline at end of file + data: { + textContent: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] + }, + ...backPage("pages/component/picker_view/text_picker/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/index/index.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/index/index.hml index f102cef70cbcbaf815f096ada9ff9b55f4ca2460..7effc92ad7caa634c152ab8bb3cdf5116cd48820 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/index/index.hml @@ -13,39 +13,34 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - time_picker - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + time_picker + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/index/index.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/index/index.js index c7dec0c0518e7791fac9231c6c729875aa1df686..66db2397e4fe13c5d04fd7f24e2dffa14b3e26cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/index/index"), - changePage1: routePage("pages/component/picker_view/time_picker/indexAttr/index").changePage, - changePage2: routePage("pages/component/picker_view/time_picker/indexStyle/index").changePage, - changePage3: routePage("pages/component/picker_view/time_picker/indexEvent/index").changePage -} \ No newline at end of file + ...backPage("pages/component/picker_view/index/index"), + changePage1: routePage("pages/component/picker_view/time_picker/indexAttr/index").changePage, + changePage2: routePage("pages/component/picker_view/time_picker/indexStyle/index").changePage, + changePage3: routePage("pages/component/picker_view/time_picker/indexEvent/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexAttr/index.hml index 3997d58c5601b15e7dff9215d663ad0a3b325d94..30bf5c5aba62f7e1bba5022d96d0fddc44bc66ae 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexAttr/index.hml @@ -13,75 +13,74 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用属性 - - - - - - - - for - - - - - - - - - - - if - - - - - - - - - - - show - - - - - - - - - - 特有属性 - - - - - - - - selected - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用属性 + + + + + for + + + + + + + if + + + + + + + show + + + + + + 特有属性 + + + + + selected + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexAttr/index.js index 9162f1a373077288956e3df408f7ed53bddea2c0..72420a45f49f428dc3ab40d60775a1fc5efb7d72 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexAttr/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/time_picker/index/index"), - changePage1: routePage("pages/component/picker_view/time_picker/time_picker6/time_picker6").changePage, - changePage2: routePage("pages/component/picker_view/time_picker/time_picker5/time_picker5").changePage, - change2If: routePage("pages/component/picker_view/time_picker/time_picker7/time_picker7").changePage, - change2For: routePage("pages/component/picker_view/time_picker/time_picker8/time_picker8").changePage -} \ No newline at end of file + ...backPage("pages/component/picker_view/time_picker/index/index"), + changePage1: routePage("pages/component/picker_view/time_picker/time_picker6/time_picker6").changePage, + changePage2: routePage("pages/component/picker_view/time_picker/time_picker5/time_picker5").changePage, + change2If: routePage("pages/component/picker_view/time_picker/time_picker7/time_picker7").changePage, + change2For: routePage("pages/component/picker_view/time_picker/time_picker8/time_picker8").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexEvent/index.hml index e556290dbb875ffbfaeba11955d715bcf1778f0c..579c03806186ec0e3cfb77f898f2670b15dafaa9 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexEvent/index.hml @@ -13,35 +13,34 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 特有事件 - - - - - - - - change - - - - - - - - - \ No newline at end of file + + + + + + + + + + 特有事件 + + + + + change + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexEvent/index.js index 84de335c167c47abe4674ecf97e13ff3995df71f..0f2c7f5707611bd7dcfdbcf057d9ccb4ac043f3f 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexEvent/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/time_picker/index/index"), - changePage1: routePage("pages/component/picker_view/time_picker/time_picker1/time_picker1").changePage -} \ No newline at end of file + ...backPage("pages/component/picker_view/time_picker/index/index"), + changePage1: routePage("pages/component/picker_view/time_picker/time_picker1/time_picker1").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexStyle/index.hml index 7878d15beb0394339984f6e96f9f3ecdb4614a24..fa055dad0551a4a9911da7880eb3953749ad2851 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexStyle/index.hml @@ -13,104 +13,92 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用样式 - - - - - - - - 背景色 - - - left - - - top - - - - - - - - - - - margin - - - height - - - width - - - - - - - - - - - border - - - padding - - - - - - - - - - - display - - - - - - - - - - 特有样式 - - - - - - - - color - - - font - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用样式 + + + + + 背景色 + left + top + + + + + + + margin + height + width + + + + + + + border + padding + + + + + + + display + + + + + + 特有样式 + + + + + color + font + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexStyle/index.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexStyle/index.js index df4019cb0abd2957c1350f807e8340f05d637390..ed3b91c5bfaaefbe44b4c1a64d4b940eca49c57a 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/indexStyle/index.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/time_picker/index/index"), - changePage1: routePage("pages/component/picker_view/time_picker/time_picker2/time_picker2").changePage, - changePage2: routePage("pages/component/picker_view/time_picker/time_picker3/time_picker3").changePage, - changePage3: routePage("pages/component/picker_view/time_picker/time_picker4/time_picker4").changePage, - change2Style: routePage("pages/component/picker_view/time_picker/time_picker9/time_picker9").changePage, - change2Display: routePage("pages/component/picker_view/time_picker/time_picker10/time_picker10").changePage -} \ No newline at end of file + ...backPage("pages/component/picker_view/time_picker/index/index"), + changePage1: routePage("pages/component/picker_view/time_picker/time_picker2/time_picker2").changePage, + changePage2: routePage("pages/component/picker_view/time_picker/time_picker3/time_picker3").changePage, + changePage3: routePage("pages/component/picker_view/time_picker/time_picker4/time_picker4").changePage, + change2Style: routePage("pages/component/picker_view/time_picker/time_picker9/time_picker9").changePage, + change2Display: routePage("pages/component/picker_view/time_picker/time_picker10/time_picker10").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.css b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.hml index 561c6e1e0f38d821208eb853b58770089900db81..583de2c900300dd8058f3a81659a11c46b3189a6 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.hml @@ -13,19 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - hour为{{time1}} - - - minute值为{{time2}} - -
\ No newline at end of file +
+ + + + + + + hour为{{ time1 }} + minute值为{{ time2 }} +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.js index e5dc348ccf76ccd227ce86c4a131a7d45f04f0ef..adbe9f8383d6614ea2e37a0c6093cf0d67003e36 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker1/time_picker1.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - time1: -1, - time2: -1 - }, - ...backPage("pages/component/picker_view/time_picker/indexEvent/index"), - getTime: function (e1) { - this.time1 = e1.hour; - this.time2 = e1.minute; - } -} \ No newline at end of file + data: { + time1: -1, + time2: -1 + }, + ...backPage("pages/component/picker_view/time_picker/indexEvent/index"), + getTime: function(e1) { + this.time1 = e1.hour; + this.time2 = e1.minute; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.css b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.hml index 2380de72bfc71925435bf61095c79de8c7dfb197..27728f364de7d9de6480eda44d08213aa1bfcb5b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.hml @@ -15,10 +15,8 @@ limitations under the License.
- - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.js index 7406cdd62876787df9a9aa5d360901b17a6bb654..0073f49eebfa4e6904a1c00d2edd6bfb623b7781 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker10/time_picker10.js @@ -12,17 +12,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - status: "flex" - }, - ...backPage("pages/component/picker_view/time_picker/indexStyle/index"), - changeStatus: function () { - if (this.status === "flex") { - this.status = "none"; - } else { - this.status = "flex"; - } + data: { + status: "flex" + }, + ...backPage("pages/component/picker_view/time_picker/indexStyle/index"), + changeStatus: function() { + if (this.status === "flex") { + this.status = "none"; + } else { + this.status = "flex"; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.css b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.css index f07e5b95d68eb8a98138b9eb7954add66ddfff1b..7a5644b2d7d430ce2af8ef88f1461498626311ca 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.css @@ -24,5 +24,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.hml index a76e29d434eaf6df3c2bb90138b0a09f67cedf92..78316d8680abffaf5b8b45a2137879db010e4a10 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.hml @@ -15,10 +15,8 @@ limitations under the License. - - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.js index 5e8fdd2b906707fef307065490869cf17653cb81..91a9a3536968510647adc0c24dfd31a0ceb204b5 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker2/time_picker2.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "背景色绿色", - text2: "left设置85", - text3: "top设置170" - }, - ...backPage("pages/component/picker_view/time_picker/indexStyle/index") -} \ No newline at end of file + data: { + text1: "背景色绿色", + text2: "left设置85", + text3: "top设置170" + }, + ...backPage("pages/component/picker_view/time_picker/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.css b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.hml index 15fd71b7da2f05e42c71de7d315bb9f65e7d371a..60903af12deb565945e41c1e91ad13e993107877 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.hml @@ -13,22 +13,23 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.js index b94169da0dd250ea6b7ced821cb721b191a29d44..93aee208e480f3bad912d2443ee66a4ffc89ab55 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker3/time_picker3.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - text1: "margin左边距85", - text2: "margin上边距10", - text3: "宽高已设置" - }, - ...backPage("pages/component/picker_view/time_picker/indexStyle/index") -} \ No newline at end of file + data: { + text1: "margin左边距85", + text2: "margin上边距10", + text3: "宽高已设置" + }, + ...backPage("pages/component/picker_view/time_picker/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker4/time_picker4.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker4/time_picker4.hml index c388f70e4aaba5c95e00640fe6f8db37369d1c78..8f8b5cf8eadb158e043a47122dcec812b074e4f5 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker4/time_picker4.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker4/time_picker4.hml @@ -13,15 +13,28 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - -
\ No newline at end of file +
+ + + + + + + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker4/time_picker4.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker4/time_picker4.js index e7bb9d68169dcc7770341ac9a41e24e4b7788bcb..54879abfe118ca6096beab2d1fb098da55e4108c 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker4/time_picker4.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker4/time_picker4.js @@ -15,5 +15,5 @@ // time_picker4.js import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/time_picker/indexStyle/index") -} \ No newline at end of file + ...backPage("pages/component/picker_view/time_picker/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.css b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.hml index 071dd3d2993e9c51cda9f56ddd09092e2316c906..1814d965c12e57726c389ca00a4482eb43ecb18f 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.hml @@ -13,16 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - 默认值为0:0 - -
\ No newline at end of file +
+ + + + + + + 默认值为0:0 +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.js index d7af0e0f6bb1457206eee18180954a2dc1701b6b..7c3e3a2087b5613309a4189227756cd297faf857 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker5/time_picker5.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/time_picker/indexAttr/index") -} \ No newline at end of file + ...backPage("pages/component/picker_view/time_picker/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.css b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.hml index 3e040aa108501b79739f15e1785d8c7a450cd0fe..7dd1a12fdb820c49d75da98aecf80418e9bf9ea1 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.hml @@ -15,10 +15,8 @@ limitations under the License.
- - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.js index a3f651ef7bcf390fdcbc1dc038272feac21065e3..294a8ed01ad60ea94d70916e9df875abf5a8e6fa 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker6/time_picker6.js @@ -14,11 +14,11 @@ */ // time_picker6.js import { backPage, routePage } from "../../../../../common/js/general"; -import {changeStatus} from "../../../../../common/js/picker_view"; +import { changeStatus } from "../../../../../common/js/picker_view"; export default { - data: { - status: true - }, - ...backPage("pages/component/picker_view/time_picker/indexAttr/index"), - changeStatus: changeStatus -} \ No newline at end of file + data: { + status: true + }, + ...backPage("pages/component/picker_view/time_picker/indexAttr/index"), + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.css b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.hml index cc104fb3c3a7c3f13d71af300abfc41f0e1394da..82f980f2486a0d84fc5421a389a992fafca769df 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.hml @@ -15,10 +15,8 @@ limitations under the License.
- - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.js index c4e6d2d6005bc5c876b16de7eab3c3989687a034..0edecbf9e295669cf693bb8f2e939aa7f0f28413 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker7/time_picker7.js @@ -14,11 +14,11 @@ */ // time_picker7.js import { backPage, routePage } from "../../../../../common/js/general"; -import {changeStatus} from "../../../../../common/js/picker_view"; +import { changeStatus } from "../../../../../common/js/picker_view"; export default { - data: { - status: true - }, - ...backPage("pages/component/picker_view/time_picker/indexAttr/index"), - changeStatus: changeStatus -} \ No newline at end of file + data: { + status: true + }, + ...backPage("pages/component/picker_view/time_picker/indexAttr/index"), + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.css b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.hml index da5cc54089f0a717d38022d7d90247c96dc49fde..b285972e501df3e2332ae07841cc475b813be33d 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.hml @@ -13,15 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
- - -
-
\ No newline at end of file +
+ + + + +
+ +
+
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.js index 7a1a7450555d8f9bd4386dfb652c99e5c4c3c523..f7f5a1c235f0c909ad0ce10d802eb0673f03ea28 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker8/time_picker8.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - data: { - status: true, - forData: [0, 1] - }, - ...backPage("pages/component/picker_view/time_picker/indexAttr/index") -} \ No newline at end of file + data: { + status: true, + forData: [0, 1] + }, + ...backPage("pages/component/picker_view/time_picker/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.css b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.css index b190771fd2cbf0c324b5e521095db4b2c0f523d3..80236ba2e6cc6f16a304aec302734f06ea85f3fb 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.css +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.css @@ -13,10 +13,10 @@ * limitations under the License. */ .timePickStyle { - color:green; - font-size:30px; - font-family:HYQiHei-65S; - selected-color:#7ff708; - selected-font-size:38px; - selected-font-family:HYQiHei-65S; + color: green; + font-size: 30px; + font-family: HYQiHei-65S; + selected-color: #7ff708; + selected-font-size: 38px; + selected-font-family: HYQiHei-65S; } diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.hml b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.hml index 7a54a02019329cff0b3555f2cef328a1cf3f9e1a..b48caf5b2defe4f2a310fb7982ea0e3f5c6c0b3b 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.hml +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.hml @@ -13,13 +13,15 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - -
\ No newline at end of file +
+ + + + + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.js b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.js index a5ce680e13fc135baba0874109e1c829daa33ef4..5c2dd1d710c1a0167c2e598523d1da01bad7c969 100755 --- a/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.js +++ b/examples/showcase/src/main/js/default/pages/component/picker_view/time_picker/time_picker9/time_picker9.js @@ -15,5 +15,5 @@ // time_picker9.js import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/picker_view/time_picker/indexStyle/index") -} \ No newline at end of file + ...backPage("pages/component/picker_view/time_picker/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.css b/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.css index ca8b25601d2c40132e66603a54612e6d38613d85..f5649f6b27156464f206c95c2ad332217a95df05 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.css +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.css @@ -36,11 +36,11 @@ } .whole-text { - margin-top:10px; - margin-left:70px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 70px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -62,31 +62,31 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .circle { - width:100px; - height:100px; - center-x:50px; - center-y:50px; - radius:50px; - start-angle:0; - total-angle:360; + width: 100px; + height: 100px; + center-x: 50px; + center-y: 50px; + radius: 50px; + start-angle: 0; + total-angle: 360; stroke-width: 6px; - background-color: #8B8B7A; - color: #ff0000 + background-color: #8b8b7a; + color: #ff0000; } .circle2 { - width:30px; - height:30px; - center-x:15px; - center-y:15px; - radius:15px; - start-angle:0; - total-angle:360; + width: 30px; + height: 30px; + center-x: 15px; + center-y: 15px; + radius: 15px; + start-angle: 0; + total-angle: 360; stroke-width: 6px; - background-color: #8B8B7A; - color: #ff0000 + background-color: #8b8b7a; + color: #ff0000; } diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.hml b/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.hml index 25a38ab3b6f70e4a5e0c943f25a7c32779d3102a..2b53cc424003df707e96e5484e395b30f4a36ff6 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.hml +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.hml @@ -13,59 +13,57 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用属性 - - - - -
- - -
-
- - - - - -
- - -
-
- - - - - -
- for 3次,点击修改display - -
-
- - - - 特有属性 - - - - -
- percent - -
-
- - -
\ No newline at end of file + + + + + + + + + 通用属性 + + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ for 3次,点击修改display + +
+
+ + + 特有属性 + + + +
+ percent + +
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.js b/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.js index 089661f7a53c26666a6d8bf3d0b9db55c65c3aff..cfb8c7520379ca8cc1a47fcdc8ecfcfff8e5f98a 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.js +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/attr.js @@ -12,28 +12,28 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../../common/js/general"; -import {changeStatus, changeStatusIf, changeDisplay} from "../../../../../common/js/progress" +import { goPage, routePage } from "../../../../../common/js/general"; +import { changeStatus, changeStatusIf, changeDisplay } from "../../../../../common/js/progress"; export default { - data: { - showStatus: true, - ifStatus: true, - percentAttribute: 20, - loopArray: ["1", "2", "3"], - p01: "p01", - display: "flex" - }, - ...goPage("pages/component/progress/circle/index/index"), - changePercent() { - this.percentAttribute = this.percentAttribute + 10; - }, - changeStatus() { - if (this.showStatus == true) { - this.showStatus = false; - } else { - this.showStatus = true; - } - }, - changeStatusIf: changeStatusIf, - changeDisplay: changeDisplay -} \ No newline at end of file + data: { + showStatus: true, + ifStatus: true, + percentAttribute: 20, + loopArray: ["1", "2", "3"], + p01: "p01", + display: "flex" + }, + ...goPage("pages/component/progress/circle/index/index"), + changePercent() { + this.percentAttribute = this.percentAttribute + 10; + }, + changeStatus() { + if (this.showStatus == true) { + this.showStatus = false; + } else { + this.showStatus = true; + } + }, + changeStatusIf: changeStatusIf, + changeDisplay: changeDisplay +}; diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.css b/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.css index 31e480e2b4e5da745899400db9614afd18637833..b5952b5952e74b6e96e54abf63ec93760b6c5e4e 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.css +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.css @@ -36,22 +36,22 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } .circle { - width:100px; - height:100px; - center-x:50px; - center-y:50px; - radius:50px; - start-angle:0; - total-angle:360; + width: 100px; + height: 100px; + center-x: 50px; + center-y: 50px; + radius: 50px; + start-angle: 0; + total-angle: 360; } .item-click { @@ -87,7 +87,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .text2 { @@ -95,6 +95,6 @@ height: 100px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; text-overflow: ellipsis; } diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.hml b/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.hml index e36f0c736b4dfb408c84c95c2d381b844828aa93..bb3f9eb7670e696735609194c010c30fdcad520b 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.hml +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.hml @@ -13,33 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用事件 - - - - -
-
- click - longpress - swipe -
-
- - {{value}} -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用事件 + + + +
+
+ click + longpress + swipe +
+
+ + {{ value }} +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.js b/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.js index 70eca1f6b8960546663a0feb22f6a6f3519bd37a..af6cdce43ba4e452456488aa0374e2adab85b5b1 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.js +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/event/event.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../../common/js/general"; -import {clickEvent, longpressEvent, swipeEvent} from "../../../../../common/js/progress"; +import { goPage, routePage } from "../../../../../common/js/general"; +import { clickEvent, longpressEvent, swipeEvent } from "../../../../../common/js/progress"; export default { - data: { - percent: 20, - value: "点击/长按/滑动" - }, - ...goPage("pages/component/progress/circle/index/index"), - clickEvent: clickEvent, - longpressEvent: longpressEvent, - swipeEvent: swipeEvent -} \ No newline at end of file + data: { + percent: 20, + value: "点击/长按/滑动" + }, + ...goPage("pages/component/progress/circle/index/index"), + clickEvent: clickEvent, + longpressEvent: longpressEvent, + swipeEvent: swipeEvent +}; diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/index/index.hml b/examples/showcase/src/main/js/default/pages/component/progress/circle/index/index.hml index bf994306b9d7f721bc5f39acfecf1cdd40fc96ae..57a41e3c4a8272e82a79a081796ffe307d933335 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/index/index.hml @@ -13,37 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - 环形progress - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + 环形progress + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/index/index.js b/examples/showcase/src/main/js/default/pages/component/progress/circle/index/index.js index befce2b0eed02e29d039360523ef7402100af88b..51a76dadae6b57bef7fc96c61d18f81b56e1e17e 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/progress/index/index"), - changePage1: routePage("pages/component/progress/circle/attr/attr").changePage, - changePage2: routePage("pages/component/progress/circle/style/style").changePage, - changePage3: routePage("pages/component/progress/circle/event/event").changePage -} \ No newline at end of file + ...backPage("pages/component/progress/index/index"), + changePage1: routePage("pages/component/progress/circle/attr/attr").changePage, + changePage2: routePage("pages/component/progress/circle/style/style").changePage, + changePage3: routePage("pages/component/progress/circle/event/event").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.css b/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.css index af25384207afbd0d201130b00acd8a3854ef0aba..b85e5fbdee04e1a85c4a7a4c50c39c21a669a88b 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.css +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.css @@ -36,11 +36,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -79,15 +79,15 @@ } .general-item { - width:130px; - height:130px; - center-x:50px; - center-y:50px; - radius:50px; - start-angle:0; - total-angle:120; - left:20px; - top:20px; + width: 130px; + height: 130px; + center-x: 50px; + center-y: 50px; + radius: 50px; + start-angle: 0; + total-angle: 120; + left: 20px; + top: 20px; background-color: #ff0000; stroke-width: 16px; } @@ -97,31 +97,31 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .margin-show { margin: 20px; width: 70px; height: 70px; - center-x:35px; - center-y:35px; - start-angle:0; - total-angle:360; - radius:35px; + center-x: 35px; + center-y: 35px; + start-angle: 0; + total-angle: 360; + radius: 35px; stroke-width: 5px; } .border-show { border-width: 5px; border-color: #0000ff; - border-radius:5px; - padding:10px; - center-x:65px; - center-y:65px; - start-angle:0; - total-angle:360; - radius:50px; + border-radius: 5px; + padding: 10px; + center-x: 65px; + center-y: 65px; + start-angle: 0; + total-angle: 360; + radius: 50px; width: 130px; height: 130px; margin-top: 10px; @@ -130,11 +130,11 @@ } .special-style { - center-x:50px; - center-y:50px; - start-angle:10; - total-angle:180; - radius:50px; + center-x: 50px; + center-y: 50px; + start-angle: 10; + total-angle: 180; + radius: 50px; width: 100px; height: 100px; color: #ff0000; diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.hml b/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.hml index a881c92c3823cb6321d2cf2892646f728a302daf..ca163cb0dd39e806cb65f018472f0be77af12d87 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.hml +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.hml @@ -13,101 +13,124 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用样式 - - - - -
-
- 背景 - left为20 - top为20 -
- - - -
-
- - - -
-
- margin 20 - height 70 - width 70 -
-
- -
-
- -
-
-
- - - -
- margin - left 20 - top 20 - right 20 - buttom 20 -
- -
-
- -
-
-
- - - -
-
- border - padding -
-
- -
-
-
- - - - 特有样式 - - - - -
-
- color - stroke-width -
-
- -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用样式 + + + +
+
+ 背景 + left为20 + top为20 +
+ + + +
+
+ + +
+
+ margin 20 + height 70 + width 70 +
+
+ +
+
+ +
+
+
+ + +
+ margin + left 20 + top 20 + right 20 + buttom 20 +
+ +
+
+ +
+
+
+ + +
+
+ border + padding +
+
+ +
+
+
+ + + 特有样式 + + + +
+
+ color + stroke-width +
+
+ +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.js b/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.js index 17da017817eff4f559418494e301415834f6cf87..1f816894c6900d512f22454bcedfc109fb67d208 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.js +++ b/examples/showcase/src/main/js/default/pages/component/progress/circle/style/style.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../../common/js/general"; +import { goPage, routePage } from "../../../../../common/js/general"; export default { - ...goPage("pages/component/progress/circle/index/index") -} \ No newline at end of file + ...goPage("pages/component/progress/circle/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.css b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.css index 0ce4fa403e5a1d570b6972e9b6dcd185e0af5a4b..ff4d837becf3915a4712064fe3122caf10f26e64 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.css +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.css @@ -36,11 +36,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -70,7 +70,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .left-text { diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.hml b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.hml index cb8a7ed87fcc1b89a60d4a9ffda5d1ec7802dd0a..f216fc029ba506fe289f6373d4385335231836bc 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.hml +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.hml @@ -13,49 +13,48 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用属性 - - - - - - - - - - - - -
- for -
- -
-
-
- - - - 特有属性 - - - - -
- percent - -
-
- - -
\ No newline at end of file + + + + + + + + + 通用属性 + + + + + + + + + + + +
+ for +
+ +
+
+
+ + + 特有属性 + + + +
+ percent + +
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.js b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.js index 3be42cec3fb2bdb86877f888385c72ce59c9f8b9..8fb81d97d429bc9fb678586e276822ca71fdba9d 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.js +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/attr/attr.js @@ -12,16 +12,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../../common/js/general"; -import {changeStatus, changeStatusIf} from "../../../../../common/js/progress" +import { goPage, routePage } from "../../../../../common/js/general"; +import { changeStatus, changeStatusIf } from "../../../../../common/js/progress"; export default { - data: { - listData: ["a", "b"], - status: true, - ifStatus:true, - show: 20 - }, - ...goPage("pages/component/progress/horizontal/index/index"), - changeStatus: changeStatus, - changeStatusIf: changeStatusIf -} \ No newline at end of file + data: { + listData: ["a", "b"], + status: true, + ifStatus: true, + show: 20 + }, + ...goPage("pages/component/progress/horizontal/index/index"), + changeStatus: changeStatus, + changeStatusIf: changeStatusIf +}; diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.css b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.css index d5ea060c1549294b81584cbdc19c5acc4a4b8b0f..e330ce2548313b5eaae88a689e0aaceb8c1746f8 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.css +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.css @@ -36,11 +36,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -85,7 +85,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .text2 { @@ -93,6 +93,6 @@ height: 100px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; text-overflow: ellipsis; } diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.hml b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.hml index 0e09e45b2787d046a245d4c0ac465789258249e6..e9cf392a0d15781299d57b932a26ba0750dab952 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.hml +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.hml @@ -13,33 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用事件 - - - - -
-
- click - longpress - swipe -
-
- - {{value}} -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用事件 + + + +
+
+ click + longpress + swipe +
+
+ + {{ value }} +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.js b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.js index 2e7413ad3431e75adb334cc2342c088e76321d73..f799895cfcf3d0f6f01fe3a8e3dee0de1b2be45d 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.js +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/event/event.js @@ -12,15 +12,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../../common/js/general"; -import {clickEvent, longpressEvent, swipeEvent} from "../../../../../common/js/progress"; +import { goPage, routePage } from "../../../../../common/js/general"; +import { clickEvent, longpressEvent, swipeEvent } from "../../../../../common/js/progress"; export default { - data: { - percent: 20, - value: "点击/长按/滑动" - }, - ...goPage("pages/component/progress/horizontal/index/index"), - clickEvent: clickEvent, - longpressEvent: longpressEvent, - swipeEvent: swipeEvent -} \ No newline at end of file + data: { + percent: 20, + value: "点击/长按/滑动" + }, + ...goPage("pages/component/progress/horizontal/index/index"), + clickEvent: clickEvent, + longpressEvent: longpressEvent, + swipeEvent: swipeEvent +}; diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/index/index.hml b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/index/index.hml index 90cc8d538e7f8c19dc505d6f64fc76eab7825bb1..99cee1a75dc1be103ce8d8d30b4a62b4f7c3311a 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/index/index.hml @@ -13,37 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - 水平progress - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + 水平progress + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/index/index.js b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/index/index.js index d5eb5f344636fd8623be674a9b6dfd86745ef5aa..b8a341597cf6d5e85bf832100b09912853405808 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage,routePage} from "../../../../../common/js/general"; +import { backPage, routePage } from "../../../../../common/js/general"; export default { - ...backPage("pages/component/progress/index/index"), - changePage1: routePage("pages/component/progress/horizontal/attr/attr").changePage, - changePage2: routePage("pages/component/progress/horizontal/style/style").changePage, - changePage3: routePage("pages/component/progress/horizontal/event/event").changePage -} \ No newline at end of file + ...backPage("pages/component/progress/index/index"), + changePage1: routePage("pages/component/progress/horizontal/attr/attr").changePage, + changePage2: routePage("pages/component/progress/horizontal/style/style").changePage, + changePage3: routePage("pages/component/progress/horizontal/event/event").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.css b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.css index c56ea357148ce487a032172291dca45b67a9b800..53adbc3851931367937d9b60b82e9929948f16e3 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.css +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.css @@ -36,11 +36,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -85,7 +85,7 @@ width: 130px; height: 50px; background-color: red; - stroke-width:5px; + stroke-width: 5px; } .text { @@ -93,7 +93,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .margin-show { @@ -119,7 +119,7 @@ stroke-width: 10px; margin-left: 40px; margin-right: 10px; - width:100px; + width: 100px; height: 40px; } @@ -153,7 +153,7 @@ .style-right-div { width: 250px; height: 200px; - left:10px; - top:10px; + left: 10px; + top: 10px; flex-direction: column; } diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.hml b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.hml index d6d4514df9a1d8c20a1f55eed1c29b7891cd1c31..273abeb8d381af83dd1f5f5db097e55aa31eaa0b 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.hml +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.hml @@ -13,89 +13,85 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用样式 - - - - -
-
- 背景 - left为50 - top为50 -
- - - -
-
- - - -
-
- margin - height - width -
-
- -
-
-
- - - -
-
- border - padding -
-
- -
-
-
- - - -
-
- -
-
- -
-
-
- - - - 特有样式 - - - - -
-
- color - stroke-width -
-
- -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用样式 + + + +
+
+ 背景 + left为50 + top为50 +
+ + + +
+
+ + +
+
+ margin + height + width +
+
+ +
+
+
+ + +
+
+ border + padding +
+
+ +
+
+
+ + +
+
+ +
+
+ +
+
+
+ + + 特有样式 + + + +
+
+ color + stroke-width +
+
+ +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.js b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.js index bcac2cae04867a705cb4c2981b1ef485c42816b8..10d9f59ba0c10f7e9124d33a4b301c1eb21dc6ab 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.js +++ b/examples/showcase/src/main/js/default/pages/component/progress/horizontal/style/style.js @@ -12,21 +12,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../../common/js/general"; +import { goPage, routePage } from "../../../../../common/js/general"; var displayData = ["flex", "none"]; export default { - changeDisplay: function () { - if (this.status == true) { - this.displayValue = displayData[1]; - this.status = false; - } else { - this.displayValue = displayData[0]; - this.status = true; - } - }, - data: { - status: true, - displayValue: displayData[0] - }, - ...goPage("pages/component/progress/horizontal/index/index") -} \ No newline at end of file + changeDisplay: function() { + if (this.status == true) { + this.displayValue = displayData[1]; + this.status = false; + } else { + this.displayValue = displayData[0]; + this.status = true; + } + }, + data: { + status: true, + displayValue: displayData[0] + }, + ...goPage("pages/component/progress/horizontal/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/progress/index/index.hml b/examples/showcase/src/main/js/default/pages/component/progress/index/index.hml index 4beab7fabd4ee96a0547c496ad9284da2b275bd7..12db4bfadd89c21451ba68147f1a6afc0d0af369 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/progress/index/index.hml @@ -13,21 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/progress/index/index.js b/examples/showcase/src/main/js/default/pages/component/progress/index/index.js index 0eecd8d4155e5062814e7e2b3992a551e4cdd13e..8022d3130995dd84f50ce7dd03fd2c1c094ce941 100755 --- a/examples/showcase/src/main/js/default/pages/component/progress/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/progress/index/index.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../common/js/general"; +import { goPage, routePage } from "../../../../common/js/general"; export default { - ...goPage("pages/component/index/baseIndex/index"), - changeCircle: routePage("pages/component/progress/circle/index/index").changePage, - changeHorizontal: routePage("pages/component/progress/horizontal/index/index").changePage, -} \ No newline at end of file + ...goPage("pages/component/index/baseIndex/index"), + changeCircle: routePage("pages/component/progress/circle/index/index").changePage, + changeHorizontal: routePage("pages/component/progress/horizontal/index/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.css b/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.css index 9d989fdf62e775ac394024587bd65c54d3f5f05c..2929d28e5269dc89204cf952cc2ef3c81f4f09bc 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.css +++ b/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.css @@ -99,7 +99,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-types { @@ -108,10 +108,10 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } diff --git a/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.hml b/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.hml index 26ac273dd5c5028bd1f36f44e738616c4a06e6f2..dbcf12a31166c1d2eb27c43288f24ca49c2e7a08 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.hml +++ b/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.hml @@ -13,84 +13,77 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用属性 - - - - -
-
- show -
-
- - -
-
-
- -
-
- display -
-
- - -
-
-
- -
-
- if -
-
- - -
-
-
- -
-
- for -
-
- - -
-
-
- - - - 特有属性 - - - - -
-
- min为10 - max为80 - value为40 -
-
- - {{slideValue}} -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用属性 + + + +
+
+ show +
+
+ + +
+
+
+ +
+
+ display +
+
+ + +
+
+
+ +
+
+ if +
+
+ + +
+
+
+ +
+
+ for +
+
+ +
+
+
+ + + 特有属性 + + + +
+
+ min为10 + max为80 + value为40 +
+
+ + {{ slideValue }} +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.js b/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.js index ca4378c98f6c4ef2cc54575529dda61f657783fe..9240926ea9ffde61bd1288f160ab0517ce068659 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.js +++ b/examples/showcase/src/main/js/default/pages/component/slider/attr/attr.js @@ -12,38 +12,38 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage, routePage} from "../../../../common/js/general"; +import { goPage, routePage } from "../../../../common/js/general"; export default { - data: { - slideValue: "值:"+"40", - status: true, - sliders:[1,2], - isDisplay:'flex', - ifStatus:true - }, - ...goPage("pages/component/slider/index/index"), - slideEvent(value) { - this.slideValue = "值:"+value.progress; - }, - changeStatus: function () { - if (this.status == true) { - this.status = false; - } else { - this.status = true; - } - }, - changeIfStatus:function(){ - if(this.ifStatus == true){ - this.ifStatus = false; - } else if(this.ifStatus == false){ - this.ifStatus = true; - } - }, - changeDisplay:function(){ - if(this.isDisplay == 'flex'){ - this.isDisplay = 'none'; - } else if(this.isDisplay == 'none'){ - this.isDisplay = 'flex'; - } + data: { + slideValue: "值:" + "40", + status: true, + sliders: [1, 2], + isDisplay: "flex", + ifStatus: true + }, + ...goPage("pages/component/slider/index/index"), + slideEvent(value) { + this.slideValue = "值:" + value.progress; + }, + changeStatus: function() { + if (this.status == true) { + this.status = false; + } else { + this.status = true; } -} \ No newline at end of file + }, + changeIfStatus: function() { + if (this.ifStatus == true) { + this.ifStatus = false; + } else if (this.ifStatus == false) { + this.ifStatus = true; + } + }, + changeDisplay: function() { + if (this.isDisplay == "flex") { + this.isDisplay = "none"; + } else if (this.isDisplay == "none") { + this.isDisplay = "flex"; + } + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/slider/event/event.css b/examples/showcase/src/main/js/default/pages/component/slider/event/event.css index 304ad87ee8860f5c61a98e9a940b963f1e352251..71c47bdac7b435a9fe292ff428d92e9320071ba9 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/event/event.css +++ b/examples/showcase/src/main/js/default/pages/component/slider/event/event.css @@ -69,7 +69,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .text2 { @@ -77,7 +77,7 @@ height: 100px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-types { @@ -86,10 +86,10 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } diff --git a/examples/showcase/src/main/js/default/pages/component/slider/event/event.hml b/examples/showcase/src/main/js/default/pages/component/slider/event/event.hml index f78018d431aa8c00f85edc344708d6a61dad91d9..30617d84744a3955b9329271be4681b3face33ed 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/event/event.hml +++ b/examples/showcase/src/main/js/default/pages/component/slider/event/event.hml @@ -13,37 +13,33 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 特殊事件 - - - - -
-
- click - change - swipe -
-
- - {{name}} - - {{changename}} - - {{swipename}} -
-
-
- - -
\ No newline at end of file + + + + + + + + + 特殊事件 + + + +
+
+ click + change + swipe +
+
+ + {{ name }} + + {{ changename }} + + {{ swipename }} +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/slider/event/event.js b/examples/showcase/src/main/js/default/pages/component/slider/event/event.js index 6c94ba1924ceee1e0509c956afa344ea88c966dd..e5f50e7b0af9ef6880396ef1f6fb99cd5401d8a3 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/event/event.js +++ b/examples/showcase/src/main/js/default/pages/component/slider/event/event.js @@ -12,21 +12,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../common/js/general"; +import { goPage, routePage } from "../../../../common/js/general"; export default { - data: { - name: "触发click事件", - changename:"触发change事件", - swipename: "触发swipe事件", - }, - ...goPage("pages/component/slider/index/index"), - clickEvent() { - this.name = "click被触发"; - }, - changeEvent(value) { - this.changename = "change:" + value.progress; - }, - swipeEvent(e) { - this.swipename = "swipe方向:" + e.direction; - } -} \ No newline at end of file + data: { + name: "触发click事件", + changename: "触发change事件", + swipename: "触发swipe事件" + }, + ...goPage("pages/component/slider/index/index"), + clickEvent() { + this.name = "click被触发"; + }, + changeEvent(value) { + this.changename = "change:" + value.progress; + }, + swipeEvent(e) { + this.swipename = "swipe方向:" + e.direction; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/slider/index/index.hml b/examples/showcase/src/main/js/default/pages/component/slider/index/index.hml index 241bb40a77174d6e9edaf4a98c5ac362a4001c71..e5edc481b849792c1e02d7b2037b2175e7ee987b 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/slider/index/index.hml @@ -13,39 +13,34 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - slider - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + slider + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/slider/index/index.js b/examples/showcase/src/main/js/default/pages/component/slider/index/index.js index 1b3a746b0ff7751a9d322eb25236dda10f129d2f..7ba6534f89636f1b390108d58221c625fbae275d 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/slider/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage,routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/formIndex/index"), - changePage1: routePage("pages/component/slider/attr/attr").changePage, - changePage2: routePage("pages/component/slider/style/style").changePage, - changePage3: routePage("pages/component/slider/event/event").changePage -} \ No newline at end of file + ...backPage("pages/component/index/formIndex/index"), + changePage1: routePage("pages/component/slider/attr/attr").changePage, + changePage2: routePage("pages/component/slider/style/style").changePage, + changePage3: routePage("pages/component/slider/event/event").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/slider/style/style.css b/examples/showcase/src/main/js/default/pages/component/slider/style/style.css index 3e9e29b8b70edf5ec0b54c898cc2ff0ef140e033..8c5adfcd1d065b7d8b80745ef5e5773d9a40d31d 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/style/style.css +++ b/examples/showcase/src/main/js/default/pages/component/slider/style/style.css @@ -139,7 +139,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-types { @@ -148,10 +148,10 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } diff --git a/examples/showcase/src/main/js/default/pages/component/slider/style/style.hml b/examples/showcase/src/main/js/default/pages/component/slider/style/style.hml index 3e9a0bd9638c8cf7caa3a3380b2a4cfb1ffb9178..08d0f7c138c470a382a8d5821586c4d1aaf8ebcf 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/style/style.hml +++ b/examples/showcase/src/main/js/default/pages/component/slider/style/style.hml @@ -13,78 +13,70 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用样式 - - - - -
-
- 背景 - left为50 - top为50 -
- - - -
-
- - - -
-
- margin - height - width -
-
- -
-
-
- - - -
-
- border - padding -
-
- -
-
-
- - - - 特有样式 - - - - -
-
- color为red - select-color - block-color -
-
- -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用样式 + + + +
+
+ 背景 + left为50 + top为50 +
+ + + +
+
+ + +
+
+ margin + height + width +
+
+ +
+
+
+ + +
+
+ border + padding +
+
+ +
+
+
+ + + 特有样式 + + + +
+
+ color为red + select-color + block-color +
+
+ +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/slider/style/style.js b/examples/showcase/src/main/js/default/pages/component/slider/style/style.js index 2838e37fa26841f163393093cf8669768c2561f1..f7b7c34539d583f2821d9c85885e9990c0832b5e 100755 --- a/examples/showcase/src/main/js/default/pages/component/slider/style/style.js +++ b/examples/showcase/src/main/js/default/pages/component/slider/style/style.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../common/js/general"; +import { goPage, routePage } from "../../../../common/js/general"; export default { - ...goPage("pages/component/slider/index/index") -} \ No newline at end of file + ...goPage("pages/component/slider/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/index/index.hml b/examples/showcase/src/main/js/default/pages/component/stack/index/index.hml index de020d4a88d2167b487746e50823250e93bf66b8..ac4ccb1e2d1aa18ac47bdc66a584c85fcff47131 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/index/index.hml @@ -13,44 +13,38 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - stack - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + stack + + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/stack/index/index.js b/examples/showcase/src/main/js/default/pages/component/stack/index/index.js index 1b39ea709cc9cce4f307aade1f53e42ca30801fa..b64cdb26f74dfb19b41d7e3e0bc468f0fb528f21 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/index/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/containerIndex/index"), - changePage1: routePage("pages/component/stack/indexAttr/index").changePage, - changePage2: routePage("pages/component/stack/indexStyle/index").changePage, - changePage3: routePage("pages/component/stack/indexEvent/index").changePage, - changePage4: routePage("pages/component/stack/indexEffect/index").changePage -} \ No newline at end of file + ...backPage("pages/component/index/containerIndex/index"), + changePage1: routePage("pages/component/stack/indexAttr/index").changePage, + changePage2: routePage("pages/component/stack/indexStyle/index").changePage, + changePage3: routePage("pages/component/stack/indexEvent/index").changePage, + changePage4: routePage("pages/component/stack/indexEffect/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/stack/indexAttr/index.hml index 57fe3dd8946231a73a59b348804bb56d06f7fd76..8b54c29bd71b5ddf32ff97bc4b179f2ed83c7d6e 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/indexAttr/index.hml @@ -13,53 +13,56 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用属性 - - - - - - - - show - - - - - - - - - for - - - - - - - - - if - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用属性 + + + + + show + + + + + + for + + + + + + if + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/stack/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/stack/indexAttr/index.js index 81d7d0756147e4e956bbcec0bb001c0fdb91cef2..53da2cd862ffadd2620c4f554788aae5f73b2a03 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/indexAttr/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/stack/index/index"), - changePage1: routePage("pages/component/stack/stack6/stack6").changePage, - changePage2: routePage("pages/component/stack/stack7/stack7").changePage, - changePage3: routePage("pages/component/stack/stack8/stack8").changePage -} \ No newline at end of file + ...backPage("pages/component/stack/index/index"), + changePage1: routePage("pages/component/stack/stack6/stack6").changePage, + changePage2: routePage("pages/component/stack/stack7/stack7").changePage, + changePage3: routePage("pages/component/stack/stack8/stack8").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/indexEffect/index.hml b/examples/showcase/src/main/js/default/pages/component/stack/indexEffect/index.hml index b6da5d3d6810d3d73111813ee8f2cf9e18dae5a9..223f2d17e1b3ddf8d9d07c38eb75d437be989114 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/indexEffect/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/indexEffect/index.hml @@ -13,35 +13,34 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 特有效果 - - - - - - - - stack中组件设置position - - - - - - - - - \ No newline at end of file + + + + + + + + + + 特有效果 + + + + + stack中组件设置position + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/stack/indexEffect/index.js b/examples/showcase/src/main/js/default/pages/component/stack/indexEffect/index.js index 2ac80c16fd5e7989a93e134250976107bb0f3f2c..c1568a8d8c713b8ae446de433133f882563acfc3 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/indexEffect/index.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/indexEffect/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/stack/index/index"), - changePage1: routePage("pages/component/stack/stack5/stack5").changePage -} \ No newline at end of file + ...backPage("pages/component/stack/index/index"), + changePage1: routePage("pages/component/stack/stack5/stack5").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/stack/indexEvent/index.hml index 866d33b366d5ac5db48c1b3e83cf46540a15f76e..11e5a2d8441b9b56c9597a0285c8fa5d3e86de6d 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/indexEvent/index.hml @@ -13,41 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用事件 - - - - - - - - click - - - longpress - - - swipe - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用事件 + + + + + click + longpress + swipe + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/stack/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/stack/indexEvent/index.js index db99260ba91475aa32417536bc7d5fa608575e60..5900af8ade2faa2edef514f889891141ad4957a2 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/indexEvent/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/stack/index/index"), - changePage1: routePage("pages/component/stack/stack1/stack1").changePage -} \ No newline at end of file + ...backPage("pages/component/stack/index/index"), + changePage1: routePage("pages/component/stack/stack1/stack1").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/indexStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/stack/indexStyle/index.hml index 8b419ba85de1ccadc72643f28f67f228e2225ac2..c9d97b37bbf66fecff48d284c4db833369e5bfa5 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/indexStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/indexStyle/index.hml @@ -13,72 +13,63 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用样式 - - - - - - - - 背景色 - - - left - - - top - - - - - - - - - - - margin - - - height - - - width - - - - - - - - - - - border - - - padding - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用样式 + + + + + 背景色 + left + top + + + + + + + margin + height + width + + + + + + + border + padding + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/stack/indexStyle/index.js b/examples/showcase/src/main/js/default/pages/component/stack/indexStyle/index.js index c96e6d89faf83a2676952a28b764d2774e64424a..9c8b7c9b7fa885a2e7489c618245bf4918ec15bd 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/indexStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/indexStyle/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/stack/index/index"), - changePage1: routePage("pages/component/stack/stack2/stack2").changePage, - changePage2: routePage("pages/component/stack/stack3/stack3").changePage, - changePage3: routePage("pages/component/stack/stack4/stack4").changePage -} \ No newline at end of file + ...backPage("pages/component/stack/index/index"), + changePage1: routePage("pages/component/stack/stack2/stack2").changePage, + changePage2: routePage("pages/component/stack/stack3/stack3").changePage, + changePage3: routePage("pages/component/stack/stack4/stack4").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.css b/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.css +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.hml b/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.hml index 986ee03d64f3ab704204adc939558fc9e7814ac3..ed2bc6e580faffb8b433aa9b620b2bbc05906fdd 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.hml @@ -13,25 +13,31 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - 操作stack触发事件 - - - - {{text1}} - - - {{text2}} - - - {{text3}} - -
\ No newline at end of file +
+ + + + + + 操作stack触发事件 + + + {{ text1 }} + + + {{ text2 }} + + + {{ text3 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.js b/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.js index c514815a85d4cbde6459a2039add5c02b65e1082..5a1cd55bdd75a5748b9901a7a1191f3f99417e68 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack1/stack1.js @@ -12,21 +12,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "点击事件未触发", - text2: "长按事件未触发", - text3: "swipe事件未触发", - }, - ...backPage("pages/component/stack/indexEvent/index"), - clickFunc: function () { - this.text1 = "点击事件已触发"; - }, - longpressFunc: function () { - this.text2 = "长按事件已触发"; - }, - stackswipe: function (e) { - this.text3 = "swipe方向:" + e.direction; - } -} \ No newline at end of file + data: { + text1: "点击事件未触发", + text2: "长按事件未触发", + text3: "swipe事件未触发" + }, + ...backPage("pages/component/stack/indexEvent/index"), + clickFunc: function() { + this.text1 = "点击事件已触发"; + }, + longpressFunc: function() { + this.text2 = "长按事件已触发"; + }, + stackswipe: function(e) { + this.text3 = "swipe方向:" + e.direction; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.css b/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.css index f07e5b95d68eb8a98138b9eb7954add66ddfff1b..7a5644b2d7d430ce2af8ef88f1461498626311ca 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.css +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.css @@ -24,5 +24,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.hml b/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.hml index aabc4bdc5d6dcf7623ff52b452cf8dbb8cdcd050..02b204f791c2f4846424246e3e3e8720b06e1c5a 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.hml @@ -15,10 +15,8 @@ limitations under the License. - - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.js b/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.js index 481863ae53ed25156a4e3a19066d879e64559dc6..8b3437bfd0b3809484a88286b6276d227509afe3 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack2/stack2.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "背景色绿色", - text2: "left设置85", - text3: "top设置170" - }, - ...backPage("pages/component/stack/indexStyle/index") -} \ No newline at end of file + data: { + text1: "背景色绿色", + text2: "left设置85", + text3: "top设置170" + }, + ...backPage("pages/component/stack/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.css b/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.css index 920908fb932e95e156c02b19bc444d50907c4584..860c1a7a6ee1337b56729e10a3d8e075e35eb7fa 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.css +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.css @@ -19,19 +19,19 @@ } .item { - width: 280px; - height: 50px; + width: 280px; + height: 50px; } .div1 { - height: 145px; - width: 160px; - border-width: 1px; - border-color: #ff0000; + height: 145px; + width: 160px; + border-width: 1px; + border-color: #ff0000; } .div2 { - width: 120px; - height: 50px; - background-color: #00ff00; -} \ No newline at end of file + width: 120px; + height: 50px; + background-color: #00ff00; +} diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.hml b/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.hml index 18c51169f458eef74855f6741a103fc9fd49f524..02fc54cab057836058726e4a85dea939a85d7974 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.hml @@ -13,54 +13,43 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
- - - stack1 - - -
-
- - - stack2 - - -
-
- - - - 宽100px;高50px - - - - - stack1左边距100px - - - - - stack1上边距20px - - - - - stack2右边距20px - - - - - stack2下边距20px - - - -
\ No newline at end of file +
+ + + + +
+
+ + stack1 + +
+
+ + stack2 + +
+
+ + + 宽100px;高50px + + + stack1左边距100px + + + stack1上边距20px + + + stack2右边距20px + + + stack2下边距20px + + +
diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.js b/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.js index 8b37718128d7839a1e6ecdac71badc99b304ac22..5339fd055c90b325da58f87446aa4522b8b7e5a1 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack3/stack3.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "margin左边距85", - text2: "margin上边距10", - text3: "宽高已设置" - }, - ...backPage("pages/component/stack/indexStyle/index") -} \ No newline at end of file + data: { + text1: "margin左边距85", + text2: "margin上边距10", + text3: "宽高已设置" + }, + ...backPage("pages/component/stack/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.css b/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.css index d1559a9dba1af3e5e2ac0b884215b5c5a314f994..14267404a2f671f94f0c04ac77418ee20185aa7b 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.css +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.hml b/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.hml index 1bcf9c0de24c9b711db42a117b2b2878542deeca..d9b751f8b9966e20381abc79830939f2e565ea9e 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.hml @@ -13,18 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - -
-
- - - 内边距和边框 - - -
\ No newline at end of file +
+ + + + +
+ + 内边距和边框 + +
diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.js b/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.js index a4208987f43a09ca1c3006fdd24078bb459fcd25..cd461cee24bed6bb73799c8d4696eed3feaa61b6 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack4/stack4.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/stack/indexStyle/index") -} \ No newline at end of file + ...backPage("pages/component/stack/indexStyle/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack5/stack5.hml b/examples/showcase/src/main/js/default/pages/component/stack/stack5/stack5.hml index c44cdf6a4af6a4c485d4d6b4b6ef983f1cf877df..5bf591a5c856130aa6b1bb4e485fcb8830f20b18 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack5/stack5.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack5/stack5.hml @@ -15,10 +15,8 @@ limitations under the License.
- - - - + + diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack5/stack5.js b/examples/showcase/src/main/js/default/pages/component/stack/stack5/stack5.js index 4ea65f34f73ac18fe6b998080cc88bd488a6ae52..8305474e89555e833fce45e5442915e6b79ebe09 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack5/stack5.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack5/stack5.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/stack/indexEvent/index") -} \ No newline at end of file + ...backPage("pages/component/stack/indexEvent/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.css b/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.css +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.hml b/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.hml index 56237c1d83a298e806ed0d04401b62ff58e18f80..8fdeaf9fb31de0a390896009441afcde36069e06 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.hml @@ -13,21 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - stack的show属性 - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + stack的show属性 + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.js b/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.js index ebcadef1ad901fc0cefbb596eea458960a16212a..54eff9f5a78dbdd5b5bbc9b8f94bd72738484b4a 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack6/stack6.js @@ -12,14 +12,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; -import {changeStatus} from "../../../../common/js/stack" +import { backPage, routePage } from "../../../../common/js/general"; +import { changeStatus } from "../../../../common/js/stack"; export default { - data: { - text1: "点击按钮改变状态", - status: true, - div01: "div01" - }, - ...backPage("pages/component/stack/indexAttr/index"), - changeStatus: changeStatus -} \ No newline at end of file + data: { + text1: "点击按钮改变状态", + status: true, + div01: "div01" + }, + ...backPage("pages/component/stack/indexAttr/index"), + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.css b/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.css index 90290c39527544c2594433322777336ebfbc0872..90b0df90fb576bbf0240ac59b46faf8e39f98de6 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.css +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.css @@ -17,11 +17,10 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .image { width: 130px; height: 50px; } - diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.hml b/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.hml index e4948893502ec3f16b807fa61966b892be55d7b8..c875f4a589e4d29a04732e2e8b0d0fde53f27867 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.hml @@ -13,20 +13,28 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - loop - - - - - 循环3次,点击改变display - -
\ No newline at end of file +
+ + + + + + loop + + + + 循环3次,点击改变display + +
diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.js b/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.js index dd35862eed4b58c1c9b0a93ab61e57522a33f816..83a229e36995924cce9ca13fcb4ad3cae6bac473 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack7/stack7.js @@ -12,19 +12,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "点击按钮改变状态", - loopArray: ["1", "2", "3"], - display: "flex" - }, - ...backPage("pages/component/stack/indexAttr/index"), - changeDisplay: function () { - if (this.display === "flex") { - this.display = "none"; - } else { - this.display = "flex"; - } + data: { + text1: "点击按钮改变状态", + loopArray: ["1", "2", "3"], + display: "flex" + }, + ...backPage("pages/component/stack/indexAttr/index"), + changeDisplay: function() { + if (this.display === "flex") { + this.display = "none"; + } else { + this.display = "flex"; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.css b/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.css +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.hml b/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.hml index e73b7a88a9d661958aff6250ac5bf4c23335e181..acaeaa390597b60b51c36e9d37fca7a7a851c0dd 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.hml +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.hml @@ -13,21 +13,29 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - 观察if属性作用 - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + 观察if属性作用 + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.js b/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.js index e7eed2ce9ef99ef902bfee25f3cb17852f40b03f..b53e8929ebf0ffea26a2dfd674356eee402eac92 100755 --- a/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.js +++ b/examples/showcase/src/main/js/default/pages/component/stack/stack8/stack8.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; -import {changeStatus} from "../../../../common/js/stack" +import { backPage, routePage } from "../../../../common/js/general"; +import { changeStatus } from "../../../../common/js/stack"; export default { - data: { - text1: "点击按钮改变状态", - status: true - }, - ...backPage("pages/component/stack/indexAttr/index"), - changeStatus: changeStatus -} \ No newline at end of file + data: { + text1: "点击按钮改变状态", + status: true + }, + ...backPage("pages/component/stack/indexAttr/index"), + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/index/index.hml b/examples/showcase/src/main/js/default/pages/component/swiper/index/index.hml index ee8726c1b0fe29645eee956bac4ecf8b225360ff..808bd42e5aa2de92392453cd6f158289fb9a7d4d 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/index/index.hml @@ -13,44 +13,38 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - swiper - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + swiper + + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/index/index.js b/examples/showcase/src/main/js/default/pages/component/swiper/index/index.js index 22b07082243ec4f77e498c6b3e0b07b823228ebb..72f25bfe8dc39e7fa4e2caafdefd2704d6e7f66c 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/index/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/containerIndex/index"), - changePage1: routePage("pages/component/swiper/indexAttr/index").changePage, - changePage2: routePage("pages/component/swiper/indexStyle/index").changePage, - changePage3: routePage("pages/component/swiper/indexEvent/index").changePage, - changePage4: routePage("pages/component/swiper/indexSpecSet/index").changePage -} \ No newline at end of file + ...backPage("pages/component/index/containerIndex/index"), + changePage1: routePage("pages/component/swiper/indexAttr/index").changePage, + changePage2: routePage("pages/component/swiper/indexStyle/index").changePage, + changePage3: routePage("pages/component/swiper/indexEvent/index").changePage, + changePage4: routePage("pages/component/swiper/indexSpecSet/index").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/indexAttr/index.hml b/examples/showcase/src/main/js/default/pages/component/swiper/indexAttr/index.hml index 91ab00f042342f8033819c57fb1ca32fa56f2486..c8750fcf85fdc0bf2a14b2916a345e8809d42856 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/indexAttr/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/indexAttr/index.hml @@ -13,57 +13,58 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用属性 - - - - - - - - show和style - - - - - - - - - - - class和if - - - - - - - - - - - for - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用属性 + + + + + show和style + + + + + + + class和if + + + + + + + for + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/indexAttr/index.js b/examples/showcase/src/main/js/default/pages/component/swiper/indexAttr/index.js index 6b51d19766053eef50dc8439a50eaa7a68c3f27e..dd070f1d805e508272dc8f5c6ac67755805efebb 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/indexAttr/index.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/indexAttr/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/swiper/index/index"), - changePage1: routePage("pages/component/swiper/swiper6/swiper6").changePage, - changePage2: routePage("pages/component/swiper/swiper7/swiper7").changePage, - changePage3: routePage("pages/component/swiper/swiper11/swiper11").changePage -} \ No newline at end of file + ...backPage("pages/component/swiper/index/index"), + changePage1: routePage("pages/component/swiper/swiper6/swiper6").changePage, + changePage2: routePage("pages/component/swiper/swiper7/swiper7").changePage, + changePage3: routePage("pages/component/swiper/swiper11/swiper11").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/indexEvent/index.hml b/examples/showcase/src/main/js/default/pages/component/swiper/indexEvent/index.hml index 7acd22af1d65b8e47d1ff34f6ac78491b53d01d9..ce3290a5dc3b93a4306ecd1be7b42ee69031b2e2 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/indexEvent/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/indexEvent/index.hml @@ -13,41 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用事件 - - - - - - - - click - - - longpress - - - swipe - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用事件 + + + + + click + longpress + swipe + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/indexEvent/index.js b/examples/showcase/src/main/js/default/pages/component/swiper/indexEvent/index.js index b9db67ed3d488559ec74b4382f9b84665e10453d..edc0c3ecb354d7945736141fee7e56c2dd8a1c06 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/indexEvent/index.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/indexEvent/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/swiper/index/index"), - changePage1: routePage("pages/component/swiper/swiper1/swiper1").changePage -} \ No newline at end of file + ...backPage("pages/component/swiper/index/index"), + changePage1: routePage("pages/component/swiper/swiper1/swiper1").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/indexSpecSet/index.hml b/examples/showcase/src/main/js/default/pages/component/swiper/indexSpecSet/index.hml index 8233158ae1d52453913321189c68253ba07f51bd..bdb18cbc159854e1aad026f69a11d414cf74c4ca 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/indexSpecSet/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/indexSpecSet/index.hml @@ -13,47 +13,38 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 特有设置 - - - - - - - - index - - - vertical - - - duration - - - loop - - - change - - - - - - - - - \ No newline at end of file + + + + + + + + + + 特有设置 + + + + + index + vertical + duration + loop + change + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/indexSpecSet/index.js b/examples/showcase/src/main/js/default/pages/component/swiper/indexSpecSet/index.js index 5b7d55abb89bded038dff70f2b234dc2813811f3..f6990d42534a152d8b7eaaf17408c251c585bf68 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/indexSpecSet/index.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/indexSpecSet/index.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/swiper/index/index"), - changePage1: routePage("pages/component/swiper/swiper5/swiper5").changePage -} \ No newline at end of file + ...backPage("pages/component/swiper/index/index"), + changePage1: routePage("pages/component/swiper/swiper5/swiper5").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/indexStyle/index.hml b/examples/showcase/src/main/js/default/pages/component/swiper/indexStyle/index.hml index ee92e92fdf9abfb2757bb5f3d394b4be3bcf5d0a..415dee954b7bbd02fe00c001d6947dfa438b333d 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/indexStyle/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/indexStyle/index.hml @@ -13,108 +13,100 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用样式 - - - - - - - - 背景色 - - - left - - - top - - - - - - - - - - - margin - - - height - - - width - - - - - - - - - - - border - - - padding - - - - - - - - - - - margin-left - - - margin-top - - - - - - - - - - - margin-right和bottom - - - - - - - - - - - display - - - - - - - - - \ No newline at end of file + + + + + + + + + + 通用样式 + + + + + 背景色 + left + top + + + + + + + margin + height + width + + + + + + + border + padding + + + + + + + margin-left + margin-top + + + + + + + margin-right和bottom + + + + + + + display + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/indexStyle/index.js b/examples/showcase/src/main/js/default/pages/component/swiper/indexStyle/index.js index 844efe95796f2319af3d6939f676c8d115ffb6e8..c8a4f02c122277e1db352cf95bdfce368ce8fa01 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/indexStyle/index.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/indexStyle/index.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/swiper/index/index"), - changePage1: routePage("pages/component/swiper/swiper2/swiper2").changePage, - changePage2: routePage("pages/component/swiper/swiper3/swiper3").changePage, - changePage3: routePage("pages/component/swiper/swiper4/swiper4").changePage, - changePage4: routePage("pages/component/swiper/swiper8/swiper8").changePage, - changePage5: routePage("pages/component/swiper/swiper9/swiper9").changePage, - changePage6: routePage("pages/component/swiper/swiper10/swiper10").changePage -} \ No newline at end of file + ...backPage("pages/component/swiper/index/index"), + changePage1: routePage("pages/component/swiper/swiper2/swiper2").changePage, + changePage2: routePage("pages/component/swiper/swiper3/swiper3").changePage, + changePage3: routePage("pages/component/swiper/swiper4/swiper4").changePage, + changePage4: routePage("pages/component/swiper/swiper8/swiper8").changePage, + changePage5: routePage("pages/component/swiper/swiper9/swiper9").changePage, + changePage6: routePage("pages/component/swiper/swiper10/swiper10").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper1/swiper1.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper1/swiper1.hml index b3306f87131bc9a7b7b57f4a2ec80d301cd566f2..06d5521d9c0d336cc430eb86c45e37cab63d448e 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper1/swiper1.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper1/swiper1.hml @@ -13,56 +13,45 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - 第{{index}}页,共3页 - - - 长按空白文字改变 - - - {{text2}} - - - - - - - - - - - 第{{index}}页,共3页 - - - 点击空白文字改变 - - - {{text3}} - - - - - - - - - - - 第{{index}}页,共3页 - - - 滑动空白处触发swipe事件 - - - {{text4}} - - - \ No newline at end of file + + + + + + + 第{{ index }}页,共3页 + 长按空白文字改变 + + {{ text2 }} + + + + + + + + 第{{ index }}页,共3页 + 点击空白文字改变 + + {{ text3 }} + + + + + + + + 第{{ index }}页,共3页 + 滑动空白处触发swipe事件 + + {{ text4 }} + + + diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper1/swiper1.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper1/swiper1.js index 15036d3e8d7c6584c21d4f3573e511a6968986b7..5d68c2cbdb55b63560b5da7c44a3f8a521b668d5 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper1/swiper1.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper1/swiper1.js @@ -12,25 +12,25 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - index: 0, - text2: "longpress未触发", - text3: "click未触发", - text4: "swipe未触发", - }, - ...backPage("pages/component/swiper/indexEvent/index"), - textChange2: function () { - this.text2 = "longpress已触发"; - }, - textChange3: function () { - this.text3 = "click已触发"; - }, - textChange4: function (e) { - this.text4 = "swipe方向:" + e.direction; - }, - showPage: function (e) { - this.index = e.index + 1; - } -} \ No newline at end of file + data: { + index: 0, + text2: "longpress未触发", + text3: "click未触发", + text4: "swipe未触发" + }, + ...backPage("pages/component/swiper/indexEvent/index"), + textChange2: function() { + this.text2 = "longpress已触发"; + }, + textChange3: function() { + this.text3 = "click已触发"; + }, + textChange4: function(e) { + this.text4 = "swipe方向:" + e.direction; + }, + showPage: function(e) { + this.index = e.index + 1; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.css b/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.css +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.hml index 7b3f9f443b66ebb144df9d1070119d41f28fbfc3..081e90b26364bed97d91a3a76c065a8f5bffcaad 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.hml @@ -13,18 +13,27 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.js index fdb25570f1e503272a59e87a852027137f12b3fe..644ada24d2521ba7e2f4546d80e3e09cb4a0e925 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper10/swiper10.js @@ -12,18 +12,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - text1: "点击改变display", - status: "flex" - }, - ...backPage("pages/component/swiper/indexStyle/index"), - changeStatus: function () { - if (this.status === "flex") { - this.status = "none"; - } else { - this.status = "flex"; - } + data: { + text1: "点击改变display", + status: "flex" + }, + ...backPage("pages/component/swiper/indexStyle/index"), + changeStatus: function() { + if (this.status === "flex") { + this.status = "none"; + } else { + this.status = "flex"; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.css b/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.css index 34660eebd54f417c13e0080fcb42f4d6acccc913..27a2fb73994762abf9b966f588687b4c26cb954c 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.css +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.css @@ -17,12 +17,12 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .swiperStyle { - width:280px; - height:110px; - margin-top:10px; - margin-left:85px; -} \ No newline at end of file + width: 280px; + height: 110px; + margin-top: 10px; + margin-left: 85px; +} diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.hml index 26113f7057c0adb6dd03a8f55d5bfb94e9dd41d5..bfac373f16a76f9144963d63fa8fda277211a473 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.hml @@ -13,19 +13,20 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - {{$item}} - - - 由for构造出来 - - -
\ No newline at end of file +
+ + + + + + + {{ $item }} + + 由for构造出来 + +
diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.js index 225bb35219fb1a44659990c7d54e3e60808ef2c0..9dcc341603de90d4ce3fbbfdb8aeffb1d73fe9cd 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper11/swiper11.js @@ -12,13 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - listData: [ - "第一个swiper", - "第二个swiper" - ] - }, - ...backPage("pages/component/swiper/indexAttr/index") -} \ No newline at end of file + data: { + listData: ["第一个swiper", "第二个swiper"] + }, + ...backPage("pages/component/swiper/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper2/swiper2.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper2/swiper2.hml index 48b9cdecf583b9ec9a5bd2f83d835e36ddd03bc6..f225034db8b18066c0f2b7bd0725cfbecf08984c 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper2/swiper2.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper2/swiper2.hml @@ -13,39 +13,23 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - 第{{index}}页,共1页 - - - 背景色设为绿色 - - - left和top设为75 - - - - - - - - - - - 第{{index}}页,共1页 - - - 背景色设为绿色 - - - left和top设为75 - - - \ No newline at end of file + + + + + + + 第{{ index }}页,共1页 + 背景色设为绿色 + left和top设为75 + + + + + + + 第{{ index }}页,共1页 + 背景色设为绿色 + left和top设为75 + + diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper2/swiper2.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper2/swiper2.js index 56cc381d8eb0fac6a0dad42d234647d3a4f3aa98..9b9885c3da0f22a43b52ef8108adc48662b1f00d 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper2/swiper2.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper2/swiper2.js @@ -14,11 +14,11 @@ */ // swiper2.js import { backPage, routePage } from "../../../../common/js/general"; -import {showPage} from "../../../../common/js/swiper"; +import { showPage } from "../../../../common/js/swiper"; export default { - data: { - index: 0 - }, - ...backPage("pages/component/swiper/indexStyle/index"), - showPage: showPage -} \ No newline at end of file + data: { + index: 0 + }, + ...backPage("pages/component/swiper/indexStyle/index"), + showPage: showPage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper3/swiper3.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper3/swiper3.hml index 015ee03b1eb25206d2492ba6447d154886cebc9e..7cae549ed428d6ed5f3d9ec88a0b2a3503f4fde7 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper3/swiper3.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper3/swiper3.hml @@ -13,41 +13,25 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - 第{{index}}页,共1页 - - - 宽高设为300 - - - margin设为75 - +
+ + + + + - - - - - - - - - 第{{index}}页,共1页 - - - 宽高设为300 - - - margin设为75 - + 第{{ index }}页,共1页 + 宽高设为300 + margin设为75 + + + + + - -
\ No newline at end of file + 第{{ index }}页,共1页 + 宽高设为300 + margin设为75 +
+
+
diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper3/swiper3.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper3/swiper3.js index 15f1fb2303dc7be5ad03425493317d8fedd5ad44..13572da87c34fcc432c043edbb8f3c4abdfac49b 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper3/swiper3.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper3/swiper3.js @@ -14,11 +14,11 @@ */ // swiper3.js import { backPage, routePage } from "../../../../common/js/general"; -import {showPage} from "../../../../common/js/swiper"; +import { showPage } from "../../../../common/js/swiper"; export default { - data: { - index: 0 - }, - ...backPage("pages/component/swiper/indexStyle/index"), - showPage: showPage -} \ No newline at end of file + data: { + index: 0 + }, + ...backPage("pages/component/swiper/indexStyle/index"), + showPage: showPage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper4/swiper4.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper4/swiper4.hml index a5dcabccccc7b3a4de5d6e3c6c025fded5885623..99600748e45863aae424a367670b3b43da9ce58f 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper4/swiper4.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper4/swiper4.hml @@ -13,33 +13,35 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - border - - - padding - - - - - - - - - - - border - - - padding - - - \ No newline at end of file + + + + + + + border + padding + + + + + + + border + padding + + diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper4/swiper4.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper4/swiper4.js index 061aae06aa7a12ccc41c7539cc441409d72452c5..f292a836c4110fde35046cfa005d823d13102865 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper4/swiper4.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper4/swiper4.js @@ -14,11 +14,11 @@ */ // swiper4.js import { backPage, routePage } from "../../../../common/js/general"; -import {showPage} from "../../../../common/js/swiper"; +import { showPage } from "../../../../common/js/swiper"; export default { - data: { - index: 0 - }, - ...backPage("pages/component/swiper/indexStyle/index"), - showPage: showPage -} \ No newline at end of file + data: { + index: 0 + }, + ...backPage("pages/component/swiper/indexStyle/index"), + showPage: showPage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper5/swiper5.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper5/swiper5.hml index 2be9365f603a9ae5f9e2c4dc96b8618b9325fcf3..b886ffd69a1988949fc82978c5a91a33b1491614 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper5/swiper5.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper5/swiper5.hml @@ -13,83 +13,48 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - 第{{index}}页,共2页 - - - change触发页号改变 - - - 页面初始index为2 - - - 滑动方向垂直 - - - 滑动时间1000 - - - loop为true - - - - - - - - - - - 第{{index}}页,共2页 - - - change触发页号改变 - - - 页面初始index为2 - - - 滑动方向垂直 - - - 滑动时间1000 - - - loop为true - - - - - - - - - - - 第{{index}}页,共2页 - - - change触发页号改变 - - - 页面初始index为2 - - - 滑动方向垂直 - - - 滑动时间1000 - - - loop为true - - - \ No newline at end of file + + + + + + + 第{{ index }}页,共2页 + change触发页号改变 + 页面初始index为2 + 滑动方向垂直 + 滑动时间1000 + loop为true + + + + + + + 第{{ index }}页,共2页 + change触发页号改变 + 页面初始index为2 + 滑动方向垂直 + 滑动时间1000 + loop为true + + + + + + + 第{{ index }}页,共2页 + change触发页号改变 + 页面初始index为2 + 滑动方向垂直 + 滑动时间1000 + loop为true + + diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper5/swiper5.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper5/swiper5.js index d9a9ca38785a48517409bdbe6288c2c0dbc64cab..05715d9fff576b3591e175a5fa3ddbd05febe4f8 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper5/swiper5.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper5/swiper5.js @@ -12,12 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; -import {showPage} from "../../../../common/js/swiper"; +import { backPage, routePage } from "../../../../common/js/general"; +import { showPage } from "../../../../common/js/swiper"; export default { - data: { - index: 2 - }, - ...backPage("pages/component/swiper/indexSpecSet/index"), - showPage: showPage -} \ No newline at end of file + data: { + index: 2 + }, + ...backPage("pages/component/swiper/indexSpecSet/index"), + showPage: showPage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.css b/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.css index f1f3c27389914aa68b9a837cec90e08c4b7c4b03..4a4367e627ff66fe25298b725afe8b87dbb716cc 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.css +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.css @@ -17,5 +17,5 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.hml index a46da63ed87912c4ee7078e1ad29f06105317091..fd1acd4d05ab3ca4c463a487bdd31bc17d25c4e8 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.hml @@ -13,21 +13,26 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - 观察style设置宽高和margin样式 - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + 观察style设置宽高和margin样式 + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.js index c9d32333d952cb062cc40012a727db36851555a1..7285927041223b5d6e86b06eb3da3b0674093020 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper6/swiper6.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; -import {changeStatus} from "../../../../common/js/swiper"; +import { backPage, routePage } from "../../../../common/js/general"; +import { changeStatus } from "../../../../common/js/swiper"; export default { - data: { - text1: "点击按钮改变状态", - status: true - }, - ...backPage("pages/component/swiper/indexAttr/index"), - changeStatus: changeStatus -} \ No newline at end of file + data: { + text1: "点击按钮改变状态", + status: true + }, + ...backPage("pages/component/swiper/indexAttr/index"), + changeStatus: changeStatus +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.css b/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.css index 34660eebd54f417c13e0080fcb42f4d6acccc913..27a2fb73994762abf9b966f588687b4c26cb954c 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.css +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.css @@ -17,12 +17,12 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .swiperStyle { - width:280px; - height:110px; - margin-top:10px; - margin-left:85px; -} \ No newline at end of file + width: 280px; + height: 110px; + margin-top: 10px; + margin-left: 85px; +} diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.hml index 7e0fcec612f08446a2b164b034b51b300b7ddae4..814675bf59bd7545da3cbb5a845ac549f2fc03ce 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.hml @@ -13,21 +13,26 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - 观察class设置宽高和margin样式 - - - - - - {{text1}} - -
\ No newline at end of file +
+ + + + + + 观察class设置宽高和margin样式 + + + + {{ text1 }} + +
diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.js index 94ec43f44aaeb5b8f7c419fe3f2e2f8457000ce0..83f807efcf81906a77f6cd776fb6e6ffcf46bbb8 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper7/swiper7.js @@ -12,13 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; -import {changeStatus} from "../../../../common/js/swiper"; +import { backPage, routePage } from "../../../../common/js/general"; +import { changeStatus } from "../../../../common/js/swiper"; export default { - data: { - text1: "点击按钮改变状态", - status: true - }, - changeStatus: changeStatus, - ...backPage("pages/component/swiper/indexAttr/index") -} \ No newline at end of file + data: { + text1: "点击按钮改变状态", + status: true + }, + changeStatus: changeStatus, + ...backPage("pages/component/swiper/indexAttr/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper8/swiper8.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper8/swiper8.hml index 4508ef24abdfd20e21cb5dc8eda04b80ecb2ac80..082038664f09c9e5c58c22d45fe0474fcd0b0b75 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper8/swiper8.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper8/swiper8.hml @@ -13,41 +13,28 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - 第{{index}}页,共1页 - - - margin-left为75 - - - margin-top为75 - +
+ + + + + - - - - - - - - - 第{{index}}页,共1页 - - - margin-left为75 - - - margin-top为75 - + 第{{ index }}页,共1页 + margin-left为75 + margin-top为75 + + + + + - -
\ No newline at end of file + 第{{ index }}页,共1页 + margin-left为75 + margin-top为75 +
+
+
diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper8/swiper8.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper8/swiper8.js index 6b36bd6058d674e64252a42d5df038a898376429..1d26d288d46583146b4e0d54eed7c54cee91e0b0 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper8/swiper8.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper8/swiper8.js @@ -14,11 +14,11 @@ */ // swiper8.js import { backPage, routePage } from "../../../../common/js/general"; -import {showPage} from "../../../../common/js/swiper"; +import { showPage } from "../../../../common/js/swiper"; export default { - data: { - index: 0 - }, - ...backPage("pages/component/swiper/indexStyle/index"), - showPage: showPage -} \ No newline at end of file + data: { + index: 0 + }, + ...backPage("pages/component/swiper/indexStyle/index"), + showPage: showPage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper9/swiper9.hml b/examples/showcase/src/main/js/default/pages/component/swiper/swiper9/swiper9.hml index beecf19154a41b1604438fdd2567109e35160766..ce5c9e9b34b20e2fb2cf079f652ceb7f4cda5f97 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper9/swiper9.hml +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper9/swiper9.hml @@ -13,41 +13,28 @@ See the License for the specific language governing permissions and limitations under the License. --> -
- - - - - - - - - - 第{{index}}页,共1页 - - - 底部外边距为75 - - - margin-right为75 - +
+ + + + + - - - - - - - - - 第{{index}}页,共1页 - - - 底部外边距为75 - - - margin-right为75 - + 第{{ index }}页,共1页 + 底部外边距为75 + margin-right为75 + + + + + - -
\ No newline at end of file + 第{{ index }}页,共1页 + 底部外边距为75 + margin-right为75 +
+
+
diff --git a/examples/showcase/src/main/js/default/pages/component/swiper/swiper9/swiper9.js b/examples/showcase/src/main/js/default/pages/component/swiper/swiper9/swiper9.js index 52763139ea01da1f5daf96bd7a9da2a82b7a28fb..b8054ae5563890305e606b10fa9dbac48bb21c57 100755 --- a/examples/showcase/src/main/js/default/pages/component/swiper/swiper9/swiper9.js +++ b/examples/showcase/src/main/js/default/pages/component/swiper/swiper9/swiper9.js @@ -14,11 +14,11 @@ */ // swiper9.js import { backPage, routePage } from "../../../../common/js/general"; -import {showPage} from "../../../../common/js/swiper"; +import { showPage } from "../../../../common/js/swiper"; export default { - data: { - index: 0 - }, - ...backPage("pages/component/swiper/indexStyle/index"), - showPage: showPage -} \ No newline at end of file + data: { + index: 0 + }, + ...backPage("pages/component/swiper/indexStyle/index"), + showPage: showPage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.css b/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.css index 23f49424be6e0e4e4ba7f5dc0e5bac6b0e2a5ddc..344e2e5e6b987a12d628688f272b3925b0a5c5cf 100755 --- a/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.css +++ b/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.css @@ -19,8 +19,8 @@ } .switchStyle { - width:64px; - height:64px; - left:80px; - top:60px; -} \ No newline at end of file + width: 64px; + height: 64px; + left: 80px; + top: 60px; +} diff --git a/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.hml b/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.hml index 64908cea9b63835355a378b665c12cb51af8b71e..5342ba5d4af1b33fd75a05eb19be5af8ed218a6a 100755 --- a/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.hml +++ b/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.hml @@ -13,96 +13,78 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用属性 - - - - - - - for - -
- - 解析子组件 - - - -
-
- - - - - show和class - - - - 设置class - - - - - - - - - - - - if和style - -
- - 设置style - - - - - -
-
- - - - - 特有属性 - - - - - - - - checked - - - - - 初始化值为开 - - - checked生效 - - - - - - - -
-
\ No newline at end of file + + + + + + + + + + 通用属性 + + + + for +
+ 解析子组件 + + +
+
+ + + show和class + + 设置class + + + + + + + if和style +
+ 设置style + + +
+
+ + + 特有属性 + + + + + checked + + + 初始化值为开 + checked生效 + + + + +
+
diff --git a/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.js b/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.js index 9fabf6a19ef5dbfb4b84a608e9559750b172c0b1..fbf713340e07457b02c277f9c079122e5c35f964 100755 --- a/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.js +++ b/examples/showcase/src/main/js/default/pages/component/switch/attr/attr.js @@ -12,29 +12,26 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - status: true, - statusIf: true, - listData: [ - true, - false - ] - }, - ...backPage("pages/component/switch/index/index"), - changeStatus: function () { - if (this.status == true) { - this.status = false; - } else { - this.status = true; - } - }, - changeIf: function () { - if (this.statusIf == true) { - this.statusIf = false; - } else { - this.statusIf = true; - } + data: { + status: true, + statusIf: true, + listData: [true, false] + }, + ...backPage("pages/component/switch/index/index"), + changeStatus: function() { + if (this.status == true) { + this.status = false; + } else { + this.status = true; } -} \ No newline at end of file + }, + changeIf: function() { + if (this.statusIf == true) { + this.statusIf = false; + } else { + this.statusIf = true; + } + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/switch/event/event.hml b/examples/showcase/src/main/js/default/pages/component/switch/event/event.hml index a45e8cfcef4b3488ac3ba82cff3f145ad50e665e..279257a933ba630428931fe190fa38cf57dcd3ea 100755 --- a/examples/showcase/src/main/js/default/pages/component/switch/event/event.hml +++ b/examples/showcase/src/main/js/default/pages/component/switch/event/event.hml @@ -13,94 +13,75 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用事件 - - - - - - - 点击事件 + + + + + + + + + + 通用事件 + + + + 点击事件 + + + + {{ clickValue }} - - - - - {{clickValue}} - - - - - - - - 长按事件 + + + + + 长按事件 + + + + {{ longpressValue }} - - - - - {{longpressValue}} - - - - - - - - swipe事件 + + + + + swipe事件 + + + + {{ swipeValue }} - - - - - {{swipeValue}} - - - - - - - - 特有事件 - - - - - - - - change事件 + + + + + 特有事件 + + + + + change事件 + + + 点击状态改变 + + {{ checkedValue }} - - - - 点击状态改变 - - - {{checkedValue}} - - - - - - - - - - -
\ No newline at end of file + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/switch/event/event.js b/examples/showcase/src/main/js/default/pages/component/switch/event/event.js index b947aa275d7aa1b90a715c63bf799f0d4f2dbf7a..eb7e15eca69a8cb3e5630fd877a91f3e6eb62534 100755 --- a/examples/showcase/src/main/js/default/pages/component/switch/event/event.js +++ b/examples/showcase/src/main/js/default/pages/component/switch/event/event.js @@ -12,29 +12,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - clickValue: "点击文字改变", - longpressValue: "长按文字改变", - swipeValue: "滑动文字改变", - checkedValue: false - }, - ...backPage("pages/component/switch/index/index"), - click: function () { - this.clickValue = "点击已经触发"; - }, - longpress: function () { - this.longpressValue = "长按已经触发"; - }, - swipeEvent: function (e) { - this.swipeValue = "swipe方向:" + e.direction; - }, - change: function () { - if (this.checkedValue == false) { - this.checkedValue = true; - } else { - this.checkedValue = false; - } + data: { + clickValue: "点击文字改变", + longpressValue: "长按文字改变", + swipeValue: "滑动文字改变", + checkedValue: false + }, + ...backPage("pages/component/switch/index/index"), + click: function() { + this.clickValue = "点击已经触发"; + }, + longpress: function() { + this.longpressValue = "长按已经触发"; + }, + swipeEvent: function(e) { + this.swipeValue = "swipe方向:" + e.direction; + }, + change: function() { + if (this.checkedValue == false) { + this.checkedValue = true; + } else { + this.checkedValue = false; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/switch/index/index.hml b/examples/showcase/src/main/js/default/pages/component/switch/index/index.hml index ac7da9ce76eb5fb24cdf71853b6393514c71a095..016bd5952a167438124a25f5a68b9367bd00d783 100755 --- a/examples/showcase/src/main/js/default/pages/component/switch/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/switch/index/index.hml @@ -13,37 +13,32 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - switch - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + switch + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/switch/index/index.js b/examples/showcase/src/main/js/default/pages/component/switch/index/index.js index 22a782799fe586098b112b2a84105b35e2c4ab01..aa3a1ec5f7a6f4c51a0ff8715a3fa5456c3d34fe 100755 --- a/examples/showcase/src/main/js/default/pages/component/switch/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/switch/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/formIndex/index"), - changePage1: routePage("pages/component/switch/attr/attr").changePage, - changePage2: routePage("pages/component/switch/style/style").changePage, - changePage3: routePage("pages/component/switch/event/event").changePage -} \ No newline at end of file + ...backPage("pages/component/index/formIndex/index"), + changePage1: routePage("pages/component/switch/attr/attr").changePage, + changePage2: routePage("pages/component/switch/style/style").changePage, + changePage3: routePage("pages/component/switch/event/event").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/switch/style/style.hml b/examples/showcase/src/main/js/default/pages/component/switch/style/style.hml index b8df1dec43e5d3d80632901c6afd3e9109761cb2..3aab125c69a2b08e68386c62fdf24ad72cc88b31 100755 --- a/examples/showcase/src/main/js/default/pages/component/switch/style/style.hml +++ b/examples/showcase/src/main/js/default/pages/component/switch/style/style.hml @@ -13,147 +13,132 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - - 通用样式 - - - - - - - - left、top - - - 背景色 - - - - - 父组件stack - - - 距离左上110 - - - 开关背景蓝色 - - - - - - - - - - - margin - - - 宽高 - - - - - 父组件div - - - margin设80 - - - 组件宽高80 - -
- - + + + + + + + + + + 通用样式 + + + + + left、top + 背景色 + + + 父组件stack + 距离左上110 + 开关背景蓝色 + + + + + + + margin + 宽高 + + + 父组件div + margin设80 + 组件宽高80 +
+
-
-
- - - - - - margin-left和top - - - - - 观察margin-left和margin-top设置 - -
- + + + + + + margin-left和top + + + 观察margin-left和margin-top设置 +
+
-
-
- - - - - - margin-right和bottom - - - - - 观察margin-right和margin-bottom - -
- + + + + + + margin-right和bottom + + + 观察margin-right和margin-bottom +
+
-
-
- - - - - display - - - - - - - - - - - - - - border - - - padding - - - - - border宽10 - - - padding宽10 - - - - - - - - - \ No newline at end of file + + + + + display + + + + + + + + + border + padding + + + border宽10 + padding宽10 + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/switch/style/style.js b/examples/showcase/src/main/js/default/pages/component/switch/style/style.js index f366c1c896c895809a3b39d52db0bacbf35c1eac..1c76f9ef4cd9cdcd624078e48edb086d7aa94d23 100755 --- a/examples/showcase/src/main/js/default/pages/component/switch/style/style.js +++ b/examples/showcase/src/main/js/default/pages/component/switch/style/style.js @@ -12,17 +12,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - data: { - status: "flex" - }, - ...backPage("pages/component/switch/index/index"), - changeStatus: function () { - if (this.status === "flex") { - this.status = "none"; - } else { - this.status = "flex"; - } + data: { + status: "flex" + }, + ...backPage("pages/component/switch/index/index"), + changeStatus: function() { + if (this.status === "flex") { + this.status = "none"; + } else { + this.status = "flex"; } -} \ No newline at end of file + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/text/attr/attr.css b/examples/showcase/src/main/js/default/pages/component/text/attr/attr.css index c546afeb6fbc1930c28b46b68b211cbf2c0b0118..c59eefd26c8997f17f4f04b80ba2abcf427b6701 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/attr/attr.css +++ b/examples/showcase/src/main/js/default/pages/component/text/attr/attr.css @@ -38,11 +38,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -51,7 +51,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-attribute { @@ -73,4 +73,4 @@ height: 100px; width: 200px; flex-direction: column; -} \ No newline at end of file +} diff --git a/examples/showcase/src/main/js/default/pages/component/text/attr/attr.hml b/examples/showcase/src/main/js/default/pages/component/text/attr/attr.hml index 814942c1604155d224a77044a96b141dbe210925..852db467eec4bad36f0e589c38c1bc002c831ed3 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/attr/attr.hml +++ b/examples/showcase/src/main/js/default/pages/component/text/attr/attr.hml @@ -13,55 +13,42 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用属性 - - - - -
- -
-
- - 显示文字 - -
-
- - - -
- -
-
- - 显示文字 - -
- -
- - - -
- -
-
- - {{$idx}} -- {{$item}} - -
-
- - -
\ No newline at end of file + + + + + + + + + 通用属性 + + + +
+ +
+
+ 显示文字 +
+
+ + +
+ +
+
+ 显示文字 +
+
+ + +
+ +
+
+ {{ $idx }} -- {{ $item }} +
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/text/attr/attr.js b/examples/showcase/src/main/js/default/pages/component/text/attr/attr.js index 8ac0f98a3493b363dd85ebfde7c2d9c9615475db..c920f11a8d76867e3155033743b73000afaf96b1 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/attr/attr.js +++ b/examples/showcase/src/main/js/default/pages/component/text/attr/attr.js @@ -12,17 +12,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../common/js/general"; -import {changeShow, changeStatusIf} from "../../../../common/js/text" +import { goPage, routePage } from "../../../../common/js/general"; +import { changeShow, changeStatusIf } from "../../../../common/js/text"; export default { - data: { - showStatus: true, - ifStatus: true, - display: "flex", - textfor: ["text测试for标签,abcdefg", - "text测试for标签,abcdefg"] - }, - ...goPage("pages/component/text/index/index"), - changeShow: changeShow, - changeStatusIf: changeStatusIf -} \ No newline at end of file + data: { + showStatus: true, + ifStatus: true, + display: "flex", + textfor: ["text测试for标签,abcdefg", "text测试for标签,abcdefg"] + }, + ...goPage("pages/component/text/index/index"), + changeShow: changeShow, + changeStatusIf: changeStatusIf +}; diff --git a/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.css b/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.css index 0a41a7bd26adc9d5f528fee8405d406cef597754..ca33b510a37e7e7ad673e341d129e4008b54cfde 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.css +++ b/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.css @@ -38,11 +38,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -51,7 +51,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-three { @@ -126,11 +126,11 @@ } .show { - opacity:1; + opacity: 1; border-width: 5px; border-color: #0000ff; - border-radius:5px; - padding:10px; + border-radius: 5px; + padding: 10px; width: 150px; height: 50px; background-color: red; diff --git a/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.hml b/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.hml index 2dbac23edf3cd09262f53406238eede8856c342d..2c27e5af952cb231484902f01900dc8cfa62d4b7 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.hml +++ b/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.hml @@ -13,59 +13,53 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用样式 - - - - -
-
- 背景红色 - left为50 - top为50 -
- - show - -
-
- - - -
-
- margin为40 - height为60 - width为100 -
-
- show -
-
-
- - - -
-
- border - padding -
-
- show -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用样式 + + + +
+
+ 背景红色 + left为50 + top为50 +
+ + show + +
+
+ + +
+
+ margin为40 + height为60 + width为100 +
+
+ show +
+
+
+ + +
+
+ border + padding +
+
+ show +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.js b/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.js index 31f8db61cbab79d7c4cc66e9b357fa03df9a0466..2999534e518720fb49d5a616d27b1d5fb3a94406 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.js +++ b/examples/showcase/src/main/js/default/pages/component/text/commonStyle/commonStyle.js @@ -15,5 +15,5 @@ // commonStyle.js import { goPage, routePage } from "../../../../common/js/general"; export default { - ...goPage("pages/component/text/index/index") -} \ No newline at end of file + ...goPage("pages/component/text/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/component/text/event/event.css b/examples/showcase/src/main/js/default/pages/component/text/event/event.css index 3658f2cfc7f88221b3eb8ea17a9df30deb82158d..dd85dfa2c8b75f08bcf10ca21f0b0e056ef410fd 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/event/event.css +++ b/examples/showcase/src/main/js/default/pages/component/text/event/event.css @@ -38,11 +38,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -51,7 +51,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-two { diff --git a/examples/showcase/src/main/js/default/pages/component/text/event/event.hml b/examples/showcase/src/main/js/default/pages/component/text/event/event.hml index 8562cb5de30834b4f497bc546afc46b4fbd73fbd..b6f6935af8b037aa980946ff19c7f8a245f98ebb 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/event/event.hml +++ b/examples/showcase/src/main/js/default/pages/component/text/event/event.hml @@ -13,32 +13,30 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 通用事件 - - - - -
-
- click - longpress - swipe -
-
- {{text}} -
-
-
- - -
\ No newline at end of file + + + + + + + + + 通用事件 + + + +
+
+ click + longpress + swipe +
+
+ {{ + text + }} +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/text/event/event.js b/examples/showcase/src/main/js/default/pages/component/text/event/event.js index f143eb510940f12cc65b9da7bdc757d2ed59ebe8..ba740aa27e5226ff4c7ef3bff0cf2e0ecc6e9442 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/event/event.js +++ b/examples/showcase/src/main/js/default/pages/component/text/event/event.js @@ -12,19 +12,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {goPage,routePage} from "../../../../common/js/general"; +import { goPage, routePage } from "../../../../common/js/general"; export default { - data: { - text: "点击/长按/滑动" - }, - ...goPage("pages/component/text/index/index"), - clickEvent(e) { - this.text = "点击已触发"; - }, - longpressEvent() { - this.text = "长按已触发"; - }, - swipeEvent(e) { - this.text = "swipe方向:" + e.direction; - } -} \ No newline at end of file + data: { + text: "点击/长按/滑动" + }, + ...goPage("pages/component/text/index/index"), + clickEvent(e) { + this.text = "点击已触发"; + }, + longpressEvent() { + this.text = "长按已触发"; + }, + swipeEvent(e) { + this.text = "swipe方向:" + e.direction; + } +}; diff --git a/examples/showcase/src/main/js/default/pages/component/text/index/index.hml b/examples/showcase/src/main/js/default/pages/component/text/index/index.hml index 9dea56c66a51ece2fe24a0c09902eacf8c9e394d..629b2076e2f52991b741cd44aa42218d699061a3 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/component/text/index/index.hml @@ -13,42 +13,36 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - - - - text - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + text + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/component/text/index/index.js b/examples/showcase/src/main/js/default/pages/component/text/index/index.js index 1ea5b8be6f111fffbc75c9eac86f35169c25369c..3e8cde3cba36a8a7a4757b848de91f8690a4dae7 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/index/index.js +++ b/examples/showcase/src/main/js/default/pages/component/text/index/index.js @@ -12,11 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage,routePage} from "../../../../common/js/general"; +import { backPage, routePage } from "../../../../common/js/general"; export default { - ...backPage("pages/component/index/baseIndex/index"), - changePage1: routePage("pages/component/text/attr/attr").changePage, - changePage2: routePage("pages/component/text/commonStyle/commonStyle").changePage, - changePage3: routePage("pages/component/text/specStyle/specStyle").changePage, - changePage4: routePage("pages/component/text/event/event").changePage -} \ No newline at end of file + ...backPage("pages/component/index/baseIndex/index"), + changePage1: routePage("pages/component/text/attr/attr").changePage, + changePage2: routePage("pages/component/text/commonStyle/commonStyle").changePage, + changePage3: routePage("pages/component/text/specStyle/specStyle").changePage, + changePage4: routePage("pages/component/text/event/event").changePage +}; diff --git a/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.css b/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.css index 88824f8866e795b971936c811add617189490bd8..cef758aa6741a525492a6d018b28a486837d62e8 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.css +++ b/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.css @@ -38,11 +38,11 @@ } .whole-text { - margin-top:10px; - margin-left:150px; - width:200px; - height:60px; - font-size:30px; + margin-top: 10px; + margin-left: 150px; + width: 200px; + height: 60px; + font-size: 30px; color: red; } @@ -51,7 +51,7 @@ height: 50px; margin-top: 10px; margin-left: 10px; - font-size:30px; + font-size: 30px; } .item-special { @@ -69,8 +69,8 @@ .special-left-div { width: 250px; height: 200px; - top:0px; - left:0px; + top: 0px; + left: 0px; flex-direction: column; } diff --git a/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.hml b/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.hml index 6d1bb7e579ff04b725e249b03af4319197b16a17..15fbdf1af9d62cf11726207df86a9f34e89b0705 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.hml +++ b/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.hml @@ -13,54 +13,83 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - - - 特有样式 - - - - -
-
- color;font-size;letter-spacing -
-
- show -
-
-
- - - -
-
- text-align;text-overflow;font-family -
-
- show textabcde -
-
-
- - - -
-
- text-align;text-overflow; -
-
- show textabcde -
-
-
- - -
\ No newline at end of file + + + + + + + + + 特有样式 + + + +
+
+ color;font-size;letter-spacing +
+
+ show +
+
+
+ + +
+
+ text-align;text-overflow;font-family +
+
+ show textabcde +
+
+
+ + +
+
+ text-align;text-overflow; +
+
+ show textabcde +
+
+
+ +
diff --git a/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.js b/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.js index 80fadc46784dc4cb6429219e0eae94ade2660ade..7d5fca20ffaf2293fb9676fa3dbe686f5068579c 100755 --- a/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.js +++ b/examples/showcase/src/main/js/default/pages/component/text/specStyle/specStyle.js @@ -15,5 +15,5 @@ // specStyle.js import { goPage, routePage } from "../../../../common/js/general"; export default { - ...goPage("pages/component/text/index/index") -} \ No newline at end of file + ...goPage("pages/component/text/index/index") +}; diff --git a/examples/showcase/src/main/js/default/pages/index/index.hml b/examples/showcase/src/main/js/default/pages/index/index.hml index ce25441bf2336881f28a23851eb36e12d55814dc..88e58a9542f128fa1536b8d1347db60a247e0428 100755 --- a/examples/showcase/src/main/js/default/pages/index/index.hml +++ b/examples/showcase/src/main/js/default/pages/index/index.hml @@ -13,34 +13,26 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - 功能展示 - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + 功能展示 + + + + + + + + + + + + + + + + + + + diff --git a/examples/showcase/src/main/js/default/pages/index/index.js b/examples/showcase/src/main/js/default/pages/index/index.js index 11c1c3826cfa82ba7b4e7689d22f583b8cfeca9a..8a0740e7ac29ca4b8e10be1100ea64d46f5208fa 100755 --- a/examples/showcase/src/main/js/default/pages/index/index.js +++ b/examples/showcase/src/main/js/default/pages/index/index.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {backPage, routePage} from "../../common/js/general"; +import { backPage, routePage } from "../../common/js/general"; export default { changeComponent1: routePage("pages/component/index/containerIndex/index").changePage, changeComponent2: routePage("pages/component/index/baseIndex/index").changePage, changeComponent3: routePage("pages/component/index/formIndex/index").changePage, changeComponent4: routePage("pages/component/index/otherIndex/index").changePage -} \ No newline at end of file +};