🌐 AI搜索 & 代理 主页
Skip to content

Commit c985c92

Browse files
authored
Update create-icons.js
1 parent fbfb4d4 commit c985c92

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

scripts/create-icons.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ const pluginTemplateFn = _template(`// --- BEGIN AUTO-GENERATED FILE ---
6363
6464
import { pluginFactory } from '../utils/plugins'
6565
66+
// Icon helper component
6667
import { BIcon } from './icon'
6768
6869
import {
70+
// BootstrapVue custom icons
6971
BIconBlank,
72+
// Bootsttap icons
7073
<%= componentNames.join(',\\n ') %>
7174
} from './icons'
7275
@@ -77,8 +80,24 @@ export const iconComponents = {
7780
<%= componentNames.join(',\\n ') %>
7881
}
7982
83+
export const iconComponentNames = [
84+
// BootstrapVue custom icons
85+
'BIconBlank',
86+
// Bootsttap icons
87+
<%= componentNames.map(n => ("'" + n + "'")).join(',\\n ') %>
88+
]
89+
8090
// Export the icons plugin
81-
export const IconsPlugin = /*#__PURE__*/ pluginFactory({ components: iconComponents })
91+
export const IconsPlugin = /*#__PURE__*/ pluginFactory({
92+
components: {
93+
// Icon helper component
94+
BIcon,
95+
// BootstrapVue custom icons
96+
BIconBlank,
97+
// Bootsttap icons
98+
<%= componentNames.join(',\\n ') %>
99+
}
100+
})
82101
83102
// --- END AUTO-GENERATED FILE ---
84103
`)

0 commit comments

Comments
 (0)