@agentscope-ai/design 1.0.16 → 1.0.18
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/lib/antd/styles/button.style.js +13 -1
- package/lib/antd/styles/index.style.js +3 -1
- package/lib/antd/styles/tree.style.d.ts +6 -0
- package/lib/antd/styles/tree.style.js +18 -0
- package/lib/antd/themes/bailianDarkTheme.json +3 -1
- package/lib/antd/themes/bailianTheme.json +4 -2
- package/lib/antd/themes/carbonDarkTheme.json +3 -1
- package/lib/antd/themes/carbonTheme.json +3 -1
- package/lib/antd/themes/generateTheme.js +30 -29
- package/lib/components/commonComponents/Audio/Control.d.ts +53 -0
- package/lib/components/commonComponents/{Video → Audio}/Control.js +18 -15
- package/lib/components/commonComponents/Audio/Control.style.d.ts +1 -0
- package/lib/components/commonComponents/Audio/Control.style.js +14 -0
- package/lib/components/commonComponents/Audio/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Audio/demo/demo1.js +11 -0
- package/lib/components/commonComponents/Audio/index.d.ts +10 -0
- package/lib/components/commonComponents/Audio/index.js +164 -0
- package/lib/components/commonComponents/Audio/index.style.d.ts +1 -0
- package/lib/components/commonComponents/Audio/index.style.js +10 -0
- package/lib/components/commonComponents/Button/demo/demo1.js +7 -0
- package/lib/components/commonComponents/Button/index.js +2 -1
- package/lib/components/commonComponents/CollapsePanel/demo/demo1.js +6 -6
- package/lib/components/commonComponents/CollapsePanel/index.js +4 -4
- package/lib/components/commonComponents/EllipsisTip/index.d.ts +8 -1
- package/lib/components/commonComponents/EllipsisTip/index.js +33 -3
- package/lib/components/commonComponents/Empty/index.d.ts +6 -0
- package/lib/components/commonComponents/Empty/index.js +22 -7
- package/lib/components/commonComponents/Empty/index.style.js +1 -1
- package/lib/components/commonComponents/Pagination/index.js +33 -42
- package/lib/components/commonComponents/Pagination/index.style.js +1 -1
- package/lib/components/commonComponents/PromptsEditor/VarRender.js +1 -1
- package/lib/components/commonComponents/SliderSelector/index.d.ts +1 -1
- package/lib/components/commonComponents/SliderSelector/index.js +8 -4
- package/lib/components/commonComponents/Steps/index.js +2 -1
- package/lib/components/commonComponents/Steps/index.style.js +5 -1
- package/lib/components/commonComponents/Table/index.style.js +27 -1
- package/lib/components/commonComponents/Tabs/index.js +9 -8
- package/lib/components/commonComponents/Tooltip/demo/demo3.d.ts +3 -0
- package/lib/components/commonComponents/Tooltip/demo/demo3.js +25 -0
- package/lib/components/commonComponents/Tooltip/index.d.ts +7 -1
- package/lib/components/commonComponents/Tooltip/index.js +12 -1
- package/lib/components/commonComponents/Tooltip/index.style.js +1 -1
- package/lib/components/commonComponents/Video/index.d.ts +5 -6
- package/lib/components/commonComponents/Video/index.js +14 -9
- package/lib/components/commonComponents/Video/index.style.js +2 -4
- package/lib/components/mobileComponents/MobileDrawer/index.style.js +7 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -0
- package/lib/typings.d.ts +12 -0
- package/llms/all.llms.txt +889 -1772
- package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +1 -0
- package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +2 -1
- package/llms/index.llms.txt +47 -47
- package/package.json +4 -4
- package/scripts/mcp-docs-server.js +4 -4
- package/lib/components/commonComponents/Video/Control.d.ts +0 -19
- package/llms/docs/guide/fromAntd.zh-CN.llms.txt +0 -156
- package/llms/docs/guide/fromScratch.zh-CN.llms.txt +0 -83
- package/llms/docs/guide/iconfont.zh-CN.llms.txt +0 -69
- package/llms/docs/guide/overview.zh-CN.llms.txt +0 -51
- package/llms/docs/guide/theme.zh-CN.llms.txt +0 -61
- package/llms/docs/guide/tokens&variables.zh-CN.llms.txt +0 -425
- package/llms/docs/guide/vibe-coding.zh-CN.llms.txt +0 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["mode", "arrow", "overlayClassName", "getPopupContainer"];
|
|
2
|
+
var _excluded = ["mode", "maxHeight", "styles", "arrow", "overlayClassName", "getPopupContainer", "align"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -20,15 +20,26 @@ var SparkTooltip = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
20
20
|
var Style = useStyle();
|
|
21
21
|
var _props$mode = props.mode,
|
|
22
22
|
mode = _props$mode === void 0 ? 'dark' : _props$mode,
|
|
23
|
+
_props$maxHeight = props.maxHeight,
|
|
24
|
+
maxHeight = _props$maxHeight === void 0 ? '90vh' : _props$maxHeight,
|
|
25
|
+
_props$styles = props.styles,
|
|
26
|
+
styles = _props$styles === void 0 ? {} : _props$styles,
|
|
23
27
|
arrow = props.arrow,
|
|
24
28
|
overlayClassName = props.overlayClassName,
|
|
25
29
|
getPopupContainer = props.getPopupContainer,
|
|
30
|
+
align = props.align,
|
|
26
31
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
27
32
|
var _getCommonConfig = getCommonConfig(),
|
|
28
33
|
sparkPrefix = _getCommonConfig.sparkPrefix,
|
|
29
34
|
antPrefix = _getCommonConfig.antPrefix;
|
|
30
35
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
31
36
|
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
37
|
+
styles: _objectSpread(_objectSpread({}, styles), {}, {
|
|
38
|
+
body: _objectSpread({
|
|
39
|
+
maxHeight: maxHeight,
|
|
40
|
+
overflow: 'auto'
|
|
41
|
+
}, styles.body)
|
|
42
|
+
}),
|
|
32
43
|
arrow: arrow !== null && arrow !== void 0 ? arrow : false,
|
|
33
44
|
overlayClassName: classNames(overlayClassName, mode === 'light' && "".concat(sparkPrefix, "-tooltip-light")),
|
|
34
45
|
getPopupContainer: getPopupContainer || function (triggerNode) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
3
|
import createGlobalStyle from "../../../libs/createStyle";
|
|
4
|
-
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* \u9ED8\u8BA4\u6DF1\u8272 */\n.", "-tooltip-content {\n .", "-tooltip-inner {\n border: 1px solid transparent;\n padding: 6px 12px;\n background: var(--", "-color-
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* \u9ED8\u8BA4\u6DF1\u8272 */\n.", "-tooltip-content {\n .", "-tooltip-inner {\n border: 1px solid transparent;\n padding: 6px 12px;\n background: var(--", "-color-slate);\n color: var(--", "-color-text-on-primary);\n }\n}\n\n/* \u6D45\u8272\u6A21\u5F0F */\n.", "-tooltip-light {\n .", "-tooltip-content .", "-tooltip-inner {\n background: var(--", "-color-bg-base);\n color: var(--", "-color-text);\n }\n \n .", "-tooltip-arrow {\n &::after {\n background: var(--", "-color-bg-base);\n }\n }\n}\n"])), function (p) {
|
|
5
5
|
return p.antPrefix;
|
|
6
6
|
}, function (p) {
|
|
7
7
|
return p.antPrefix;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type NativeVideoProps = React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>;
|
|
3
|
-
interface
|
|
4
|
-
/**
|
|
5
|
-
* @description 视频地址
|
|
6
|
-
*/
|
|
7
|
-
src?: string;
|
|
3
|
+
export interface VideoProps extends NativeVideoProps {
|
|
8
4
|
/**
|
|
9
5
|
* @description 鼠标进入时是否自动播放
|
|
6
|
+
* @descriptionEn mouse enter auto play
|
|
7
|
+
* @default false
|
|
10
8
|
*/
|
|
11
9
|
mouseEnterAutoPlay?: boolean;
|
|
12
10
|
/**
|
|
13
11
|
* @description video内部设置了按钮在暗色背景下的样式,如果有一些操作按钮想继承这个样式可以在这里传入
|
|
12
|
+
* @descriptionEn video internal sets the style of the buttons in the dark background, if there are some operation buttons that want to inherit this style can be passed in here
|
|
14
13
|
*/
|
|
15
14
|
children?: React.ReactNode;
|
|
16
15
|
}
|
|
17
|
-
declare const Video: React.ForwardRefExoticComponent<Omit<
|
|
16
|
+
declare const Video: React.ForwardRefExoticComponent<Omit<VideoProps, "ref"> & React.RefAttributes<HTMLVideoElement>>;
|
|
18
17
|
export default Video;
|
|
@@ -15,7 +15,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
15
15
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16
16
|
import React, { forwardRef, useEffect, useState, useRef } from 'react';
|
|
17
17
|
import classNames from 'classnames';
|
|
18
|
-
import
|
|
18
|
+
import MediaPlayerController from "../Audio/Control";
|
|
19
19
|
import { useControllableValue } from 'ahooks';
|
|
20
20
|
import { getCommonConfig } from "../../../config";
|
|
21
21
|
import { useStyle } from "./index.style";
|
|
@@ -55,8 +55,8 @@ var Video = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
55
55
|
setMuted = _useControllableValue2[1];
|
|
56
56
|
var _useState7 = useState(false),
|
|
57
57
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
enableVolume = _useState8[0],
|
|
59
|
+
setEnableVolume = _useState8[1];
|
|
60
60
|
var videoRef = useRef(null);
|
|
61
61
|
var lockMouseEnterAutoPlayRef = useRef(false);
|
|
62
62
|
|
|
@@ -100,16 +100,16 @@ var Video = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
100
100
|
// 方法1: 检查mozHasAudio属性 (Firefox)
|
|
101
101
|
if ('mozHasAudio' in videoRef.current) {
|
|
102
102
|
// @ts-ignore
|
|
103
|
-
|
|
103
|
+
setEnableVolume(videoRef.current.mozHasAudio);
|
|
104
104
|
return true;
|
|
105
105
|
}
|
|
106
106
|
// 方法2: 检查webkitAudioDecodedByteCount属性 (WebKit)
|
|
107
107
|
if ('webkitAudioDecodedByteCount' in videoRef.current) {
|
|
108
108
|
// @ts-ignore
|
|
109
|
-
|
|
109
|
+
setEnableVolume(videoRef.current.webkitAudioDecodedByteCount > 0);
|
|
110
110
|
return true;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
setEnableVolume(false);
|
|
113
113
|
return false;
|
|
114
114
|
}
|
|
115
115
|
return false;
|
|
@@ -190,9 +190,14 @@ var Video = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
190
190
|
className: "".concat(sparkPrefix, "-video-content"),
|
|
191
191
|
onMouseEnter: handleMouseEnter,
|
|
192
192
|
onMouseLeave: handleMouseLeave,
|
|
193
|
-
children: [/*#__PURE__*/_jsx("
|
|
193
|
+
children: [props.poster && /*#__PURE__*/_jsx("img", {
|
|
194
|
+
src: props.poster,
|
|
195
|
+
alt: "poster",
|
|
196
|
+
className: "".concat(sparkPrefix, "-video-poster")
|
|
197
|
+
}), /*#__PURE__*/_jsx("video", _objectSpread(_objectSpread({
|
|
194
198
|
ref: combinedRef
|
|
195
199
|
}, videoProps), {}, {
|
|
200
|
+
controls: false,
|
|
196
201
|
muted: muted,
|
|
197
202
|
className: "".concat(sparkPrefix, "-video-element"),
|
|
198
203
|
crossOrigin: "anonymous",
|
|
@@ -201,12 +206,12 @@ var Video = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
201
206
|
onPlay: handlePlay,
|
|
202
207
|
onPause: handlePause,
|
|
203
208
|
onEnded: handleEnded
|
|
204
|
-
})), controls && /*#__PURE__*/_jsx(
|
|
209
|
+
})), controls && /*#__PURE__*/_jsx(MediaPlayerController, {
|
|
205
210
|
className: "".concat(sparkPrefix, "-video-controller-wrapper"),
|
|
206
211
|
isPlaying: isPlaying,
|
|
207
212
|
currentTime: currentTime,
|
|
208
213
|
duration: duration,
|
|
209
|
-
|
|
214
|
+
enableVolume: enableVolume,
|
|
210
215
|
muted: muted,
|
|
211
216
|
onMute: function onMute() {
|
|
212
217
|
return setMuted(!muted);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
3
|
import createGlobalStyle from "../../../libs/createStyle";
|
|
4
|
-
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n// Video \u4E3B\u5BB9\u5668\u6837\u5F0F\n.", "-video-container {\n position: relative;\n width: 100%;\n height: 100%;\n background: #000;\n\n button {\n --", "-color-text-disabled: rgba(231, 231, 237, 0.25) !important;\n --", "-button-text-text-color: rgba(231, 231, 237, 0.88) !important;\n --", "-button-text-text-hover-color: rgba(231, 231, 237, 0.88) !important;\n --", "-button-text-hover-bg: rgba(231, 231, 237, 0.08) !important;\n }\n
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n// Video \u4E3B\u5BB9\u5668\u6837\u5F0F\n.", "-video-container {\n position: relative;\n width: 100%;\n height: 100%;\n background: #000;\n\n button {\n --", "-color-text-disabled: rgba(231, 231, 237, 0.25) !important;\n --", "-button-text-text-color: rgba(231, 231, 237, 0.88) !important;\n --", "-button-text-text-hover-color: rgba(231, 231, 237, 0.88) !important;\n --", "-button-text-hover-bg: rgba(231, 231, 237, 0.08) !important;\n }\n\n .", "-media-time-text {\n color: var(--", "-color-text-white);\n }\n}\n\n.", "-video-content {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.", "-video-element {\n position: relative;\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n}\n\n.", "-video-poster {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: contain;\n}\n\n.", "-video-controller-wrapper {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n background: linear-gradient(0deg, #000000 2%, rgba(0, 0, 0, 0) 94%);\n transition: opacity 0.3s;\n}\n // \u8FDB\u5EA6\u6761\u6837\u5F0F\n.", "-media-progress-bar {\n .", "-progress-inner {\n --", "-progress-remaining-color: var(--", "-color-fill);\n }\n \n .", "-progress-bg {\n background: var(--", "-color-text-white) !important;\n }\n}\n"])), function (p) {
|
|
5
5
|
return p.sparkPrefix;
|
|
6
6
|
}, function (p) {
|
|
7
7
|
return p.antPrefix;
|
|
@@ -14,15 +14,13 @@ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _t
|
|
|
14
14
|
}, function (p) {
|
|
15
15
|
return p.sparkPrefix;
|
|
16
16
|
}, function (p) {
|
|
17
|
-
return p.
|
|
17
|
+
return p.antPrefix;
|
|
18
18
|
}, function (p) {
|
|
19
19
|
return p.sparkPrefix;
|
|
20
20
|
}, function (p) {
|
|
21
21
|
return p.sparkPrefix;
|
|
22
22
|
}, function (p) {
|
|
23
23
|
return p.sparkPrefix;
|
|
24
|
-
}, function (p) {
|
|
25
|
-
return p.antPrefix;
|
|
26
24
|
}, function (p) {
|
|
27
25
|
return p.sparkPrefix;
|
|
28
26
|
}, function (p) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
3
|
import createGlobalStyle from "../../../libs/createStyle";
|
|
4
|
-
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-drawer {\n .", "-drawer-header {\n padding: 12px 20px;\n border-bottom: none;\n \n .", "-drawer-header-title {\n display: flex;\n flex-direction: row;\n \n .", "-drawer-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 28px;\n color: var(--", "-color-text);\n display: flex;\n justify-content: center;\n padding-right: 32px;\n }\n \n .", "-drawer-close {\n width: 32px;\n height: 32px;\n }\n }\n }\n \n .", "-drawer-body {\n --", "-padding-lg: 20px;\n }\n \n .", "-drawer-footer {\n padding: 16px 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-top: none;\n \n .", "-drawer-footer-info {\n font-size: 14px;\n line-height: 24px;\n color: var(--", "-color-text-tertiary);\n }\n \n .", "-drawer-footer-buttons {\n display: flex;\n gap: 12px;\n }\n }\n \n .", "-drawer-close {\n color: var(--", "-color-text);\n margin: 0;\n }\n}\n\n.", "-drawer.", "-show-divider {\n .", "-drawer-header {\n border-bottom: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-drawer-footer {\n border-top: 1px solid var(--", "-color-border-secondary);\n }\n}\n"])), function (p) {
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-drawer {\n .", "-drawer-header {\n padding: 12px 20px;\n border-bottom: none;\n \n .", "-drawer-header-title {\n display: flex;\n flex-direction: row;\n \n .", "-drawer-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 28px;\n color: var(--", "-color-text);\n display: flex;\n justify-content: center;\n padding-right: 32px;\n }\n \n .", "-drawer-close {\n width: 32px;\n height: 32px;\n }\n }\n }\n \n .", "-drawer-body {\n --", "-padding-lg: 20px;\n }\n \n .", "-drawer-footer {\n padding: 16px 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-top: none;\n \n .", "-drawer-footer-info {\n font-size: 14px;\n line-height: 24px;\n color: var(--", "-color-text-tertiary);\n }\n \n .", "-drawer-footer-buttons {\n display: flex;\n gap: 12px;\n }\n }\n \n .", "-drawer-close {\n color: var(--", "-color-text);\n margin: 0;\n }\n}\n\n.", "-drawer.", "-show-divider {\n .", "-drawer-header {\n border-bottom: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-drawer-footer {\n border-top: 1px solid var(--", "-color-border-secondary);\n }\n}\n.", "-drawer-bottom {\n .", "-drawer-content-wrapper {\n border-radius: 16px 16px 0 0;\n }\n .", "-drawer-content {\n border-radius: 16px 16px 0 0;\n }\n}\n"])), function (p) {
|
|
5
5
|
return p.sparkPrefix;
|
|
6
6
|
}, function (p) {
|
|
7
7
|
return p.antPrefix;
|
|
@@ -41,4 +41,10 @@ export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _t
|
|
|
41
41
|
return p.antPrefix;
|
|
42
42
|
}, function (p) {
|
|
43
43
|
return p.antPrefix;
|
|
44
|
+
}, function (p) {
|
|
45
|
+
return p.antPrefix;
|
|
46
|
+
}, function (p) {
|
|
47
|
+
return p.antPrefix;
|
|
48
|
+
}, function (p) {
|
|
49
|
+
return p.antPrefix;
|
|
44
50
|
});
|
package/lib/index.d.ts
CHANGED
|
@@ -48,7 +48,8 @@ export { default as Tag, type SparkTagProps as TagProps, } from './components/co
|
|
|
48
48
|
export { default as TimePicker } from './components/commonComponents/TimePicker';
|
|
49
49
|
export { default as Tooltip, type SparkTooltipProps as TooltipProps, } from './components/commonComponents/Tooltip';
|
|
50
50
|
export { default as Upload } from './components/commonComponents/Upload';
|
|
51
|
-
export { default as Video } from './components/commonComponents/Video';
|
|
51
|
+
export { default as Video, type VideoProps } from './components/commonComponents/Video';
|
|
52
|
+
export { default as Audio, type AudioProps } from './components/commonComponents/Audio';
|
|
52
53
|
export { FileCard, default as FileIcon, type SparkFileCardProps, type SparkFileIconProps, } from './components/commonComponents/FileIcon';
|
|
53
54
|
/**
|
|
54
55
|
* 移动端组件
|
package/lib/index.js
CHANGED
|
@@ -54,6 +54,7 @@ export { default as TimePicker } from "./components/commonComponents/TimePicker"
|
|
|
54
54
|
export { default as Tooltip } from "./components/commonComponents/Tooltip";
|
|
55
55
|
export { default as Upload } from "./components/commonComponents/Upload";
|
|
56
56
|
export { default as Video } from "./components/commonComponents/Video";
|
|
57
|
+
export { default as Audio } from "./components/commonComponents/Audio";
|
|
57
58
|
export { FileCard, default as FileIcon } from "./components/commonComponents/FileIcon";
|
|
58
59
|
|
|
59
60
|
/**
|
package/lib/typings.d.ts
CHANGED
|
@@ -12,3 +12,15 @@ interface Window {
|
|
|
12
12
|
/** 在阿里云viper>应用配置>基础数据中配置的应用配置项 */
|
|
13
13
|
ALIYUN_CONSOLE_GLOBAL?: any;
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
// 扩展 antd 的 GlobalToken 类型,添加自定义 token
|
|
17
|
+
declare module 'antd/es/theme/interface' {
|
|
18
|
+
interface GlobalToken {
|
|
19
|
+
/** 自定义灰色主题色 */
|
|
20
|
+
colorSlate?: string;
|
|
21
|
+
/** 自定义灰色主题色悬停态 */
|
|
22
|
+
colorSlateHover?: string;
|
|
23
|
+
/** 自定义灰色主题色背景 */
|
|
24
|
+
colorSlateBg?: string;
|
|
25
|
+
}
|
|
26
|
+
}
|