@fonixtree/magic-design 0.0.148 → 0.0.149
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.
|
@@ -334,7 +334,7 @@ function (_super) {
|
|
|
334
334
|
|
|
335
335
|
if (data.specialContent.length == 0) {
|
|
336
336
|
if (outputType == 'html' && mode == 'renderer') {
|
|
337
|
-
if (data.content.clickUrl) {
|
|
337
|
+
if (data === null || data === void 0 ? void 0 : data.content.clickUrl) {
|
|
338
338
|
var a = document.createElement('a');
|
|
339
339
|
a.href = data.content.clickUrl;
|
|
340
340
|
a.target = '_blank';
|
|
@@ -356,7 +356,7 @@ function (_super) {
|
|
|
356
356
|
var node = document.createElement('span');
|
|
357
357
|
node.style = (0, _commonUtil.styleStringify)(contentStyle(c.content));
|
|
358
358
|
|
|
359
|
-
if (c.content.clickUrl) {
|
|
359
|
+
if (c === null || c === void 0 ? void 0 : c.content.clickUrl) {
|
|
360
360
|
if (outputType == 'html' && mode == 'renderer') {
|
|
361
361
|
var a = document.createElement('a');
|
|
362
362
|
a.href = c.content.clickUrl;
|
|
@@ -391,7 +391,7 @@ function (_super) {
|
|
|
391
391
|
/** 找到当前选中的区域 */
|
|
392
392
|
|
|
393
393
|
|
|
394
|
-
if (_mobx.store.textSelection == c.content) {
|
|
394
|
+
if (_mobx.store.textSelection == (c === null || c === void 0 ? void 0 : c.content)) {
|
|
395
395
|
/** 添加删除按钮 */
|
|
396
396
|
_this.createHoverClose(node, function () {
|
|
397
397
|
/** 第一步去除选中区域 */
|
package/es/utils/coreUtil.js
CHANGED
|
@@ -287,8 +287,6 @@ var getCoupon = function getCoupon(couponId) {
|
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
var clickUrl = function clickUrl(url) {
|
|
290
|
-
console.log('url', url);
|
|
291
|
-
|
|
292
290
|
if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
|
|
293
291
|
return;
|
|
294
292
|
}
|
|
@@ -334,7 +334,7 @@ function (_super) {
|
|
|
334
334
|
|
|
335
335
|
if (data.specialContent.length == 0) {
|
|
336
336
|
if (outputType == 'html' && mode == 'renderer') {
|
|
337
|
-
if (data.content.clickUrl) {
|
|
337
|
+
if (data === null || data === void 0 ? void 0 : data.content.clickUrl) {
|
|
338
338
|
var a = document.createElement('a');
|
|
339
339
|
a.href = data.content.clickUrl;
|
|
340
340
|
a.target = '_blank';
|
|
@@ -356,7 +356,7 @@ function (_super) {
|
|
|
356
356
|
var node = document.createElement('span');
|
|
357
357
|
node.style = (0, _commonUtil.styleStringify)(contentStyle(c.content));
|
|
358
358
|
|
|
359
|
-
if (c.content.clickUrl) {
|
|
359
|
+
if (c === null || c === void 0 ? void 0 : c.content.clickUrl) {
|
|
360
360
|
if (outputType == 'html' && mode == 'renderer') {
|
|
361
361
|
var a = document.createElement('a');
|
|
362
362
|
a.href = c.content.clickUrl;
|
|
@@ -391,7 +391,7 @@ function (_super) {
|
|
|
391
391
|
/** 找到当前选中的区域 */
|
|
392
392
|
|
|
393
393
|
|
|
394
|
-
if (_mobx.store.textSelection == c.content) {
|
|
394
|
+
if (_mobx.store.textSelection == (c === null || c === void 0 ? void 0 : c.content)) {
|
|
395
395
|
/** 添加删除按钮 */
|
|
396
396
|
_this.createHoverClose(node, function () {
|
|
397
397
|
/** 第一步去除选中区域 */
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -287,8 +287,6 @@ var getCoupon = function getCoupon(couponId) {
|
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
var clickUrl = function clickUrl(url) {
|
|
290
|
-
console.log('url', url);
|
|
291
|
-
|
|
292
290
|
if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
|
|
293
291
|
return;
|
|
294
292
|
}
|