geneeantd 0.0.9 → 0.0.10
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/genee-antd.es.js +70 -59
- package/dist/genee-antd.umd.js +69 -69
- package/package.json +1 -1
package/dist/genee-antd.es.js
CHANGED
|
@@ -10046,38 +10046,38 @@ var fD = function(t) {
|
|
|
10046
10046
|
}))));
|
|
10047
10047
|
};
|
|
10048
10048
|
FS.displayName = "Dialog";
|
|
10049
|
-
var la = "RC_FORM_INTERNAL_HOOKS",
|
|
10049
|
+
var la = "RC_FORM_INTERNAL_HOOKS", mn = function() {
|
|
10050
10050
|
pt(!1, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
10051
10051
|
}, ba = /* @__PURE__ */ c.createContext({
|
|
10052
|
-
getFieldValue:
|
|
10053
|
-
getFieldsValue:
|
|
10054
|
-
getFieldError:
|
|
10055
|
-
getFieldWarning:
|
|
10056
|
-
getFieldsError:
|
|
10057
|
-
isFieldsTouched:
|
|
10058
|
-
isFieldTouched:
|
|
10059
|
-
isFieldValidating:
|
|
10060
|
-
isFieldsValidating:
|
|
10061
|
-
resetFields:
|
|
10062
|
-
setFields:
|
|
10063
|
-
setFieldValue:
|
|
10064
|
-
setFieldsValue:
|
|
10065
|
-
validateFields:
|
|
10066
|
-
submit:
|
|
10052
|
+
getFieldValue: mn,
|
|
10053
|
+
getFieldsValue: mn,
|
|
10054
|
+
getFieldError: mn,
|
|
10055
|
+
getFieldWarning: mn,
|
|
10056
|
+
getFieldsError: mn,
|
|
10057
|
+
isFieldsTouched: mn,
|
|
10058
|
+
isFieldTouched: mn,
|
|
10059
|
+
isFieldValidating: mn,
|
|
10060
|
+
isFieldsValidating: mn,
|
|
10061
|
+
resetFields: mn,
|
|
10062
|
+
setFields: mn,
|
|
10063
|
+
setFieldValue: mn,
|
|
10064
|
+
setFieldsValue: mn,
|
|
10065
|
+
validateFields: mn,
|
|
10066
|
+
submit: mn,
|
|
10067
10067
|
getInternalHooks: function() {
|
|
10068
|
-
return
|
|
10069
|
-
dispatch:
|
|
10070
|
-
initEntityValue:
|
|
10071
|
-
registerField:
|
|
10072
|
-
useSubscribe:
|
|
10073
|
-
setInitialValues:
|
|
10074
|
-
destroyForm:
|
|
10075
|
-
setCallbacks:
|
|
10076
|
-
registerWatch:
|
|
10077
|
-
getFields:
|
|
10078
|
-
setValidateMessages:
|
|
10079
|
-
setPreserve:
|
|
10080
|
-
getInitialValue:
|
|
10068
|
+
return mn(), {
|
|
10069
|
+
dispatch: mn,
|
|
10070
|
+
initEntityValue: mn,
|
|
10071
|
+
registerField: mn,
|
|
10072
|
+
useSubscribe: mn,
|
|
10073
|
+
setInitialValues: mn,
|
|
10074
|
+
destroyForm: mn,
|
|
10075
|
+
setCallbacks: mn,
|
|
10076
|
+
registerWatch: mn,
|
|
10077
|
+
getFields: mn,
|
|
10078
|
+
setValidateMessages: mn,
|
|
10079
|
+
setPreserve: mn,
|
|
10080
|
+
getInitialValue: mn
|
|
10081
10081
|
};
|
|
10082
10082
|
}
|
|
10083
10083
|
}), Il = /* @__PURE__ */ c.createContext(null);
|
|
@@ -38441,15 +38441,15 @@ function KH() {
|
|
|
38441
38441
|
} = c.useContext(Eo);
|
|
38442
38442
|
return e;
|
|
38443
38443
|
}
|
|
38444
|
-
const
|
|
38445
|
-
|
|
38446
|
-
|
|
38447
|
-
|
|
38448
|
-
|
|
38449
|
-
|
|
38450
|
-
|
|
38451
|
-
|
|
38452
|
-
|
|
38444
|
+
const vn = PE;
|
|
38445
|
+
vn.Item = RE;
|
|
38446
|
+
vn.List = XH;
|
|
38447
|
+
vn.ErrorList = EE;
|
|
38448
|
+
vn.useForm = mO;
|
|
38449
|
+
vn.useFormInstance = KH;
|
|
38450
|
+
vn.useWatch = US;
|
|
38451
|
+
vn.Provider = YS;
|
|
38452
|
+
vn.create = () => {
|
|
38453
38453
|
process.env.NODE_ENV !== "production" && Ro(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
|
|
38454
38454
|
};
|
|
38455
38455
|
var ZH = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, UH = function(t, n) {
|
|
@@ -55087,7 +55087,7 @@ const QU = oe.memo(
|
|
|
55087
55087
|
initialValues: g = {}
|
|
55088
55088
|
// 表单初始值
|
|
55089
55089
|
}) => {
|
|
55090
|
-
const [h] =
|
|
55090
|
+
const [h] = vn.useForm(o), [m, b] = Ct(a);
|
|
55091
55091
|
i = i === 0 ? e.length : i, xt(() => {
|
|
55092
55092
|
v && v(m);
|
|
55093
55093
|
}, [m, v]);
|
|
@@ -55097,11 +55097,22 @@ const QU = oe.memo(
|
|
|
55097
55097
|
}, [e, i]), x = (N) => {
|
|
55098
55098
|
const { name: M, label: D, type: I, props: T, options: R, rules: z, customRender: k } = N;
|
|
55099
55099
|
if (I === "custom" && k)
|
|
55100
|
-
return /* @__PURE__ */ se.jsx(
|
|
55100
|
+
return /* @__PURE__ */ se.jsx(
|
|
55101
|
+
vn.Item,
|
|
55102
|
+
{
|
|
55103
|
+
wrapperCol: { span: 24 },
|
|
55104
|
+
labelCol: N.labelCol || void 0,
|
|
55105
|
+
label: D,
|
|
55106
|
+
name: M,
|
|
55107
|
+
rules: z,
|
|
55108
|
+
children: k
|
|
55109
|
+
},
|
|
55110
|
+
M
|
|
55111
|
+
);
|
|
55101
55112
|
switch (I) {
|
|
55102
55113
|
case "text":
|
|
55103
55114
|
return T?.type === "textarea" ? /* @__PURE__ */ se.jsx(
|
|
55104
|
-
|
|
55115
|
+
vn.Item,
|
|
55105
55116
|
{
|
|
55106
55117
|
wrapperCol: { span: 24 },
|
|
55107
55118
|
labelCol: N.labelCol || void 0,
|
|
@@ -55121,7 +55132,7 @@ const QU = oe.memo(
|
|
|
55121
55132
|
},
|
|
55122
55133
|
M
|
|
55123
55134
|
) : /* @__PURE__ */ se.jsx(
|
|
55124
|
-
|
|
55135
|
+
vn.Item,
|
|
55125
55136
|
{
|
|
55126
55137
|
wrapperCol: { span: 24 },
|
|
55127
55138
|
labelCol: N.labelCol || void 0,
|
|
@@ -55143,7 +55154,7 @@ const QU = oe.memo(
|
|
|
55143
55154
|
);
|
|
55144
55155
|
case "select":
|
|
55145
55156
|
return /* @__PURE__ */ se.jsx(
|
|
55146
|
-
|
|
55157
|
+
vn.Item,
|
|
55147
55158
|
{
|
|
55148
55159
|
wrapperCol: { span: 24 },
|
|
55149
55160
|
labelCol: N.labelCol || void 0,
|
|
@@ -55163,7 +55174,7 @@ const QU = oe.memo(
|
|
|
55163
55174
|
);
|
|
55164
55175
|
case "date":
|
|
55165
55176
|
return /* @__PURE__ */ se.jsx(
|
|
55166
|
-
|
|
55177
|
+
vn.Item,
|
|
55167
55178
|
{
|
|
55168
55179
|
wrapperCol: { span: 24 },
|
|
55169
55180
|
labelCol: N.labelCol || void 0,
|
|
@@ -55194,7 +55205,7 @@ const QU = oe.memo(
|
|
|
55194
55205
|
);
|
|
55195
55206
|
case "number":
|
|
55196
55207
|
return /* @__PURE__ */ se.jsx(
|
|
55197
|
-
|
|
55208
|
+
vn.Item,
|
|
55198
55209
|
{
|
|
55199
55210
|
wrapperCol: { span: 24 },
|
|
55200
55211
|
labelCol: N.labelCol || void 0,
|
|
@@ -55214,7 +55225,7 @@ const QU = oe.memo(
|
|
|
55214
55225
|
case "checkbox": {
|
|
55215
55226
|
if (T?.mode === "multiple")
|
|
55216
55227
|
return /* @__PURE__ */ se.jsx(
|
|
55217
|
-
|
|
55228
|
+
vn.Item,
|
|
55218
55229
|
{
|
|
55219
55230
|
wrapperCol: { span: 24 },
|
|
55220
55231
|
labelCol: N.labelCol || void 0,
|
|
@@ -55234,7 +55245,7 @@ const QU = oe.memo(
|
|
|
55234
55245
|
);
|
|
55235
55246
|
const j = { ...T };
|
|
55236
55247
|
return j.label && delete j.label, /* @__PURE__ */ se.jsx(
|
|
55237
|
-
|
|
55248
|
+
vn.Item,
|
|
55238
55249
|
{
|
|
55239
55250
|
label: D,
|
|
55240
55251
|
name: M,
|
|
@@ -55255,7 +55266,7 @@ const QU = oe.memo(
|
|
|
55255
55266
|
}
|
|
55256
55267
|
case "radio":
|
|
55257
55268
|
return /* @__PURE__ */ se.jsx(
|
|
55258
|
-
|
|
55269
|
+
vn.Item,
|
|
55259
55270
|
{
|
|
55260
55271
|
wrapperCol: { span: 24 },
|
|
55261
55272
|
labelCol: N.labelCol || void 0,
|
|
@@ -55275,7 +55286,7 @@ const QU = oe.memo(
|
|
|
55275
55286
|
);
|
|
55276
55287
|
case "cascader":
|
|
55277
55288
|
return /* @__PURE__ */ se.jsx(
|
|
55278
|
-
|
|
55289
|
+
vn.Item,
|
|
55279
55290
|
{
|
|
55280
55291
|
wrapperCol: { span: 24 },
|
|
55281
55292
|
labelCol: N.labelCol || void 0,
|
|
@@ -55320,7 +55331,7 @@ const QU = oe.memo(
|
|
|
55320
55331
|
return /* @__PURE__ */ se.jsx(se.Fragment, { children: N.map((D) => /* @__PURE__ */ dM(Fl, { ...D.wrapperCol || M, key: D.name }, x(D))) });
|
|
55321
55332
|
};
|
|
55322
55333
|
return /* @__PURE__ */ se.jsx("div", { className: "dynamic-form", children: /* @__PURE__ */ se.jsx(
|
|
55323
|
-
|
|
55334
|
+
vn,
|
|
55324
55335
|
{
|
|
55325
55336
|
form: h,
|
|
55326
55337
|
layout: n,
|
|
@@ -55340,7 +55351,7 @@ const QU = oe.memo(
|
|
|
55340
55351
|
justifyContent: "flex-end"
|
|
55341
55352
|
},
|
|
55342
55353
|
children: /* @__PURE__ */ se.jsx(
|
|
55343
|
-
|
|
55354
|
+
vn.Item,
|
|
55344
55355
|
{
|
|
55345
55356
|
wrapperCol: { span: 24 },
|
|
55346
55357
|
style: { width: "100%" },
|
|
@@ -55537,7 +55548,7 @@ const QU = oe.memo(
|
|
|
55537
55548
|
formConfig: t,
|
|
55538
55549
|
isShowFilterTags: n = !0
|
|
55539
55550
|
}) => {
|
|
55540
|
-
const [r, o] = Ct(null), [a] =
|
|
55551
|
+
const [r, o] = Ct(null), [a] = vn.useForm(t.form), i = t.onReset, l = {
|
|
55541
55552
|
...t,
|
|
55542
55553
|
form: a,
|
|
55543
55554
|
// 重写onSubmit方法,实现内部过滤非空值
|
|
@@ -55584,7 +55595,7 @@ const QU = oe.memo(
|
|
|
55584
55595
|
}, aC = ({ onBack: e, onSubmit: t, onForgetPassword: n }) => {
|
|
55585
55596
|
const r = NC(), o = () => {
|
|
55586
55597
|
e ? e() : r("/");
|
|
55587
|
-
}, [a] =
|
|
55598
|
+
}, [a] = vn.useForm(), i = async (s) => {
|
|
55588
55599
|
try {
|
|
55589
55600
|
t && t(s);
|
|
55590
55601
|
} catch {
|
|
@@ -55599,7 +55610,7 @@ const QU = oe.memo(
|
|
|
55599
55610
|
/* @__PURE__ */ se.jsx("p", { className: "login-welcome", children: "欢迎登录!我们将全力为您提供贴心服务" })
|
|
55600
55611
|
] }),
|
|
55601
55612
|
/* @__PURE__ */ se.jsx("div", { className: "login-content", children: /* @__PURE__ */ se.jsxs(
|
|
55602
|
-
|
|
55613
|
+
vn,
|
|
55603
55614
|
{
|
|
55604
55615
|
form: a,
|
|
55605
55616
|
layout: "vertical",
|
|
@@ -55607,7 +55618,7 @@ const QU = oe.memo(
|
|
|
55607
55618
|
style: { maxWidth: 502 },
|
|
55608
55619
|
children: [
|
|
55609
55620
|
/* @__PURE__ */ se.jsx(
|
|
55610
|
-
|
|
55621
|
+
vn.Item,
|
|
55611
55622
|
{
|
|
55612
55623
|
name: "username",
|
|
55613
55624
|
rules: [
|
|
@@ -55630,7 +55641,7 @@ const QU = oe.memo(
|
|
|
55630
55641
|
}
|
|
55631
55642
|
),
|
|
55632
55643
|
/* @__PURE__ */ se.jsx(
|
|
55633
|
-
|
|
55644
|
+
vn.Item,
|
|
55634
55645
|
{
|
|
55635
55646
|
name: "password",
|
|
55636
55647
|
rules: [{ required: !0, message: "请输入密码" }],
|
|
@@ -55651,9 +55662,9 @@ const QU = oe.memo(
|
|
|
55651
55662
|
)
|
|
55652
55663
|
}
|
|
55653
55664
|
),
|
|
55654
|
-
/* @__PURE__ */ se.jsxs(
|
|
55665
|
+
/* @__PURE__ */ se.jsxs(vn.Item, { className: "login-betwen", children: [
|
|
55655
55666
|
/* @__PURE__ */ se.jsx(
|
|
55656
|
-
|
|
55667
|
+
vn.Item,
|
|
55657
55668
|
{
|
|
55658
55669
|
name: "remember",
|
|
55659
55670
|
valuePropName: "checked",
|
|
@@ -55670,7 +55681,7 @@ const QU = oe.memo(
|
|
|
55670
55681
|
}
|
|
55671
55682
|
)
|
|
55672
55683
|
] }),
|
|
55673
|
-
/* @__PURE__ */ se.jsx(
|
|
55684
|
+
/* @__PURE__ */ se.jsx(vn.Item, { children: /* @__PURE__ */ se.jsx(
|
|
55674
55685
|
dn,
|
|
55675
55686
|
{
|
|
55676
55687
|
type: "primary",
|