inl-ui 0.1.52 → 0.1.54
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/README.md +49 -49
- package/dist/components/index.cjs +33 -9
- package/dist/components/index.js +15 -8
- package/dist/iconfont.js +1 -1
- package/dist/index.cjs +16 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -9
- package/dist/theme/index.js +70 -70
- package/dist/theme/scripts/dark-vars.js +21 -21
- package/dist/theme/scripts/default-vars.js +25 -25
- package/dist/theme/scripts/light-vars.js +22 -22
- package/dist/theme/style/color/bezierEasing.less +110 -110
- package/dist/theme/style/color/colorPalette.less +81 -81
- package/dist/theme/style/color/colors.less +162 -162
- package/dist/theme/style/color/tinyColor.less +1184 -1184
- package/dist/theme/style/compact.less +4 -4
- package/dist/theme/style/dark.less +4 -4
- package/dist/theme/style/default.less +4 -4
- package/dist/theme/style/index.less +2 -2
- package/dist/theme/style/index.tsx +2 -2
- package/dist/theme/style/themes/compact.less +295 -295
- package/dist/theme/style/themes/dark.less +790 -790
- package/dist/theme/style/themes/default.less +1067 -1067
- package/dist/theme/style/themes/index.less +7 -7
- package/dist/theme/style/themes/var-dark.less +343 -343
- package/dist/theme/style/themes/var-default.less +184 -184
- package/dist/theme/style/themes/variable.less +1122 -1122
- package/dist/theme/style/variable.less +4 -4
- package/dist/video/index.cjs +24 -4
- package/dist/video/index.js +6 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
# 工业PC ui库
|
|
2
|
-
|
|
3
|
-
前端通用库,包括组件、hooks、utils等。
|
|
4
|
-
|
|
5
|
-
### 运行
|
|
6
|
-
|
|
7
|
-
+ 开发模式 yarn dev
|
|
8
|
-
+ 生产打包 yarn build
|
|
9
|
-
+ 生成文档 yarn build:docs
|
|
10
|
-
+ 打包图扑工具 yarn buildtp
|
|
11
|
-
|
|
12
|
-
### 使用方法
|
|
13
|
-
|
|
14
|
-
```javascript
|
|
15
|
-
import inl from 'inl-ui';
|
|
16
|
-
import 'inl-ui/dist/style.css';
|
|
17
|
-
|
|
18
|
-
vue.use(inl)
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### 激活主题
|
|
24
|
-
|
|
25
|
-
**vite.config.ts**
|
|
26
|
-
|
|
27
|
-
```javascript
|
|
28
|
-
const additionalData = require("inl-ui/dist/theme").default;
|
|
29
|
-
|
|
30
|
-
...
|
|
31
|
-
|
|
32
|
-
css: {
|
|
33
|
-
preprocessorOptions: {
|
|
34
|
-
less: {
|
|
35
|
-
javascriptEnabled: true,
|
|
36
|
-
additionalData,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### 文档链接
|
|
43
|
-
|
|
44
|
-
##### [组件文档](./src/components/README.md)
|
|
45
|
-
|
|
46
|
-
##### [hooks文档](./src/hooks/README.md)
|
|
47
|
-
|
|
48
|
-
##### [Utils文档](./src/utils/README.md)
|
|
49
|
-
|
|
1
|
+
# 工业PC ui库
|
|
2
|
+
|
|
3
|
+
前端通用库,包括组件、hooks、utils等。
|
|
4
|
+
|
|
5
|
+
### 运行
|
|
6
|
+
|
|
7
|
+
+ 开发模式 yarn dev
|
|
8
|
+
+ 生产打包 yarn build
|
|
9
|
+
+ 生成文档 yarn build:docs
|
|
10
|
+
+ 打包图扑工具 yarn buildtp
|
|
11
|
+
|
|
12
|
+
### 使用方法
|
|
13
|
+
|
|
14
|
+
```javascript
|
|
15
|
+
import inl from 'inl-ui';
|
|
16
|
+
import 'inl-ui/dist/style.css';
|
|
17
|
+
|
|
18
|
+
vue.use(inl)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### 激活主题
|
|
24
|
+
|
|
25
|
+
**vite.config.ts**
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
const additionalData = require("inl-ui/dist/theme").default;
|
|
29
|
+
|
|
30
|
+
...
|
|
31
|
+
|
|
32
|
+
css: {
|
|
33
|
+
preprocessorOptions: {
|
|
34
|
+
less: {
|
|
35
|
+
javascriptEnabled: true,
|
|
36
|
+
additionalData,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 文档链接
|
|
43
|
+
|
|
44
|
+
##### [组件文档](./src/components/README.md)
|
|
45
|
+
|
|
46
|
+
##### [hooks文档](./src/hooks/README.md)
|
|
47
|
+
|
|
48
|
+
##### [Utils文档](./src/utils/README.md)
|
|
49
|
+
|
|
@@ -13,16 +13,32 @@ var dayjs = require('dayjs');
|
|
|
13
13
|
var qiankun = require('qiankun');
|
|
14
14
|
require('vite-plugin-qiankun');
|
|
15
15
|
var renderWithQiankun = require('vite-plugin-qiankun/dist/helper');
|
|
16
|
-
var EZUIKit = require('ezuikit-js');
|
|
17
16
|
var mobile = require('@sszj-temp/mobile');
|
|
18
17
|
var marked = require('marked');
|
|
19
18
|
|
|
20
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
20
|
|
|
21
|
+
function _interopNamespace(e) {
|
|
22
|
+
if (e && e.__esModule) return e;
|
|
23
|
+
var n = Object.create(null);
|
|
24
|
+
if (e) {
|
|
25
|
+
Object.keys(e).forEach(function (k) {
|
|
26
|
+
if (k !== 'default') {
|
|
27
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
28
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return e[k]; }
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
n["default"] = e;
|
|
36
|
+
return Object.freeze(n);
|
|
37
|
+
}
|
|
38
|
+
|
|
22
39
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios$2);
|
|
23
40
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
24
41
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
25
|
-
var EZUIKit__default = /*#__PURE__*/_interopDefaultLegacy(EZUIKit);
|
|
26
42
|
|
|
27
43
|
const config = {
|
|
28
44
|
prefix: "inl",
|
|
@@ -6520,12 +6536,16 @@ function getOpenUrl(url) {
|
|
|
6520
6536
|
userId: userinfo.userId,
|
|
6521
6537
|
theme
|
|
6522
6538
|
};
|
|
6523
|
-
if (urlObj.
|
|
6524
|
-
|
|
6525
|
-
setParam(converceUrl.searchParams, additionalParams);
|
|
6526
|
-
urlObj.hash = converceUrl.href.replace(location.origin, "#");
|
|
6539
|
+
if (urlObj.searchParams.get("appType") === "third") {
|
|
6540
|
+
urlObj.searchParams.delete("appType");
|
|
6527
6541
|
} else {
|
|
6528
|
-
|
|
6542
|
+
if (urlObj.hash) {
|
|
6543
|
+
const converceUrl = new URL(urlObj.hash.replace("#", location.origin));
|
|
6544
|
+
setParam(converceUrl.searchParams, additionalParams);
|
|
6545
|
+
urlObj.hash = converceUrl.href.replace(location.origin, "#");
|
|
6546
|
+
} else {
|
|
6547
|
+
setParam(urlObj.searchParams, additionalParams);
|
|
6548
|
+
}
|
|
6529
6549
|
}
|
|
6530
6550
|
let res = urlObj.href;
|
|
6531
6551
|
if (!isWithOrigin) {
|
|
@@ -10430,8 +10450,12 @@ const CloudVideo = vue.defineComponent({
|
|
|
10430
10450
|
if (prop.template) {
|
|
10431
10451
|
opt.height = prop.height;
|
|
10432
10452
|
}
|
|
10433
|
-
|
|
10434
|
-
|
|
10453
|
+
Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('ezuikit-js')); }).then(async ({
|
|
10454
|
+
default: EZUIKit
|
|
10455
|
+
}) => {
|
|
10456
|
+
player = await new EZUIKit.EZUIKitPlayer(opt);
|
|
10457
|
+
_context.emit("complete", player);
|
|
10458
|
+
});
|
|
10435
10459
|
};
|
|
10436
10460
|
vue.onMounted(() => {
|
|
10437
10461
|
initVideo();
|
package/dist/components/index.js
CHANGED
|
@@ -9,7 +9,6 @@ import dayjs from 'dayjs';
|
|
|
9
9
|
import { loadMicroApp } from 'qiankun';
|
|
10
10
|
import 'vite-plugin-qiankun';
|
|
11
11
|
import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper';
|
|
12
|
-
import EZUIKit from 'ezuikit-js';
|
|
13
12
|
import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
|
|
14
13
|
import { marked } from 'marked';
|
|
15
14
|
|
|
@@ -6509,12 +6508,16 @@ function getOpenUrl(url) {
|
|
|
6509
6508
|
userId: userinfo.userId,
|
|
6510
6509
|
theme
|
|
6511
6510
|
};
|
|
6512
|
-
if (urlObj.
|
|
6513
|
-
|
|
6514
|
-
setParam(converceUrl.searchParams, additionalParams);
|
|
6515
|
-
urlObj.hash = converceUrl.href.replace(location.origin, "#");
|
|
6511
|
+
if (urlObj.searchParams.get("appType") === "third") {
|
|
6512
|
+
urlObj.searchParams.delete("appType");
|
|
6516
6513
|
} else {
|
|
6517
|
-
|
|
6514
|
+
if (urlObj.hash) {
|
|
6515
|
+
const converceUrl = new URL(urlObj.hash.replace("#", location.origin));
|
|
6516
|
+
setParam(converceUrl.searchParams, additionalParams);
|
|
6517
|
+
urlObj.hash = converceUrl.href.replace(location.origin, "#");
|
|
6518
|
+
} else {
|
|
6519
|
+
setParam(urlObj.searchParams, additionalParams);
|
|
6520
|
+
}
|
|
6518
6521
|
}
|
|
6519
6522
|
let res = urlObj.href;
|
|
6520
6523
|
if (!isWithOrigin) {
|
|
@@ -10419,8 +10422,12 @@ const CloudVideo = defineComponent({
|
|
|
10419
10422
|
if (prop.template) {
|
|
10420
10423
|
opt.height = prop.height;
|
|
10421
10424
|
}
|
|
10422
|
-
|
|
10423
|
-
|
|
10425
|
+
import('ezuikit-js').then(async ({
|
|
10426
|
+
default: EZUIKit
|
|
10427
|
+
}) => {
|
|
10428
|
+
player = await new EZUIKit.EZUIKitPlayer(opt);
|
|
10429
|
+
_context.emit("complete", player);
|
|
10430
|
+
});
|
|
10424
10431
|
};
|
|
10425
10432
|
onMounted(() => {
|
|
10426
10433
|
initVideo();
|