@rxdrag/website-lib 0.0.86 → 0.0.93

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",
3
- "version": "0.0.86",
3
+ "version": "0.0.93",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts"
@@ -25,17 +25,17 @@
25
25
  "gsap": "^3.12.7",
26
26
  "typescript": "^5",
27
27
  "@rxdrag/entify-hooks": "0.2.76",
28
- "@rxdrag/rxcms-models": "0.3.94",
28
+ "@rxdrag/tsconfig": "0.2.0",
29
29
  "@rxdrag/eslint-config-custom": "0.2.12",
30
30
  "@rxdrag/slate-preview": "1.2.61",
31
- "@rxdrag/tsconfig": "0.2.0"
31
+ "@rxdrag/rxcms-models": "0.3.94"
32
32
  },
33
33
  "dependencies": {
34
34
  "clsx": "^2.1.0",
35
35
  "react": "^19.1.0",
36
36
  "react-dom": "^19.1.0",
37
- "@rxdrag/rxcms-models": "0.3.94",
38
- "@rxdrag/website-lib-core": "0.0.88"
37
+ "@rxdrag/website-lib-core": "0.0.93",
38
+ "@rxdrag/rxcms-models": "0.3.94"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "astro": "^4.0.0 || ^5.0.0"
@@ -17,18 +17,27 @@ interface AnchorAttributes {
17
17
  options?: {
18
18
  productsSlug?: string;
19
19
  postsSlug?: string;
20
- }
20
+ };
21
21
  }
22
22
 
23
23
  interface Props extends IMotionProps, AnchorAttributes {
24
24
  type?: LinkType | string;
25
25
  to?: string | undefined;
26
26
  class?: string;
27
+ className?: string;
27
28
  //用于active类名的传递
28
29
  activeWhen?: string | true;
29
30
  }
30
31
 
31
- const { type, to, class: className, activeWhen, options, ...props } = Astro.props;
32
+ const {
33
+ type,
34
+ to,
35
+ class: cls,
36
+ className,
37
+ activeWhen,
38
+ options,
39
+ ...props
40
+ } = Astro.props;
32
41
  const href = toHref(type || "", to || "", options);
33
42
  const hrefObj = href ? { href } : {};
34
43
  ---
@@ -37,7 +46,7 @@ const hrefObj = href ? { href } : {};
37
46
  as={"a"}
38
47
  data-actived-path={activeWhen}
39
48
  {...hrefObj}
40
- class={className}
49
+ class:list={[cls, className]}
41
50
  {...props}
42
51
  >
43
52
  <slot />