web-component-gallery 2.0.24 → 2.0.26

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.
@@ -19,8 +19,8 @@ const FILE_TYPES = {
19
19
 
20
20
  // 初始化数据
21
21
  const setInnerData = (data, https) => {
22
-
23
- let innerData = data
22
+
23
+ let innerData = data ?? []
24
24
 
25
25
  if (typeof(data) === 'string') {
26
26
  try {
@@ -160,6 +160,14 @@ export default {
160
160
  this.innerOptions = [...newVal]
161
161
  },
162
162
  immediate: true
163
+ },
164
+ listPageParams: {
165
+ handler(newVal) {
166
+ this.searchValue = ''
167
+ this.pagination.current = 1
168
+ this.fetchData()
169
+ },
170
+ deep: true
163
171
  }
164
172
  },
165
173
 
@@ -1,4 +1,4 @@
1
- import NoData from '../index'
1
+ import NoData from './index.vue'
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.24",
3
+ "version": "2.0.26",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [