htui-yllkbz 1.5.4 → 1.5.6
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/htui.common.js +36 -34
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.css +1 -1
- package/lib/htui.umd.js +36 -34
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +5 -5
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/packages/HtDrawer/index.vue +51 -26
- package/src/packages/HtMore/index.vue +7 -46
- package/src/views/About.vue +8 -2
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2022-09-28 10:24:08
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2023-05-
|
|
7
|
+
* @LastEditTime: 2023-05-23 13:54:34
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<el-drawer
|
|
11
11
|
:visible.sync="state.visible"
|
|
12
|
-
class="
|
|
12
|
+
:class="htClass"
|
|
13
13
|
:direction="direction"
|
|
14
14
|
:custom-class="customClass"
|
|
15
15
|
:append-to-body="appendToBody"
|
|
@@ -25,14 +25,16 @@
|
|
|
25
25
|
>
|
|
26
26
|
<span slot="title">
|
|
27
27
|
<slot name="title"
|
|
28
|
-
><span style="font-size:18px;font-weight:bold">{{
|
|
28
|
+
><span style="font-size:18px;font-weight:bold;color:#323433">{{
|
|
29
|
+
title
|
|
30
|
+
}}</span></slot
|
|
29
31
|
>
|
|
30
32
|
</span>
|
|
31
33
|
|
|
32
34
|
<div
|
|
33
35
|
style="overflow:hidden;padding:0 16px"
|
|
34
36
|
:style="
|
|
35
|
-
`height:calc(100vh - ${withFooter ? '
|
|
37
|
+
`height:calc(100vh - ${withFooter ? '56px' : '0px'} - ${
|
|
36
38
|
withHeader ? (htClass === 'ht-new-drawer' ? '60px' : '90px') : '0px'
|
|
37
39
|
})`
|
|
38
40
|
"
|
|
@@ -41,39 +43,61 @@
|
|
|
41
43
|
<slot></slot>
|
|
42
44
|
</el-scrollbar>
|
|
43
45
|
</div>
|
|
44
|
-
<el-divider v-if="withFooter"></el-divider>
|
|
45
|
-
<
|
|
46
|
-
<
|
|
46
|
+
<!-- <el-divider v-if="withFooter"></el-divider> -->
|
|
47
|
+
<div style="margin-top:16px">
|
|
48
|
+
<slot name="foot" v-if="withFooter">
|
|
47
49
|
<template v-if="!footerRight">
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
<template v-if="!readonly">
|
|
51
|
+
<el-button
|
|
52
|
+
style="margin-left:24px"
|
|
53
|
+
:disabled="disabled"
|
|
54
|
+
:loading="loading"
|
|
55
|
+
type="primary"
|
|
56
|
+
@click="onOk"
|
|
57
|
+
>{{ okText }}</el-button
|
|
58
|
+
>
|
|
59
|
+
<el-button
|
|
60
|
+
:loading="loading"
|
|
61
|
+
style="margin-left:16px"
|
|
62
|
+
@click="onCancel"
|
|
63
|
+
>{{ cancelText }}</el-button
|
|
64
|
+
>
|
|
65
|
+
</template>
|
|
51
66
|
<el-button
|
|
52
|
-
|
|
53
|
-
:
|
|
54
|
-
|
|
55
|
-
@click="
|
|
56
|
-
>{{
|
|
67
|
+
v-else
|
|
68
|
+
:loading="loading"
|
|
69
|
+
style="margin-left:24px"
|
|
70
|
+
@click="onCancel"
|
|
71
|
+
>{{ cancelText }}</el-button
|
|
57
72
|
>
|
|
58
73
|
</template>
|
|
59
74
|
<template v-else>
|
|
75
|
+
<template v-if="!readonly"
|
|
76
|
+
><el-button
|
|
77
|
+
style="margin-right:24px;float:right"
|
|
78
|
+
type="primary"
|
|
79
|
+
:loading="loading"
|
|
80
|
+
:disabled="disabled"
|
|
81
|
+
@click="onOk"
|
|
82
|
+
>{{ okText }}</el-button
|
|
83
|
+
>
|
|
84
|
+
<el-button
|
|
85
|
+
:loading="loading"
|
|
86
|
+
style="margin-right:16px;float:right"
|
|
87
|
+
@click="onCancel"
|
|
88
|
+
>{{ cancelText }}</el-button
|
|
89
|
+
>
|
|
90
|
+
</template>
|
|
60
91
|
<el-button
|
|
61
|
-
|
|
62
|
-
type="primary"
|
|
92
|
+
v-else
|
|
63
93
|
:loading="loading"
|
|
64
|
-
|
|
65
|
-
@click="onOk"
|
|
66
|
-
>{{ okText }}</el-button
|
|
67
|
-
>
|
|
68
|
-
<el-button
|
|
69
|
-
:loading="loading"
|
|
70
|
-
style="margin-right:20px;float:right"
|
|
94
|
+
style="margin-left:24px"
|
|
71
95
|
@click="onCancel"
|
|
72
96
|
>{{ cancelText }}</el-button
|
|
73
97
|
>
|
|
74
98
|
</template>
|
|
75
|
-
</
|
|
76
|
-
</
|
|
99
|
+
</slot>
|
|
100
|
+
</div>
|
|
77
101
|
</el-drawer>
|
|
78
102
|
</template>
|
|
79
103
|
<script lang="ts">
|
|
@@ -95,6 +119,7 @@ export default class Index extends Vue {
|
|
|
95
119
|
@Prop() title!: string;
|
|
96
120
|
@Prop() htClass!: string;
|
|
97
121
|
@Prop() loading!: boolean;
|
|
122
|
+
@Prop() readonly!: boolean;
|
|
98
123
|
/** 是否显示隐藏来自父级传参 */
|
|
99
124
|
@Prop() value!: boolean;
|
|
100
125
|
/** 展开方式 参考elemen UI */
|
|
@@ -4,10 +4,15 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2022-09-28 10:24:08
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2023-
|
|
7
|
+
* @LastEditTime: 2023-05-19 09:23:16
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
|
-
<el-dropdown
|
|
10
|
+
<el-dropdown
|
|
11
|
+
@click="$emit('click', $event)"
|
|
12
|
+
@visible-change="(e) => $emit('visible-change', e)"
|
|
13
|
+
:trigger="trigger"
|
|
14
|
+
@command="handleCommand($event, 'command')"
|
|
15
|
+
>
|
|
11
16
|
<span class="el-dropdown-link" style="cursor:pointer;color:var(--primary)">
|
|
12
17
|
<slot>
|
|
13
18
|
<i class="ht-icon-more el-icon-more"></i>
|
|
@@ -18,51 +23,7 @@
|
|
|
18
23
|
<el-dropdown-item v-if="!!showTabs.includes('edit')" command="edit"
|
|
19
24
|
>编辑</el-dropdown-item
|
|
20
25
|
>
|
|
21
|
-
<!-- <el-popconfirm
|
|
22
|
-
@confirm="handleCommand('delete', 'confirm')"
|
|
23
|
-
v-if="!!showTabs.includes('delete')"
|
|
24
|
-
icon="el-icon-warning"
|
|
25
|
-
icon-color="var(--danger)"
|
|
26
|
-
:title="`删除后无法回复,请确认是否删除${tips ? `【${tips}】` : ''}?`"
|
|
27
|
-
>
|
|
28
|
-
<el-dropdown-item slot="reference" command="delete"
|
|
29
|
-
>删除</el-dropdown-item
|
|
30
|
-
>
|
|
31
|
-
</el-popconfirm> -->
|
|
32
|
-
<!-- <el-popover
|
|
33
|
-
width="200"
|
|
34
|
-
trigger="click"
|
|
35
|
-
v-model="state.visible"
|
|
36
|
-
v-if="!!showTabs.includes('delete')"
|
|
37
|
-
>
|
|
38
|
-
<div>
|
|
39
|
-
<div style="display:flex;margin-top:12px">
|
|
40
|
-
<i
|
|
41
|
-
class="el-icon-warning"
|
|
42
|
-
style="color:var(--danger);font-size:16px"
|
|
43
|
-
></i>
|
|
44
|
-
<p style="padding:0 0 0 6px;margin:0">
|
|
45
|
-
{{ `删除后无法恢复,请确认是否删除${tips ? `【${tips}】` : ''}?` }}
|
|
46
|
-
</p>
|
|
47
|
-
</div>
|
|
48
|
-
<div style="text-align:right;width:100%;margin-top:16px">
|
|
49
|
-
<el-button
|
|
50
|
-
type="danger"
|
|
51
|
-
size="mini"
|
|
52
|
-
@click="handleCommand('delete', 'confirm')"
|
|
53
|
-
style=""
|
|
54
|
-
>确认删除</el-button
|
|
55
|
-
>
|
|
56
|
-
<el-button size="mini" @click="state.visible = false"
|
|
57
|
-
>取消</el-button
|
|
58
|
-
>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
26
|
|
|
62
|
-
<el-dropdown-item slot="reference" command="delete"
|
|
63
|
-
>删除</el-dropdown-item
|
|
64
|
-
>
|
|
65
|
-
</el-popover> -->
|
|
66
27
|
<ht-popover
|
|
67
28
|
@confirm="handleCommand('delete', 'confirm')"
|
|
68
29
|
:tips="`删除后无法恢复,请确认是否删除${tips ? `【${tips}】` : ''}?`"
|
package/src/views/About.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-11-15 14:41:40
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2023-05-
|
|
7
|
+
* @LastEditTime: 2023-05-23 13:57:00
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div>
|
|
@@ -68,7 +68,13 @@
|
|
|
68
68
|
</template>
|
|
69
69
|
</HtTable>
|
|
70
70
|
</div>
|
|
71
|
-
<HtDrawer
|
|
71
|
+
<HtDrawer
|
|
72
|
+
htClass="ht-new-drawer"
|
|
73
|
+
@onOk="submitTest()"
|
|
74
|
+
:footerRight="true"
|
|
75
|
+
v-model="state.visible"
|
|
76
|
+
:title="'买买买'"
|
|
77
|
+
>
|
|
72
78
|
考了多少会计数控了分手快乐
|
|
73
79
|
</HtDrawer>
|
|
74
80
|
</div>
|