@ant-design/agentic-ui 2.29.5 → 2.29.7
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/dist/AILabel/index.js +17 -8
- package/dist/AgenticLayout/index.js +3 -5
- package/dist/BackTo/BackBottom.js +17 -8
- package/dist/BackTo/BackTop.js +17 -8
- package/dist/BackTo/ScrollVisibleButton.js +75 -11
- package/dist/Bubble/AIBubble.js +131 -121
- package/dist/Bubble/Avatar/index.js +19 -10
- package/dist/Bubble/FileView.js +2 -2
- package/dist/Bubble/List/PureBubbleList.js +4 -5
- package/dist/Bubble/List/index.js +4 -5
- package/dist/Bubble/List/style.js +3 -0
- package/dist/Bubble/MessagesContent/BubbleExtra.js +108 -93
- package/dist/Bubble/MessagesContent/CopyButton/index.js +36 -26
- package/dist/Bubble/MessagesContent/DocInfo.js +19 -10
- package/dist/Bubble/MessagesContent/MarkdownPreview.js +2 -2
- package/dist/Bubble/MessagesContent/index.js +149 -130
- package/dist/Bubble/PureBubble.js +151 -133
- package/dist/Bubble/UserBubble.js +1 -1
- package/dist/Bubble/style.js +2 -2
- package/dist/Bubble/types/BubbleExtra.js +4 -1
- package/dist/Bubble/types/DocInfo.js +9 -1
- package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_0.png +0 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_1.png +0 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/images/img_2.png +0 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/index.d.ts +51 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/index.js +45 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/lottie.d.ts +85 -0
- package/dist/ChatLayout/components/FooterBackgroundLottie/lottie.js +382 -0
- package/dist/ChatLayout/index.js +52 -14
- package/dist/ChatLayout/style.js +11 -0
- package/dist/ChatLayout/types.d.ts +28 -0
- package/dist/Components/ActionIconBox/index.js +30 -38
- package/dist/Components/ActionItemBox/ActionItemBox.js +1 -1
- package/dist/Components/Button/SwitchButton/index.js +18 -17
- package/dist/Components/LayoutHeader/index.js +5 -3
- package/dist/Components/LayoutHeader/style.js +5 -0
- package/dist/Components/Loading/CreativeRecommendationLoading.js +2 -2
- package/dist/Components/Loading/CreativeSparkLoading.js +2 -2
- package/dist/Components/SuggestionList/index.js +20 -19
- package/dist/Components/TextAnimate/index.js +19 -10
- package/dist/Components/TypingAnimation/index.js +19 -10
- package/dist/Components/effects/EffectPlayer.js +20 -11
- package/dist/Components/icons/LoadingSpinnerIcon.js +19 -10
- package/dist/History/components/HistoryActionsBox.js +21 -23
- package/dist/History/components/HistoryItem.js +61 -53
- package/dist/History/components/HistoryRunningIcon.js +19 -10
- package/dist/History/components/LoadMoreComponent.js +61 -55
- package/dist/History/components/NewChatComponent.js +53 -47
- package/dist/History/components/SearchComponent.js +24 -26
- package/dist/History/hooks/useHistory.js +80 -73
- package/dist/History/index.js +17 -16
- package/dist/History/menu.js +17 -8
- package/dist/Hooks/useAutoScroll.js +19 -19
- package/dist/Hooks/useDebounceFn/index.js +51 -45
- package/dist/Hooks/useElementSize.d.ts +5 -0
- package/dist/Hooks/useElementSize.js +71 -0
- package/dist/Hooks/useIntersectionOnce.js +17 -8
- package/dist/Hooks/useLanguage.d.ts +3 -0
- package/dist/I18n/locales.d.ts +3 -0
- package/dist/I18n/locales.js +8 -0
- package/dist/MarkdownEditor/BaseMarkdownEditor.js +22 -12
- package/dist/MarkdownEditor/editor/Editor.js +31 -39
- package/dist/MarkdownEditor/editor/components/CommentList/index.js +29 -37
- package/dist/MarkdownEditor/editor/elements/Image/index.js +86 -71
- package/dist/MarkdownEditor/editor/elements/List/ListItem.js +17 -16
- package/dist/MarkdownEditor/editor/elements/Media/index.js +107 -92
- package/dist/MarkdownEditor/editor/elements/Table/Table.js +19 -10
- package/dist/MarkdownEditor/editor/elements/TagPopup/index.js +17 -16
- package/dist/MarkdownEditor/editor/parser/parse/parseBlockElements.js +1 -1
- package/dist/MarkdownEditor/editor/parser/parse/parseCode.js +1 -1
- package/dist/MarkdownEditor/editor/parser/parse/parseEmptyLines.js +1 -1
- package/dist/MarkdownEditor/editor/parser/parse/parseTable.js +4 -1
- package/dist/MarkdownEditor/editor/parser/parserSlateNodeToMarkdown.js +2 -2
- package/dist/MarkdownEditor/editor/parser/remarkParse.js +3 -1
- package/dist/MarkdownEditor/editor/plugins/handlePaste.js +25 -30
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/arrow.js +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/enter.js +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/match.js +0 -1
- package/dist/MarkdownEditor/editor/plugins/hotKeyCommands/tab.js +0 -1
- package/dist/MarkdownEditor/editor/plugins/insertParsedHtmlNodes.js +39 -53
- package/dist/MarkdownEditor/editor/plugins/useKeyboard.js +1 -1
- package/dist/MarkdownEditor/editor/plugins/useOnchange.js +28 -22
- package/dist/MarkdownEditor/editor/plugins/withMarkdown.js +1 -1
- package/dist/MarkdownEditor/editor/store.js +17 -13
- package/dist/MarkdownEditor/editor/tools/InsertAutocomplete.js +202 -197
- package/dist/MarkdownEditor/editor/tools/InsertLink.js +2 -2
- package/dist/MarkdownEditor/editor/tools/ToolBar/ReadonlyBaseBar.js +142 -134
- package/dist/MarkdownEditor/editor/utils/ace.js +61 -61
- package/dist/MarkdownEditor/editor/utils/editorUtils.js +11 -4
- package/dist/MarkdownEditor/editor/utils/index.js +8 -2
- package/dist/MarkdownEditor/editor/utils/keyboard.js +31 -35
- package/dist/MarkdownEditor/editor/utils/markdownToHtml.js +23 -17
- package/dist/MarkdownEditor/editor/utils/media.js +21 -23
- package/dist/MarkdownEditor/editor/utils/performanceMonitor.js +55 -50
- package/dist/MarkdownEditor/editor/utils/useLocalState.js +11 -4
- package/dist/MarkdownEditor/types.d.ts +1 -0
- package/dist/MarkdownEditor/types.js +4 -1
- package/dist/MarkdownEditor/utils/native-table/native-table-editor.js +14 -14
- package/dist/MarkdownEditor/utils/native-table/native-table-keyboard.js +2 -2
- package/dist/MarkdownInputField/AttachmentButton/AttachmentFileList/style.js +1 -0
- package/dist/MarkdownInputField/AttachmentButton/index.js +33 -31
- package/dist/MarkdownInputField/BeforeToolContainer/BeforeToolContainer.js +14 -7
- package/dist/MarkdownInputField/FileMapView/FileMapViewItem.js +2 -2
- package/dist/MarkdownInputField/FileMapView/index.js +17 -16
- package/dist/MarkdownInputField/FilePaste/index.js +25 -30
- package/dist/MarkdownInputField/FileUploadManager/index.js +39 -40
- package/dist/MarkdownInputField/MarkdownInputField.js +38 -29
- package/dist/MarkdownInputField/QuickActions/index.js +66 -60
- package/dist/MarkdownInputField/SendButton/index.js +22 -13
- package/dist/MarkdownInputField/Suggestion/index.js +17 -16
- package/dist/MarkdownInputField/VoiceInput/index.js +51 -45
- package/dist/MarkdownInputField/VoiceInputManager/index.js +133 -125
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldHandlers.js +103 -101
- package/dist/MarkdownInputField/hooks/useMarkdownInputFieldStyles.js +1 -1
- package/dist/MarkdownInputField/style.js +1 -2
- package/dist/MarkdownInputField/types/MarkdownInputFieldProps.js +14 -1
- package/dist/Plugins/chart/BarChart/index.js +8 -8
- package/dist/Plugins/chart/ChartRender.js +52 -46
- package/dist/Plugins/chart/DonutChart/index.js +26 -17
- package/dist/Plugins/chart/DonutChart/plugins.js +1 -1
- package/dist/Plugins/chart/DonutChart/types.js +1 -1
- package/dist/Plugins/chart/FunnelChart/index.js +31 -28
- package/dist/Plugins/chart/LineChart/index.js +19 -10
- package/dist/Plugins/chart/RadarChart/index.js +19 -10
- package/dist/Plugins/chart/ScatterChart/index.js +19 -10
- package/dist/Plugins/chart/components/ChartContainer/ChartContainer.js +20 -11
- package/dist/Plugins/chart/index.js +31 -13
- package/dist/Plugins/chart/loadChartRuntime.js +17 -16
- package/dist/Plugins/chart/types/classNames.js +4 -1
- package/dist/Plugins/chart/utils.js +20 -20
- package/dist/Plugins/code/CodeUI/Katex/Katex.js +52 -46
- package/dist/Plugins/code/components/AceEditor.js +149 -133
- package/dist/Plugins/code/components/CodeRenderer.js +7 -7
- package/dist/Plugins/code/components/CodeToolbar.js +2 -2
- package/dist/Plugins/code/components/LanguageSelector.js +6 -6
- package/dist/Plugins/code/components/LoadImage.js +5 -5
- package/dist/Plugins/code/components/ThinkBlock.js +8 -8
- package/dist/Plugins/code/hooks/useCodeEditorState.js +5 -5
- package/dist/Plugins/code/index.js +6 -6
- package/dist/Plugins/code/langIconMap.js +0 -1
- package/dist/Plugins/code/langIcons/AbapIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ActionscriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/AdaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ApacheIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ApexIcon.js +19 -10
- package/dist/Plugins/code/langIcons/AplIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ApplescriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/AstroIcon.js +19 -10
- package/dist/Plugins/code/langIcons/AwkIcon.js +19 -10
- package/dist/Plugins/code/langIcons/BallerinaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/BatIcon.js +19 -10
- package/dist/Plugins/code/langIcons/BicepIcon.js +19 -10
- package/dist/Plugins/code/langIcons/BladeIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CadenceIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ClojureIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CmakeIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CobolIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CodeqlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CoffeeIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ConsoleIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CppIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CrystalIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CsharpIcon.js +19 -10
- package/dist/Plugins/code/langIcons/CssIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DartIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DatabaseIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DiffIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DockerIcon.js +19 -10
- package/dist/Plugins/code/langIcons/DotenvIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ElixirIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ElmIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ErbIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ErlangIcon.js +19 -10
- package/dist/Plugins/code/langIcons/FsharpIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GdscriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GlslIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GnuplotIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GoIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GraphqlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/GroovyIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HackIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HamlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HandlebarsIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HaskellIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HclIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HclLightIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HjsonIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HlslIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HtmlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/HttpIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ImbaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/IniIcon.js +19 -10
- package/dist/Plugins/code/langIcons/JavaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/JavascriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/JinjaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/Json5Icon.js +19 -10
- package/dist/Plugins/code/langIcons/JsonIcon.js +19 -10
- package/dist/Plugins/code/langIcons/JsonnetIcon.js +19 -10
- package/dist/Plugins/code/langIcons/JuliaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/KotlinIcon.js +19 -10
- package/dist/Plugins/code/langIcons/KustoIcon.js +19 -10
- package/dist/Plugins/code/langIcons/LessIcon.js +19 -10
- package/dist/Plugins/code/langIcons/LiquidIcon.js +19 -10
- package/dist/Plugins/code/langIcons/LispIcon.js +19 -10
- package/dist/Plugins/code/langIcons/LuaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MakefileIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MarkdownIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MarkojsIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MatlabIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MdxIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MermaidIcon.js +19 -10
- package/dist/Plugins/code/langIcons/MojoIcon.js +19 -10
- package/dist/Plugins/code/langIcons/NginxIcon.js +19 -10
- package/dist/Plugins/code/langIcons/NimIcon.js +19 -10
- package/dist/Plugins/code/langIcons/NixIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ObjectiveCIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ObjectiveCppIcon.js +19 -10
- package/dist/Plugins/code/langIcons/OcamlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PascalIcon.js +19 -10
- package/dist/Plugins/code/langIcons/Perl6Icon.js +19 -10
- package/dist/Plugins/code/langIcons/PerlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PhpIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PostcssIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PowershellIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PrismaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PrologIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ProtoIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PugIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PuppetIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PurescriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/PythonIcon.js +19 -10
- package/dist/Plugins/code/langIcons/RIcon.js +19 -10
- package/dist/Plugins/code/langIcons/RazorIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ReactIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ReactTsIcon.js +19 -10
- package/dist/Plugins/code/langIcons/RubyIcon.js +19 -10
- package/dist/Plugins/code/langIcons/RustIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SasIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SassIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ScalaIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SchemeIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ShaderlabIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SolidityIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SparqlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/StataIcon.js +19 -10
- package/dist/Plugins/code/langIcons/StylusIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SvelteIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SwiftIcon.js +19 -10
- package/dist/Plugins/code/langIcons/SystemverilogIcon.js +19 -10
- package/dist/Plugins/code/langIcons/TclIcon.js +19 -10
- package/dist/Plugins/code/langIcons/TexIcon.js +19 -10
- package/dist/Plugins/code/langIcons/TomlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/TwigIcon.js +19 -10
- package/dist/Plugins/code/langIcons/TypescriptIcon.js +19 -10
- package/dist/Plugins/code/langIcons/VerilogIcon.js +19 -10
- package/dist/Plugins/code/langIcons/VhdlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/VimIcon.js +19 -10
- package/dist/Plugins/code/langIcons/VueIcon.js +19 -10
- package/dist/Plugins/code/langIcons/WebassemblyIcon.js +19 -10
- package/dist/Plugins/code/langIcons/WenyanIcon.js +19 -10
- package/dist/Plugins/code/langIcons/WgslIcon.js +19 -10
- package/dist/Plugins/code/langIcons/WolframlanguageIcon.js +19 -10
- package/dist/Plugins/code/langIcons/XmlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/XslIcon.js +19 -10
- package/dist/Plugins/code/langIcons/YamlIcon.js +19 -10
- package/dist/Plugins/code/langIcons/ZigIcon.js +19 -10
- package/dist/Plugins/code/loadAceEditor.js +21 -23
- package/dist/Plugins/code/utils/langOptions.js +6 -6
- package/dist/Plugins/formatter/index.js +6 -6
- package/dist/Plugins/katex/InlineKatex.js +52 -46
- package/dist/Plugins/katex/Katex.js +53 -47
- package/dist/Plugins/katex/index.js +6 -6
- package/dist/Plugins/katex/loadKatex.js +27 -29
- package/dist/Plugins/mermaid/Mermaid.js +34 -28
- package/dist/Plugins/mermaid/useMermaidRender.js +103 -97
- package/dist/Plugins/mermaid/utils.js +25 -17
- package/dist/Schema/SchemaEditor/AceEditorWrapper.js +162 -150
- package/dist/Schema/SchemaEditor/index.js +8 -1
- package/dist/Schema/SchemaForm/index.js +2 -2
- package/dist/Schema/SchemaRenderer/index.js +45 -46
- package/dist/ThoughtChainList/index.js +22 -13
- package/dist/ToolUseBar/BarItem/Content.js +3 -3
- package/dist/ToolUseBar/BarItem/index.js +10 -3
- package/dist/ToolUseBar/index.js +19 -10
- package/dist/ToolUseBar/style.js +4 -4
- package/dist/Types/common.js +4 -1
- package/dist/Types/message.js +4 -1
- package/dist/Utils/debugUtils.js +8 -8
- package/dist/Utils/getScroll.js +12 -5
- package/dist/Utils/loadCSS.js +23 -22
- package/dist/Utils/proxySandbox/ProxySandbox.js +42 -34
- package/dist/Utils/proxySandbox/SecurityContextManager.js +54 -54
- package/dist/Utils/proxySandbox/index.js +25 -22
- package/dist/Utils/proxySandbox/types.js +11 -11
- package/dist/Utils/scrollTo.js +8 -1
- package/dist/WelcomeMessage/index.js +1 -1
- package/dist/Workspace/File/FileComponent.js +91 -66
- package/dist/Workspace/File/PreviewComponent.js +15 -8
- package/dist/Workspace/File/index.d.ts +1 -1
- package/dist/Workspace/File/style.js +7 -0
- package/dist/Workspace/RealtimeFollow/index.js +1 -2
- package/dist/Workspace/index.js +13 -11
- package/dist/Workspace/style.js +8 -14
- package/dist/Workspace/types.d.ts +50 -0
- package/dist/Workspace/types.js +0 -1
- package/package.json +25 -25
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import img_0 from "./images/img_0.png";
|
|
2
|
+
import img_1 from "./images/img_1.png";
|
|
3
|
+
import img_2 from "./images/img_2.png";
|
|
4
|
+
export default {
|
|
5
|
+
v: '5.12.2',
|
|
6
|
+
fr: 25,
|
|
7
|
+
ip: 0,
|
|
8
|
+
op: 250,
|
|
9
|
+
w: 2880,
|
|
10
|
+
h: 600,
|
|
11
|
+
nm: '合成 3',
|
|
12
|
+
ddd: 0,
|
|
13
|
+
assets: [
|
|
14
|
+
{
|
|
15
|
+
id: 'image_0',
|
|
16
|
+
w: 2880,
|
|
17
|
+
h: 600,
|
|
18
|
+
u: '',
|
|
19
|
+
p: img_0,
|
|
20
|
+
e: 0
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'image_1',
|
|
24
|
+
w: 2880,
|
|
25
|
+
h: 600,
|
|
26
|
+
u: '',
|
|
27
|
+
p: img_1,
|
|
28
|
+
e: 0
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 'image_2',
|
|
32
|
+
w: 2880,
|
|
33
|
+
h: 600,
|
|
34
|
+
u: '',
|
|
35
|
+
p: img_2,
|
|
36
|
+
e: 0
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
layers: [
|
|
40
|
+
{
|
|
41
|
+
ddd: 0,
|
|
42
|
+
ind: 1,
|
|
43
|
+
ty: 2,
|
|
44
|
+
nm: '预合成 3 (0-00-00-00).png',
|
|
45
|
+
cl: 'png',
|
|
46
|
+
refId: 'image_0',
|
|
47
|
+
sr: 1,
|
|
48
|
+
ks: {
|
|
49
|
+
o: {
|
|
50
|
+
a: 0,
|
|
51
|
+
k: 100,
|
|
52
|
+
ix: 11
|
|
53
|
+
},
|
|
54
|
+
r: {
|
|
55
|
+
a: 0,
|
|
56
|
+
k: 0,
|
|
57
|
+
ix: 10
|
|
58
|
+
},
|
|
59
|
+
p: {
|
|
60
|
+
a: 1,
|
|
61
|
+
k: [
|
|
62
|
+
{
|
|
63
|
+
i: {
|
|
64
|
+
x: 0.667,
|
|
65
|
+
y: 1
|
|
66
|
+
},
|
|
67
|
+
o: {
|
|
68
|
+
x: 0.333,
|
|
69
|
+
y: 0
|
|
70
|
+
},
|
|
71
|
+
t: 0,
|
|
72
|
+
s: [
|
|
73
|
+
1440,
|
|
74
|
+
294.735,
|
|
75
|
+
0
|
|
76
|
+
],
|
|
77
|
+
to: [
|
|
78
|
+
0,
|
|
79
|
+
0,
|
|
80
|
+
0
|
|
81
|
+
],
|
|
82
|
+
ti: [
|
|
83
|
+
0,
|
|
84
|
+
0,
|
|
85
|
+
0
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
i: {
|
|
90
|
+
x: 0.667,
|
|
91
|
+
y: 1
|
|
92
|
+
},
|
|
93
|
+
o: {
|
|
94
|
+
x: 0.333,
|
|
95
|
+
y: 0
|
|
96
|
+
},
|
|
97
|
+
t: 125,
|
|
98
|
+
s: [
|
|
99
|
+
995.751,
|
|
100
|
+
287.009,
|
|
101
|
+
0
|
|
102
|
+
],
|
|
103
|
+
to: [
|
|
104
|
+
0,
|
|
105
|
+
0,
|
|
106
|
+
0
|
|
107
|
+
],
|
|
108
|
+
ti: [
|
|
109
|
+
0,
|
|
110
|
+
0,
|
|
111
|
+
0
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
t: 249,
|
|
116
|
+
s: [
|
|
117
|
+
1440,
|
|
118
|
+
294.735,
|
|
119
|
+
0
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
ix: 2,
|
|
124
|
+
l: 2
|
|
125
|
+
},
|
|
126
|
+
a: {
|
|
127
|
+
a: 0,
|
|
128
|
+
k: [
|
|
129
|
+
1440,
|
|
130
|
+
300,
|
|
131
|
+
0
|
|
132
|
+
],
|
|
133
|
+
ix: 1,
|
|
134
|
+
l: 2
|
|
135
|
+
},
|
|
136
|
+
s: {
|
|
137
|
+
a: 0,
|
|
138
|
+
k: [
|
|
139
|
+
100,
|
|
140
|
+
100,
|
|
141
|
+
100
|
|
142
|
+
],
|
|
143
|
+
ix: 6,
|
|
144
|
+
l: 2
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
ao: 0,
|
|
148
|
+
ip: 0,
|
|
149
|
+
op: 250,
|
|
150
|
+
st: 0,
|
|
151
|
+
bm: 0
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
ddd: 0,
|
|
155
|
+
ind: 2,
|
|
156
|
+
ty: 2,
|
|
157
|
+
nm: '预合成 2 (0-00-00-00).png',
|
|
158
|
+
cl: 'png',
|
|
159
|
+
refId: 'image_1',
|
|
160
|
+
sr: 1,
|
|
161
|
+
ks: {
|
|
162
|
+
o: {
|
|
163
|
+
a: 0,
|
|
164
|
+
k: 100,
|
|
165
|
+
ix: 11
|
|
166
|
+
},
|
|
167
|
+
r: {
|
|
168
|
+
a: 0,
|
|
169
|
+
k: 0,
|
|
170
|
+
ix: 10
|
|
171
|
+
},
|
|
172
|
+
p: {
|
|
173
|
+
a: 1,
|
|
174
|
+
k: [
|
|
175
|
+
{
|
|
176
|
+
i: {
|
|
177
|
+
x: 0.667,
|
|
178
|
+
y: 1
|
|
179
|
+
},
|
|
180
|
+
o: {
|
|
181
|
+
x: 0.333,
|
|
182
|
+
y: 0
|
|
183
|
+
},
|
|
184
|
+
t: 0,
|
|
185
|
+
s: [
|
|
186
|
+
1440,
|
|
187
|
+
294.735,
|
|
188
|
+
0
|
|
189
|
+
],
|
|
190
|
+
to: [
|
|
191
|
+
0,
|
|
192
|
+
0,
|
|
193
|
+
0
|
|
194
|
+
],
|
|
195
|
+
ti: [
|
|
196
|
+
0,
|
|
197
|
+
0,
|
|
198
|
+
0
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
i: {
|
|
203
|
+
x: 0.667,
|
|
204
|
+
y: 1
|
|
205
|
+
},
|
|
206
|
+
o: {
|
|
207
|
+
x: 0.333,
|
|
208
|
+
y: 0
|
|
209
|
+
},
|
|
210
|
+
t: 125,
|
|
211
|
+
s: [
|
|
212
|
+
1737.454,
|
|
213
|
+
294.735,
|
|
214
|
+
0
|
|
215
|
+
],
|
|
216
|
+
to: [
|
|
217
|
+
0,
|
|
218
|
+
0,
|
|
219
|
+
0
|
|
220
|
+
],
|
|
221
|
+
ti: [
|
|
222
|
+
0,
|
|
223
|
+
0,
|
|
224
|
+
0
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
t: 249,
|
|
229
|
+
s: [
|
|
230
|
+
1440,
|
|
231
|
+
294.735,
|
|
232
|
+
0
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
ix: 2,
|
|
237
|
+
l: 2
|
|
238
|
+
},
|
|
239
|
+
a: {
|
|
240
|
+
a: 0,
|
|
241
|
+
k: [
|
|
242
|
+
1440,
|
|
243
|
+
300,
|
|
244
|
+
0
|
|
245
|
+
],
|
|
246
|
+
ix: 1,
|
|
247
|
+
l: 2
|
|
248
|
+
},
|
|
249
|
+
s: {
|
|
250
|
+
a: 0,
|
|
251
|
+
k: [
|
|
252
|
+
100,
|
|
253
|
+
100,
|
|
254
|
+
100
|
|
255
|
+
],
|
|
256
|
+
ix: 6,
|
|
257
|
+
l: 2
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
ao: 0,
|
|
261
|
+
ip: 0,
|
|
262
|
+
op: 250,
|
|
263
|
+
st: 0,
|
|
264
|
+
bm: 0
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
ddd: 0,
|
|
268
|
+
ind: 3,
|
|
269
|
+
ty: 2,
|
|
270
|
+
nm: '预合成 1 (0-00-00-00).png',
|
|
271
|
+
cl: 'png',
|
|
272
|
+
refId: 'image_2',
|
|
273
|
+
sr: 1,
|
|
274
|
+
ks: {
|
|
275
|
+
o: {
|
|
276
|
+
a: 0,
|
|
277
|
+
k: 100,
|
|
278
|
+
ix: 11
|
|
279
|
+
},
|
|
280
|
+
r: {
|
|
281
|
+
a: 0,
|
|
282
|
+
k: 0,
|
|
283
|
+
ix: 10
|
|
284
|
+
},
|
|
285
|
+
p: {
|
|
286
|
+
a: 1,
|
|
287
|
+
k: [
|
|
288
|
+
{
|
|
289
|
+
i: {
|
|
290
|
+
x: 0.667,
|
|
291
|
+
y: 1
|
|
292
|
+
},
|
|
293
|
+
o: {
|
|
294
|
+
x: 0.333,
|
|
295
|
+
y: 0
|
|
296
|
+
},
|
|
297
|
+
t: 0,
|
|
298
|
+
s: [
|
|
299
|
+
1440,
|
|
300
|
+
294.735,
|
|
301
|
+
0
|
|
302
|
+
],
|
|
303
|
+
to: [
|
|
304
|
+
0,
|
|
305
|
+
0,
|
|
306
|
+
0
|
|
307
|
+
],
|
|
308
|
+
ti: [
|
|
309
|
+
0,
|
|
310
|
+
0,
|
|
311
|
+
0
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
i: {
|
|
316
|
+
x: 0.667,
|
|
317
|
+
y: 1
|
|
318
|
+
},
|
|
319
|
+
o: {
|
|
320
|
+
x: 0.333,
|
|
321
|
+
y: 0
|
|
322
|
+
},
|
|
323
|
+
t: 125,
|
|
324
|
+
s: [
|
|
325
|
+
864.407,
|
|
326
|
+
294.735,
|
|
327
|
+
0
|
|
328
|
+
],
|
|
329
|
+
to: [
|
|
330
|
+
0,
|
|
331
|
+
0,
|
|
332
|
+
0
|
|
333
|
+
],
|
|
334
|
+
ti: [
|
|
335
|
+
0,
|
|
336
|
+
0,
|
|
337
|
+
0
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
t: 249,
|
|
342
|
+
s: [
|
|
343
|
+
1440,
|
|
344
|
+
294.735,
|
|
345
|
+
0
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
ix: 2,
|
|
350
|
+
l: 2
|
|
351
|
+
},
|
|
352
|
+
a: {
|
|
353
|
+
a: 0,
|
|
354
|
+
k: [
|
|
355
|
+
1440,
|
|
356
|
+
300,
|
|
357
|
+
0
|
|
358
|
+
],
|
|
359
|
+
ix: 1,
|
|
360
|
+
l: 2
|
|
361
|
+
},
|
|
362
|
+
s: {
|
|
363
|
+
a: 0,
|
|
364
|
+
k: [
|
|
365
|
+
100,
|
|
366
|
+
100,
|
|
367
|
+
100
|
|
368
|
+
],
|
|
369
|
+
ix: 6,
|
|
370
|
+
l: 2
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
ao: 0,
|
|
374
|
+
ip: 0,
|
|
375
|
+
op: 250,
|
|
376
|
+
st: 0,
|
|
377
|
+
bm: 0
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
markers: [],
|
|
381
|
+
props: {}
|
|
382
|
+
};
|
package/dist/ChatLayout/index.js
CHANGED
|
@@ -1,8 +1,38 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
1
29
|
import { ConfigProvider } from "antd";
|
|
2
|
-
import
|
|
3
|
-
import React, { forwardRef, memo, useContext, useImperativeHandle } from "react";
|
|
30
|
+
import clsx from "classnames";
|
|
31
|
+
import React, { forwardRef, memo, useContext, useImperativeHandle, useRef } from "react";
|
|
4
32
|
import { LayoutHeader } from "../Components/LayoutHeader";
|
|
5
33
|
import useAutoScroll from "../Hooks/useAutoScroll";
|
|
34
|
+
import { useElementSize } from "../Hooks/useElementSize";
|
|
35
|
+
import FooterBackgroundLottie from "./components/FooterBackgroundLottie";
|
|
6
36
|
import { useStyle } from "./style";
|
|
7
37
|
/**
|
|
8
38
|
* ChatLayout 组件 - 聊天布局组件
|
|
@@ -69,7 +99,7 @@ import { useStyle } from "./style";
|
|
|
69
99
|
*
|
|
70
100
|
* @returns {React.ReactElement} 渲染的聊天布局组件
|
|
71
101
|
*/ var ChatLayoutComponent = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
72
|
-
var header = param.header, children = param.children, footer = param.footer, _param_footerHeight = param.footerHeight, footerHeight = _param_footerHeight === void 0 ?
|
|
102
|
+
var header = param.header, children = param.children, footer = param.footer, _param_footerHeight = param.footerHeight, footerHeight = _param_footerHeight === void 0 ? 48 : _param_footerHeight, _param_scrollBehavior = param.scrollBehavior, scrollBehavior = _param_scrollBehavior === void 0 ? 'smooth' : _param_scrollBehavior, className = param.className, style = param.style, classNames = param.classNames, styles = param.styles, _param_showFooterBackground = param.showFooterBackground, showFooterBackground = _param_showFooterBackground === void 0 ? true : _param_showFooterBackground;
|
|
73
103
|
var getPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls;
|
|
74
104
|
var prefixCls = getPrefixCls('chat-layout');
|
|
75
105
|
var _useStyle = useStyle(prefixCls), wrapSSR = _useStyle.wrapSSR, hashId = _useStyle.hashId;
|
|
@@ -79,36 +109,44 @@ import { useStyle } from "./style";
|
|
|
79
109
|
timeout: 200,
|
|
80
110
|
scrollBehavior: scrollBehavior
|
|
81
111
|
}), containerRef = _useAutoScroll.containerRef, scrollToBottom = _useAutoScroll.scrollToBottom;
|
|
112
|
+
var footerRef = useRef(null);
|
|
113
|
+
var _useElementSize = useElementSize(footerRef), actualFooterHeight = _useElementSize.height;
|
|
82
114
|
useImperativeHandle(ref, function() {
|
|
83
115
|
return {
|
|
84
116
|
scrollContainer: containerRef.current,
|
|
85
117
|
scrollToBottom: scrollToBottom
|
|
86
118
|
};
|
|
87
119
|
});
|
|
88
|
-
var rootClassName =
|
|
89
|
-
var contentClassName =
|
|
90
|
-
var scrollableClassName =
|
|
91
|
-
var footerClassName =
|
|
120
|
+
var rootClassName = clsx(prefixCls, className, classNames === null || classNames === void 0 ? void 0 : classNames.root, hashId);
|
|
121
|
+
var contentClassName = clsx("".concat(prefixCls, "-content"), classNames === null || classNames === void 0 ? void 0 : classNames.content, hashId);
|
|
122
|
+
var scrollableClassName = clsx("".concat(prefixCls, "-content-scrollable"), classNames === null || classNames === void 0 ? void 0 : classNames.scrollable, hashId);
|
|
123
|
+
var footerClassName = clsx("".concat(prefixCls, "-footer"), classNames === null || classNames === void 0 ? void 0 : classNames.footer, hashId);
|
|
124
|
+
var footerBackgroundClassName = clsx("".concat(prefixCls, "-footer-background"), classNames === null || classNames === void 0 ? void 0 : classNames.footerBackground, hashId);
|
|
92
125
|
return wrapSSR(/*#__PURE__*/ React.createElement("div", {
|
|
93
126
|
className: rootClassName,
|
|
94
|
-
style: style
|
|
127
|
+
style: _object_spread({}, styles === null || styles === void 0 ? void 0 : styles.root, style)
|
|
95
128
|
}, header && /*#__PURE__*/ React.createElement(LayoutHeader, header), /*#__PURE__*/ React.createElement("div", {
|
|
96
|
-
className: contentClassName
|
|
129
|
+
className: contentClassName,
|
|
130
|
+
style: styles === null || styles === void 0 ? void 0 : styles.content
|
|
97
131
|
}, /*#__PURE__*/ React.createElement("div", {
|
|
98
132
|
className: scrollableClassName,
|
|
99
|
-
ref: containerRef
|
|
133
|
+
ref: containerRef,
|
|
134
|
+
style: styles === null || styles === void 0 ? void 0 : styles.scrollable
|
|
100
135
|
}, children, footer && /*#__PURE__*/ React.createElement("div", {
|
|
101
136
|
style: {
|
|
102
|
-
height:
|
|
137
|
+
height: actualFooterHeight,
|
|
103
138
|
width: '100%'
|
|
104
139
|
},
|
|
105
140
|
"aria-hidden": "true"
|
|
106
141
|
}))), footer && /*#__PURE__*/ React.createElement("div", {
|
|
142
|
+
ref: footerRef,
|
|
107
143
|
className: footerClassName,
|
|
108
|
-
style: {
|
|
144
|
+
style: _object_spread({
|
|
109
145
|
minHeight: footerHeight
|
|
110
|
-
}
|
|
111
|
-
},
|
|
146
|
+
}, styles === null || styles === void 0 ? void 0 : styles.footer)
|
|
147
|
+
}, showFooterBackground && /*#__PURE__*/ React.createElement(FooterBackgroundLottie, {
|
|
148
|
+
className: footerBackgroundClassName
|
|
149
|
+
}), footer)));
|
|
112
150
|
});
|
|
113
151
|
ChatLayoutComponent.displayName = 'ChatLayout';
|
|
114
152
|
// 使用 React.memo 优化性能,避免不必要的重新渲染
|
package/dist/ChatLayout/style.js
CHANGED
|
@@ -196,11 +196,22 @@ var genStyle = function(token) {
|
|
|
196
196
|
justifyContent: 'center',
|
|
197
197
|
background: 'linear-gradient(to bottom, #fff0 20%, var(--color-gray-bg-card-white) 70%)',
|
|
198
198
|
width: '100%',
|
|
199
|
+
paddingTop: 8,
|
|
200
|
+
paddingBottom: 24,
|
|
201
|
+
gap: 24,
|
|
199
202
|
position: 'absolute',
|
|
200
203
|
bottom: 0,
|
|
201
204
|
zIndex: 100,
|
|
202
205
|
borderBottomLeftRadius: 'var(--radius-xl)',
|
|
203
206
|
borderBottomRightRadius: 'var(--radius-xl)'
|
|
207
|
+
},
|
|
208
|
+
'&-footer-background': {
|
|
209
|
+
position: 'absolute',
|
|
210
|
+
top: 0,
|
|
211
|
+
left: 0,
|
|
212
|
+
right: 0,
|
|
213
|
+
bottom: 0,
|
|
214
|
+
pointerEvents: 'none'
|
|
204
215
|
}
|
|
205
216
|
}, "@media (max-width: ".concat(MOBILE_BREAKPOINT, ")"), {
|
|
206
217
|
'&-header': {
|
|
@@ -15,6 +15,34 @@ export interface ChatLayoutProps extends BaseStyleProps {
|
|
|
15
15
|
footerHeight?: number;
|
|
16
16
|
/** 滚动行为 */
|
|
17
17
|
scrollBehavior?: 'smooth' | 'auto';
|
|
18
|
+
/** 是否显示底部背景 */
|
|
19
|
+
showFooterBackground?: boolean;
|
|
20
|
+
/** 自定义类名 */
|
|
21
|
+
classNames?: {
|
|
22
|
+
/** 根容器类名 */
|
|
23
|
+
root?: string;
|
|
24
|
+
/** 内容区域类名 */
|
|
25
|
+
content?: string;
|
|
26
|
+
/** 滚动区域类名 */
|
|
27
|
+
scrollable?: string;
|
|
28
|
+
/** 底部区域类名 */
|
|
29
|
+
footer?: string;
|
|
30
|
+
/** 底部背景区域类名 */
|
|
31
|
+
footerBackground?: string;
|
|
32
|
+
};
|
|
33
|
+
/** 自定义样式 */
|
|
34
|
+
styles?: {
|
|
35
|
+
/** 根容器样式 */
|
|
36
|
+
root?: React.CSSProperties;
|
|
37
|
+
/** 内容区域样式 */
|
|
38
|
+
content?: React.CSSProperties;
|
|
39
|
+
/** 滚动区域样式 */
|
|
40
|
+
scrollable?: React.CSSProperties;
|
|
41
|
+
/** 底部区域样式 */
|
|
42
|
+
footer?: React.CSSProperties;
|
|
43
|
+
/** 底部背景区域样式 */
|
|
44
|
+
footerBackground?: React.CSSProperties;
|
|
45
|
+
};
|
|
18
46
|
}
|
|
19
47
|
export interface ChatLayoutRef {
|
|
20
48
|
scrollContainer: HTMLDivElement | null;
|
|
@@ -126,7 +126,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
126
126
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
127
127
|
}
|
|
128
128
|
function _ts_generator(thisArg, body) {
|
|
129
|
-
var f, y, t,
|
|
129
|
+
var f, y, t, _ = {
|
|
130
130
|
label: 0,
|
|
131
131
|
sent: function() {
|
|
132
132
|
if (t[0] & 1) throw t[1];
|
|
@@ -134,13 +134,17 @@ function _ts_generator(thisArg, body) {
|
|
|
134
134
|
},
|
|
135
135
|
trys: [],
|
|
136
136
|
ops: []
|
|
137
|
-
};
|
|
138
|
-
return g
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
},
|
|
143
|
-
|
|
137
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
138
|
+
return d(g, "next", {
|
|
139
|
+
value: verb(0)
|
|
140
|
+
}), d(g, "throw", {
|
|
141
|
+
value: verb(1)
|
|
142
|
+
}), d(g, "return", {
|
|
143
|
+
value: verb(2)
|
|
144
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
145
|
+
value: function() {
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
144
148
|
}), g;
|
|
145
149
|
function verb(n) {
|
|
146
150
|
return function(v) {
|
|
@@ -152,7 +156,7 @@ function _ts_generator(thisArg, body) {
|
|
|
152
156
|
}
|
|
153
157
|
function step(op) {
|
|
154
158
|
if (f) throw new TypeError("Generator is already executing.");
|
|
155
|
-
while(_)try {
|
|
159
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
156
160
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
157
161
|
if (y = 0, t) op = [
|
|
158
162
|
op[0] & 2,
|
|
@@ -278,8 +282,8 @@ import { useStyle } from "./style";
|
|
|
278
282
|
* - 集成 Ant Design 组件
|
|
279
283
|
* - 响应式交互设计
|
|
280
284
|
*/ export var ActionIconBox = function(props) {
|
|
281
|
-
var _props_title, _props_title1, _props_title2, _props_title3;
|
|
282
285
|
var _props_isLoading;
|
|
286
|
+
var _props_title, _props_title1, _props_title2, _props_title3;
|
|
283
287
|
var propLoading = (_props_isLoading = props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : props.loading;
|
|
284
288
|
var _useMergedState = _sliced_to_array(useMergedState(false, {
|
|
285
289
|
value: propLoading,
|
|
@@ -346,8 +350,8 @@ import { useStyle } from "./style";
|
|
|
346
350
|
tabIndex: 0,
|
|
347
351
|
"aria-label": (_props_title1 = props.title) === null || _props_title1 === void 0 ? void 0 : _props_title1.toString(),
|
|
348
352
|
className: cx(prefixCls, hashId, props.className, (_obj = {}, _define_property(_obj, "".concat(prefixCls, "-danger"), props.type === 'danger'), _define_property(_obj, "".concat(prefixCls, "-primary"), props.type === 'primary'), _define_property(_obj, "".concat(prefixCls, "-border-less"), props.borderLess), _define_property(_obj, "".concat(prefixCls, "-active"), props.active), _define_property(_obj, "".concat(prefixCls, "-transform"), props.transform), _define_property(_obj, "".concat(prefixCls, "-").concat(props.theme || 'light'), props.theme || 'light'), _define_property(_obj, "".concat(prefixCls, "-noPadding"), props.noPadding), _obj)),
|
|
349
|
-
onClick:
|
|
350
|
-
|
|
353
|
+
onClick: function(e) {
|
|
354
|
+
return _async_to_generator(function() {
|
|
351
355
|
var _props_onClick, error;
|
|
352
356
|
return _ts_generator(this, function(_state) {
|
|
353
357
|
switch(_state.label){
|
|
@@ -396,13 +400,10 @@ import { useStyle } from "./style";
|
|
|
396
400
|
];
|
|
397
401
|
}
|
|
398
402
|
});
|
|
399
|
-
});
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
}(),
|
|
404
|
-
onKeyDown: /*#__PURE__*/ function() {
|
|
405
|
-
var _ref = _async_to_generator(function(e) {
|
|
403
|
+
})();
|
|
404
|
+
},
|
|
405
|
+
onKeyDown: function(e) {
|
|
406
|
+
return _async_to_generator(function() {
|
|
406
407
|
var error;
|
|
407
408
|
return _ts_generator(this, function(_state) {
|
|
408
409
|
switch(_state.label){
|
|
@@ -455,11 +456,8 @@ import { useStyle } from "./style";
|
|
|
455
456
|
];
|
|
456
457
|
}
|
|
457
458
|
});
|
|
458
|
-
});
|
|
459
|
-
|
|
460
|
-
return _ref.apply(this, arguments);
|
|
461
|
-
};
|
|
462
|
-
}(),
|
|
459
|
+
})();
|
|
460
|
+
},
|
|
463
461
|
onMouseEnter: function() {
|
|
464
462
|
return setIsHovered(true);
|
|
465
463
|
},
|
|
@@ -476,8 +474,8 @@ import { useStyle } from "./style";
|
|
|
476
474
|
"aria-label": (_props_title2 = props.title) === null || _props_title2 === void 0 ? void 0 : _props_title2.toString(),
|
|
477
475
|
title: (_props_title3 = props.title) === null || _props_title3 === void 0 ? void 0 : _props_title3.toString(),
|
|
478
476
|
className: cx(prefixCls, hashId, props.className, (_obj1 = {}, _define_property(_obj1, "".concat(prefixCls, "-danger"), props.type === 'danger'), _define_property(_obj1, "".concat(prefixCls, "-primary"), props.type === 'primary'), _define_property(_obj1, "".concat(prefixCls, "-border-less"), props.borderLess), _define_property(_obj1, "".concat(prefixCls, "-active"), props.active), _define_property(_obj1, "".concat(prefixCls, "-transform"), props.transform), _define_property(_obj1, "".concat(prefixCls, "-").concat(props.theme || 'light'), props.theme || 'light'), _define_property(_obj1, "".concat(prefixCls, "-noPadding"), props.noPadding), _obj1)),
|
|
479
|
-
onClick:
|
|
480
|
-
|
|
477
|
+
onClick: function(e) {
|
|
478
|
+
return _async_to_generator(function() {
|
|
481
479
|
var _props_onClick, error;
|
|
482
480
|
return _ts_generator(this, function(_state) {
|
|
483
481
|
switch(_state.label){
|
|
@@ -526,13 +524,10 @@ import { useStyle } from "./style";
|
|
|
526
524
|
];
|
|
527
525
|
}
|
|
528
526
|
});
|
|
529
|
-
});
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}(),
|
|
534
|
-
onKeyDown: /*#__PURE__*/ function() {
|
|
535
|
-
var _ref = _async_to_generator(function(e) {
|
|
527
|
+
})();
|
|
528
|
+
},
|
|
529
|
+
onKeyDown: function(e) {
|
|
530
|
+
return _async_to_generator(function() {
|
|
536
531
|
var error;
|
|
537
532
|
return _ts_generator(this, function(_state) {
|
|
538
533
|
switch(_state.label){
|
|
@@ -585,11 +580,8 @@ import { useStyle } from "./style";
|
|
|
585
580
|
];
|
|
586
581
|
}
|
|
587
582
|
});
|
|
588
|
-
});
|
|
589
|
-
|
|
590
|
-
return _ref.apply(this, arguments);
|
|
591
|
-
};
|
|
592
|
-
}(),
|
|
583
|
+
})();
|
|
584
|
+
},
|
|
593
585
|
onMouseEnter: function() {
|
|
594
586
|
return setIsHovered(true);
|
|
595
587
|
},
|