@symbo.ls/link 2.11.132 → 2.11.162

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.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -14,7 +14,8 @@ export const Link = {
14
14
  draggable: false
15
15
  },
16
16
  attr: {
17
- href: (el, s, ctx) => {
17
+ href: (el) => {
18
+ const { context: ctx } = el
18
19
  const { exec } = ctx.utils
19
20
  return exec(el.props.href, el) || exec(el.props, el).href
20
21
  },
@@ -26,8 +27,8 @@ export const Link = {
26
27
 
27
28
  export const RouterLink = {
28
29
  on: {
29
- click: (event, el, s, ctx) => {
30
- const { props } = el
30
+ click: (event, el) => {
31
+ const { props, context: ctx } = el
31
32
  const { href } = props
32
33
  if (!href) return
33
34
  const { utils, routerOptions } = ctx
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/link",
3
- "version": "2.11.132",
3
+ "version": "2.11.162",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "13027443598f113dd2b79ddf7aaf1adbd46d97d7",
6
+ "gitHead": "fe3359a1d6c14d38f45f5e5db10ef2056947a228",
7
7
  "dependencies": {
8
8
  "@domql/router": "latest",
9
9
  "@symbo.ls/atoms": "latest"