@easy-editor/core 0.0.13 → 0.0.15
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/dist/cjs/index.development.js +12 -3
- package/dist/cjs/index.development.js.map +1 -1
- package/dist/cjs/index.js +12 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.production.js +12 -3
- package/dist/cjs/index.production.js.map +1 -1
- package/dist/designer/setting/setting-field.d.ts +2 -0
- package/dist/editor.d.ts +1 -1
- package/dist/esm/index.development.js +12 -3
- package/dist/esm/index.development.js.map +1 -1
- package/dist/esm/index.js +12 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.production.js +12 -3
- package/dist/esm/index.production.js.map +1 -1
- package/dist/index.js +12 -3
- package/dist/simulator/simulator.d.ts +1 -0
- package/package.json +1 -1
|
@@ -8442,6 +8442,9 @@ class Simulator {
|
|
|
8442
8442
|
get enableStrictNotFoundMode() {
|
|
8443
8443
|
return this.editor.get('enableStrictNotFoundMode') ?? false;
|
|
8444
8444
|
}
|
|
8445
|
+
get excuteLifeCycleInDesignMode() {
|
|
8446
|
+
return this.editor.get('excuteLifeCycleInDesignMode') ?? false;
|
|
8447
|
+
}
|
|
8445
8448
|
get notFoundComponent() {
|
|
8446
8449
|
return this.editor.get('notFoundComponent') ?? null;
|
|
8447
8450
|
}
|
|
@@ -10067,6 +10070,10 @@ class SettingField extends SettingPropEntry {
|
|
|
10067
10070
|
}
|
|
10068
10071
|
super.setValue(val, isHotValue, extraOptions);
|
|
10069
10072
|
}
|
|
10073
|
+
clearValue() {
|
|
10074
|
+
this.hotValue = null;
|
|
10075
|
+
super.clearValue();
|
|
10076
|
+
}
|
|
10070
10077
|
getHotValue() {
|
|
10071
10078
|
if (this.hotValue) {
|
|
10072
10079
|
return this.hotValue;
|
|
@@ -10082,13 +10089,15 @@ class SettingField extends SettingPropEntry {
|
|
|
10082
10089
|
const value = data;
|
|
10083
10090
|
if (options) {
|
|
10084
10091
|
options.fromSetHotValue = true;
|
|
10092
|
+
options.forceHotValue = true;
|
|
10085
10093
|
} else {
|
|
10086
10094
|
options = {
|
|
10087
|
-
fromSetHotValue: true
|
|
10095
|
+
fromSetHotValue: true,
|
|
10096
|
+
forceHotValue: true
|
|
10088
10097
|
};
|
|
10089
10098
|
}
|
|
10090
|
-
if (this.isUseVariable()) {
|
|
10091
|
-
const oldValue = this.getValue();
|
|
10099
|
+
if (this.isUseVariable() || options?.forceHotValue) {
|
|
10100
|
+
const oldValue = this.getValue() || {};
|
|
10092
10101
|
if (isJSExpression(value)) {
|
|
10093
10102
|
this.setValue({
|
|
10094
10103
|
type: 'JSExpression',
|