From 95f86bfccadc29253c956172268a04facf379d19 Mon Sep 17 00:00:00 2001 From: dreambo8563 Date: Fri, 19 Apr 2019 19:42:54 +0800 Subject: [PATCH 1/4] docs(add zIndex): update readme and example --- Makefile | 2 +- README.md | 13 +++++++------ src/App.vue | 25 +++++++------------------ src/index.vue | 24 ++++++++---------------- 4 files changed, 23 insertions(+), 41 deletions(-) diff --git a/Makefile b/Makefile index 49851e9..24144e8 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ local: npm run serve build: npm run build -doc: +docs: npm run pages report: npm run report \ No newline at end of file diff --git a/README.md b/README.md index 90f5a18..c85263c 100644 --- a/README.md +++ b/README.md @@ -56,12 +56,13 @@ export default { ### Prop Types -| Property | Type | Required? | Description | -| :----------- | :------ | :-------- | :------------------------------------------------------------------------------------ | -| align | String | | One of "left", "up", "right", "down", default is 'right'. the location of the drawer. | -| closeable | Boolean | | show the x - close button, default true | -| mask | Boolean | | show the mask layer - close button, default true | -| maskClosable | Boolean | | emit 'close' event when click on mask layer, default: false | +| Property | Type | Required? | Description | +| :----------- | :------ | :-------- | :------------------------------------------------------------------------------------------------------- | +| align | String | | One of "left", "up", "right", "down", default is 'right'. the location of the drawer. | +| closeable | Boolean | | show the x - close button, default true | +| mask | Boolean | | show the mask layer - close button, default true | +| maskClosable | Boolean | | emit 'close' event when click on mask layer, default: false | +| zIndex | Number | | z-index value for the drawer, the nest drawer's z-index will be increased automatically, default is 1000 | ### Events diff --git a/src/App.vue b/src/App.vue index f178e22..6ff8f69 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,45 +2,34 @@
- +
- +
- +
- +
- +
content here content here content here content here content here content here content here - +
content here content here content here
@@ -72,7 +61,7 @@ export default { } }, watch: { - align: function() { + align: function () { this.open = false; } } diff --git a/src/index.vue b/src/index.vue index b0cd63e..e1cfa42 100644 --- a/src/index.vue +++ b/src/index.vue @@ -1,17 +1,9 @@