inl-ui 0.0.5 → 0.0.8

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/.babelrc CHANGED
@@ -1,3 +1,3 @@
1
- {
2
- "plugins": ["@vue/babel-plugin-jsx"]
3
- }
1
+ {
2
+ "plugins": ["@vue/babel-plugin-jsx"]
3
+ }
package/README.md CHANGED
@@ -1 +1,28 @@
1
- # 工业 pc ui 库
1
+ # 工业 pc ui 库
2
+ ## 编译UI
3
+ > 编译UI 需要在项目根目录运行 `yarn build:pc`, 如出现错误请查看源代码是否有问题以及主题文件是否存在, 打包完成后 会在 `packages/pc`, 下出现dist文件夹,所有打包后的文件均在该文件夹下。部署至npm需在 `packages/pc` 目录下运行npm publish,注意版本号迭代.
4
+
5
+
6
+ ## 主题使用
7
+ 1. 安装 inl-ul@0.03 以上版本,
8
+ ``` ts
9
+ import inlUi from 'inl-ui';
10
+ app.use(inlUi);
11
+ ```
12
+ 2. vite.config.ts
13
+ ``` ts
14
+ export default {
15
+ ...,
16
+ css: {
17
+ preprocessorOptions: {
18
+ less: {
19
+ modifyVars: {
20
+ hack: `true;@import "${require.resolve("inl-ui/theme/dark.less")}";`,
21
+ "root-entry-name": "dark",
22
+ },
23
+ javascriptEnabled: true,
24
+ },
25
+ },
26
+ },
27
+ };
28
+ ```