"添加前端模板和运行代码模块"

This commit is contained in:
Codex
2026-06-01 13:43:09 +08:00
parent 24045274ad
commit 8092c4b1f8
587 changed files with 99761 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
/**
* Resolved `data-*` names for source mapping (prefix from global config or meta tag).
*/
/** e.g. `data-xagi` */
export declare function getPrefix(): string;
/** Call after changing `window.__APPDEV_DESIGN_MODE_CONFIG__` in tests. */
export declare function resetPrefixCache(): void;
/** `{prefix}-{suffix}` */
export declare function getAttributeName(suffix: string): string;
/** Lazy getters so prefix changes propagate */
export declare const AttributeNames: {
readonly file: string;
readonly line: string;
readonly column: string;
readonly info: string;
readonly elementId: string;
readonly component: string;
readonly function: string;
readonly position: string;
readonly staticContent: string;
/**
* Get the children source attribute name (for tracking where static children come from)
* Example: data-xagi-children-source
*/
readonly childrenSource: string;
readonly contextMenu: string;
readonly contextMenuHover: string;
readonly import: string;
/**
* Get the static-class attribute name (for tracking if className is a pure static string)
* Example: data-xagi-static-class
*/
readonly staticClass: string;
};
/** True for any `{prefix}-*` */
export declare function isSourceMappingAttribute(attributeName: string): boolean;
//# sourceMappingURL=attributeNames.d.ts.map