Skip to content

Commit

Permalink
fix($plugin-medium-zoom): disable zoom for links (#1719)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng authored and ulivz committed Jul 28, 2019
1 parent 52f421b commit e3393e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/@vuepress/plugin-medium-zoom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { path } = require('@vuepress/shared-utils')

module.exports = (options, context) => ({
define: {
SELECTOR: options.selector || '.theme-default-content img',
SELECTOR: options.selector || '.theme-default-content :not(a) > img',
OPTIONS: options.options
},
clientRootMixin: path.resolve(__dirname, 'clientRootMixin.js')
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/docs/plugin/official/plugin-medium-zoom.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ yarn add -D @vuepress/plugin-medium-zoom@next

```javascript
module.exports = {
plugins: ['@vuepress/medium-zoom']
plugins: ['@vuepress/medium-zoom']
}
```

Expand All @@ -46,7 +46,7 @@ module.exports = {
### selector

- Type: `string`
- Default: `.theme-default-content img`
- Default: `.theme-default-content :not(a) > img`

Note that `.theme-default-content` is the class name of [`<Content />`](../../guide/using-vue.md#content) component in default theme.

Expand Down
6 changes: 3 additions & 3 deletions packages/docs/docs/zh/plugin/official/plugin-medium-zoom.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ yarn add -D @vuepress/plugin-medium-zoom@next

```javascript
module.exports = {
plugins: ['@vuepress/medium-zoom']
plugins: ['@vuepress/medium-zoom']
}
```

Expand All @@ -45,10 +45,10 @@ module.exports = {

## 选项

### selector
### selector

- 类型: `string`
- 默认值: `.theme-default-content img`
- 默认值: `.theme-default-content :not(a) > img`

值得注意的是, `.theme-default-content` 是默认主题添加给 [`<Content />`](../../guide/using-vue.md#content) 组件的 class name。

Expand Down

0 comments on commit e3393e3

Please sign in to comment.