@qq1948037137/adminsmart-ui 0.1.30 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +15 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -330,7 +330,7 @@ interface ErrorReportButtonProps {
|
|
|
330
330
|
disabled?: boolean;
|
|
331
331
|
/** 宿主处理上报失败的回调,可以展示适合当前业务的反馈。 */
|
|
332
332
|
onReportFailure?: (error: unknown) => void;
|
|
333
|
-
/**
|
|
333
|
+
/** 按实际采集范围提供的无障碍说明,供辅助技术读取。 */
|
|
334
334
|
description?: string;
|
|
335
335
|
}
|
|
336
336
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -330,7 +330,7 @@ interface ErrorReportButtonProps {
|
|
|
330
330
|
disabled?: boolean;
|
|
331
331
|
/** 宿主处理上报失败的回调,可以展示适合当前业务的反馈。 */
|
|
332
332
|
onReportFailure?: (error: unknown) => void;
|
|
333
|
-
/**
|
|
333
|
+
/** 按实际采集范围提供的无障碍说明,供辅助技术读取。 */
|
|
334
334
|
description?: string;
|
|
335
335
|
}
|
|
336
336
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1213,14 +1213,13 @@ import {
|
|
|
1213
1213
|
import { createContext, useContext } from "react";
|
|
1214
1214
|
|
|
1215
1215
|
// src/composites/ErrorReportButton.tsx
|
|
1216
|
-
import { BugOutlined } from "@ant-design/icons";
|
|
1217
1216
|
import { useRef as useRef4, useState as useState4 } from "react";
|
|
1218
1217
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1219
1218
|
function ErrorReportButton({
|
|
1220
1219
|
onReport,
|
|
1221
1220
|
disabled = false,
|
|
1222
1221
|
onReportFailure,
|
|
1223
|
-
description
|
|
1222
|
+
description
|
|
1224
1223
|
}) {
|
|
1225
1224
|
const pending = useRef4(false);
|
|
1226
1225
|
const [reporting, setReporting] = useState4(false);
|
|
@@ -1237,17 +1236,17 @@ function ErrorReportButton({
|
|
|
1237
1236
|
setReporting(false);
|
|
1238
1237
|
}
|
|
1239
1238
|
}
|
|
1240
|
-
return /* @__PURE__ */ jsx5(
|
|
1239
|
+
return /* @__PURE__ */ jsx5(
|
|
1241
1240
|
Button,
|
|
1242
1241
|
{
|
|
1243
1242
|
"data-adminsmart-error-report": "true",
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1243
|
+
"aria-description": description,
|
|
1244
|
+
"aria-busy": reporting || void 0,
|
|
1245
|
+
disabled: disabled || reporting,
|
|
1247
1246
|
onClick: report,
|
|
1248
|
-
children: "\u95EE\u9898\u4E0A\u62A5"
|
|
1247
|
+
children: reporting ? "\u4E0A\u62A5\u4E2D\u2026" : "\u95EE\u9898\u4E0A\u62A5"
|
|
1249
1248
|
}
|
|
1250
|
-
)
|
|
1249
|
+
);
|
|
1251
1250
|
}
|
|
1252
1251
|
|
|
1253
1252
|
// src/composites/OperationToolbar.tsx
|