@para-ui/core 3.0.4 → 3.0.5
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/Breadcrumbs/index.js +0 -1
- package/CollapseBox/index.js +1 -18
- package/CollapseLayout/index.d.ts +51 -0
- package/CollapseLayout/index.js +190 -0
- package/Form/index.js +1 -1
- package/FormItem/index.js +1 -1
- package/Menu/index.js +1 -0
- package/Pagination/index.js +4 -4
- package/README.md +6 -0
- package/Title/index.js +6 -6
- package/_verture/{index-4b4ee8b5.js → index-9d9fefc1.js} +0 -0
- package/_verture/util-a77b261e.js +19 -0
- package/index.d.ts +2 -0
- package/index.js +5 -3
- package/package.json +1 -1
package/Breadcrumbs/index.js
CHANGED
|
@@ -139,7 +139,6 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
139
139
|
setShowMore(false);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
console.log(props.list, props.list.length);
|
|
143
142
|
if (props.list.length <= constData.current.minNum + 1) return hideMask(); // 面包屑数组长度必须大于最少显示数
|
|
144
143
|
|
|
145
144
|
if (constData.current.hidePos === props.list.length - constData.current.minNum - 1) return hideMask(); // 隐藏到最小显示数,停止
|
package/CollapseBox/index.js
CHANGED
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useRef, useEffect } from 'react';
|
|
3
3
|
import { Transition } from 'react-transition-group';
|
|
4
|
+
import { g as getTransitionProps, a as getAutoHeightDuration } from '../_verture/util-a77b261e.js';
|
|
4
5
|
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
5
6
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
6
7
|
|
|
7
|
-
function getTransitionProps(props, options) {
|
|
8
|
-
var timeout = props.timeout,
|
|
9
|
-
_props$style = props.style,
|
|
10
|
-
style = _props$style === void 0 ? {} : _props$style;
|
|
11
|
-
return {
|
|
12
|
-
duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
|
|
13
|
-
delay: style.transitionDelay
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
function getAutoHeightDuration(height) {
|
|
17
|
-
if (!height) {
|
|
18
|
-
return 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
var constant = height / 36;
|
|
22
|
-
return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
8
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-collapse-box {\n transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n width: 100%;\n overflow: hidden;\n height: 0;\n}\n.paraui-v3-collapse-box > .collapse-box-wrapper {\n display: flex;\n width: 100%;\n}\n.paraui-v3-collapse-box > .collapse-box-wrapper > .collapse-box-wrapper-inner {\n width: 100%;\n}\n.paraui-v3-collapse-box.paraui-v3-collapse-box-entered {\n overflow: visible;\n}\n.paraui-v3-collapse-box.paraui-v3-collapse-box-hidden {\n visibility: hidden;\n}";
|
|
26
9
|
styleInject(css_248z);
|
|
27
10
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface CollapseLayoutProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
/**
|
|
7
|
+
* 收起出现的位置
|
|
8
|
+
* 默认 left
|
|
9
|
+
*/
|
|
10
|
+
type?: 'left' | 'right' | 'top' | 'bottom';
|
|
11
|
+
/**
|
|
12
|
+
* 普通展示数据
|
|
13
|
+
*/
|
|
14
|
+
defaultContent?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* 显示隐藏的数据
|
|
17
|
+
*/
|
|
18
|
+
displayContent?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* 展开还是收起
|
|
21
|
+
*/
|
|
22
|
+
open?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 允许缩放的长度
|
|
25
|
+
* */
|
|
26
|
+
zoomLength?: number;
|
|
27
|
+
/**
|
|
28
|
+
* 单位
|
|
29
|
+
* 默认px
|
|
30
|
+
*/
|
|
31
|
+
unit?: string;
|
|
32
|
+
/**
|
|
33
|
+
* 展开按钮显示文字
|
|
34
|
+
*/
|
|
35
|
+
showLabel?: string;
|
|
36
|
+
/**
|
|
37
|
+
* 收起按钮展示文字
|
|
38
|
+
*/
|
|
39
|
+
hideLabel?: string;
|
|
40
|
+
/**
|
|
41
|
+
* 间距
|
|
42
|
+
* 默认20
|
|
43
|
+
*/
|
|
44
|
+
spacing?: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @author zhanzl
|
|
48
|
+
* @date 2022/08/09
|
|
49
|
+
*/
|
|
50
|
+
declare const CollapseLayout: FC<CollapseLayoutProps>;
|
|
51
|
+
export default CollapseLayout;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { _ as _defineProperty } from '../_verture/defineProperty-0590dc61.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
import { useRef, useState, useEffect } from 'react';
|
|
5
|
+
import DoubleLeft from '@para-ui/icons/DoubleLeft';
|
|
6
|
+
import DoubleRight from '@para-ui/icons/DoubleRight';
|
|
7
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
8
|
+
import clsx from 'clsx';
|
|
9
|
+
import { a as getAutoHeightDuration } from '../_verture/util-a77b261e.js';
|
|
10
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
11
|
+
|
|
12
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-collapse-layout {\n height: 100%;\n width: 100%;\n position: relative;\n overflow: hidden;\n}\n.paraui-v3-collapse-layout .collapse-layout-icon-transform-top {\n transform: rotate(90deg);\n}\n.paraui-v3-collapse-layout .collapse-layout-icon-transform-bottom {\n transform: rotate(-90deg);\n}\n.paraui-v3-collapse-layout .collapse-layout-icon-transform-right {\n transform: rotate(180deg);\n}\n.paraui-v3-collapse-layout .collapse-layout-display {\n overflow: hidden;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-click span, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-click span, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-click span, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-click span {\n font-size: 12px;\n font-weight: 400;\n text-align: center;\n color: rgb(54, 102, 214);\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-click {\n position: absolute;\n top: 50%;\n left: \"\";\n width: 20px;\n height: 72px;\n background: rgba(171, 176, 185, 0.12);\n text-align: center;\n cursor: pointer;\n line-height: 23px;\n margin-top: -36px;\n z-index: 1;\n display: grid;\n transition-property: right;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n right: 0px;\n border-radius: 4px 0 0 4px;\n border-right: 1px solid rgb(54, 102, 214);\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-click > svg {\n align-self: center;\n justify-self: center;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-display-shadow {\n transition-property: margin-right;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-click {\n position: absolute;\n top: 50%;\n left: 0;\n width: 20px;\n height: 72px;\n background: rgba(171, 176, 185, 0.12);\n text-align: center;\n cursor: pointer;\n line-height: 23px;\n margin-top: -36px;\n z-index: 1;\n display: grid;\n transition-property: left;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n border-left: 1px solid rgb(54, 102, 214);\n border-radius: 0 4px 4px 0;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-click > svg {\n align-self: center;\n justify-self: center;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-display-shadow {\n transition-property: margin-left;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left > div, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-right > div {\n display: inline-block;\n vertical-align: middle;\n height: 100%;\n position: relative;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-display-shadow, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-display-shadow {\n height: 100%;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-display,\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-default, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-display,\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-default {\n transition: width;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-click {\n position: absolute;\n top: 0;\n left: 50%;\n width: 72px;\n height: 20px;\n background: rgba(171, 176, 185, 0.12);\n text-align: center;\n cursor: pointer;\n line-height: 23px;\n margin-top: 0;\n z-index: 1;\n display: grid;\n transition-property: top;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n margin-left: -36px;\n border-top: 1px solid rgb(54, 102, 214);\n border-radius: 0 0 4px 4px;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-click > svg {\n align-self: center;\n justify-self: center;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-display-shadow {\n transition-property: margin-top;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-click {\n position: absolute;\n top: \"\";\n left: 50%;\n width: 72px;\n height: 20px;\n background: rgba(171, 176, 185, 0.12);\n text-align: center;\n cursor: pointer;\n line-height: 23px;\n margin-top: 0;\n z-index: 1;\n display: grid;\n transition-property: bottom;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n margin-left: -36px;\n bottom: 0px;\n border-bottom: 1px solid rgb(54, 102, 214);\n border-radius: 4px 4px 0 0;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-click > svg {\n align-self: center;\n justify-self: center;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-display-shadow {\n transition-property: margin-bottom;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-display,\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-default, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-display,\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-default {\n transition-property: height;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-display-shadow, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-display-shadow {\n width: 100%;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top > div, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom > div {\n display: block;\n width: 100%;\n position: relative;\n}";
|
|
13
|
+
styleInject(css_248z);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @author zhanzl
|
|
17
|
+
* @date 2022/08/09
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
var CollapseLayout = function CollapseLayout(props) {
|
|
21
|
+
var _props$type = props.type,
|
|
22
|
+
type = _props$type === void 0 ? 'left' : _props$type,
|
|
23
|
+
showLabel = props.showLabel,
|
|
24
|
+
_props$open = props.open,
|
|
25
|
+
open = _props$open === void 0 ? false : _props$open,
|
|
26
|
+
hideLabel = props.hideLabel,
|
|
27
|
+
_props$spacing = props.spacing,
|
|
28
|
+
spacing = _props$spacing === void 0 ? 20 : _props$spacing,
|
|
29
|
+
_props$zoomLength = props.zoomLength,
|
|
30
|
+
zoomLength = _props$zoomLength === void 0 ? 0 : _props$zoomLength,
|
|
31
|
+
_props$unit = props.unit,
|
|
32
|
+
unit = _props$unit === void 0 ? 'px' : _props$unit,
|
|
33
|
+
style = props.style,
|
|
34
|
+
_props$className = props.className,
|
|
35
|
+
className = _props$className === void 0 ? '' : _props$className;
|
|
36
|
+
var displayRef = useRef(null);
|
|
37
|
+
/**
|
|
38
|
+
* 处理动画时间
|
|
39
|
+
* */
|
|
40
|
+
|
|
41
|
+
var handTime = function handTime() {
|
|
42
|
+
var dom = displayRef.current;
|
|
43
|
+
if (!dom) return 0;
|
|
44
|
+
var rect = dom.getBoundingClientRect();
|
|
45
|
+
var durationHand = getAutoHeightDuration(rect.width);
|
|
46
|
+
return durationHand;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var duration = handTime(); // 动画时间
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 当前为收起还是展开
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
var _useState = useState(),
|
|
56
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
57
|
+
showBox = _useState2[0],
|
|
58
|
+
setShowBox = _useState2[1]; // 渲染配置
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
var typeConfig = {
|
|
62
|
+
layout: {
|
|
63
|
+
left: ['display', 'default'],
|
|
64
|
+
right: ['default', 'display'],
|
|
65
|
+
top: ['display', 'default'],
|
|
66
|
+
bottom: ['default', 'display']
|
|
67
|
+
}
|
|
68
|
+
}; // 首字母大写
|
|
69
|
+
|
|
70
|
+
var formatterType = function formatterType(str) {
|
|
71
|
+
var newStr = str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
72
|
+
return newStr;
|
|
73
|
+
}; // 计算方位
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
var hangWH = function hangWH() {
|
|
77
|
+
var wH = 'width';
|
|
78
|
+
|
|
79
|
+
if (type === "top" || type === "bottom") {
|
|
80
|
+
wH = 'height';
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return wH;
|
|
84
|
+
}; // 收缩容器的样式
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
var handDisplayStyle = function handDisplayStyle() {
|
|
88
|
+
var json = {};
|
|
89
|
+
var collapseL = (showBox ? zoomLength : 0) + unit; // 收缩长度
|
|
90
|
+
|
|
91
|
+
var wH = hangWH();
|
|
92
|
+
json[wH] = collapseL;
|
|
93
|
+
json['transitionDuration'] = duration + 'ms';
|
|
94
|
+
return json;
|
|
95
|
+
}; // 收缩容器的样式,里面的样式
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
var handDisplayShowStyle = function handDisplayShowStyle() {
|
|
99
|
+
var json = {};
|
|
100
|
+
var direction = "margin".concat(formatterType(type));
|
|
101
|
+
var wH = hangWH();
|
|
102
|
+
json[wH] = zoomLength + unit;
|
|
103
|
+
json[direction] = (showBox ? 0 : zoomLength) + unit;
|
|
104
|
+
json['transitionDuration'] = duration + 'ms';
|
|
105
|
+
return json;
|
|
106
|
+
}; // 自适应容器的样式
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
var handDefaultStyle = function handDefaultStyle() {
|
|
110
|
+
var json = {};
|
|
111
|
+
var wH = hangWH();
|
|
112
|
+
var collapseL = showBox ? zoomLength : 0; // 收缩长度
|
|
113
|
+
|
|
114
|
+
json[wH] = "calc(100% - ".concat(collapseL + spacing).concat(unit);
|
|
115
|
+
var direction = "margin".concat(formatterType(type));
|
|
116
|
+
json[direction] = spacing + unit;
|
|
117
|
+
json['transitionDuration'] = duration + 'ms';
|
|
118
|
+
return json;
|
|
119
|
+
}; // 布局
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
var Layout = function Layout() {
|
|
123
|
+
return typeConfig.layout[type].map(function (key, idx) {
|
|
124
|
+
switch (key) {
|
|
125
|
+
case "display":
|
|
126
|
+
// 可收缩的
|
|
127
|
+
return jsx("div", Object.assign({
|
|
128
|
+
className: "collapse-layout-display",
|
|
129
|
+
style: handDisplayStyle()
|
|
130
|
+
}, {
|
|
131
|
+
children: jsx("div", Object.assign({
|
|
132
|
+
className: "collapse-layout-display-shadow",
|
|
133
|
+
style: handDisplayShowStyle(),
|
|
134
|
+
ref: displayRef
|
|
135
|
+
}, {
|
|
136
|
+
children: props.displayContent
|
|
137
|
+
}))
|
|
138
|
+
}), idx);
|
|
139
|
+
|
|
140
|
+
default:
|
|
141
|
+
return jsx("div", Object.assign({
|
|
142
|
+
className: "collapse-layout-default",
|
|
143
|
+
style: handDefaultStyle()
|
|
144
|
+
}, {
|
|
145
|
+
children: props.defaultContent
|
|
146
|
+
}), idx);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* 展开收起按钮
|
|
152
|
+
* */
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
var handBtn = function handBtn() {
|
|
156
|
+
var _style;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* 计算后的展示文字
|
|
160
|
+
*/
|
|
161
|
+
var computeLabel = showBox ? showLabel : hideLabel;
|
|
162
|
+
return jsxs("div", Object.assign({
|
|
163
|
+
className: "collapse-layout-click collapse-layout-click-label-".concat(!!computeLabel),
|
|
164
|
+
style: (_style = {}, _defineProperty(_style, type, "".concat(showBox ? zoomLength : 0).concat(unit)), _defineProperty(_style, "transitionDuration", duration + 'ms'), _style),
|
|
165
|
+
onClick: function onClick() {
|
|
166
|
+
return setShowBox(!showBox);
|
|
167
|
+
}
|
|
168
|
+
}, {
|
|
169
|
+
children: [computeLabel && jsx("span", {
|
|
170
|
+
children: computeLabel
|
|
171
|
+
}), showBox ? jsx(DoubleLeft, {
|
|
172
|
+
className: "collapse-layout-icon-transform-".concat(type)
|
|
173
|
+
}) : jsx(DoubleRight, {
|
|
174
|
+
className: "collapse-layout-icon-transform-".concat(type)
|
|
175
|
+
})]
|
|
176
|
+
}));
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
useEffect(function () {
|
|
180
|
+
setShowBox(open);
|
|
181
|
+
}, [open]);
|
|
182
|
+
return jsxs("div", Object.assign({
|
|
183
|
+
className: clsx("".concat($prefixCls, "-collapse-layout"), "".concat($prefixCls, "-collapse-layout-").concat(showBox), "".concat($prefixCls, "-collapse-layout-").concat(type), "".concat($prefixCls, "-collapse-layout-").concat(type, "-").concat(showBox), className),
|
|
184
|
+
style: style
|
|
185
|
+
}, {
|
|
186
|
+
children: [handBtn(), Layout()]
|
|
187
|
+
}));
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
export { CollapseLayout as default };
|
package/Form/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
|
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { DeepClone } from '@paraview/lib';
|
|
5
5
|
import React__default from 'react';
|
|
6
|
-
import { F as FormItem, v as validate } from '../_verture/index-
|
|
6
|
+
import { F as FormItem, v as validate } from '../_verture/index-9d9fefc1.js';
|
|
7
7
|
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
8
8
|
import '../TextField/index.js';
|
|
9
9
|
import '../_verture/typeof-498dd2b1.js';
|
package/FormItem/index.js
CHANGED
package/Menu/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import MenuMoreLine from '@para-ui/icons/IndentRightFill';
|
|
|
12
12
|
import MenuLessLine from '@para-ui/icons/IndentLeftFill';
|
|
13
13
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
14
14
|
import 'react-transition-group';
|
|
15
|
+
import '../_verture/util-a77b261e.js';
|
|
15
16
|
|
|
16
17
|
var Logo = function Logo(props) {
|
|
17
18
|
var _props$expansion = props.expansion,
|
package/Pagination/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
|
|
|
2
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import React__default, { useState, useRef, useEffect, useMemo } from 'react';
|
|
4
4
|
import PaginationCom from 'rc-pagination';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import DoubleLeft from '@para-ui/icons/DoubleLeft';
|
|
6
|
+
import DoubleRight from '@para-ui/icons/DoubleRight';
|
|
7
7
|
import NavigateBefore from '@para-ui/icons/Left';
|
|
8
8
|
import Right from '@para-ui/icons/Right';
|
|
9
9
|
import Select from '../Select/index.js';
|
|
@@ -398,7 +398,7 @@ var Pagination = function Pagination(props) {
|
|
|
398
398
|
onClick: clickPage('first'),
|
|
399
399
|
className: pageCom === 1 ? 'disabled-btn' : ''
|
|
400
400
|
}, {
|
|
401
|
-
children: jsx(
|
|
401
|
+
children: jsx(DoubleLeft, {})
|
|
402
402
|
})), jsx("div", Object.assign({
|
|
403
403
|
onClick: clickPage('prev'),
|
|
404
404
|
className: pageCom === 1 ? 'disabled-btn' : ''
|
|
@@ -426,7 +426,7 @@ var Pagination = function Pagination(props) {
|
|
|
426
426
|
onClick: clickPage('last'),
|
|
427
427
|
className: pageCom === totalPage ? 'disabled-btn' : ''
|
|
428
428
|
}, {
|
|
429
|
-
children: jsx(
|
|
429
|
+
children: jsx(DoubleRight, {})
|
|
430
430
|
}))]
|
|
431
431
|
}))]
|
|
432
432
|
}));
|
package/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## 版本: 3.0.5
|
|
2
|
+
|
|
3
|
+
para-ui/core@3.0.5 发布
|
|
4
|
+
【CollapseLayout】分栏收缩容器
|
|
5
|
+
|
|
1
6
|
## 版本: 3.0.4
|
|
2
7
|
|
|
3
8
|
para-ui/core@3.0.4 发布
|
|
@@ -5,6 +10,7 @@
|
|
|
5
10
|
【Button】禁用时提示文字无箭头且位于下方
|
|
6
11
|
【国际化】国际化支持zh-CN/en-US
|
|
7
12
|
【Breadcrumbs】重构面包屑
|
|
13
|
+
【Transfer】增加禁用逻辑,修改value改变不生效
|
|
8
14
|
|
|
9
15
|
## 版本: 3.0.3
|
|
10
16
|
|
package/Title/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
4
4
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
5
5
|
|
|
6
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/8/11 2:55 PM\n* @description 标题\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-title {\n display: flex;\n align-items: center;\n line-height: 20px;\n}\n.paraui-v3-title .
|
|
6
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/8/11 2:55 PM\n* @description 标题\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-title {\n display: flex;\n align-items: center;\n line-height: 20px;\n}\n.paraui-v3-title .title-ink {\n width: 4px;\n height: 14px;\n background-color: rgb(54, 102, 214);\n border-radius: 2px;\n}\n.paraui-v3-title .title-icon {\n display: inline-flex;\n}\n.paraui-v3-title .title-text {\n margin-left: 8px;\n font-size: 14px;\n font-weight: 700;\n color: rgb(28, 41, 60);\n}\n.paraui-v3-title .title-subtext {\n margin-left: 12px;\n font-size: 14px;\n font-weight: 400;\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-title .title-link {\n margin-left: 12px;\n text-decoration: none;\n outline: none;\n font-size: 14px;\n font-weight: 400;\n color: rgb(54, 102, 214);\n}\n.paraui-v3-title.paraui-v3-title-large .title-icon svg {\n font-size: 30px;\n}\n.paraui-v3-title.paraui-v3-title-large .title-text {\n font-size: 18px;\n}\n.paraui-v3-title.paraui-v3-title-medium .title-icon svg {\n font-size: 24px;\n}\n.paraui-v3-title.paraui-v3-title-medium .title-text {\n font-size: 16px;\n}\n.paraui-v3-title.paraui-v3-title-small .title-icon svg {\n font-size: 20px;\n}\n.paraui-v3-title.paraui-v3-title-small .title-text {\n margin-left: 4px;\n}";
|
|
7
7
|
styleInject(css_248z);
|
|
8
8
|
|
|
9
9
|
var Title = function Title(props) {
|
|
@@ -22,21 +22,21 @@ var Title = function Title(props) {
|
|
|
22
22
|
style: style
|
|
23
23
|
}, {
|
|
24
24
|
children: [icon ? jsx("span", Object.assign({
|
|
25
|
-
className: "
|
|
25
|
+
className: "title-icon"
|
|
26
26
|
}, {
|
|
27
27
|
children: icon
|
|
28
28
|
})) : jsx("span", {
|
|
29
|
-
className: "
|
|
29
|
+
className: "title-ink"
|
|
30
30
|
}), jsx("span", Object.assign({
|
|
31
|
-
className: "
|
|
31
|
+
className: "title-text"
|
|
32
32
|
}, {
|
|
33
33
|
children: title
|
|
34
34
|
})), subTitle && jsx("span", Object.assign({
|
|
35
|
-
className: "
|
|
35
|
+
className: "title-subtext"
|
|
36
36
|
}, {
|
|
37
37
|
children: subTitle
|
|
38
38
|
})), link && jsx("a", Object.assign({
|
|
39
|
-
className: "
|
|
39
|
+
className: "title-link",
|
|
40
40
|
target: link.target || '_blank',
|
|
41
41
|
href: link.href,
|
|
42
42
|
onClick: link.onClick
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function getTransitionProps(props, options) {
|
|
2
|
+
var timeout = props.timeout,
|
|
3
|
+
_props$style = props.style,
|
|
4
|
+
style = _props$style === void 0 ? {} : _props$style;
|
|
5
|
+
return {
|
|
6
|
+
duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
|
|
7
|
+
delay: style.transitionDelay
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function getAutoHeightDuration(height) {
|
|
11
|
+
if (!height) {
|
|
12
|
+
return 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var constant = height / 36;
|
|
16
|
+
return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { getAutoHeightDuration as a, getTransitionProps as g };
|
package/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export { default as Collapse } from './Collapse';
|
|
|
20
20
|
export * from './Collapse';
|
|
21
21
|
export { default as CollapseBox } from './CollapseBox';
|
|
22
22
|
export * from './CollapseBox';
|
|
23
|
+
export { default as CollapseLayout } from './CollapseLayout';
|
|
24
|
+
export * from './CollapseLayout';
|
|
23
25
|
export { default as ColorPicker } from './ColorPicker';
|
|
24
26
|
export * from './ColorPicker';
|
|
25
27
|
export { default as ComboSelect } from './ComboSelect';
|
package/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export { Checkbox } from './Checkbox/index.js';
|
|
|
9
9
|
export { CheckboxGroup } from './CheckboxGroup/index.js';
|
|
10
10
|
export { Collapse } from './Collapse/index.js';
|
|
11
11
|
export { default as CollapseBox } from './CollapseBox/index.js';
|
|
12
|
+
export { default as CollapseLayout } from './CollapseLayout/index.js';
|
|
12
13
|
export { ChromePicker, SketchPicker as ColorPicker, CompactPicker, SwatchesPicker } from 'react-color';
|
|
13
14
|
import './_verture/index-a369ca3f.js';
|
|
14
15
|
export { ComboSelect } from './ComboSelect/index.js';
|
|
@@ -19,7 +20,7 @@ export { Drawer } from './Drawer/index.js';
|
|
|
19
20
|
export { Dropdown } from './Dropdown/index.js';
|
|
20
21
|
export { default as Empty } from './Empty/index.js';
|
|
21
22
|
export { default as Form } from './Form/index.js';
|
|
22
|
-
export { F as FormItem } from './_verture/index-
|
|
23
|
+
export { F as FormItem } from './_verture/index-9d9fefc1.js';
|
|
23
24
|
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-4bce2dae.js';
|
|
24
25
|
export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
|
|
25
26
|
export { default as Help } from './Help/index.js';
|
|
@@ -92,6 +93,9 @@ import '@para-ui/icons/Right';
|
|
|
92
93
|
import '@para-ui/icons/Loading';
|
|
93
94
|
import 'rc-collapse';
|
|
94
95
|
import 'react-transition-group';
|
|
96
|
+
import './_verture/util-a77b261e.js';
|
|
97
|
+
import '@para-ui/icons/DoubleLeft';
|
|
98
|
+
import '@para-ui/icons/DoubleRight';
|
|
95
99
|
import '@para-ui/icons/Search';
|
|
96
100
|
import '@para-ui/icons/Close';
|
|
97
101
|
import '@para-ui/icons/CloseCircle';
|
|
@@ -126,8 +130,6 @@ import 'rc-dialog';
|
|
|
126
130
|
import '@para-ui/icons/WarningCircle';
|
|
127
131
|
import 'rc-notification';
|
|
128
132
|
import 'rc-pagination';
|
|
129
|
-
import '@para-ui/icons/DoubleLeft';
|
|
130
|
-
import '@para-ui/icons/DoubleRight';
|
|
131
133
|
import '@para-ui/icons/Left';
|
|
132
134
|
import 'rc-progress';
|
|
133
135
|
import '@para-ui/icons/Check';
|