ztxkui 4.2.23-548 → 4.2.23-549
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/DemoCom/FormDemo.js
CHANGED
|
@@ -109,7 +109,16 @@ var getCustomDom = function () {
|
|
|
109
109
|
React.createElement(SearchItem, { name: "type7", width: "half", label: i18next.t('你好kkkkkkkklk7') },
|
|
110
110
|
React.createElement(Input.Modal, null)),
|
|
111
111
|
React.createElement(SearchItem, { name: "type8", width: "half", label: i18next.t('你好811') },
|
|
112
|
-
React.createElement(
|
|
112
|
+
React.createElement(EnhanceSelect, { list: [
|
|
113
|
+
{
|
|
114
|
+
name: '有采购计划',
|
|
115
|
+
value: '1',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: '无采购计划',
|
|
119
|
+
value: '0',
|
|
120
|
+
},
|
|
121
|
+
] })),
|
|
113
122
|
React.createElement(SearchItem, { name: "type5", width: "all", label: i18next.t('你好') },
|
|
114
123
|
React.createElement(Input.TextArea, { showCount: true, rows: 3, handleSize: true })),
|
|
115
124
|
React.createElement(SearchItem, { name: "type61", width: "all", label: i18next.t('你好') },
|
|
@@ -212,6 +221,14 @@ var FormDemo = function () {
|
|
|
212
221
|
var handleRef = useRef(null);
|
|
213
222
|
var _e = useState(false), visible = _e[0], setVisible = _e[1];
|
|
214
223
|
return (React.createElement(React.Fragment, null,
|
|
224
|
+
React.createElement("button", { onClick: function () {
|
|
225
|
+
form.validateFields().then(function (values) {
|
|
226
|
+
console.log(values);
|
|
227
|
+
var data = form.getFieldsValue();
|
|
228
|
+
console.log(data);
|
|
229
|
+
form.submit();
|
|
230
|
+
});
|
|
231
|
+
} }, "\u63D0\u4EA4"),
|
|
215
232
|
React.createElement(Form, { name: "test-list", form: form, onKeyDown: function (event) {
|
|
216
233
|
if (event.key === 'Enter') {
|
|
217
234
|
event.preventDefault();
|
|
@@ -314,9 +331,27 @@ var FormDemo = function () {
|
|
|
314
331
|
], configname: "startTime", label: i18next.t('入库日期') },
|
|
315
332
|
React.createElement(DatePicker, null)),
|
|
316
333
|
React.createElement(SearchItem, { name: "warehouseId", label: i18next.t('仓库名称') },
|
|
317
|
-
React.createElement(
|
|
334
|
+
React.createElement(EnhanceSelect, { list: [
|
|
335
|
+
{
|
|
336
|
+
name: '有采购计划',
|
|
337
|
+
value: '1',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: '无采购计划',
|
|
341
|
+
value: '0',
|
|
342
|
+
},
|
|
343
|
+
] })),
|
|
318
344
|
React.createElement(SearchItem, { name: "companyId", label: i18next.t('公司名称') },
|
|
319
|
-
React.createElement(
|
|
345
|
+
React.createElement(EnhanceSelect, { list: [
|
|
346
|
+
{
|
|
347
|
+
name: '有采购计划',
|
|
348
|
+
value: '1',
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
name: '无采购计划',
|
|
352
|
+
value: '0',
|
|
353
|
+
},
|
|
354
|
+
] })),
|
|
320
355
|
React.createElement(SearchItem, { name: "companyId1", label: i18next.t('公司名称1') },
|
|
321
356
|
React.createElement(EnhanceSelect, { placeholder: i18next.t('一次性加载数据'), request: request, isCatch: true, dataKey: "id", titleKey: "name", url: "http://192.168.0.83:8000/api/zmdms-system/company/list", method: "GET" })),
|
|
322
357
|
React.createElement(SearchItem, { name: "companyId2", label: i18next.t('公司名称2') },
|
|
@@ -340,7 +375,16 @@ var FormDemo = function () {
|
|
|
340
375
|
React.createElement(SearchItem, { name: "test4", label: i18next.t('部门名称') },
|
|
341
376
|
React.createElement(Input.TextArea, { autoSize: true })),
|
|
342
377
|
React.createElement(SearchItem, { name: "type1", width: "half", noLabel: true },
|
|
343
|
-
React.createElement(
|
|
378
|
+
React.createElement(EnhanceSelect, { list: [
|
|
379
|
+
{
|
|
380
|
+
name: '有采购计划',
|
|
381
|
+
value: '1',
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
name: '无采购计划',
|
|
385
|
+
value: '0',
|
|
386
|
+
},
|
|
387
|
+
] })),
|
|
344
388
|
React.createElement(SearchItem, { name: "type2", width: "half", noLabel: true },
|
|
345
389
|
React.createElement(Input, null)),
|
|
346
390
|
React.createElement(SearchItem, { name: "mark", width: "all", label: i18next.t('备注') },
|
|
@@ -348,13 +392,40 @@ var FormDemo = function () {
|
|
|
348
392
|
React.createElement(SearchItem, { name: "mark3", width: "all", label: i18next.t('备注') },
|
|
349
393
|
React.createElement(Input.Quill, null)),
|
|
350
394
|
React.createElement(SearchItem, { name: "type3", width: "half", noLabel: true },
|
|
351
|
-
React.createElement(
|
|
395
|
+
React.createElement(EnhanceSelect, { list: [
|
|
396
|
+
{
|
|
397
|
+
name: '有采购计划',
|
|
398
|
+
value: '1',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: '无采购计划',
|
|
402
|
+
value: '0',
|
|
403
|
+
},
|
|
404
|
+
] })),
|
|
352
405
|
React.createElement(SearchItem, { name: "type4", width: "half", noLabel: true },
|
|
353
|
-
React.createElement(
|
|
354
|
-
|
|
355
|
-
|
|
406
|
+
React.createElement(EnhanceSelect, { list: [
|
|
407
|
+
{
|
|
408
|
+
name: '有采购计划',
|
|
409
|
+
value: '1',
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
name: '无采购计划',
|
|
413
|
+
value: '0',
|
|
414
|
+
},
|
|
415
|
+
] })),
|
|
416
|
+
React.createElement(SearchItem, { name: "type44", width: "half", label: i18next.t('你好22222') },
|
|
417
|
+
React.createElement(Input, null)),
|
|
356
418
|
React.createElement(SearchItem, { name: "type6", width: "half", label: i18next.t('你好6') },
|
|
357
|
-
React.createElement(
|
|
419
|
+
React.createElement(EnhanceSelect, { list: [
|
|
420
|
+
{
|
|
421
|
+
name: '有采购计划',
|
|
422
|
+
value: '1',
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
name: '无采购计划',
|
|
426
|
+
value: '0',
|
|
427
|
+
},
|
|
428
|
+
] })),
|
|
358
429
|
getCustomDom()),
|
|
359
430
|
React.createElement(SearchRight, { onSearchHandle: function () {
|
|
360
431
|
console.log(form.getFieldsValue());
|
|
@@ -104,7 +104,11 @@ function Form(props) {
|
|
|
104
104
|
}
|
|
105
105
|
}, [enableDropdownValueValidation, form]);
|
|
106
106
|
return (React.createElement(FormContext.Provider, { value: { form: form } },
|
|
107
|
-
React.createElement(AntForm, __assign({ form: form },
|
|
107
|
+
React.createElement(AntForm, __assign({ form: form }, {
|
|
108
|
+
autoComplete: 'off',
|
|
109
|
+
autoCorrect: 'off',
|
|
110
|
+
autoCapitalize: 'off',
|
|
111
|
+
}, resetProps), newChildren)));
|
|
108
112
|
}
|
|
109
113
|
function useForm(_form) {
|
|
110
114
|
var antForm = AntForm.useForm(_form)[0];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ISearchLayout } from './interface';
|
|
3
3
|
export declare const COMMON_SEARCH_KEY = "ztxk_form_common_record_search_key";
|
|
4
4
|
interface ICommonSearch {
|
|
@@ -10,9 +10,9 @@ interface ICommonSearch {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function useCommonSearch(options: ICommonSearch): {
|
|
12
12
|
commonSearchList: any[];
|
|
13
|
-
setCommonSearchList:
|
|
13
|
+
setCommonSearchList: React.Dispatch<React.SetStateAction<any[]>>;
|
|
14
14
|
currentCommonSearchKey: string;
|
|
15
|
-
setCurrentCommonSearchKey:
|
|
15
|
+
setCurrentCommonSearchKey: React.Dispatch<React.SetStateAction<string>>;
|
|
16
16
|
reTransformData: (data: any, timeKeys?: any) => any;
|
|
17
17
|
setData: (data: any) => Promise<void>;
|
|
18
18
|
deleteData: (localIndex: number) => Promise<void>;
|
|
@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import i18next from 'ztxkutils/dist/i18next';
|
|
49
|
-
import { useRef, useState, useEffect, forwardRef, useImperativeHandle, } from 'react';
|
|
49
|
+
import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, } from 'react';
|
|
50
50
|
import { Modal, message, Input } from '../../index.build';
|
|
51
51
|
import MyStorage from '../utils/MyStorage';
|
|
52
52
|
import dayjs from 'dayjs';
|