From b8ddf5a5155099e9bc5ff1738d2fa5a31c90b335 Mon Sep 17 00:00:00 2001 From: any86 <383514580@qq.com> Date: Wed, 3 Feb 2021 13:16:35 +0800 Subject: [PATCH] =?UTF-8?q?chore(demo):=20=E5=A2=9E=E5=8A=A0=E9=98=B4?= =?UTF-8?q?=E5=BD=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/www/src/App.vue | 68 ++++++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 30 deletions(-) diff --git a/packages/www/src/App.vue b/packages/www/src/App.vue index e978899..17880f9 100644 --- a/packages/www/src/App.vue +++ b/packages/www/src/App.vue @@ -20,14 +20,15 @@ class="message" href="https://github.com/any86/any-rule/issues/new" target="_blank" - >提问 + >提问

正则大全

- + github - - + + + />
@@ -128,7 +133,7 @@ export default { Object.freeze(RULES); return { - token:'', + token: '', timer: null, keyword: '', rules: RULES, @@ -137,9 +142,9 @@ export default { isOk: undefined, events: { blur: true, - keyup: true - } - })) + keyup: true, + }, + })), }; }, @@ -173,9 +178,9 @@ export default { }, methods: { - parseExample(examples, counterExamples){ + parseExample(examples, counterExamples) { let arr = [`例如: ${examples.join(', ')}`]; - if(undefined !== counterExamples) { + if (undefined !== counterExamples) { arr.push(`反例: ${counterExamples.join(', ')}`); } return arr.join(' , '); @@ -225,8 +230,8 @@ export default { /* eslint-disable */ _hmt.push(['_trackEvent', 'input框', this.rules[index].title, this.list[index].value]); } - } - } + }, + }, }; @@ -319,8 +324,9 @@ main { h1 { display: inline-block; } - >.github{display: inline-flex; - >span{ + > .github { + display: inline-flex; + > span { margin-left: 5px; } } @@ -336,7 +342,7 @@ main { border-color: #eee; border-width: 1px; border-style: solid; - + box-shadow: 1px 2px 5px 1px rgba(0, 0, 0, 0.1); > .border { position: absolute; background: $primary; @@ -366,7 +372,7 @@ main { display: inline-block; border-radius: $radius; margin-right: 15px; - padding:0 5px; + padding: 0 5px; background: $primary; color: #fff; font-size: 12px; @@ -398,7 +404,9 @@ main { background-color: $danger; } - >code{word-break:break-word;} + > code { + word-break: break-word; + } } > section.verification {