pd-ui-package 1.1.1 → 1.3.0
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/_commonjsHelpers-CZvdJhlo.js +1191 -0
- package/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/index-3k1IXN1T.js +1772 -0
- package/index-CAw0rXjE.js +1584 -0
- package/package.json +1 -1
- package/pd-DataTable-eOeiuzlu.js +3507 -0
- package/pd-EchartsContainer-4DObMw2_.js +48341 -0
- package/pd-ExcelExport-DICqCJ1x.js +23210 -0
- package/pd-PwdChangeForm-rZdb110w.js +170 -0
- package/pd-Test-DeIzXQ7F.js +32 -0
- package/pd-ui-package.css +1 -1
- package/pd-ui-package.js +514 -459
- package/pd-ui-package.umd.cjs +99 -12
- package/pd-PwdChangeForm-tFrLQ1xa.js +0 -3309
- package/pd-Test-DP_M-9m_.js +0 -36
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { defineComponent as x, ref as c, watch as g, reactive as _, resolveComponent as m, createBlock as E, openBlock as U, unref as s, withCtx as d, createVNode as t, createElementVNode as k, createTextVNode as B, toDisplayString as N } from "vue";
|
|
2
|
+
import { a as S } from "./index-3k1IXN1T.js";
|
|
3
|
+
import { useLocale as R } from "./pd-ui-package.js";
|
|
4
|
+
import { a3 as w } from "./index-CAw0rXjE.js";
|
|
5
|
+
const j = { class: "dialog-footer" }, z = {
|
|
6
|
+
name: "pd-PwdChangeForm"
|
|
7
|
+
}, T = /* @__PURE__ */ x({
|
|
8
|
+
...z,
|
|
9
|
+
props: {
|
|
10
|
+
visible: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
},
|
|
14
|
+
requestConfig: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: !0
|
|
17
|
+
// default: () => ({
|
|
18
|
+
// url: "", // 默认URL
|
|
19
|
+
// method: "POST",
|
|
20
|
+
// headers: {},
|
|
21
|
+
// // 可以添加其他axios配置项,如timeout
|
|
22
|
+
// timeout: 1000,
|
|
23
|
+
// }),
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:visible"],
|
|
27
|
+
setup(b, { emit: h }) {
|
|
28
|
+
const { t: o } = R(), p = b, C = h, i = c(p.visible);
|
|
29
|
+
g(
|
|
30
|
+
() => p.visible,
|
|
31
|
+
(l) => {
|
|
32
|
+
i.value = l;
|
|
33
|
+
}
|
|
34
|
+
), g(i, (l) => {
|
|
35
|
+
C("update:visible", l), l || (r.old = "", r.new = "", r.confirm = "", u.value?.resetFields());
|
|
36
|
+
});
|
|
37
|
+
const r = _({
|
|
38
|
+
old: "",
|
|
39
|
+
new: "",
|
|
40
|
+
confirm: ""
|
|
41
|
+
}), v = (l, e, n) => {
|
|
42
|
+
e !== r.new ? n(new Error(o("pwdChangeForm.confirmPwdError"))) : n();
|
|
43
|
+
}, V = _({
|
|
44
|
+
old: [
|
|
45
|
+
{
|
|
46
|
+
required: !0,
|
|
47
|
+
message: o("pwdChangeForm.oldPwdPlaceholder"),
|
|
48
|
+
trigger: "blur"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
new: [
|
|
52
|
+
{
|
|
53
|
+
required: !0,
|
|
54
|
+
message: o("pwdChangeForm.newPwdPlaceholder"),
|
|
55
|
+
trigger: "blur"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
confirm: [
|
|
59
|
+
{
|
|
60
|
+
required: !0,
|
|
61
|
+
message: o("pwdChangeForm.confirmPwdPlaceholder"),
|
|
62
|
+
trigger: "blur"
|
|
63
|
+
},
|
|
64
|
+
{ required: !0, validator: v, trigger: "blur" }
|
|
65
|
+
]
|
|
66
|
+
}), u = c(), F = async () => {
|
|
67
|
+
u.value?.validate(async (l) => {
|
|
68
|
+
if (l)
|
|
69
|
+
try {
|
|
70
|
+
const e = await S({
|
|
71
|
+
...p.requestConfig,
|
|
72
|
+
data: {
|
|
73
|
+
identifier: p.requestConfig.data.identifier,
|
|
74
|
+
oldPassword: r.old,
|
|
75
|
+
newPassword: r.new
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
e.data.code === 200 ? (w.success(o("pwdChangeForm.pwdChangeSuccess")), i.value = !1) : w.error(
|
|
79
|
+
e.data.msg || o("pwdChangeForm.pwdChangeError")
|
|
80
|
+
);
|
|
81
|
+
} catch (e) {
|
|
82
|
+
w.error(e.message || o("pwdChangeForm.pwdChangeError"));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
return (l, e) => {
|
|
87
|
+
const n = m("el-input"), f = m("el-form-item"), P = m("el-form"), y = m("el-button"), q = m("el-dialog");
|
|
88
|
+
return U(), E(q, {
|
|
89
|
+
modelValue: i.value,
|
|
90
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => i.value = a),
|
|
91
|
+
title: s(o)("pwdChangeForm.title"),
|
|
92
|
+
width: "500"
|
|
93
|
+
}, {
|
|
94
|
+
footer: d(() => [
|
|
95
|
+
k("div", j, [
|
|
96
|
+
t(y, {
|
|
97
|
+
type: "primary",
|
|
98
|
+
onClick: F
|
|
99
|
+
}, {
|
|
100
|
+
default: d(() => [
|
|
101
|
+
B(N(s(o)("pwdChangeForm.submit")), 1)
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
})
|
|
105
|
+
])
|
|
106
|
+
]),
|
|
107
|
+
default: d(() => [
|
|
108
|
+
t(P, {
|
|
109
|
+
model: r,
|
|
110
|
+
rules: V,
|
|
111
|
+
ref_key: "formRef",
|
|
112
|
+
ref: u,
|
|
113
|
+
"label-width": s(o)("global.locales") === "zh-cn" ? "100px" : "150px",
|
|
114
|
+
"label-position": "left"
|
|
115
|
+
}, {
|
|
116
|
+
default: d(() => [
|
|
117
|
+
t(f, {
|
|
118
|
+
label: s(o)("pwdChangeForm.oldPwd"),
|
|
119
|
+
prop: "old"
|
|
120
|
+
}, {
|
|
121
|
+
default: d(() => [
|
|
122
|
+
t(n, {
|
|
123
|
+
modelValue: r.old,
|
|
124
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => r.old = a),
|
|
125
|
+
type: "password",
|
|
126
|
+
"show-password": ""
|
|
127
|
+
}, null, 8, ["modelValue"])
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["label"]),
|
|
131
|
+
t(f, {
|
|
132
|
+
label: s(o)("pwdChangeForm.newPwd"),
|
|
133
|
+
prop: "new"
|
|
134
|
+
}, {
|
|
135
|
+
default: d(() => [
|
|
136
|
+
t(n, {
|
|
137
|
+
modelValue: r.new,
|
|
138
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => r.new = a),
|
|
139
|
+
type: "password",
|
|
140
|
+
"show-password": ""
|
|
141
|
+
}, null, 8, ["modelValue"])
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
}, 8, ["label"]),
|
|
145
|
+
t(f, {
|
|
146
|
+
label: s(o)("pwdChangeForm.confirmPwd"),
|
|
147
|
+
prop: "confirm"
|
|
148
|
+
}, {
|
|
149
|
+
default: d(() => [
|
|
150
|
+
t(n, {
|
|
151
|
+
modelValue: r.confirm,
|
|
152
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => r.confirm = a),
|
|
153
|
+
type: "password",
|
|
154
|
+
"show-password": ""
|
|
155
|
+
}, null, 8, ["modelValue"])
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, ["label"])
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["model", "rules", "label-width"])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["modelValue", "title"]);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
export {
|
|
169
|
+
T as default
|
|
170
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as p, createElementBlock as d, openBlock as a, createElementVNode as e, renderSlot as u, toDisplayString as o, unref as i } from "vue";
|
|
2
|
+
import { useLocale as c } from "./pd-ui-package.js";
|
|
3
|
+
import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const m = { class: "pd-test" }, _ = {
|
|
5
|
+
name: "pd-Button"
|
|
6
|
+
}, b = /* @__PURE__ */ p({
|
|
7
|
+
..._,
|
|
8
|
+
props: {
|
|
9
|
+
title: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(n) {
|
|
15
|
+
const { t: s } = c(), l = () => {
|
|
16
|
+
alert("点击了按钮");
|
|
17
|
+
};
|
|
18
|
+
return (r, t) => (a(), d("div", m, [
|
|
19
|
+
t[0] || (t[0] = e("h1", null, "pd-Test", -1)),
|
|
20
|
+
e("button", {
|
|
21
|
+
class: "pd-test-btn",
|
|
22
|
+
onClick: l
|
|
23
|
+
}, o(i(s)("test.button")), 1),
|
|
24
|
+
e("p", null, "参数内容:" + o(n.title), 1),
|
|
25
|
+
t[1] || (t[1] = e("p", null, "插槽内容:", -1)),
|
|
26
|
+
u(r.$slots, "default", {}, void 0, !0)
|
|
27
|
+
]));
|
|
28
|
+
}
|
|
29
|
+
}), C = /* @__PURE__ */ f(b, [["__scopeId", "data-v-b16a749b"]]);
|
|
30
|
+
export {
|
|
31
|
+
C as default
|
|
32
|
+
};
|
package/pd-ui-package.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
button[data-v-b16a749b]{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button[data-v-b16a749b]:hover{border-color:#646cff}button[data-v-b16a749b]:focus,button[data-v-b16a749b]:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){button[data-v-b16a749b]{background-color:#f9f9f9}}
|
|
1
|
+
.pd-DataTable-search-card[data-v-00413279] .el-card__body{padding-bottom:0}.pd-DataTable-operation[data-v-00413279]{padding:8px}button[data-v-b16a749b]{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button[data-v-b16a749b]:hover{border-color:#646cff}button[data-v-b16a749b]:focus,button[data-v-b16a749b]:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){button[data-v-b16a749b]{background-color:#f9f9f9}}
|