diff --git a/App.vue b/App.vue
index 058ac5f28e72934c3bc8f2d49796316ba29bd8fc..523d72afe325a0a1ed68e2797780977b67120db9 100644
--- a/App.vue
+++ b/App.vue
@@ -1,103 +1,107 @@
+ .split-title {
+ margin: 20px 0 5px;
+ padding: 5px 0;
+ border-bottom: 1px solid #dfdfdf;
+ }
+
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 4caff87c0cff4e66eca935ac794012ec6f480c64..df20794b25e0bf991e9f2f47afb9a06551043918 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "hello-uvue",
- "appid" : "__UNI__CD1E05C",
+ "appid" : "",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
diff --git a/pages.json b/pages.json
index 4681437bf7ddf280fffc1f2c0716f7c4ad25e605..7bc4624666618dde7c5fa51565875d8e75720cac 100644
--- a/pages.json
+++ b/pages.json
@@ -6,61 +6,61 @@
}
},
{
- "path": "pages/v-bind/v-bind",
+ "path": "pages/directive/v-bind/v-bind",
"style": {
"navigationBarTitleText": "v-bind"
}
},
{
- "path": "pages/v-for/v-for",
+ "path": "pages/directive/v-for/v-for",
"style": {
"navigationBarTitleText": "v-for"
}
},
{
- "path": "pages/v-if/v-if",
+ "path": "pages/directive/v-if/v-if",
"style": {
"navigationBarTitleText": "v-if"
}
},
{
- "path": "pages/v-model/v-model",
+ "path": "pages/directive/v-model/v-model",
"style": {
"navigationBarTitleText": "v-model"
}
},
{
- "path": "pages/v-on/v-on",
+ "path": "pages/directive/v-on/v-on",
"style": {
"navigationBarTitleText": "v-on"
}
},
{
- "path": "pages/v-once/v-once",
+ "path": "pages/directive/v-once/v-once",
"style": {
"navigationBarTitleText": "v-once"
}
},
{
- "path": "pages/v-show/v-show",
+ "path": "pages/directive/v-show/v-show",
"style": {
"navigationBarTitleText": "v-show"
}
},
{
- "path": "pages/v-slot/v-slot",
+ "path": "pages/directive/v-slot/v-slot",
"style": {
"navigationBarTitleText": "v-slot"
}
},
{
- "path": "pages/page-lifecycle/page-lifecycle",
+ "path": "pages/lifecycle/page/page",
"style": {
"navigationBarTitleText": "page-lifecycle"
}
},
{
- "path": "pages/component-lifecycle/component-lifecycle",
+ "path": "pages/lifecycle/component/component",
"style": {
"navigationBarTitleText": "component-lifecycle"
}
@@ -175,20 +175,20 @@
"enablePullDownRefresh": false
}
},
- {
- "path": "pages/rendering/slots/slots",
- "style": {
- "navigationBarTitleText": "slots",
- "enablePullDownRefresh": false
- }
- },
- {
- "path": "pages/rendering/template/template",
- "style": {
- "navigationBarTitleText": "template",
- "enablePullDownRefresh": false
- }
- }
+ {
+ "path": "pages/rendering/slots/slots",
+ "style": {
+ "navigationBarTitleText": "slots",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/rendering/template/template",
+ "style": {
+ "navigationBarTitleText": "template",
+ "enablePullDownRefresh": false
+ }
+ }
],
"globalStyle": {
"pageOrientation": "portrait",
diff --git a/pages/v-bind/v-bind.test.js b/pages/directive/v-bind/v-bind.test.js
similarity index 79%
rename from pages/v-bind/v-bind.test.js
rename to pages/directive/v-bind/v-bind.test.js
index 8ed328b4c3ac747f743b9fa165eacb8b20cd34db..d640733db63cabcc6414bf48b987e07b2228354a 100644
--- a/pages/v-bind/v-bind.test.js
+++ b/pages/directive/v-bind/v-bind.test.js
@@ -1,4 +1,4 @@
-const PAGE_PATH = '/pages/v-bind/v-bind'
+const PAGE_PATH = '/pages/directive/v-bind/v-bind'
describe('v-bind', () => {
let page
diff --git a/pages/v-bind/v-bind.uvue b/pages/directive/v-bind/v-bind.uvue
similarity index 100%
rename from pages/v-bind/v-bind.uvue
rename to pages/directive/v-bind/v-bind.uvue
diff --git a/pages/v-for/v-for.test.js b/pages/directive/v-for/v-for.test.js
similarity index 85%
rename from pages/v-for/v-for.test.js
rename to pages/directive/v-for/v-for.test.js
index 576099fe2577e1f8a0aea8e084ad7097e8ce53b5..29dc90241d8d0d8672b3928097f6ccc2765a1fd0 100644
--- a/pages/v-for/v-for.test.js
+++ b/pages/directive/v-for/v-for.test.js
@@ -1,4 +1,4 @@
-const PAGE_PATH = '/pages/v-for/v-for'
+const PAGE_PATH = '/pages/directive/v-for/v-for'
describe('v-for', () => {
let page
diff --git a/pages/v-for/v-for.uvue b/pages/directive/v-for/v-for.uvue
similarity index 100%
rename from pages/v-for/v-for.uvue
rename to pages/directive/v-for/v-for.uvue
diff --git a/pages/v-if/v-if.test.js b/pages/directive/v-if/v-if.test.js
similarity index 86%
rename from pages/v-if/v-if.test.js
rename to pages/directive/v-if/v-if.test.js
index cd7f0dcd44780dec526b664bbeb4b3b3a7e32794..e6ac5fd231087c8e9c696de54b7d500fe93826c1 100644
--- a/pages/v-if/v-if.test.js
+++ b/pages/directive/v-if/v-if.test.js
@@ -1,4 +1,4 @@
-const PAGE_PATH = '/pages/v-if/v-if'
+const PAGE_PATH = '/pages/directive/v-if/v-if'
describe('v-if', () => {
let page
diff --git a/pages/v-if/v-if.uvue b/pages/directive/v-if/v-if.uvue
similarity index 100%
rename from pages/v-if/v-if.uvue
rename to pages/directive/v-if/v-if.uvue
diff --git a/pages/v-model/counter.uvue b/pages/directive/v-model/counter.uvue
similarity index 100%
rename from pages/v-model/counter.uvue
rename to pages/directive/v-model/counter.uvue
diff --git a/pages/v-model/v-model.test.js b/pages/directive/v-model/v-model.test.js
similarity index 88%
rename from pages/v-model/v-model.test.js
rename to pages/directive/v-model/v-model.test.js
index 5baa46fdb9c840cf40318105feda71a80f7a2bfb..d9a09c6e4aa3365eeb6a2c015232b46d77d0399f 100644
--- a/pages/v-model/v-model.test.js
+++ b/pages/directive/v-model/v-model.test.js
@@ -1,4 +1,4 @@
-const PAGE_PATH = '/pages/v-model/v-model'
+const PAGE_PATH = '/pages/directive/v-model/v-model'
describe('v-model', () => {
let page
diff --git a/pages/v-model/v-model.uvue b/pages/directive/v-model/v-model.uvue
similarity index 100%
rename from pages/v-model/v-model.uvue
rename to pages/directive/v-model/v-model.uvue
diff --git a/pages/v-on/v-on.test.js b/pages/directive/v-on/v-on.test.js
similarity index 91%
rename from pages/v-on/v-on.test.js
rename to pages/directive/v-on/v-on.test.js
index 0d8a9038a722eba55156f0f69c326af13803bbdb..b212a55b937fbc173f58102c85d76dc9673a2af2 100644
--- a/pages/v-on/v-on.test.js
+++ b/pages/directive/v-on/v-on.test.js
@@ -1,4 +1,4 @@
-const PAGE_PATH = '/pages/v-on/v-on'
+const PAGE_PATH = '/pages/directive/v-on/v-on'
describe('v-on', () => {
let page
diff --git a/pages/v-on/v-on.uvue b/pages/directive/v-on/v-on.uvue
similarity index 100%
rename from pages/v-on/v-on.uvue
rename to pages/directive/v-on/v-on.uvue
diff --git a/pages/v-once/v-once.test.js b/pages/directive/v-once/v-once.test.js
similarity index 78%
rename from pages/v-once/v-once.test.js
rename to pages/directive/v-once/v-once.test.js
index fc597cd67d178d204765a007dc9500c56d369a7d..4330c012ee52efb910a0abc076791237a49752ce 100644
--- a/pages/v-once/v-once.test.js
+++ b/pages/directive/v-once/v-once.test.js
@@ -1,4 +1,4 @@
-const PAGE_PATH = '/pages/v-once/v-once'
+const PAGE_PATH = '/pages/directive/v-once/v-once'
describe('v-once', () => {
let page
diff --git a/pages/v-once/v-once.uvue b/pages/directive/v-once/v-once.uvue
similarity index 100%
rename from pages/v-once/v-once.uvue
rename to pages/directive/v-once/v-once.uvue
diff --git a/pages/v-show/v-show.test.js b/pages/directive/v-show/v-show.test.js
similarity index 94%
rename from pages/v-show/v-show.test.js
rename to pages/directive/v-show/v-show.test.js
index 40bd13ff043405471e605287d212d6633fd7654f..2adfc98d3733d16e775c2ef9436954234172ca5c 100644
--- a/pages/v-show/v-show.test.js
+++ b/pages/directive/v-show/v-show.test.js
@@ -1,4 +1,4 @@
-const PAGE_PATH = '/pages/v-show/v-show'
+const PAGE_PATH = '/pages/directive/v-show/v-show'
describe('v-show', () => {
let page
diff --git a/pages/v-show/v-show.uvue b/pages/directive/v-show/v-show.uvue
similarity index 100%
rename from pages/v-show/v-show.uvue
rename to pages/directive/v-show/v-show.uvue
diff --git a/pages/v-slot/counter.uvue b/pages/directive/v-slot/counter.uvue
similarity index 100%
rename from pages/v-slot/counter.uvue
rename to pages/directive/v-slot/counter.uvue
diff --git a/pages/v-slot/v-slot.test.js b/pages/directive/v-slot/v-slot.test.js
similarity index 78%
rename from pages/v-slot/v-slot.test.js
rename to pages/directive/v-slot/v-slot.test.js
index a50efe2269dd69e4a65d938868cdc68a2f6c4f9d..d7ffd23adff0bbcd1e48378d5ff1eddfa5054e29 100644
--- a/pages/v-slot/v-slot.test.js
+++ b/pages/directive/v-slot/v-slot.test.js
@@ -1,4 +1,4 @@
-const PAGE_PATH = '/pages/v-slot/v-slot'
+const PAGE_PATH = '/pages/directive/v-slot/v-slot'
describe('v-slot', () => {
let page
diff --git a/pages/v-slot/v-slot.uvue b/pages/directive/v-slot/v-slot.uvue
similarity index 100%
rename from pages/v-slot/v-slot.uvue
rename to pages/directive/v-slot/v-slot.uvue
diff --git a/pages/index.uvue b/pages/index.uvue
index 04bfb03c5f557e5b486c985a55afe48d91e17f88..af6964fcf3b519fdf1e26c849490f23c5f1aa7c7 100644
--- a/pages/index.uvue
+++ b/pages/index.uvue
@@ -6,8 +6,9 @@
-
- {{page.name}}
+
+ {{page.name}}
@@ -16,30 +17,21 @@
+
+
+ component lifecycle
+
+
+
+
+
diff --git a/pages/page-lifecycle/page-lifecycle.test.js b/pages/lifecycle/page/page.test.js
similarity index 97%
rename from pages/page-lifecycle/page-lifecycle.test.js
rename to pages/lifecycle/page/page.test.js
index a8328d2dd3fcebb3f145bb89c387746493c753e7..c86311ff9e4ba7844636bb1a8294b97faeba5a95 100644
--- a/pages/page-lifecycle/page-lifecycle.test.js
+++ b/pages/lifecycle/page/page.test.js
@@ -1,4 +1,4 @@
-const PAGE_PATH = '/pages/page-lifecycle/page-lifecycle'
+const PAGE_PATH = '/pages/lifecycle/page/page'
const HOME_PATH = '/pages/index'
describe('page-lifecycle', () => {
diff --git a/pages/page-lifecycle/page-lifecycle.uvue b/pages/lifecycle/page/page.uvue
similarity index 88%
rename from pages/page-lifecycle/page-lifecycle.uvue
rename to pages/lifecycle/page/page.uvue
index bc5bdc4373e1daddee3ff07f57af374f080ea071..37e93ec44c7108b4d943cfa91f10d66ad533d28c 100644
--- a/pages/page-lifecycle/page-lifecycle.uvue
+++ b/pages/lifecycle/page/page.uvue
@@ -1,41 +1,41 @@
-
-
- page lifecycle
-
-
-
-
\ No newline at end of file