web-component-gallery 2.0.19 → 2.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import Modal from 'ant-design-vue/es/modal'
2
- import {Browse} from '../lib/index'
2
+ import { Browse } from '../lib'
3
3
 
4
4
  const defaultComponents = {
5
5
  Browse
@@ -117,7 +117,7 @@ export default Vue => {
117
117
  )
118
118
  })
119
119
 
120
- const componentContent = component instanceof String ? defaultComponents[ component ] : component
120
+ const componentContent = typeof component === 'string' ? defaultComponents[ component ] : component
121
121
 
122
122
  return h(Modal, ModalProps, [h(componentContent, ComponentProps)])
123
123
  }
@@ -121,8 +121,8 @@ export default {
121
121
  }
122
122
 
123
123
  this.$dialog(
124
- 'Brower',
125
- { data: url },
124
+ 'Browse',
125
+ { data: { url } },
126
126
  {
127
127
  title: '预览文件',
128
128
  width: 1104,
@@ -1,4 +1,4 @@
1
- import NoData from './index.vue'
1
+ import NoData from '../index'
2
2
 
3
3
  // <!-- 基础用法 -->
4
4
  // <div v-no-data="list"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [