feat:fix cannot find class in cascade context
This commit is contained in:
parent
6e048e39fc
commit
1996ec2ed7
@ -1445,6 +1445,9 @@ var doric = (function (exports) {
|
||||
const className = arguments[1];
|
||||
const srcContext = gContexts.get(srcContextId);
|
||||
if (srcContext) {
|
||||
srcContext.classes.forEach((v, k) => {
|
||||
context === null || context === void 0 ? void 0 : context.classes.set(k, v);
|
||||
});
|
||||
const clz = srcContext.classes.get(className);
|
||||
if (clz) {
|
||||
return exportFunc(clz);
|
||||
|
@ -1474,6 +1474,9 @@ function jsObtainEntry(contextId) {
|
||||
const className = arguments[1];
|
||||
const srcContext = gContexts.get(srcContextId);
|
||||
if (srcContext) {
|
||||
srcContext.classes.forEach((v, k) => {
|
||||
context === null || context === void 0 ? void 0 : context.classes.set(k, v);
|
||||
});
|
||||
const clz = srcContext.classes.get(className);
|
||||
if (clz) {
|
||||
return exportFunc(clz);
|
||||
|
@ -263,6 +263,9 @@ export function jsObtainEntry(contextId) {
|
||||
const className = arguments[1];
|
||||
const srcContext = gContexts.get(srcContextId);
|
||||
if (srcContext) {
|
||||
srcContext.classes.forEach((v, k) => {
|
||||
context === null || context === void 0 ? void 0 : context.classes.set(k, v);
|
||||
});
|
||||
const clz = srcContext.classes.get(className);
|
||||
if (clz) {
|
||||
return exportFunc(clz);
|
||||
|
@ -285,6 +285,9 @@ export function jsObtainEntry(contextId: string) {
|
||||
const className = arguments[1] as string
|
||||
const srcContext = gContexts.get(srcContextId)
|
||||
if (srcContext) {
|
||||
srcContext.classes.forEach((v, k) => {
|
||||
context?.classes.set(k, v)
|
||||
})
|
||||
const clz = srcContext.classes.get(className)
|
||||
if (clz) {
|
||||
return exportFunc(clz)
|
||||
|
@ -324,6 +324,9 @@ export function jsObtainEntry(contextId: string) {
|
||||
const className = arguments[1] as string
|
||||
const srcContext = gContexts.get(srcContextId)
|
||||
if (srcContext) {
|
||||
srcContext.classes.forEach((v, k) => {
|
||||
context?.classes.set(k, v)
|
||||
})
|
||||
const clz = srcContext.classes.get(className)
|
||||
if (clz) {
|
||||
return exportFunc(clz)
|
||||
|
3
doric-web/dist/index.js
vendored
3
doric-web/dist/index.js
vendored
@ -1447,6 +1447,9 @@ var doric = (function (exports) {
|
||||
const className = arguments[1];
|
||||
const srcContext = gContexts.get(srcContextId);
|
||||
if (srcContext) {
|
||||
srcContext.classes.forEach((v, k) => {
|
||||
context === null || context === void 0 ? void 0 : context.classes.set(k, v);
|
||||
});
|
||||
const clz = srcContext.classes.get(className);
|
||||
if (clz) {
|
||||
return exportFunc(clz);
|
||||
|
2
doric-web/dist/index.js.map
vendored
2
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user