tutor-pro-ui-vue 1.0.3-beta → 1.0.5-beta
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.
- package/docs/examples/common-button/index.vue +1 -1
- package/package.json +1 -1
- package/src/components/index.ts +3 -1
- package/src/index.ts +2 -1
- package/vite.config.ts +4 -4
- package/docs/package-lock.json +0 -3939
package/package.json
CHANGED
package/src/components/index.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ const installComponents: any = (app: App) => {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
const install: any = (app:
|
|
14
|
+
const install: any = (app: App) => {
|
|
15
15
|
installComponents(app);
|
|
16
16
|
};
|
|
17
17
|
// @ts-ignore
|
|
@@ -28,4 +28,5 @@ export { CommonButton };
|
|
|
28
28
|
export default {
|
|
29
29
|
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
|
30
30
|
install,
|
|
31
|
+
...components,
|
|
31
32
|
};
|
package/vite.config.ts
CHANGED
|
@@ -4,7 +4,7 @@ import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
|
4
4
|
import dts from 'vite-plugin-dts';
|
|
5
5
|
|
|
6
6
|
// 需要下载@types/node
|
|
7
|
-
import path from 'path';
|
|
7
|
+
import path, { resolve } from 'path';
|
|
8
8
|
|
|
9
9
|
// https://vite.dev/config/
|
|
10
10
|
export default defineConfig({
|
|
@@ -27,11 +27,11 @@ export default defineConfig({
|
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
lib: {
|
|
30
|
-
// entry:
|
|
31
|
-
entry: '
|
|
30
|
+
// entry: './src/index.ts',
|
|
31
|
+
entry: resolve(__dirname, 'src/index.ts'),
|
|
32
32
|
name: 'tutor-pro-ui-vue',
|
|
33
33
|
// formats: ['es', 'cjs'],
|
|
34
|
-
|
|
34
|
+
formats: ['es', 'umd', 'cjs'],
|
|
35
35
|
fileName: 'tutor-pro-ui-vue',
|
|
36
36
|
},
|
|
37
37
|
},
|