vitepress-plugin-announcement 0.1.6 → 0.1.7

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.
@@ -127,7 +127,8 @@ function PopoverValue(props: { key: number; item: Announcement.Value },
127
127
  if (item.type === 'image') {
128
128
  return h('img', {
129
129
  src: item.src,
130
- style: parseStringStyle(item.style || '')
130
+ style: parseStringStyle(item.style || ''),
131
+ alt: item.alt ?? '图片'
131
132
  })
132
133
  }
133
134
  if (item.type === 'button') {
package/dist/index.d.mts CHANGED
@@ -93,6 +93,7 @@ declare namespace Announcement {
93
93
  type: 'image';
94
94
  src: string;
95
95
  style?: string;
96
+ alt?: string;
96
97
  }
97
98
  interface Button {
98
99
  type: 'button';
package/dist/index.d.ts CHANGED
@@ -93,6 +93,7 @@ declare namespace Announcement {
93
93
  type: 'image';
94
94
  src: string;
95
95
  style?: string;
96
+ alt?: string;
96
97
  }
97
98
  interface Button {
98
99
  type: 'button';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitepress-plugin-announcement",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "vitepress plugin, Announcement, 公告窗口",
5
5
  "author": "sugar",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "typescript": "^5.5.4",
45
45
  "vite": "^5",
46
46
  "vitepress": "2.0.0-alpha.15",
47
- "vue": "^3.5.12"
47
+ "vue": "^3.5.24"
48
48
  },
49
49
  "scripts": {
50
50
  "dev": "pnpm run /^dev:.*/",