xianniu-ui 0.7.3 → 0.7.5

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.7.3",
3
+ "version": "0.7.5",
4
4
  "private": false,
5
5
  "main": "lib/xianniu-ui.umd.min.js",
6
6
  "scripts": {
@@ -1,10 +1,8 @@
1
1
  <template>
2
2
  <div class="xn-card">
3
- <div class="xn-card-header flex justify-content-between">
4
- <slot name="title" v-if="title || $slots.title">
5
- <slot name="title">
3
+ <div class="xn-card-header flex justify-content-between" v-if="title || $slots.title || $slots.more">
4
+ <slot name="title">
6
5
  <h3><span>{{title}}</span></h3>
7
- </slot>
8
6
  </slot>
9
7
  <div class="xn-card-header__more">
10
8
  <slot name="more"></slot>
@@ -1,8 +1,8 @@
1
1
  .xn-card {
2
2
  background-color: #fff;
3
- padding: 0 38px;
3
+ padding: 0 30px;
4
4
  &-header {
5
- padding: 24px 0 13px 0;
5
+ padding: 20px 0 13px 0;
6
6
  border-bottom: 1px solid #f2f2f2;
7
7
  h3 {
8
8
  margin: 0;
package/src/oss/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  const OSS = require('ali-oss')
2
2
  import $dayjs from '@/utils/dayjs'
3
3
  const { v4: uuidv4 } = require('uuid');
4
- import { Message } from 'element-ui';
5
4
  class Client {
6
5
  constructor(params = {}) {
7
6
  this.uploadHost = null
@@ -36,7 +35,7 @@ class Client {
36
35
  getStsToken(file) {
37
36
  return new Promise((resolve, reject) => {
38
37
  if (!this.stsUrl) {
39
- Message.error('获取临时凭证地址不能为空')
38
+ console.error('获取临时凭证地址不能为空');
40
39
  file.onError()
41
40
  return
42
41
  }