迭代 ONE-OS 多原型:统一标注壳与操作规范,租赁明细/合同/提车应收款增强,新增任务工单,同步导航与合包页面。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,12 +1,24 @@
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import * as antd from 'antd';
|
||||
import {
|
||||
formatMoney,
|
||||
formatMoneyYuan,
|
||||
formatMoneyWithUnit,
|
||||
formatNumber,
|
||||
formatInteger,
|
||||
} from '../format-number.js';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
React: typeof React;
|
||||
ReactDOM: typeof ReactDOM;
|
||||
antd: typeof antd;
|
||||
__oneosFormatNumber: typeof formatNumber;
|
||||
__oneosFormatMoney: typeof formatMoney;
|
||||
__oneosFormatMoneyYuan: typeof formatMoneyYuan;
|
||||
__oneosFormatMoneyWithUnit: typeof formatMoneyWithUnit;
|
||||
__oneosFormatInteger: typeof formatInteger;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +27,11 @@ export function ensureOneosWebLegacyGlobals(): void {
|
||||
window.React = React;
|
||||
window.ReactDOM = ReactDOM;
|
||||
window.antd = antd;
|
||||
window.__oneosFormatNumber = formatNumber;
|
||||
window.__oneosFormatMoney = formatMoney;
|
||||
window.__oneosFormatMoneyYuan = formatMoneyYuan;
|
||||
window.__oneosFormatMoneyWithUnit = formatMoneyWithUnit;
|
||||
window.__oneosFormatInteger = formatInteger;
|
||||
}
|
||||
|
||||
// Legacy jsx 可能在模块顶层使用 React.createElement,须在页面 import 之前完成注入。
|
||||
|
||||
Reference in New Issue
Block a user