|
@@ -3,6 +3,8 @@
|
|
|
<div class="header">
|
|
|
<div style="display: flex">
|
|
|
<span v-if="option.out" class="btn" @click="downloadExcel">导出</span>
|
|
|
+
|
|
|
+
|
|
|
<!-- <el-button
|
|
|
type="primary"
|
|
|
class="btn"
|
|
@@ -48,7 +50,6 @@ import { onMounted, ref, watch } from "vue";
|
|
|
import { exportExcel } from "./export";
|
|
|
import LuckyExcel from "luckyexcel";
|
|
|
import resData from "./resetData";
|
|
|
-
|
|
|
const props = defineProps({
|
|
|
//双向绑定的data
|
|
|
data: {
|
|
@@ -192,6 +193,12 @@ const leadingExcel = (item, fileList) => {
|
|
|
emits("update:data", data);
|
|
|
inName.value = file.name;
|
|
|
window.luckysheet.create(resetOb.value);
|
|
|
+ luckysheet.imageInsertAfter = function (item) {
|
|
|
+ console.log("新的图片插入完成");
|
|
|
+ console.log("文件对象:", item);
|
|
|
+
|
|
|
+ // 在这里添加自定义逻辑
|
|
|
+ };
|
|
|
});
|
|
|
};
|
|
|
//导出
|
|
@@ -271,7 +278,6 @@ defineExpose({
|
|
|
addImg,
|
|
|
});
|
|
|
onMounted(() => {
|
|
|
-console.log(luckysheet)
|
|
|
if (props.data == null) {
|
|
|
inName.value = "表格模版";
|
|
|
resetOb.value.data = resetdata;
|