添加 cl-svg 组件,支持 base64、本地文件、<svg 标签

This commit is contained in:
icssoa
2025-08-25 19:09:26 +08:00
parent b4d1073132
commit 6a26dbb718
18 changed files with 694 additions and 126 deletions

16
types/uni-app.d.ts vendored
View File

@@ -456,3 +456,19 @@ declare interface CanvasContext extends HTMLCanvasElement {
declare type Image = HTMLImageElement;
declare type VueApp = any;
declare interface UniNativeViewElement extends UniElement {
bindAndroidView(view: any): void;
bindIOSView(): void;
bindHarmonyFrameNode(node: FrameNode): void;
bindHarmonyWrappedBuilder<O extends Object>(
builder: WrappedBuilder<[options: O]>
): BuilderNode<[O]>;
getHarmonyFrameNode(): FrameNode | null;
}
declare type UniNativeViewInitEvent = {
detail: {
element: UniNativeViewElement;
};
};