优化 去除图片转换逻辑
This commit is contained in:
parent
21a0ca112e
commit
7f7acfea0c
|
|
@ -258,23 +258,23 @@ export default defineComponent({
|
|||
}
|
||||
}, info)
|
||||
|
||||
if(!this.hrefBase64 && this.cellInfo.style.shape.href && this.cellInfo.style.shape.href.indexOf("data:image") < 0){
|
||||
// DataUri.imageToDataUri(this.cellInfo.style.shape.href,
|
||||
// function (nu, url) {
|
||||
// console.log("base64 完成")
|
||||
// // 第一个参数无效,用的只是第二个参数,但是第一个参数不写不行
|
||||
// // @ts-ignore
|
||||
// this.hrefBase64 = url; // 给图片标签赋值
|
||||
// }
|
||||
|
||||
// );
|
||||
convertImageToBase64(this.cellInfo.style.shape.href).then((res)=>{
|
||||
// @ts-ignore 待优化
|
||||
this.hrefBase64 = res
|
||||
console.log("base64 完成")
|
||||
// this.cellInfo.style.shape.href = res
|
||||
})
|
||||
}
|
||||
// if(!this.hrefBase64 && this.cellInfo.style.shape.href && this.cellInfo.style.shape.href.indexOf("data:image") < 0){
|
||||
// // DataUri.imageToDataUri(this.cellInfo.style.shape.href,
|
||||
// // function (nu, url) {
|
||||
// // console.log("base64 完成")
|
||||
// // // 第一个参数无效,用的只是第二个参数,但是第一个参数不写不行
|
||||
// // // @ts-ignore
|
||||
// // this.hrefBase64 = url; // 给图片标签赋值
|
||||
// // }
|
||||
//
|
||||
// // );
|
||||
// convertImageToBase64(this.cellInfo.style.shape.href).then((res)=>{
|
||||
// // @ts-ignore 待优化
|
||||
// this.hrefBase64 = res
|
||||
// console.log("base64 完成")
|
||||
// // this.cellInfo.style.shape.href = res
|
||||
// })
|
||||
// }
|
||||
setTimeout(() => {
|
||||
if (this.nodeInfo.store && this.nodeInfo.store.data) {
|
||||
this.nodeInfo.store.data.data = this.cellInfo
|
||||
|
|
|
|||
|
|
@ -258,23 +258,23 @@ export default defineComponent({
|
|||
}
|
||||
}, info)
|
||||
|
||||
if(!this.hrefBase64 && this.cellInfo.style.shape.href && this.cellInfo.style.shape.href.indexOf("data:image") < 0){
|
||||
// DataUri.imageToDataUri(this.cellInfo.style.shape.href,
|
||||
// function (nu, url) {
|
||||
// console.log("base64 完成")
|
||||
// // 第一个参数无效,用的只是第二个参数,但是第一个参数不写不行
|
||||
// // @ts-ignore
|
||||
// this.hrefBase64 = url; // 给图片标签赋值
|
||||
// }
|
||||
|
||||
// );
|
||||
convertImageToBase64(this.cellInfo.style.shape.href).then((res)=>{
|
||||
// @ts-ignore 待优化
|
||||
this.hrefBase64 = res
|
||||
console.log("base64 完成")
|
||||
// this.cellInfo.style.shape.href = res
|
||||
})
|
||||
}
|
||||
// if(!this.hrefBase64 && this.cellInfo.style.shape.href && this.cellInfo.style.shape.href.indexOf("data:image") < 0){
|
||||
// // DataUri.imageToDataUri(this.cellInfo.style.shape.href,
|
||||
// // function (nu, url) {
|
||||
// // console.log("base64 完成")
|
||||
// // // 第一个参数无效,用的只是第二个参数,但是第一个参数不写不行
|
||||
// // // @ts-ignore
|
||||
// // this.hrefBase64 = url; // 给图片标签赋值
|
||||
// // }
|
||||
//
|
||||
// // );
|
||||
// convertImageToBase64(this.cellInfo.style.shape.href).then((res)=>{
|
||||
// // @ts-ignore 待优化
|
||||
// this.hrefBase64 = res
|
||||
// console.log("base64 完成")
|
||||
// // this.cellInfo.style.shape.href = res
|
||||
// })
|
||||
// }
|
||||
setTimeout(() => {
|
||||
if (this.nodeInfo.store && this.nodeInfo.store.data) {
|
||||
this.nodeInfo.store.data.data = this.cellInfo
|
||||
|
|
|
|||
Loading…
Reference in New Issue