tianheng-ui 0.1.11 → 0.1.12
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/lib/tianheng-ui.js +13 -14
- package/package.json +1 -1
- package/packages/FormMaking/GenerateForm.vue +6 -1
- package/packages/FormMaking/GenerateFormItem.vue +7 -3
- package/packages/FormMaking/GenerateFormItemH5.vue +1 -1
- package/packages/FormMaking/WidgetConfig.vue +35 -48
- package/packages/FormMaking/WidgetTools.vue +538 -0
- package/packages/FormMaking/config/index.js +6 -0
- package/packages/FormMaking/custom/config.js +21 -24
- package/packages/FormMaking/custom/configs/button.vue +24 -25
- package/packages/FormMaking/custom/configs/cascader.vue +7 -7
- package/packages/FormMaking/custom/configs/checkbox.vue +23 -22
- package/packages/FormMaking/custom/configs/color.vue +3 -3
- package/packages/FormMaking/custom/configs/date.vue +3 -3
- package/packages/FormMaking/custom/configs/input.vue +3 -3
- package/packages/FormMaking/custom/configs/number.vue +3 -3
- package/packages/FormMaking/custom/configs/radio.vue +23 -19
- package/packages/FormMaking/custom/configs/rate.vue +3 -3
- package/packages/FormMaking/custom/configs/select.vue +25 -20
- package/packages/FormMaking/custom/configs/slider.vue +3 -3
- package/packages/FormMaking/custom/configs/switch.vue +3 -3
- package/packages/FormMaking/custom/configs/tabs.vue +12 -17
- package/packages/FormMaking/custom/configs/textarea.vue +3 -3
- package/packages/FormMaking/custom/configs/time.vue +3 -3
- package/packages/FormMaking/custom/configs/upload.vue +5 -5
- package/packages/FormMaking/custom/items/button.vue +35 -1
- package/packages/FormMaking/custom/items/checkbox.vue +1 -1
- package/packages/FormMaking/custom/mixins/index.js +12 -12
- package/packages/FormMaking/index.vue +91 -468
- package/packages/FormMaking/styles/index.scss +0 -21
- package/packages/FormMaking/util/request.js +9 -12
@@ -1,28 +1,25 @@
|
|
1
|
-
import axios from
|
1
|
+
import axios from "axios";
|
2
2
|
|
3
3
|
const request = axios.create({
|
4
4
|
withCredentials: false
|
5
|
-
})
|
5
|
+
});
|
6
6
|
|
7
7
|
request.interceptors.request.use(
|
8
8
|
config => {
|
9
|
-
return config
|
9
|
+
return config;
|
10
10
|
},
|
11
11
|
error => {
|
12
|
-
|
13
|
-
return Promise.reject(new Error(error).message)
|
12
|
+
return Promise.reject(new Error(error).message);
|
14
13
|
}
|
15
|
-
)
|
14
|
+
);
|
16
15
|
|
17
16
|
request.interceptors.response.use(
|
18
17
|
response => {
|
19
|
-
|
20
|
-
return response.data
|
18
|
+
return response.data;
|
21
19
|
},
|
22
20
|
error => {
|
23
|
-
|
24
|
-
return Promise.reject(new Error(error).message)
|
21
|
+
return Promise.reject(new Error(error).message);
|
25
22
|
}
|
26
|
-
)
|
23
|
+
);
|
27
24
|
|
28
|
-
export default request
|
25
|
+
export default request;
|