@pisell/materials 1.0.108 → 1.0.110
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/es/components/page/index.js +131 -131
- package/es/components/qrcode/index.d.ts +3 -0
- package/es/components/qrcode/index.js +44 -0
- package/es/components/table/BasicTable/index.js +3 -2
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/components/page/index.js +129 -129
- package/lib/components/qrcode/index.d.ts +3 -0
- package/lib/components/qrcode/index.js +68 -0
- package/lib/components/table/BasicTable/index.js +2 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/package.json +3 -3
|
@@ -0,0 +1,68 @@
|
|
|
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/qrcode/index.tsx
|
|
30
|
+
var qrcode_exports = {};
|
|
31
|
+
__export(qrcode_exports, {
|
|
32
|
+
default: () => qrcode_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(qrcode_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var QRCode = (props) => {
|
|
39
|
+
const { preview } = props;
|
|
40
|
+
const [visible, setVisible] = import_react.default.useState(false);
|
|
41
|
+
const id = (0, import_react.useMemo)(() => {
|
|
42
|
+
return (0, import_utils.getUniqueId)();
|
|
43
|
+
}, []);
|
|
44
|
+
const handleClick = (e) => {
|
|
45
|
+
e.stopPropagation();
|
|
46
|
+
setVisible(true);
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
49
|
+
"span",
|
|
50
|
+
{
|
|
51
|
+
onClick: handleClick,
|
|
52
|
+
id,
|
|
53
|
+
className: "pisell-lowcode-qrcode-wrap"
|
|
54
|
+
},
|
|
55
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { ...props })
|
|
56
|
+
), preview && /* @__PURE__ */ import_react.default.createElement("span", { onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
+
import_antd.Modal,
|
|
58
|
+
{
|
|
59
|
+
open: visible,
|
|
60
|
+
onCancel: () => setVisible(false),
|
|
61
|
+
footer: null,
|
|
62
|
+
width: 248,
|
|
63
|
+
closeIcon: /* @__PURE__ */ import_react.default.createElement("span", null)
|
|
64
|
+
},
|
|
65
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { ...props, size: 200 })
|
|
66
|
+
)));
|
|
67
|
+
};
|
|
68
|
+
var qrcode_default = QRCode;
|
|
@@ -85,11 +85,11 @@ var BasicTable = (props) => {
|
|
|
85
85
|
other.columns
|
|
86
86
|
]);
|
|
87
87
|
const total = (0, import_react.useMemo)(() => {
|
|
88
|
-
if (
|
|
88
|
+
if (localPagination) {
|
|
89
89
|
return (_dataSource == null ? void 0 : _dataSource.total) || 0;
|
|
90
90
|
}
|
|
91
91
|
return (pagination == null ? void 0 : pagination.total) || (_dataSource == null ? void 0 : _dataSource.total) || 0;
|
|
92
|
-
}, [_dataSource, pagination]);
|
|
92
|
+
}, [_dataSource, pagination, localPagination]);
|
|
93
93
|
return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
|
|
94
94
|
import_antd.Table,
|
|
95
95
|
{
|
package/lib/index.d.ts
CHANGED
|
@@ -65,3 +65,4 @@ export { default as Filter } from "./components/filter";
|
|
|
65
65
|
export { default as Translation } from "./components/translation";
|
|
66
66
|
export { default as SortableList } from "./components/sortableList";
|
|
67
67
|
export { default as RecordView } from "./components/record-view";
|
|
68
|
+
export { default as QRCode } from "./components/qrcode";
|
package/lib/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __export(src_exports, {
|
|
|
67
67
|
Popconfirm: () => import_antd23.Popconfirm,
|
|
68
68
|
Popover: () => import_antd24.Popover,
|
|
69
69
|
Progress: () => import_antd25.Progress,
|
|
70
|
+
QRCode: () => import_qrcode.default,
|
|
70
71
|
Radio: () => import_radio.default,
|
|
71
72
|
Rate: () => import_antd26.Rate,
|
|
72
73
|
RecordView: () => import_record_view.default,
|
|
@@ -165,6 +166,7 @@ var import_filter = __toESM(require("./components/filter"));
|
|
|
165
166
|
var import_translation = __toESM(require("./components/translation"));
|
|
166
167
|
var import_sortableList = __toESM(require("./components/sortableList"));
|
|
167
168
|
var import_record_view = __toESM(require("./components/record-view"));
|
|
169
|
+
var import_qrcode = __toESM(require("./components/qrcode"));
|
|
168
170
|
// Annotate the CommonJS export names for ESM import in node:
|
|
169
171
|
0 && (module.exports = {
|
|
170
172
|
Affix,
|
|
@@ -205,6 +207,7 @@ var import_record_view = __toESM(require("./components/record-view"));
|
|
|
205
207
|
Popconfirm,
|
|
206
208
|
Popover,
|
|
207
209
|
Progress,
|
|
210
|
+
QRCode,
|
|
208
211
|
Radio,
|
|
209
212
|
Rate,
|
|
210
213
|
RecordView,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.110",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"ahooks": "^3.7.6",
|
|
57
57
|
"react-infinite-scroll-component": "^6.1.0",
|
|
58
58
|
"@pisell/utils": "1.0.6",
|
|
59
|
-
"@pisell/
|
|
60
|
-
"@pisell/
|
|
59
|
+
"@pisell/date-picker": "1.0.34",
|
|
60
|
+
"@pisell/icon": "0.0.8"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": "^18.0.0",
|