yks-element 1.0.316 → 1.0.317

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": "yks-element",
3
- "version": "1.0.316",
3
+ "version": "1.0.317",
4
4
  "description": "yks公共库",
5
5
  "private": false,
6
6
  "keywords": ["yks-element", "element-ui", "tinymce", "vue"],
@@ -43,25 +43,21 @@
43
43
  <div slot="tip" class="el-upload__tip">{{ tipsMsg }}</div>
44
44
  </Upload>
45
45
  </div>
46
- <template v-slot:footer>
46
+ <slot slot="footer" name="footer" :row="fileDataRow">
47
47
  <div>
48
- <yks-button
49
- type="primary"
50
- :disabled="!fileSrc || loading"
51
- :loading="loading"
52
- icon="el-icon-upload"
53
- @click="handleUpload"
54
- >上传文件</yks-button
55
- >
56
- <yks-button
57
- type="danger"
58
- :disabled="!fileSrc"
59
- icon="el-icon-delete"
60
- @click="hanleDelete"
61
- >删除文件</yks-button
62
- >
48
+ <yks-button
49
+ type="primary"
50
+ icon="el-icon-upload"
51
+ :disabled="!fileSrc || loading"
52
+ :loading="loading"
53
+ @click="handleUpload"
54
+ >上传文件</yks-button
55
+ >
56
+ <yks-button type="danger" icon="el-icon-delete" :disabled="!fileSrc" @click="hanleDelete"
57
+ >删除文件</yks-button
58
+ >
63
59
  </div>
64
- </template>
60
+ </slot>
65
61
  </yks-dialog>
66
62
  </template>
67
63
 
@@ -182,6 +178,9 @@ export default {
182
178
  return 'icon-pause'
183
179
  }
184
180
  return 'el-icon-microphone'
181
+ },
182
+ fileDataRow() {
183
+ return this.data || {}
185
184
  }
186
185
  },
187
186
  watch: {
@@ -168,7 +168,6 @@ export default {
168
168
  /* 获取音视频时长 */
169
169
  getDuration() {
170
170
  const video = this.$refs[this.videoId]
171
- console.log(video.duration)
172
171
 
173
172
  if (!Number.isFinite(video.duration)) {
174
173
  this.musicAllDuration = 300
package/packages/index.js CHANGED
@@ -136,7 +136,7 @@ if (typeof window !== 'undefined' && window.Vue) {
136
136
  install(window.Vue)
137
137
  }
138
138
  export default {
139
- version: '1.0.316',
139
+ version: '1.0.317',
140
140
  locale: locale.use,
141
141
  i18n: locale.i18n,
142
142
  install,