plain-design 1.0.0-beta.2 → 1.0.0-beta.3
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
package/src/packages/build.ts
CHANGED
@@ -3,7 +3,7 @@ import Plain from './index';
|
|
3
3
|
import allIcons from 'plain-icons/dist/icons.js';
|
4
4
|
|
5
5
|
// @ts-ignore
|
6
|
-
Plain.Icon.PlainIcon.props.getIcon.default = (icon: string) => {
|
6
|
+
Plain.Icon.PlainIcon.use.options.props.getIcon.default = (icon: string) => {
|
7
7
|
const iconMeta = (allIcons as any)[icon];
|
8
8
|
if (!iconMeta) {
|
9
9
|
throw new Error(`getIcon: can't find icon match ${icon}`);
|