From 14396863e81cf29fda12811a73f23c979f938469 Mon Sep 17 00:00:00 2001 From: Peter Zhao Date: Wed, 17 Jul 2019 20:55:26 +0800 Subject: [PATCH] doc: update defaultConfig --- README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5c45247..7260ea9 100644 --- a/README.md +++ b/README.md @@ -230,26 +230,34 @@ Re-package the application with webpack. When the page is restarted, you can see ```javascript const pluginDefaultConfig = { port: '8989', + // ['spin', 'chiaroscuro', 'shine'], + loading: 'spin', text: { color: '#EEEEEE' }, image: { - shape: 'rect', // `rect` | `circle` + // `rect` | `circle` + shape: 'rect', color: '#EFEFEF', shapeOpposite: [] }, button: { color: '#EFEFEF', - excludes: [] + excludes: [] }, svg: { + // or transparent color: '#EFEFEF', - shape: 'circle', // circle | rect + // circle | rect + shape: 'circle', shapeOpposite: [] }, pseudo: { - color: '#EFEFEF', // or transparent - shape: 'circle' // circle | rect + // or transparent + color: '#EFEFEF', + // circle | rect + shape: 'circle', + shapeOpposite: [] }, device: 'iPhone 6 Plus', debug: false, @@ -265,8 +273,9 @@ const pluginDefaultConfig = { hide: [], grayBlock: [], cookies: [], - storagies: {}, - sessionStoragies: {}, + headless: true, + h5Only: false, + // or 'vw|vh|vmin|vmax' cssUnit: 'rem', decimal: 4, logLevel: 'info',