@rxdrag/website-lib-core 0.0.115 → 0.0.116
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/website-lib-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.116",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.ts"
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@types/react-dom": "^19.1.0",
|
|
25
25
|
"eslint": "^7.32.0",
|
|
26
26
|
"typescript": "^5",
|
|
27
|
-
"@rxdrag/eslint-config-custom": "0.2.12",
|
|
28
27
|
"@rxdrag/tsconfig": "0.2.0",
|
|
28
|
+
"@rxdrag/eslint-config-custom": "0.2.12",
|
|
29
29
|
"@rxdrag/slate-preview": "1.2.63"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
package/src/astro/background.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type ImageBackgroundConfig = {
|
|
|
16
16
|
type: "image";
|
|
17
17
|
className?: string; // 图片,如 "bg-cover bg-center bg-no-repeat"
|
|
18
18
|
mediaRef?: string; // 图片ref
|
|
19
|
-
|
|
19
|
+
src?: string; // 图片源
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export type SvgBackgroundConfig = {
|
|
@@ -32,8 +32,8 @@ export type VideoBackgroundConfig = {
|
|
|
32
32
|
className?: string; // 视频,如 "bg-cover bg-center bg-no-repeat"
|
|
33
33
|
mediaRef?: string; // 视频Ref
|
|
34
34
|
posterRef?: string; // 视频封面Ref
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
mediaSrc?: string; // 视频源
|
|
36
|
+
posterSrc?: string; // 视频封面图源
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export type SplineBackgroundConfig = {
|