@pisell/materials 1.0.418 → 1.0.419
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/pisellFloatingPanel/index.js +2 -1
- package/es/components/pisellFloatingPanel/index.less +2 -1
- package/es/components/pisellStatisticList/index.d.ts +1 -0
- package/es/components/pisellStatisticList/index.js +11 -1
- package/es/components/pisellStatisticList/index.less +6 -0
- package/lib/components/pisellFloatingPanel/index.js +2 -1
- package/lib/components/pisellFloatingPanel/index.less +2 -1
- package/lib/components/pisellStatisticList/index.d.ts +1 -0
- package/lib/components/pisellStatisticList/index.js +11 -1
- package/lib/components/pisellStatisticList/index.less +6 -0
- package/lowcode/pisell-statistic-list/meta.ts +10 -0
- package/package.json +2 -2
|
@@ -12,6 +12,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
|
+
import { useUpdateEffect } from "ahooks";
|
|
15
16
|
import Iconfont from "../iconfont";
|
|
16
17
|
import "./index.less";
|
|
17
18
|
var PisellFloatingPanel = function PisellFloatingPanel(props) {
|
|
@@ -31,7 +32,7 @@ var PisellFloatingPanel = function PisellFloatingPanel(props) {
|
|
|
31
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32
33
|
isOpen = _useState2[0],
|
|
33
34
|
setIsOpen = _useState2[1];
|
|
34
|
-
|
|
35
|
+
useUpdateEffect(function () {
|
|
35
36
|
if (open !== undefined) {
|
|
36
37
|
setIsOpen(open);
|
|
37
38
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
border-top-right-radius: 16px;
|
|
5
5
|
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
|
|
6
6
|
overflow: hidden;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
.pisell-lowcode-floating-panel-wrap.pisell-lowcode-floating-panel-wrap-floating {
|
|
@@ -13,7 +15,6 @@
|
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.pisell-lowcode-floating-panel-content {
|
|
16
|
-
padding: 20px;
|
|
17
18
|
overflow-y: auto;
|
|
18
19
|
height: 100%;
|
|
19
20
|
}
|
|
@@ -4,6 +4,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { Col, Row } from 'antd';
|
|
7
|
+
import PisellTooltip from "../pisellTooltip";
|
|
8
|
+
import Iconfont from "../iconfont";
|
|
7
9
|
import "./index.less";
|
|
8
10
|
var defaultColors = ['rgba(224, 79, 22, 0.20)', 'rgba(202, 133, 4, 0.20)', 'rgba(127, 86, 217, 0.22)', 'rgba(7, 148, 85, 0.20)', 'rgba(21, 112, 239, 0.23)'];
|
|
9
11
|
var PisellStatisticList = function PisellStatisticList(props) {
|
|
@@ -29,7 +31,15 @@ var PisellStatisticList = function PisellStatisticList(props) {
|
|
|
29
31
|
style: {
|
|
30
32
|
color: labelColor
|
|
31
33
|
}
|
|
32
|
-
}, item.label
|
|
34
|
+
}, item.label, item.tip && /*#__PURE__*/React.createElement(PisellTooltip, {
|
|
35
|
+
title: item.tip
|
|
36
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
37
|
+
style: {
|
|
38
|
+
color: labelColor
|
|
39
|
+
},
|
|
40
|
+
type: "pisell2-help-circle",
|
|
41
|
+
className: "pisell-lowcode-statistic-list-item-label-tip-icon"
|
|
42
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
33
43
|
className: "pisell-lowcode-statistic-list-item-value",
|
|
34
44
|
style: {
|
|
35
45
|
color: valueColor
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
font-size: 14px;
|
|
12
12
|
font-weight: 600;
|
|
13
13
|
line-height: 20px; /* 142.857% */
|
|
14
|
+
display: flex;
|
|
15
|
+
gap: 10px;
|
|
16
|
+
align-items: center;
|
|
17
|
+
.pisell-lowcode-statistic-list-item-label-tip-icon {
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
}
|
|
14
20
|
}
|
|
15
21
|
.pisell-lowcode-statistic-list-item-value {
|
|
16
22
|
color: var(--Base-White, #fff);
|
|
@@ -34,6 +34,7 @@ __export(pisellFloatingPanel_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(pisellFloatingPanel_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_ahooks = require("ahooks");
|
|
37
38
|
var import_iconfont = __toESM(require("../iconfont"));
|
|
38
39
|
var import_index = require("./index.less");
|
|
39
40
|
var PisellFloatingPanel = (props) => {
|
|
@@ -51,7 +52,7 @@ var PisellFloatingPanel = (props) => {
|
|
|
51
52
|
retractIconStyle
|
|
52
53
|
} = props;
|
|
53
54
|
const [isOpen, setIsOpen] = (0, import_react.useState)(defaultOpen);
|
|
54
|
-
(0,
|
|
55
|
+
(0, import_ahooks.useUpdateEffect)(() => {
|
|
55
56
|
if (open !== void 0) {
|
|
56
57
|
setIsOpen(open);
|
|
57
58
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
border-top-right-radius: 16px;
|
|
5
5
|
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
|
|
6
6
|
overflow: hidden;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
.pisell-lowcode-floating-panel-wrap.pisell-lowcode-floating-panel-wrap-floating {
|
|
@@ -13,7 +15,6 @@
|
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.pisell-lowcode-floating-panel-content {
|
|
16
|
-
padding: 20px;
|
|
17
18
|
overflow-y: auto;
|
|
18
19
|
height: 100%;
|
|
19
20
|
}
|
|
@@ -34,6 +34,8 @@ __export(pisellStatisticList_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(pisellStatisticList_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_antd = require("antd");
|
|
37
|
+
var import_pisellTooltip = __toESM(require("../pisellTooltip"));
|
|
38
|
+
var import_iconfont = __toESM(require("../iconfont"));
|
|
37
39
|
var import_index = require("./index.less");
|
|
38
40
|
var defaultColors = [
|
|
39
41
|
"rgba(224, 79, 22, 0.20)",
|
|
@@ -66,7 +68,15 @@ var PisellStatisticList = (props) => {
|
|
|
66
68
|
className: "pisell-lowcode-statistic-list-item-label",
|
|
67
69
|
style: { color: labelColor }
|
|
68
70
|
},
|
|
69
|
-
item.label
|
|
71
|
+
item.label,
|
|
72
|
+
item.tip && /* @__PURE__ */ import_react.default.createElement(import_pisellTooltip.default, { title: item.tip }, /* @__PURE__ */ import_react.default.createElement(
|
|
73
|
+
import_iconfont.default,
|
|
74
|
+
{
|
|
75
|
+
style: { color: labelColor },
|
|
76
|
+
type: "pisell2-help-circle",
|
|
77
|
+
className: "pisell-lowcode-statistic-list-item-label-tip-icon"
|
|
78
|
+
}
|
|
79
|
+
))
|
|
70
80
|
),
|
|
71
81
|
/* @__PURE__ */ import_react.default.createElement(
|
|
72
82
|
"div",
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
font-size: 14px;
|
|
12
12
|
font-weight: 600;
|
|
13
13
|
line-height: 20px; /* 142.857% */
|
|
14
|
+
display: flex;
|
|
15
|
+
gap: 10px;
|
|
16
|
+
align-items: center;
|
|
17
|
+
.pisell-lowcode-statistic-list-item-label-tip-icon {
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
}
|
|
14
20
|
}
|
|
15
21
|
.pisell-lowcode-statistic-list-item-value {
|
|
16
22
|
color: var(--Base-White, #fff);
|
|
@@ -135,6 +135,16 @@ const PisellStatisticListMeta: ComponentMetadata = {
|
|
|
135
135
|
initialValue: '',
|
|
136
136
|
},
|
|
137
137
|
},
|
|
138
|
+
{
|
|
139
|
+
title: {
|
|
140
|
+
label: 'tip',
|
|
141
|
+
},
|
|
142
|
+
name: 'tip',
|
|
143
|
+
setter: {
|
|
144
|
+
componentName: 'StringSetter',
|
|
145
|
+
initialValue: '',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
138
148
|
{
|
|
139
149
|
title: {
|
|
140
150
|
label: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.419",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
65
65
|
"crypto-js": "^4.2.0",
|
|
66
66
|
"@zxing/library": "0.21.2",
|
|
67
|
-
"@pisell/date-picker": "1.0.111",
|
|
68
67
|
"@pisell/utils": "1.0.42",
|
|
68
|
+
"@pisell/date-picker": "1.0.111",
|
|
69
69
|
"@pisell/icon": "0.0.10"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|