@rxdrag/website-lib 0.0.137 → 0.0.139

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.
@@ -8,7 +8,7 @@ import Container from "./Container.astro";
8
8
  * 区块
9
9
  */
10
10
 
11
- interface Props extends HTMLAttributes<'header'> {
11
+ interface Props extends HTMLAttributes<"header"> {
12
12
  className?: string;
13
13
  containerClassName?: string;
14
14
  backgrounds?: BackgroundConfig[];
@@ -16,26 +16,10 @@ interface Props extends HTMLAttributes<'header'> {
16
16
  disableContainer?: boolean;
17
17
  }
18
18
 
19
- const {
20
- className,
21
- containerClassName,
22
- backgrounds,
23
- disableContainer,
24
- class: originalClass,
25
- ...rest
26
- } = Astro.props;
27
-
19
+ const { className, backgrounds, class: originalClass, ...rest } = Astro.props;
28
20
  ---
29
-
21
+
30
22
  <header class:list={["header-block", className, originalClass]} {...rest}>
31
23
  <BackgroundGroup backgrounds={backgrounds} />
32
- {
33
- disableContainer ? (
34
- <slot />
35
- ) : (
36
- <Container class:list={["w-full h-full", containerClassName]}>
37
- <slot />
38
- </Container>
39
- )
40
- }
24
+ <slot />
41
25
  </header>
@@ -46,9 +46,9 @@ interface ContainerProps {
46
46
  ```
47
47
  *原因:限宽核心*
48
48
 
49
- **PageContent** ✅
49
+ **Main** ✅
50
50
  ```ts
51
- interface PageContentProps {
51
+ interface MainProps {
52
52
  class?: string
53
53
  className?: string
54
54
  backgrounds?: BackgroundConfig[]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdrag/website-lib",
3
- "version": "0.0.137",
3
+ "version": "0.0.139",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts",
@@ -26,11 +26,11 @@
26
26
  "eslint": "^9.39.2",
27
27
  "gsap": "^3.12.7",
28
28
  "typescript": "^5",
29
+ "@rxdrag/rxcms-models": "0.3.106",
30
+ "@rxdrag/tiptap-preview": "0.0.3",
29
31
  "@rxdrag/eslint-config-custom": "0.2.13",
30
32
  "@rxdrag/entify-hooks": "0.2.79",
31
- "@rxdrag/rxcms-models": "0.3.106",
32
- "@rxdrag/tsconfig": "0.2.1",
33
- "@rxdrag/tiptap-preview": "0.0.3"
33
+ "@rxdrag/tsconfig": "0.2.1"
34
34
  },
35
35
  "dependencies": {
36
36
  "aos": "3.0.0-beta.6",
File without changes