@pisell/materials 1.0.618 → 1.0.620
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 +3 -3
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +16 -16
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +17 -17
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +1 -1
- package/es/components/pisellAppCard/PisellAppCard.d.ts +5 -0
- package/es/components/pisellAppCard/PisellAppCard.js +75 -0
- package/es/components/pisellAppCard/PisellAppCard.less +49 -0
- package/es/components/pisellAppCard/index.d.ts +3 -0
- package/es/components/pisellAppCard/index.js +2 -0
- package/es/components/pisellAppCard/types.d.ts +31 -0
- package/es/components/pisellAppCard/types.js +1 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -1
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +1 -1
- package/lib/components/pisellAppCard/PisellAppCard.d.ts +5 -0
- package/lib/components/pisellAppCard/PisellAppCard.js +102 -0
- package/lib/components/pisellAppCard/PisellAppCard.less +49 -0
- package/lib/components/pisellAppCard/index.d.ts +3 -0
- package/lib/components/pisellAppCard/index.js +36 -0
- package/lib/components/pisellAppCard/types.d.ts +31 -0
- package/lib/components/pisellAppCard/types.js +17 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -0
- package/lowcode/pisell-app-card/meta.ts +275 -0
- package/package.json +3 -3
|
@@ -6,7 +6,7 @@ import "./ReadPretty.less";
|
|
|
6
6
|
var DEFAULT_FORMAT = 'YYYY-MM-DD HH:mm:ss';
|
|
7
7
|
var DATE_FORMATS = {
|
|
8
8
|
'zh-CN': 'YYYY-MM-DD HH:mm:ss',
|
|
9
|
-
'en
|
|
9
|
+
'en': 'HH:mm:ss YYYY/MM/DD'
|
|
10
10
|
};
|
|
11
11
|
var DatePickerReadPretty = function DatePickerReadPretty(_ref) {
|
|
12
12
|
var value = _ref.value,
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dropdown, Button } from 'antd';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import PisellTags from "../pisellTags";
|
|
5
|
+
import PisellCard from "../pisellCard";
|
|
6
|
+
import PisellAvatar from "../pisellAvatar";
|
|
7
|
+
import "./PisellAppCard.less";
|
|
8
|
+
import Icon from "../icon";
|
|
9
|
+
var PisellAppCard = function PisellAppCard(_ref) {
|
|
10
|
+
var className = _ref.className,
|
|
11
|
+
style = _ref.style,
|
|
12
|
+
avatar = _ref.avatar,
|
|
13
|
+
tags = _ref.tags,
|
|
14
|
+
title = _ref.title,
|
|
15
|
+
description = _ref.description,
|
|
16
|
+
bottomButtons = _ref.bottomButtons,
|
|
17
|
+
moreActions = _ref.moreActions;
|
|
18
|
+
return /*#__PURE__*/React.createElement(PisellCard, {
|
|
19
|
+
className: classNames('pisell-lowcode-app-card', className),
|
|
20
|
+
style: style
|
|
21
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: "pisell-lowcode-app-card-header"
|
|
23
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
className: "pisell-lowcode-app-card-header-left"
|
|
25
|
+
}, avatar && /*#__PURE__*/React.createElement(PisellAvatar, {
|
|
26
|
+
src: avatar,
|
|
27
|
+
alt: title,
|
|
28
|
+
size: "xl",
|
|
29
|
+
shape: "square",
|
|
30
|
+
style: {
|
|
31
|
+
border: 'none'
|
|
32
|
+
}
|
|
33
|
+
})), /*#__PURE__*/React.createElement("div", null, moreActions && moreActions.length > 0 && /*#__PURE__*/React.createElement(Dropdown, {
|
|
34
|
+
menu: {
|
|
35
|
+
items: moreActions.map(function (action, index) {
|
|
36
|
+
return {
|
|
37
|
+
key: index,
|
|
38
|
+
label: action.label,
|
|
39
|
+
onClick: action.onClick
|
|
40
|
+
};
|
|
41
|
+
})
|
|
42
|
+
},
|
|
43
|
+
placement: "bottomRight",
|
|
44
|
+
trigger: ['click']
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
46
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
47
|
+
type: "pisell2-dots-vertical"
|
|
48
|
+
}),
|
|
49
|
+
size: "large"
|
|
50
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: "pisell-lowcode-app-card-content"
|
|
52
|
+
}, tags && tags.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: "pisell-lowcode-app-card-content-tags"
|
|
54
|
+
}, tags.map(function (tag, index) {
|
|
55
|
+
return /*#__PURE__*/React.createElement(PisellTags, {
|
|
56
|
+
key: index,
|
|
57
|
+
type: tag.type,
|
|
58
|
+
color: tag.color
|
|
59
|
+
}, tag.label);
|
|
60
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: "pisell-lowcode-app-card-content-title"
|
|
62
|
+
}, title), description && /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "pisell-lowcode-app-card-content-description"
|
|
64
|
+
}, description))), bottomButtons && bottomButtons.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: "pisell-lowcode-app-card-footer"
|
|
66
|
+
}, bottomButtons.map(function (button, index) {
|
|
67
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
68
|
+
type: button.type,
|
|
69
|
+
onClick: button.onClick,
|
|
70
|
+
key: index,
|
|
71
|
+
size: "large"
|
|
72
|
+
}, button.label);
|
|
73
|
+
})));
|
|
74
|
+
};
|
|
75
|
+
export default PisellAppCard;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.pisell-lowcode-app-card {
|
|
2
|
+
background: #fff;
|
|
3
|
+
border: 1px solid #f0f0f0;
|
|
4
|
+
|
|
5
|
+
.pisell-lowcode-card-body {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 16px;
|
|
9
|
+
&::before {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
&::after {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pisell-lowcode-app-card-header {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pisell-lowcode-app-card-content {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
.pisell-lowcode-app-card-content-title {
|
|
28
|
+
color: var(--Gray-900, #101828);
|
|
29
|
+
font-size: 18px;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
line-height: 28px; /* 155.556% */
|
|
32
|
+
}
|
|
33
|
+
.pisell-lowcode-app-card-content-description {
|
|
34
|
+
color: var(--Gray-600, #475467);
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
line-height: 20px; /* 142.857% */
|
|
38
|
+
}
|
|
39
|
+
.pisell-lowcode-app-card-content-tags {
|
|
40
|
+
display: flex;
|
|
41
|
+
gap: 8px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pisell-lowcode-app-card-footer {
|
|
46
|
+
display: flex;
|
|
47
|
+
gap: 12px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export interface PisellAppCardProps {
|
|
3
|
+
/** 类名 */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** 样式 */
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
/** 头像地址 */
|
|
8
|
+
avatar?: string;
|
|
9
|
+
/** 标签列表 */
|
|
10
|
+
tags?: Array<{
|
|
11
|
+
label: string;
|
|
12
|
+
color?: 'success' | 'warning' | 'error' | 'gray';
|
|
13
|
+
type: 'pill_color' | 'pill_outline';
|
|
14
|
+
}>;
|
|
15
|
+
/** 标题 */
|
|
16
|
+
title: string;
|
|
17
|
+
/** 描述 */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** 底部按钮列表 */
|
|
20
|
+
bottomButtons?: Array<{
|
|
21
|
+
label: string;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
type?: 'primary' | 'default' | 'dashed' | 'link' | 'text';
|
|
24
|
+
}>;
|
|
25
|
+
/** 右侧更多操作列表 */
|
|
26
|
+
moreActions?: Array<{
|
|
27
|
+
label: string;
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
icon?: React.ReactNode;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/index.d.ts
CHANGED
|
@@ -134,3 +134,5 @@ export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Ti
|
|
|
134
134
|
export { default as WalletCard } from './components/walletCard';
|
|
135
135
|
export { default as PisellDropSort } from './components/pisellDropSort';
|
|
136
136
|
export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
|
|
137
|
+
export { default as PisellAppCard } from './components/pisellAppCard';
|
|
138
|
+
export type { PisellAppCardProps } from './components/pisellAppCard/types';
|
package/es/index.js
CHANGED
|
@@ -133,4 +133,5 @@ export { default as PisellNumberKeyboard } from "./components/virtual-keyboard/N
|
|
|
133
133
|
export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
|
|
134
134
|
export { default as WalletCard } from "./components/walletCard";
|
|
135
135
|
export { default as PisellDropSort } from "./components/pisellDropSort";
|
|
136
|
-
export { default as PisellNavigationMenu } from "./components/pisellNavigationMenu";
|
|
136
|
+
export { default as PisellNavigationMenu } from "./components/pisellNavigationMenu";
|
|
137
|
+
export { default as PisellAppCard } from "./components/pisellAppCard";
|
|
@@ -40,7 +40,7 @@ var import_ReadPretty = require("./ReadPretty.less");
|
|
|
40
40
|
var DEFAULT_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
|
41
41
|
var DATE_FORMATS = {
|
|
42
42
|
"zh-CN": "YYYY-MM-DD HH:mm:ss",
|
|
43
|
-
"en
|
|
43
|
+
"en": "HH:mm:ss YYYY/MM/DD"
|
|
44
44
|
};
|
|
45
45
|
var DatePickerReadPretty = ({ value, renderMode }) => {
|
|
46
46
|
const { locale = "zh-CN" } = (0, import_usePisellConfig.default)();
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellAppCard/PisellAppCard.tsx
|
|
30
|
+
var PisellAppCard_exports = {};
|
|
31
|
+
__export(PisellAppCard_exports, {
|
|
32
|
+
default: () => PisellAppCard_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(PisellAppCard_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_pisellTags = __toESM(require("../pisellTags"));
|
|
39
|
+
var import_pisellCard = __toESM(require("../pisellCard"));
|
|
40
|
+
var import_pisellAvatar = __toESM(require("../pisellAvatar"));
|
|
41
|
+
var import_PisellAppCard = require("./PisellAppCard.less");
|
|
42
|
+
var import_icon = __toESM(require("../icon"));
|
|
43
|
+
var PisellAppCard = ({
|
|
44
|
+
className,
|
|
45
|
+
style,
|
|
46
|
+
avatar,
|
|
47
|
+
tags,
|
|
48
|
+
title,
|
|
49
|
+
description,
|
|
50
|
+
bottomButtons,
|
|
51
|
+
moreActions
|
|
52
|
+
}) => {
|
|
53
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
54
|
+
import_pisellCard.default,
|
|
55
|
+
{
|
|
56
|
+
className: (0, import_classnames.default)("pisell-lowcode-app-card", className),
|
|
57
|
+
style
|
|
58
|
+
},
|
|
59
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-header-left" }, avatar && /* @__PURE__ */ import_react.default.createElement(
|
|
60
|
+
import_pisellAvatar.default,
|
|
61
|
+
{
|
|
62
|
+
src: avatar,
|
|
63
|
+
alt: title,
|
|
64
|
+
size: "xl",
|
|
65
|
+
shape: "square",
|
|
66
|
+
style: { border: "none" }
|
|
67
|
+
}
|
|
68
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", null, moreActions && moreActions.length > 0 && /* @__PURE__ */ import_react.default.createElement(
|
|
69
|
+
import_antd.Dropdown,
|
|
70
|
+
{
|
|
71
|
+
menu: {
|
|
72
|
+
items: moreActions.map((action, index) => ({
|
|
73
|
+
key: index,
|
|
74
|
+
label: action.label,
|
|
75
|
+
onClick: action.onClick
|
|
76
|
+
}))
|
|
77
|
+
},
|
|
78
|
+
placement: "bottomRight",
|
|
79
|
+
trigger: ["click"]
|
|
80
|
+
},
|
|
81
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
82
|
+
import_antd.Button,
|
|
83
|
+
{
|
|
84
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icon.default, { type: "pisell2-dots-vertical" }),
|
|
85
|
+
size: "large"
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
))),
|
|
89
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-content" }, tags && tags.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-content-tags" }, tags.map((tag, index) => /* @__PURE__ */ import_react.default.createElement(import_pisellTags.default, { key: index, type: tag.type, color: tag.color }, tag.label))), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-content-title" }, title), description && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-content-description" }, description))),
|
|
90
|
+
bottomButtons && bottomButtons.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-app-card-footer" }, bottomButtons.map((button, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
91
|
+
import_antd.Button,
|
|
92
|
+
{
|
|
93
|
+
type: button.type,
|
|
94
|
+
onClick: button.onClick,
|
|
95
|
+
key: index,
|
|
96
|
+
size: "large"
|
|
97
|
+
},
|
|
98
|
+
button.label
|
|
99
|
+
)))
|
|
100
|
+
);
|
|
101
|
+
};
|
|
102
|
+
var PisellAppCard_default = PisellAppCard;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.pisell-lowcode-app-card {
|
|
2
|
+
background: #fff;
|
|
3
|
+
border: 1px solid #f0f0f0;
|
|
4
|
+
|
|
5
|
+
.pisell-lowcode-card-body {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 16px;
|
|
9
|
+
&::before {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
&::after {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pisell-lowcode-app-card-header {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pisell-lowcode-app-card-content {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
.pisell-lowcode-app-card-content-title {
|
|
28
|
+
color: var(--Gray-900, #101828);
|
|
29
|
+
font-size: 18px;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
line-height: 28px; /* 155.556% */
|
|
32
|
+
}
|
|
33
|
+
.pisell-lowcode-app-card-content-description {
|
|
34
|
+
color: var(--Gray-600, #475467);
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
line-height: 20px; /* 142.857% */
|
|
38
|
+
}
|
|
39
|
+
.pisell-lowcode-app-card-content-tags {
|
|
40
|
+
display: flex;
|
|
41
|
+
gap: 8px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pisell-lowcode-app-card-footer {
|
|
46
|
+
display: flex;
|
|
47
|
+
gap: 12px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellAppCard/index.tsx
|
|
30
|
+
var pisellAppCard_exports = {};
|
|
31
|
+
__export(pisellAppCard_exports, {
|
|
32
|
+
default: () => pisellAppCard_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellAppCard_exports);
|
|
35
|
+
var import_PisellAppCard = __toESM(require("./PisellAppCard"));
|
|
36
|
+
var pisellAppCard_default = import_PisellAppCard.default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export interface PisellAppCardProps {
|
|
3
|
+
/** 类名 */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** 样式 */
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
/** 头像地址 */
|
|
8
|
+
avatar?: string;
|
|
9
|
+
/** 标签列表 */
|
|
10
|
+
tags?: Array<{
|
|
11
|
+
label: string;
|
|
12
|
+
color?: 'success' | 'warning' | 'error' | 'gray';
|
|
13
|
+
type: 'pill_color' | 'pill_outline';
|
|
14
|
+
}>;
|
|
15
|
+
/** 标题 */
|
|
16
|
+
title: string;
|
|
17
|
+
/** 描述 */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** 底部按钮列表 */
|
|
20
|
+
bottomButtons?: Array<{
|
|
21
|
+
label: string;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
type?: 'primary' | 'default' | 'dashed' | 'link' | 'text';
|
|
24
|
+
}>;
|
|
25
|
+
/** 右侧更多操作列表 */
|
|
26
|
+
moreActions?: Array<{
|
|
27
|
+
label: string;
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
icon?: React.ReactNode;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/pisellAppCard/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
package/lib/index.d.ts
CHANGED
|
@@ -134,3 +134,5 @@ export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Ti
|
|
|
134
134
|
export { default as WalletCard } from './components/walletCard';
|
|
135
135
|
export { default as PisellDropSort } from './components/pisellDropSort';
|
|
136
136
|
export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
|
|
137
|
+
export { default as PisellAppCard } from './components/pisellAppCard';
|
|
138
|
+
export type { PisellAppCardProps } from './components/pisellAppCard/types';
|
package/lib/index.js
CHANGED
|
@@ -109,6 +109,7 @@ __export(src_exports, {
|
|
|
109
109
|
PisellAdjustPriceInputNumber: () => import_PisellAdjustPriceInputNumber.default,
|
|
110
110
|
PisellAlert: () => import_pisellAlert.default,
|
|
111
111
|
PisellAnchor: () => import_pisellAnchor.default,
|
|
112
|
+
PisellAppCard: () => import_pisellAppCard.default,
|
|
112
113
|
PisellAvatar: () => import_pisellAvatar.default,
|
|
113
114
|
PisellCard: () => import_pisellCard.default,
|
|
114
115
|
PisellCardList: () => import_pisellCardList.default,
|
|
@@ -337,6 +338,7 @@ var import_Time = __toESM(require("./components/virtual-keyboard/Time"));
|
|
|
337
338
|
var import_walletCard = __toESM(require("./components/walletCard"));
|
|
338
339
|
var import_pisellDropSort = __toESM(require("./components/pisellDropSort"));
|
|
339
340
|
var import_pisellNavigationMenu = __toESM(require("./components/pisellNavigationMenu"));
|
|
341
|
+
var import_pisellAppCard = __toESM(require("./components/pisellAppCard"));
|
|
340
342
|
// Annotate the CommonJS export names for ESM import in node:
|
|
341
343
|
0 && (module.exports = {
|
|
342
344
|
Affix,
|
|
@@ -419,6 +421,7 @@ var import_pisellNavigationMenu = __toESM(require("./components/pisellNavigation
|
|
|
419
421
|
PisellAdjustPriceInputNumber,
|
|
420
422
|
PisellAlert,
|
|
421
423
|
PisellAnchor,
|
|
424
|
+
PisellAppCard,
|
|
422
425
|
PisellAvatar,
|
|
423
426
|
PisellCard,
|
|
424
427
|
PisellCardList,
|