sun-form-v3 1.0.66 → 1.0.68

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "sun-form-v3",
3
3
  "private": false,
4
- "version": "1.0.66",
4
+ "version": "1.0.68",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "src"
8
8
  ],
9
- "main": "src/index.js",
10
- "module": "src/index.js",
9
+ "main": "src/index2.js",
10
+ "module": "src/index2.js",
11
11
  "exports": {
12
- ".": "./src/index.js"
12
+ ".": "./src/index2.js"
13
13
  },
14
14
  "scripts": {
15
15
  "dev": "vite",
@@ -5,7 +5,6 @@
5
5
  </template>
6
6
 
7
7
  <script setup>
8
- import draggable from "vuedraggable";
9
8
  import { ref, reactive, toRaw, markRaw } from 'vue';
10
9
  let props = defineProps({
11
10
  designer: {
@@ -60,7 +60,7 @@
60
60
 
61
61
 
62
62
  <script setup>
63
- import draggable from "vuedraggable";
63
+ import draggable from "vuedraggable/src/vuedraggable";
64
64
  import commonCodeEditor from '../widgetCommonComps/commonCodeEditor/editor.vue'
65
65
  import { ref, reactive, watch, toRaw } from 'vue';
66
66
  import widgetConfig from '../../widgetConfig';
@@ -18,7 +18,7 @@
18
18
  </template>
19
19
 
20
20
  <script setup>
21
- import draggable from "vuedraggable";
21
+ import draggable from "vuedraggable/src/vuedraggable";
22
22
  import { ref, computed, watch } from 'vue';
23
23
 
24
24
  defineOptions({ name: "commonJsonInput" })
@@ -14,7 +14,7 @@
14
14
 
15
15
  <script setup>
16
16
  import { ref, reactive } from 'vue';
17
- import draggable from "vuedraggable";
17
+ import draggable from "vuedraggable/src/vuedraggable";
18
18
  let props = defineProps({
19
19
  designer: {
20
20
  type: Object,
@@ -12,7 +12,7 @@
12
12
 
13
13
  <script setup>
14
14
  import { ref, reactive, computed } from 'vue';
15
- import draggable from "vuedraggable";
15
+ import draggable from "vuedraggable/src/vuedraggable";
16
16
  let props = defineProps({
17
17
  designer: {
18
18
  type: Object,
package/src/http.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import axios from 'axios'
2
- import qs from 'qs'
2
+ // import qs from 'qs'
3
+ import XEUtils from 'xe-utils'
3
4
  import {
4
5
  ElNotification
5
6
  } from 'element-plus'
@@ -223,7 +224,7 @@ class Http {
223
224
  return this.send({
224
225
  url: url,
225
226
  method: 'post',
226
- data: qs.stringify(this.paramHandle(data)),
227
+ data: XEUtils.serialize(this.paramHandle(data)),
227
228
  headers: {
228
229
  ...this.formDataHeader,
229
230
  ...headers
@@ -261,7 +262,7 @@ class Http {
261
262
  return this.send({
262
263
  url: url,
263
264
  method: 'put',
264
- data: qs.stringify(this.paramHandle(data)),
265
+ data: XEUtils.serialize(this.paramHandle(data)),
265
266
  headers: {
266
267
  ...this.formDataHeader,
267
268
  ...headers
@@ -280,7 +281,7 @@ class Http {
280
281
  return this.send({
281
282
  url: url,
282
283
  method: 'patch',
283
- data: qs.stringify(this.paramHandle(data)),
284
+ data: XEUtils.serialize(this.paramHandle(data)),
284
285
  headers: {
285
286
  ...this.formDataHeader,
286
287
  ...headers