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
|
@@ -43,25 +43,21 @@
|
|
|
43
43
|
<div slot="tip" class="el-upload__tip">{{ tipsMsg }}</div>
|
|
44
44
|
</Upload>
|
|
45
45
|
</div>
|
|
46
|
-
<
|
|
46
|
+
<slot slot="footer" name="footer" :row="fileDataRow">
|
|
47
47
|
<div>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
</
|
|
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: {
|