pv-design 1.0.20 → 1.0.21
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/dist/pv-design.js +36 -35
- package/package.json +1 -1
- package/dist/style.css +0 -1
package/dist/pv-design.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode("._iconButton_1fiji_1{color:#9d9d9d;cursor:pointer}._iconButton_1fiji_1._iconButton-primary_1fiji_5:hover{color:#2777e5}._iconButton_1fiji_1._iconButton-danger_1fiji_8:hover{color:#dc4446}._iconButton_1fiji_1._iconButton-disable_1fiji_11{color:#4f4f4f!important;cursor:not-allowed}._iconButton_1fiji_1._iconButton-disable_1fiji_11:hover{color:#4f4f4f!important}._iconButton_1fiji_1._iconButton-block_1fiji_18{display:block}")),document.head.appendChild(o)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
+
import { lazy as e } from "react";
|
|
3
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
4
|
+
import { ConfigProvider as m, Modal as b } from "antd";
|
|
4
5
|
const v = ({ theme: o, ...t }) => {
|
|
5
|
-
var
|
|
6
|
-
const
|
|
6
|
+
var r;
|
|
7
|
+
const d = {
|
|
7
8
|
titleColor: "rgba(204,204,204,0.85)",
|
|
8
|
-
...((
|
|
9
|
+
...((r = o == null ? void 0 : o.components) == null ? void 0 : r.Modal) || {}
|
|
9
10
|
};
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
|
|
11
|
+
return /* @__PURE__ */ s(
|
|
12
|
+
m,
|
|
12
13
|
{
|
|
13
14
|
prefixCls: "pv-base-modal-third",
|
|
14
15
|
theme: {
|
|
15
16
|
...o || {},
|
|
16
17
|
components: {
|
|
17
|
-
Modal:
|
|
18
|
+
Modal: d
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
children: [
|
|
@@ -80,19 +81,19 @@ const v = ({ theme: o, ...t }) => {
|
|
|
80
81
|
}
|
|
81
82
|
);
|
|
82
83
|
}, p = ({ theme: o, ...t }) => {
|
|
83
|
-
var
|
|
84
|
-
const
|
|
84
|
+
var r;
|
|
85
|
+
const d = {
|
|
85
86
|
titleColor: "rgba(204,204,204,0.85)",
|
|
86
|
-
...((
|
|
87
|
+
...((r = o == null ? void 0 : o.components) == null ? void 0 : r.Modal) || {}
|
|
87
88
|
};
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
|
|
89
|
+
return /* @__PURE__ */ s(
|
|
90
|
+
m,
|
|
90
91
|
{
|
|
91
92
|
prefixCls: "pv-base-modal-default",
|
|
92
93
|
theme: {
|
|
93
94
|
...o || {},
|
|
94
95
|
components: {
|
|
95
|
-
Modal:
|
|
96
|
+
Modal: d
|
|
96
97
|
}
|
|
97
98
|
},
|
|
98
99
|
children: [
|
|
@@ -167,44 +168,44 @@ const y = {
|
|
|
167
168
|
default:
|
|
168
169
|
return /* @__PURE__ */ a(p, { ...t });
|
|
169
170
|
}
|
|
170
|
-
},
|
|
171
|
+
}, B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
171
172
|
__proto__: null,
|
|
172
173
|
ModalType: c,
|
|
173
174
|
ModalTypeMap: y,
|
|
174
175
|
default: g
|
|
175
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
176
|
-
iconButton:
|
|
177
|
-
"iconButton-primary": "
|
|
178
|
-
"iconButton-danger": "
|
|
179
|
-
"iconButton-disable": "
|
|
180
|
-
"iconButton-block": "
|
|
176
|
+
}, Symbol.toStringTag, { value: "Module" })), _ = "_iconButton_1fiji_1", n = {
|
|
177
|
+
iconButton: _,
|
|
178
|
+
"iconButton-primary": "_iconButton-primary_1fiji_5",
|
|
179
|
+
"iconButton-danger": "_iconButton-danger_1fiji_8",
|
|
180
|
+
"iconButton-disable": "_iconButton-disable_1fiji_11",
|
|
181
|
+
"iconButton-block": "_iconButton-block_1fiji_18"
|
|
181
182
|
}, l = {
|
|
182
183
|
primary: "primary",
|
|
183
184
|
danger: "danger"
|
|
184
|
-
},
|
|
185
|
+
}, j = ({ children: o, onClick: t, className: d, size: r = 12, disable: i = !1, type: u = l.primary, block: f = !1 }) => {
|
|
185
186
|
const x = () => {
|
|
186
187
|
switch (u) {
|
|
187
188
|
case l.primary:
|
|
188
|
-
return
|
|
189
|
+
return n["iconButton-primary"];
|
|
189
190
|
case l.danger:
|
|
190
|
-
return
|
|
191
|
+
return n["iconButton-danger"];
|
|
191
192
|
}
|
|
192
193
|
}, h = () => {
|
|
193
194
|
i || t == null || t();
|
|
194
195
|
};
|
|
195
|
-
return /* @__PURE__ */ a("span", { className: [
|
|
196
|
-
},
|
|
196
|
+
return /* @__PURE__ */ a("span", { className: [n.iconButton, d, i && n["iconButton-disable"], x(), f && n["iconButton-block"]].join(" "), onClick: h, style: { fontSize: `${r}px` }, children: o });
|
|
197
|
+
}, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
197
198
|
__proto__: null,
|
|
198
199
|
IconButtonType: l,
|
|
199
|
-
default:
|
|
200
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
200
|
+
default: j
|
|
201
|
+
}, Symbol.toStringTag, { value: "Module" })), z = e(() => import("./index-C5hvxSxS.js")), N = e(() => import("./index-Dyq3zBZo.js")), S = e(() => import("./index-FYoViA-E.js")), T = e(() => import("./index-CaYRL7KG.js")), A = e(() => Promise.resolve().then(() => B)), C = e(() => Promise.resolve().then(() => M));
|
|
201
202
|
export {
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
A as BaseModal,
|
|
204
|
+
C as IconButton,
|
|
204
205
|
l as IconButtonType,
|
|
205
206
|
y as ModalTypeMap,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
S as PvModal,
|
|
208
|
+
N as PvTable,
|
|
209
|
+
z as PvTabs,
|
|
210
|
+
T as ThirdModal
|
|
210
211
|
};
|
package/package.json
CHANGED
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.index-module__iconButton__Y5V-H{color:#9d9d9d;cursor:pointer}.index-module__iconButton__Y5V-H.index-module__iconButton-primary__NAYmJ:hover{color:#2777e5}.index-module__iconButton__Y5V-H.index-module__iconButton-danger__8mavX:hover{color:#dc4446}.index-module__iconButton__Y5V-H.index-module__iconButton-disable__F-gC-{color:#4f4f4f!important;cursor:not-allowed}.index-module__iconButton__Y5V-H.index-module__iconButton-disable__F-gC-:hover{color:#4f4f4f!important}.index-module__iconButton__Y5V-H.index-module__iconButton-block__yXYYN{display:block}
|