@byteluck-fe/model-driven-engine 2.7.0-alpha.33 → 2.7.0-alpha.36
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.
|
@@ -341,7 +341,7 @@ function _ts_generator(thisArg, body) {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
import { isDataBind } from "@byteluck-fe/model-driven-core";
|
|
344
|
-
import { CONTROL_BASE_TYPE, CONTROL_TYPE, DEFAULT_LOCALE, error, genNonDuplicateId, isString, JSONCopy, log, RulesMessage, updateValueFromKeys, warn, Watcher } from "@byteluck-fe/model-driven-shared";
|
|
344
|
+
import { CONTROL_BASE_TYPE, CONTROL_TYPE, DEFAULT_LOCALE, error, genNonDuplicateId, isString, JSONCopy, log, RulesMessage, updateValueFromKeys, warn, Watcher, isBuiltInControls } from "@byteluck-fe/model-driven-shared";
|
|
345
345
|
import { Runtime } from "./Runtime";
|
|
346
346
|
import { Store } from "./Store";
|
|
347
347
|
import { findItem, proxyState } from "./proxyState";
|
|
@@ -1476,6 +1476,14 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
1476
1476
|
return isString(types) ? instance.type === types : types.includes(instance.type);
|
|
1477
1477
|
}
|
|
1478
1478
|
},
|
|
1479
|
+
{
|
|
1480
|
+
key: "assertInstanceIsCustomControl",
|
|
1481
|
+
value: /**
|
|
1482
|
+
* 判断控件或控件类型是一个自定义控件
|
|
1483
|
+
* */ function assertInstanceIsCustomControl(instance) {
|
|
1484
|
+
return !isBuiltInControls(isString(instance) ? instance : instance.type);
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1479
1487
|
{
|
|
1480
1488
|
key: "getInstanceRowIndex",
|
|
1481
1489
|
value: /**
|