@tmagic/form 1.6.1 → 1.7.0-beta.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/dist/style.css +23 -3
- package/dist/tmagic-form.js +1706 -1496
- package/dist/tmagic-form.umd.cjs +1739 -1525
- package/package.json +4 -4
- package/src/Form.vue +18 -5
- package/src/containers/Container.vue +109 -134
- package/src/containers/Fieldset.vue +31 -7
- package/src/containers/FlexLayout.vue +59 -0
- package/src/containers/Tabs.vue +11 -1
- package/src/fields/Cascader.vue +25 -16
- package/src/fields/Checkbox.vue +3 -3
- package/src/fields/CheckboxGroup.vue +1 -1
- package/src/fields/ColorPicker.vue +2 -2
- package/src/fields/Date.vue +2 -2
- package/src/fields/DateTime.vue +2 -2
- package/src/fields/Daterange.vue +2 -2
- package/src/fields/Number.vue +2 -2
- package/src/fields/NumberRange.vue +6 -6
- package/src/fields/RadioGroup.vue +7 -15
- package/src/fields/Select.vue +2 -2
- package/src/fields/Switch.vue +2 -2
- package/src/fields/Text.vue +20 -8
- package/src/fields/Textarea.vue +2 -2
- package/src/fields/Time.vue +2 -2
- package/src/fields/Timerange.vue +2 -2
- package/src/index.ts +5 -2
- package/src/table/ActionsColumn.vue +97 -0
- package/src/table/SortColumn.vue +101 -0
- package/src/table/Table.vue +170 -0
- package/src/table/type.ts +18 -0
- package/src/table/useAdd.ts +111 -0
- package/src/table/useFullscreen.ts +28 -0
- package/src/table/useImport.ts +68 -0
- package/src/table/usePagination.ts +30 -0
- package/src/table/useSelection.ts +34 -0
- package/src/table/useSortable.ts +48 -0
- package/src/table/useTableColumns.ts +194 -0
- package/src/theme/container.scss +17 -0
- package/src/theme/form.scss +15 -3
- package/src/utils/form.ts +56 -2
- package/types/index.d.ts +52 -36
- package/src/containers/Table.vue +0 -681
package/dist/style.css
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.m-form-container.has-tip {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: baseline;
|
|
9
|
+
}
|
|
10
|
+
.m-form-container.has-tip .tmagic-design-form-item {
|
|
11
|
+
flex: 1;
|
|
12
|
+
}
|
|
13
|
+
.m-form-container .tmagic-design-form-item.show-diff {
|
|
14
|
+
background: #f7dadd;
|
|
15
|
+
}
|
|
16
|
+
|
|
6
17
|
.m-form-dialog .el-dialog__body {
|
|
7
18
|
padding: 0 !important;
|
|
8
19
|
}
|
|
@@ -40,18 +51,27 @@
|
|
|
40
51
|
max-width: 50%;
|
|
41
52
|
height: 100%;
|
|
42
53
|
}
|
|
43
|
-
.m-form .
|
|
54
|
+
.m-form .tmagic-design-table .cell > div.m-form-container {
|
|
44
55
|
display: block;
|
|
45
56
|
}
|
|
46
|
-
.m-form .
|
|
57
|
+
.m-form .tmagic-design-table .cell > div.m-form-container.has-tip {
|
|
58
|
+
display: flex;
|
|
59
|
+
}
|
|
60
|
+
.m-form .tmagic-design-tabs {
|
|
47
61
|
margin-bottom: 10px;
|
|
48
62
|
}
|
|
49
|
-
.m-form .
|
|
63
|
+
.m-form .tmagic-design-form-item.tmagic-form-hidden > .el-form-item__label {
|
|
50
64
|
display: none;
|
|
51
65
|
}
|
|
52
66
|
.m-form .t-form__item.tmagic-form-hidden > .t-form__label {
|
|
53
67
|
display: none;
|
|
54
68
|
}
|
|
69
|
+
.m-form .t-form__item.tmagic-form-hidden > .t-form__controls {
|
|
70
|
+
margin-left: 0 !important;
|
|
71
|
+
}
|
|
72
|
+
.m-form.t-form:not(.t-form-inline) .t-form__item:last-of-type {
|
|
73
|
+
margin-bottom: var(--td-comp-margin-xxl);
|
|
74
|
+
}
|
|
55
75
|
|
|
56
76
|
.magic-datetime-picker-popper .el-picker-panel__footer button:first-child {
|
|
57
77
|
display: none;
|