tntd 3.0.0-beta.19 → 3.0.0-beta.20
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/es/array-input/index.js +57 -42
- package/es/array-input/index.js.map +1 -1
- package/es/array-input/index.less +4 -1
- package/es/locale/en_US.js +3 -0
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/zh_CN.js +3 -0
- package/es/locale/zh_CN.js.map +1 -1
- package/es/table/expand.less +12 -14
- package/es/table/hooks/use-expand-fixed.js +4 -2
- package/es/table/hooks/use-expand-fixed.js.map +1 -1
- package/es/table/table.js +15 -82
- package/es/table/table.js.map +1 -1
- package/es/tntd-action/Action.js +1 -1
- package/es/tntd-action/Action.js.map +1 -1
- package/lib/array-input/index.d.ts +1 -12
- package/lib/array-input/index.d.ts.map +1 -1
- package/lib/array-input/index.js +62 -55
- package/lib/array-input/index.js.map +1 -1
- package/lib/array-input/index.less +4 -1
- package/lib/locale/default.d.ts +3 -0
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +3 -0
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +3 -0
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/table/expand.less +12 -14
- package/lib/table/hooks/use-expand-fixed.d.ts.map +1 -1
- package/lib/table/hooks/use-expand-fixed.js +6 -4
- package/lib/table/hooks/use-expand-fixed.js.map +1 -1
- package/lib/table/table.d.ts +1 -2
- package/lib/table/table.d.ts.map +1 -1
- package/lib/table/table.js +15 -78
- package/lib/table/table.js.map +1 -1
- package/lib/tntd-action/Action.d.ts +1 -1
- package/lib/tntd-action/Action.js +1 -1
- package/lib/tntd-action/Action.js.map +1 -1
- package/package.json +2 -2
- package/es/array-input/1.png +0 -1
- package/es/array-input/111.gif +0 -0
- package/es/array-input/icon.js +0 -25
- package/es/array-input/icon.js.map +0 -1
- package/es/query-form/Field/Composition/FieldPopover.js +0 -328
- package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/es/query-form/Field/Composition/FieldPopover.less +0 -35
- package/es/query-form/Field/Composition/Select.js +0 -107
- package/es/query-form/Field/Composition/Select.js.map +0 -1
- package/es/query-form/Field/Composition/index.js +0 -210
- package/es/query-form/Field/Composition/index.js.map +0 -1
- package/es/query-form/Field/Composition/index.less +0 -114
- package/es/query-form/Field/Composition/utils.js +0 -132
- package/es/query-form/Field/Composition/utils.js.map +0 -1
- package/es/query-form2/Field/Checkbox.js +0 -23
- package/es/query-form2/Field/Checkbox.js.map +0 -1
- package/es/query-form2/Field/Composition/FieldPopover.js +0 -308
- package/es/query-form2/Field/Composition/FieldPopover.js.map +0 -1
- package/es/query-form2/Field/Composition/FieldPopover.less +0 -35
- package/es/query-form2/Field/Composition/Select.js +0 -104
- package/es/query-form2/Field/Composition/Select.js.map +0 -1
- package/es/query-form2/Field/Composition/index.js +0 -299
- package/es/query-form2/Field/Composition/index.js.map +0 -1
- package/es/query-form2/Field/Composition/index.less +0 -114
- package/es/query-form2/Field/Composition/utils.js +0 -19
- package/es/query-form2/Field/Composition/utils.js.map +0 -1
- package/es/query-form2/Field/Select.js +0 -59
- package/es/query-form2/Field/Select.js.map +0 -1
- package/es/query-form2/Field/SelectInput.js +0 -87
- package/es/query-form2/Field/SelectInput.js.map +0 -1
- package/es/query-form2/Field/fieldsMap.js +0 -28
- package/es/query-form2/Field/fieldsMap.js.map +0 -1
- package/es/query-form2/Field/index.js +0 -117
- package/es/query-form2/Field/index.js.map +0 -1
- package/es/query-form2/createActions.js +0 -47
- package/es/query-form2/createActions.js.map +0 -1
- package/es/query-form2/index.js +0 -345
- package/es/query-form2/index.js.map +0 -1
- package/es/query-form2/index.less +0 -136
- package/es/query-form2/useForm.js +0 -6
- package/es/query-form2/useForm.js.map +0 -1
- package/lib/array-input/1.png +0 -1
- package/lib/array-input/111.gif +0 -0
- package/lib/array-input/icon.d.ts +0 -4
- package/lib/array-input/icon.d.ts.map +0 -1
- package/lib/array-input/icon.js +0 -32
- package/lib/array-input/icon.js.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -19
- package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.js +0 -368
- package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form/Field/Composition/Select.d.ts +0 -4
- package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/Select.js +0 -131
- package/lib/query-form/Field/Composition/Select.js.map +0 -1
- package/lib/query-form/Field/Composition/index.d.ts +0 -10
- package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/index.js +0 -257
- package/lib/query-form/Field/Composition/index.js.map +0 -1
- package/lib/query-form/Field/Composition/index.less +0 -114
- package/lib/query-form/Field/Composition/utils.d.ts +0 -22
- package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/utils.js +0 -147
- package/lib/query-form/Field/Composition/utils.js.map +0 -1
- package/lib/query-form2/Field/Checkbox.d.ts +0 -8
- package/lib/query-form2/Field/Checkbox.d.ts.map +0 -1
- package/lib/query-form2/Field/Checkbox.js +0 -28
- package/lib/query-form2/Field/Checkbox.js.map +0 -1
- package/lib/query-form2/Field/Composition/FieldPopover.d.ts +0 -19
- package/lib/query-form2/Field/Composition/FieldPopover.d.ts.map +0 -1
- package/lib/query-form2/Field/Composition/FieldPopover.js +0 -347
- package/lib/query-form2/Field/Composition/FieldPopover.js.map +0 -1
- package/lib/query-form2/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form2/Field/Composition/Select.d.ts +0 -4
- package/lib/query-form2/Field/Composition/Select.d.ts.map +0 -1
- package/lib/query-form2/Field/Composition/Select.js +0 -128
- package/lib/query-form2/Field/Composition/Select.js.map +0 -1
- package/lib/query-form2/Field/Composition/index.d.ts +0 -14
- package/lib/query-form2/Field/Composition/index.d.ts.map +0 -1
- package/lib/query-form2/Field/Composition/index.js +0 -349
- package/lib/query-form2/Field/Composition/index.js.map +0 -1
- package/lib/query-form2/Field/Composition/index.less +0 -114
- package/lib/query-form2/Field/Composition/utils.d.ts +0 -6
- package/lib/query-form2/Field/Composition/utils.d.ts.map +0 -1
- package/lib/query-form2/Field/Composition/utils.js +0 -27
- package/lib/query-form2/Field/Composition/utils.js.map +0 -1
- package/lib/query-form2/Field/Select.d.ts +0 -4
- package/lib/query-form2/Field/Select.d.ts.map +0 -1
- package/lib/query-form2/Field/Select.js +0 -80
- package/lib/query-form2/Field/Select.js.map +0 -1
- package/lib/query-form2/Field/SelectInput.d.ts +0 -4
- package/lib/query-form2/Field/SelectInput.d.ts.map +0 -1
- package/lib/query-form2/Field/SelectInput.js +0 -100
- package/lib/query-form2/Field/SelectInput.js.map +0 -1
- package/lib/query-form2/Field/fieldsMap.d.ts +0 -27
- package/lib/query-form2/Field/fieldsMap.d.ts.map +0 -1
- package/lib/query-form2/Field/fieldsMap.js +0 -35
- package/lib/query-form2/Field/fieldsMap.js.map +0 -1
- package/lib/query-form2/Field/index.d.ts +0 -14
- package/lib/query-form2/Field/index.d.ts.map +0 -1
- package/lib/query-form2/Field/index.js +0 -147
- package/lib/query-form2/Field/index.js.map +0 -1
- package/lib/query-form2/createActions.d.ts +0 -14
- package/lib/query-form2/createActions.d.ts.map +0 -1
- package/lib/query-form2/createActions.js +0 -54
- package/lib/query-form2/createActions.js.map +0 -1
- package/lib/query-form2/index.d.ts +0 -36
- package/lib/query-form2/index.d.ts.map +0 -1
- package/lib/query-form2/index.js +0 -385
- package/lib/query-form2/index.js.map +0 -1
- package/lib/query-form2/index.less +0 -136
- package/lib/query-form2/useForm.d.ts +0 -13
- package/lib/query-form2/useForm.d.ts.map +0 -1
- package/lib/query-form2/useForm.js +0 -13
- package/lib/query-form2/useForm.js.map +0 -1
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
.tnt-queryform {
|
|
2
|
-
display: flex;
|
|
3
|
-
|
|
4
|
-
&-extra {
|
|
5
|
-
line-height: 32px;
|
|
6
|
-
margin-left: @margin-sm;
|
|
7
|
-
& > * {
|
|
8
|
-
margin-left: @margin-xs;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-actions {
|
|
13
|
-
align-items: center;
|
|
14
|
-
display: inline-block;
|
|
15
|
-
height: 32px;
|
|
16
|
-
line-height: 32px;
|
|
17
|
-
position: absolute;
|
|
18
|
-
right: 0;
|
|
19
|
-
|
|
20
|
-
& > *:not(.expand-link) {
|
|
21
|
-
margin-right: 10px;
|
|
22
|
-
}
|
|
23
|
-
& > .expand-link {
|
|
24
|
-
padding: 0;
|
|
25
|
-
margin-right: 0;
|
|
26
|
-
}
|
|
27
|
-
& > .ant-badge {
|
|
28
|
-
.tnt-icon {
|
|
29
|
-
margin-right: @margin-xs;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ant-form {
|
|
35
|
-
display: inline-block;
|
|
36
|
-
margin-bottom: @margin-sm;
|
|
37
|
-
display: flex;
|
|
38
|
-
flex: 1;
|
|
39
|
-
&.ant-form-inline {
|
|
40
|
-
flex-wrap: unset;
|
|
41
|
-
position: relative;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
& > div:nth-child(1) {
|
|
45
|
-
height: 32px;
|
|
46
|
-
overflow: hidden;
|
|
47
|
-
.ant-form-item-label {
|
|
48
|
-
label {
|
|
49
|
-
// bottom: 4px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.expanded {
|
|
55
|
-
& > div:nth-child(1) {
|
|
56
|
-
height: auto !important;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&.showMore {
|
|
61
|
-
& > div:nth-child(1) {
|
|
62
|
-
.ant-form-item {
|
|
63
|
-
margin-bottom: @margin-sm;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
& > div:nth-child(2) {
|
|
69
|
-
display: flex;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&.ant-form-inline .ant-form-item {
|
|
73
|
-
margin-right: 10px;
|
|
74
|
-
display: inline-block;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ant-form-item-control {
|
|
78
|
-
// min-width: 160px;
|
|
79
|
-
line-height: unset;
|
|
80
|
-
.ant-calendar-picker-input {
|
|
81
|
-
padding: 0 @padding-sm;
|
|
82
|
-
}
|
|
83
|
-
.ant-form-item-children {
|
|
84
|
-
& > .ant-input,
|
|
85
|
-
& > .ant-input-affix-wrapper {
|
|
86
|
-
width: 160px;
|
|
87
|
-
// width: 200px;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&-drawer {
|
|
94
|
-
margin-top: @margin-xxl;
|
|
95
|
-
&.large-size {
|
|
96
|
-
margin-top: 60px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&.ant-drawer.ant-drawer-open {
|
|
100
|
-
.ant-drawer-mask {
|
|
101
|
-
opacity: 0;
|
|
102
|
-
background: unset;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
.ant-drawer-body {
|
|
106
|
-
.ant-form-item {
|
|
107
|
-
display: block;
|
|
108
|
-
margin-right: 0;
|
|
109
|
-
margin-bottom: @margin-md;
|
|
110
|
-
width: 100%;
|
|
111
|
-
}
|
|
112
|
-
.ant-form-item-label {
|
|
113
|
-
display: block;
|
|
114
|
-
text-align: left;
|
|
115
|
-
line-height: 22px;
|
|
116
|
-
margin-bottom: 10px;
|
|
117
|
-
}
|
|
118
|
-
.ant-form-item-control-wrapper,
|
|
119
|
-
.ant-form-item-control,
|
|
120
|
-
.ant-calendar-picker,
|
|
121
|
-
.ant-input {
|
|
122
|
-
min-width: 100%;
|
|
123
|
-
width: 100%;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
& > .ant-btn {
|
|
127
|
-
display: block;
|
|
128
|
-
width: 100%;
|
|
129
|
-
margin-bottom: 10px;
|
|
130
|
-
&.ant-btn-primary {
|
|
131
|
-
margin-top: @margin-md;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default function useForm(): {
|
|
2
|
-
setData(key: any, value: any): void;
|
|
3
|
-
getData(key: any): void;
|
|
4
|
-
setValues(values: any): void;
|
|
5
|
-
getValues(): {};
|
|
6
|
-
resetValues(): void;
|
|
7
|
-
setValue(name: any, value: any): void;
|
|
8
|
-
getValue(name: any): any;
|
|
9
|
-
on: (eventName: any, callback: any) => void;
|
|
10
|
-
emit: (...args: any[]) => void;
|
|
11
|
-
off: (...args: any[]) => void;
|
|
12
|
-
}[];
|
|
13
|
-
//# sourceMappingURL=useForm.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../src/query-form2/useForm.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;IAIC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = useForm;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _createActions = _interopRequireDefault(require("./createActions"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
-
function useForm() {
|
|
11
|
-
var form = (0, _react.useRef)((0, _createActions["default"])());
|
|
12
|
-
return [form.current];
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.js","sourceRoot":"","sources":["../../src/query-form2/useForm.js"],"names":[],"mappings":";;;;;AAAA,iCAA8B;AAC9B,oEAA2C;AAE3C,SAAwB,OAAO;IAC7B,MAAM,IAAI,GAAG,IAAA,cAAM,EAAC,IAAA,uBAAa,GAAE,CAAC,CAAA;IAEpC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AACvB,CAAC;AAJD,0BAIC","sourcesContent":["import { useRef } from 'react'\nimport createActions from './createActions'\n\nexport default function useForm() {\n const form = useRef(createActions())\n\n return [form.current]\n}\n"]}
|