@xuekl/cli-components 1.2.0 → 1.2.2
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/PaddingBox.vue +27 -8
- package/XklDict.vue +1 -1
- package/XklForm.vue +9 -0
- package/package.json +1 -1
package/PaddingBox.vue
CHANGED
|
@@ -1,19 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="padding-box">
|
|
3
|
-
<
|
|
2
|
+
<div class="padding-box" :class="['pb-' + (padding || 22)]">
|
|
3
|
+
<div class="content">
|
|
4
|
+
<slot></slot>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="end">
|
|
7
|
+
<slot name="end"></slot>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
4
10
|
</div>
|
|
5
11
|
</template>
|
|
6
12
|
<script lang="ts">
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@Options({
|
|
13
|
+
export default {
|
|
10
14
|
name: 'PaddingBox'
|
|
11
|
-
}
|
|
12
|
-
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
<script setup lang="ts">
|
|
18
|
+
const props = defineProps(['padding'])
|
|
19
|
+
const { padding } = props
|
|
13
20
|
</script>
|
|
14
21
|
|
|
15
22
|
<style lang="scss" scoped>
|
|
16
23
|
.padding-box {
|
|
17
|
-
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
|
|
27
|
+
.content {
|
|
28
|
+
flex: 1;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.end {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
18
37
|
}
|
|
19
38
|
</style>
|
package/XklDict.vue
CHANGED
|
@@ -18,7 +18,7 @@ const dataList: Ref<{ dictCode: string, dictLabel: string, dictValue: string | n
|
|
|
18
18
|
|
|
19
19
|
onBeforeMount(() => {
|
|
20
20
|
http({
|
|
21
|
-
url: http.adornUrl(
|
|
21
|
+
url: http.adornUrl(`/system/dict/data/type/${config.dict}`),
|
|
22
22
|
method: 'get',
|
|
23
23
|
params: http.adornParams({})
|
|
24
24
|
}).then(({ data }) => {
|
package/XklForm.vue
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-form ref="XklFormRef" :model="form" :label-width="opts.labelWidth">
|
|
3
|
+
<div class="hide-input">
|
|
4
|
+
<input type="text" />
|
|
5
|
+
<input type="password" />
|
|
6
|
+
</div>
|
|
3
7
|
<el-row>
|
|
4
8
|
<template v-for="item in formList" :key="item.prop">
|
|
5
9
|
<el-col :span="item.span" v-if="item.show()">
|
|
@@ -225,4 +229,9 @@ onMounted(() => {
|
|
|
225
229
|
width: 100%;
|
|
226
230
|
text-align: right;
|
|
227
231
|
}
|
|
232
|
+
|
|
233
|
+
.hide-input {
|
|
234
|
+
position: absolute;
|
|
235
|
+
left: -5000px;
|
|
236
|
+
}
|
|
228
237
|
</style>
|