xianniu-ui 0.3.13 → 0.3.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xianniu-ui",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "private": false,
5
5
  "main": "lib/xianniu-ui.umd.min.js",
6
6
  "scripts": {
@@ -62,7 +62,7 @@
62
62
  popper-class="xn-table-box-tools__pop"
63
63
  class="ml-10"
64
64
  trigger="hover"
65
- :hidden="!showColumn"
65
+ :hidden="!showColumn && columns.length"
66
66
  >
67
67
  <el-scrollbar
68
68
  class="xn-table-box-tools__coll"
@@ -163,7 +163,7 @@ export default {
163
163
  },
164
164
  columns: {
165
165
  type: Array,
166
- default: () => {},
166
+ default: () => [],
167
167
  },
168
168
  stripe: Boolean,
169
169
  selection: Boolean,
@@ -195,7 +195,9 @@ export default {
195
195
  },
196
196
  computed: {},
197
197
  created() {
198
- this.columns.length &&
198
+ console.log(this.$slots);
199
+ !this.$slots.default &&
200
+ this.columns.length &&
199
201
  this.columns.forEach((item) => {
200
202
  this.$set(item, "checked", true);
201
203
  });
@@ -263,14 +263,8 @@ export default {
263
263
  },
264
264
  })
265
265
  .then((res) => {
266
- const { name, size, ext, imgFlag, url } = res.data.data;
267
- var obj = {};
268
- obj.name = name;
269
- obj.size = size;
270
- obj.ext = ext;
271
- obj.imgFlag = imgFlag;
272
- obj.url = url;
273
- this.successFiles.push(obj);
266
+ const { name, size, ext, imgFlag, url,fileId } = res.data.data;
267
+ this.successFiles.push({name,size,ext,imgFlag,url,fileId});
274
268
  file.onSuccess();
275
269
  this.$emit("update:fileList", this.successFiles);
276
270
  this.$emit("on-success", this.successFiles);
package/src/index.js CHANGED
@@ -31,9 +31,6 @@ const components = [
31
31
  XnFooter
32
32
  ]
33
33
  const version = require('../package.json').version
34
- if (process.env.NODE_ENV && process.env.NODE_ENV === 'development') {
35
- console.log(`doc:${doc}`);
36
- }
37
34
  const install = function (Vue) {
38
35
  if (install.installed) return
39
36
  if (!Vue.prototype.$ELEMENT) throw new Error('缺失 element-ui,请进行安装')
@@ -6,7 +6,6 @@ import storage from './storage'
6
6
  import utils from './utils'
7
7
  import lodash from 'lodash'
8
8
  import math from './math'
9
- console.log('math: ', math);
10
9
  const version = () => {
11
10
  return `xianniu-tools@${require('./package.json').version}`
12
11
  }