ct-component-plus 0.0.32 → 0.0.34
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ct-component-plus",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.34",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "packages/components/index.js",
|
|
7
7
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"cingta-icon": "^2.0.2",
|
|
19
|
-
"element-plus": "
|
|
19
|
+
"element-plus": "~2.3.4",
|
|
20
20
|
"vue": "^3.2.47"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
@@ -153,11 +153,17 @@ export default {
|
|
|
153
153
|
dataP = paramsHandle || dataP;
|
|
154
154
|
}
|
|
155
155
|
if (download) {
|
|
156
|
+
dataP.download = true;
|
|
156
157
|
if (isFunction(props.cbs.doDownload)) {
|
|
157
158
|
await props.cbs.doDownload(dataP);
|
|
158
159
|
} else {
|
|
159
|
-
|
|
160
|
+
try {
|
|
161
|
+
await baseDao[downlaodMethod](props.searchApi, dataP);
|
|
162
|
+
} catch (error) {
|
|
163
|
+
console.error(error);
|
|
164
|
+
}
|
|
160
165
|
}
|
|
166
|
+
state.pageLoading = false;
|
|
161
167
|
return;
|
|
162
168
|
}
|
|
163
169
|
await baseDao[searchMethod](props.searchApi, dataP)
|
|
@@ -3,7 +3,7 @@ import { buriedParamsKey, searchComponentProps } from '../../../hooks';
|
|
|
3
3
|
export const radioEmits = ["update:modelValue", buriedParamsKey];
|
|
4
4
|
export const radioProps = {
|
|
5
5
|
...searchComponentProps,
|
|
6
|
-
modelValue: String,
|
|
6
|
+
modelValue: [String, Number, Boolean],
|
|
7
7
|
options: {
|
|
8
8
|
type: Array,
|
|
9
9
|
default() {
|
|
@@ -183,7 +183,7 @@ const watchServiceHandle = async () => {
|
|
|
183
183
|
if (paramsHandle === false) return;
|
|
184
184
|
params = paramsHandle || params;
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
console.log("method", method, props.api);
|
|
187
187
|
baseDao[method](props.api, params).then((res) => {
|
|
188
188
|
const mapObj = props.mapObj || {};
|
|
189
189
|
const { list, label = "label", value = "value", self } = mapObj;
|
|
@@ -208,7 +208,9 @@ const watchServiceHandle = async () => {
|
|
|
208
208
|
cbs.afterSearch(res, optionsByApi, valueModel);
|
|
209
209
|
}
|
|
210
210
|
});
|
|
211
|
-
} catch (error) {
|
|
211
|
+
} catch (error) {
|
|
212
|
+
console.error(error);
|
|
213
|
+
}
|
|
212
214
|
}
|
|
213
215
|
if (isFunction(cbs.defineSearch)) {
|
|
214
216
|
try {
|