vuepress-plugin-md-power 1.0.0-rc.182 → 1.0.0-rc.183

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.
@@ -157,6 +157,9 @@ function onTabNavClick(index: number): void {
157
157
 
158
158
  .vp-code-tab-nav {
159
159
  position: relative;
160
+ display: inline-flex;
161
+ gap: 4px;
162
+ align-items: center;
160
163
  padding: 0 12px;
161
164
  font-size: 14px;
162
165
  font-weight: 500;
@@ -202,7 +205,7 @@ function onTabNavClick(index: number): void {
202
205
  .vp-code-tab-nav .vp-icon {
203
206
  width: 18px;
204
207
  height: 18px;
205
- margin-left: 0;
208
+ margin: 0;
206
209
  }
207
210
 
208
211
  .vp-code-tab-nav span {
@@ -146,6 +146,20 @@ interface IconifyProvider extends IconProviderBase {
146
146
  * @default ''
147
147
  */
148
148
  prefix?: LiteralUnion<IconifyPrefix>;
149
+ /**
150
+ * preload iconify icons
151
+ *
152
+ * 预加载 iconify 图标,
153
+ *
154
+ *
155
+ * - `string[]` 需要预加载的图标名称,`collect:name` 格式
156
+ * - `Record<collect, name[]>` 以 collect 为 key, value 为需要预加载的图标 `name`
157
+ * 其中,如果 key 为 `preflight` 时,value 为预加载图标的 `collect:name` 格式
158
+ *
159
+ * 此配置主要用于开发组件时,在组件中直接使用 `<VPIcon name="xx" />` 时无法触发
160
+ * 主题的图标本地资源分析功能,通过预加载的方式直接预设为本地资源图标。
161
+ */
162
+ preload?: string[] | Record<LiteralUnion<IconifyPrefix | 'preflight'>, string[]>;
149
163
  }
150
164
  type FontAwesomeAssetBuiltIn = 'fontawesome' | 'fontawesome-with-brands';
151
165
  type IconAssetLink = `//${string}` | `//${string}` | `https://${string}` | `http://${string}`;
@@ -144,6 +144,20 @@ interface IconifyProvider extends IconProviderBase {
144
144
  * @default ''
145
145
  */
146
146
  prefix?: LiteralUnion<IconifyPrefix>;
147
+ /**
148
+ * preload iconify icons
149
+ *
150
+ * 预加载 iconify 图标,
151
+ *
152
+ *
153
+ * - `string[]` 需要预加载的图标名称,`collect:name` 格式
154
+ * - `Record<collect, name[]>` 以 collect 为 key, value 为需要预加载的图标 `name`
155
+ * 其中,如果 key 为 `preflight` 时,value 为预加载图标的 `collect:name` 格式
156
+ *
157
+ * 此配置主要用于开发组件时,在组件中直接使用 `<VPIcon name="xx" />` 时无法触发
158
+ * 主题的图标本地资源分析功能,通过预加载的方式直接预设为本地资源图标。
159
+ */
160
+ preload?: string[] | Record<LiteralUnion<IconifyPrefix | 'preflight'>, string[]>;
147
161
  }
148
162
  type FontAwesomeAssetBuiltIn = 'fontawesome' | 'fontawesome-with-brands';
149
163
  type IconAssetLink = `//${string}` | `//${string}` | `https://${string}` | `http://${string}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vuepress-plugin-md-power",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.182",
4
+ "version": "1.0.0-rc.183",
5
5
  "description": "The Plugin for VuePress 2 - markdown power",
6
6
  "author": "pengzhanbo <volodymyr@foxmail.com>",
7
7
  "license": "MIT",
@@ -85,7 +85,7 @@
85
85
  "@mdit/plugin-tab": "^0.23.0",
86
86
  "@mdit/plugin-tasklist": "^0.22.2",
87
87
  "@pengzhanbo/utils": "^2.1.2",
88
- "@vuepress/helper": "2.0.0-rc.120",
88
+ "@vuepress/helper": "2.0.0-rc.121",
89
89
  "@vueuse/core": "^14.1.0",
90
90
  "chokidar": "5.0.0",
91
91
  "image-size": "^2.0.2",