@peng_kai/kit 0.1.12 → 0.1.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.
|
@@ -80,10 +80,7 @@ const symbol = computed(() => presetSymbols[props.symbol!] ?? props.symbol ?? ''
|
|
|
80
80
|
<span v-if="props.approx" class="color-$amount-color">≈</span>
|
|
81
81
|
|
|
82
82
|
<!-- 符号 -->
|
|
83
|
-
<img
|
|
84
|
-
v-if="symbol.startsWith('http')" class="symbol-logo" :src="symbol"
|
|
85
|
-
:alt="props.unit"
|
|
86
|
-
>
|
|
83
|
+
<img v-if="symbol.startsWith('http')" class="symbol-logo" :src="symbol">
|
|
87
84
|
|
|
88
85
|
<!-- 图片Logo -->
|
|
89
86
|
<span v-else class="color-$amount-color">{{ symbol }}</span> <!-- 文本Logo,如法定币种符号(¥、$) -->
|
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
// --max-body-height: ;
|
|
57
57
|
// --body-height: ;
|
|
58
58
|
|
|
59
|
+
@media bp-lt-mobilel {
|
|
60
|
+
--padding-size: 16px;
|
|
61
|
+
}
|
|
62
|
+
|
|
59
63
|
.ant-modal-content {
|
|
60
64
|
padding: 0;
|
|
61
65
|
}
|
|
@@ -67,6 +71,10 @@
|
|
|
67
71
|
padding: 0 var(--padding-size);
|
|
68
72
|
border-bottom: 1px solid var(--antd-colorBorderSecondary);
|
|
69
73
|
margin: 0;
|
|
74
|
+
|
|
75
|
+
@media bp-lt-mobilel {
|
|
76
|
+
min-height: 51px;
|
|
77
|
+
}
|
|
70
78
|
}
|
|
71
79
|
|
|
72
80
|
.ant-modal-body {
|
|
@@ -95,10 +103,14 @@
|
|
|
95
103
|
// 抽屉的基本款样式
|
|
96
104
|
.ant-drawer.antd-cover__basic-drawer {
|
|
97
105
|
--padding-size: 22px;
|
|
98
|
-
|
|
106
|
+
|
|
99
107
|
// --min-body-height: ;
|
|
100
108
|
// --max-body-height: ;
|
|
101
109
|
// --body-height: ;
|
|
110
|
+
|
|
111
|
+
@media bp-lt-mobilel {
|
|
112
|
+
--padding-size: 16px;
|
|
113
|
+
}
|
|
102
114
|
|
|
103
115
|
.ant-drawer-content {
|
|
104
116
|
padding: 0;
|
|
@@ -120,6 +132,10 @@
|
|
|
120
132
|
padding: 0 var(--padding-size);
|
|
121
133
|
margin: 0;
|
|
122
134
|
border-bottom: 1px solid var(--antd-colorBorderSecondary);
|
|
135
|
+
|
|
136
|
+
@media bp-lt-mobilel {
|
|
137
|
+
min-height: 51px;
|
|
138
|
+
}
|
|
123
139
|
}
|
|
124
140
|
|
|
125
141
|
.ant-drawer-body {
|
|
@@ -48,19 +48,8 @@ export function useAntdModal<Comp extends Component>(
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
const PresetComponent = defineComponent({
|
|
51
|
-
setup() {
|
|
52
|
-
const hidden = ref(false);
|
|
53
|
-
|
|
54
|
-
watch(() => _modalProps.open, (open) => {
|
|
55
|
-
if (open)
|
|
56
|
-
hidden.value = false;
|
|
57
|
-
else
|
|
58
|
-
setTimeout(() => hidden.value = true, 500);
|
|
59
|
-
});
|
|
60
|
-
return { hidden };
|
|
61
|
-
},
|
|
62
51
|
render() {
|
|
63
|
-
return createVNode(
|
|
52
|
+
return createVNode(AntModal, _modalProps, {
|
|
64
53
|
[modalSlotName]: () => createVNode(_comp.is, compProps as any),
|
|
65
54
|
});
|
|
66
55
|
},
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export function formatPaging(): Parameters<AxiosInterceptorManager<any>['use']>
|
|
|
12
12
|
return resp;
|
|
13
13
|
|
|
14
14
|
if (result.pagination) {
|
|
15
|
-
const originData = result
|
|
15
|
+
const originData = result?.data ?? {};
|
|
16
16
|
result.data = originData.list ? { ...originData } : { list: originData };
|
|
17
17
|
result.data.pagination = result.pagination;
|
|
18
18
|
|