@tmagic/form 1.5.11 → 1.5.13
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/tmagic-form.js +24 -20
- package/dist/tmagic-form.umd.cjs +63 -289
- package/package.json +3 -3
- package/src/containers/Table.vue +2 -0
- package/types/index.d.ts +1372 -3037
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.5.
|
|
2
|
+
"version": "1.5.13",
|
|
3
3
|
"name": "@tmagic/form",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"vue": ">=3.5.0",
|
|
53
53
|
"typescript": "*",
|
|
54
|
-
"@tmagic/design": "1.5.
|
|
55
|
-
"@tmagic/utils": "1.5.
|
|
54
|
+
"@tmagic/design": "1.5.13",
|
|
55
|
+
"@tmagic/utils": "1.5.13"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"typescript": {
|
package/src/containers/Table.vue
CHANGED
|
@@ -320,6 +320,8 @@ const rowDrop = () => {
|
|
|
320
320
|
}
|
|
321
321
|
sortable = Sortable.create(tBodyEl, {
|
|
322
322
|
draggable: '.tmagic-design-table-row',
|
|
323
|
+
filter: 'input', // 表单组件选字操作和触发拖拽会冲突,优先保证选字操作
|
|
324
|
+
preventOnFilter: false, // 允许选字
|
|
323
325
|
direction: 'vertical',
|
|
324
326
|
onEnd: ({ newIndex, oldIndex }: SortableEvent) => {
|
|
325
327
|
if (typeof newIndex === 'undefined') return;
|