mirror of
https://github.com/motajs/template.git
synced 2026-10-15 18:11:21 +08:00
- MOVE:39 个文件由 client-modules/src/render/ 移入 client-base/src/{components,elements,map,layout}/,删除原件
- D-58:新建 client-base/src/shared/(10 常量纯摘取)+ 被移 map 文件 shared 说明符改指 4 处
- D-63:client-base/src/index.ts 新增 5 条桶导出;14 个实现层消费者改指 @user/client-base
- D-66:client-base/package.json 新增 5 条 workspace:* 依赖 + 根 pnpm i(lockfile importer 同步)
- D-59 / D-60 / D-68:10 处架构耦合以带原因 // @ts-expect-error 暂记,不反向引用、不解耦
- D-62:命名一律不变;D-64 ?raw 不处理;D-65 legacy 一律不管
12 lines
314 B
TypeScript
12 lines
314 B
TypeScript
import { Patch, PatchClass } from '@motajs/legacy-common';
|
|
import { TipStore } from '@user/client-base';
|
|
|
|
export function patchUI() {
|
|
const patch = new Patch(PatchClass.UI);
|
|
|
|
patch.add('drawTip', function (text, id) {
|
|
const tip = TipStore.get('main-tip');
|
|
tip?.drawTip(text, id);
|
|
});
|
|
}
|