htui-yllkbz 1.5.3 → 1.5.5
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 +4 -2
- package/src/packages/HtMore/index.vue +7 -46
- package/src/views/About.vue +5 -5
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2022-09-28 10:24:08
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2023-
|
|
7
|
+
* @LastEditTime: 2023-05-12 10:08:26
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<el-drawer
|
|
11
11
|
:visible.sync="state.visible"
|
|
12
|
+
:class="htClass"
|
|
12
13
|
:direction="direction"
|
|
13
14
|
:custom-class="customClass"
|
|
14
15
|
:append-to-body="appendToBody"
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
style="overflow:hidden;padding:0 16px"
|
|
33
34
|
:style="
|
|
34
35
|
`height:calc(100vh - ${withFooter ? '90px' : '0px'} - ${
|
|
35
|
-
withHeader ? '
|
|
36
|
+
withHeader ? (htClass === 'ht-new-drawer' ? '60px' : '90px') : '0px'
|
|
36
37
|
})`
|
|
37
38
|
"
|
|
38
39
|
>
|
|
@@ -92,6 +93,7 @@ export default class Index extends Vue {
|
|
|
92
93
|
@Prop({ default: '50%' }) size!: string;
|
|
93
94
|
/** 标题 */
|
|
94
95
|
@Prop() title!: string;
|
|
96
|
+
@Prop() htClass!: string;
|
|
95
97
|
@Prop() loading!: boolean;
|
|
96
98
|
/** 是否显示隐藏来自父级传参 */
|
|
97
99
|
@Prop() value!: boolean;
|
|
@@ -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-11 16:17:31
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div>
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
</template>
|
|
69
69
|
</HtTable>
|
|
70
70
|
</div>
|
|
71
|
-
<
|
|
71
|
+
<HtDrawer @onOk="submitTest()" v-model="state.visible" :title="'买买买'">
|
|
72
72
|
考了多少会计数控了分手快乐
|
|
73
|
-
</
|
|
73
|
+
</HtDrawer>
|
|
74
74
|
</div>
|
|
75
75
|
</template>
|
|
76
76
|
<script lang="ts">
|
|
@@ -82,7 +82,7 @@ import HtSelectOrg from '@/packages/HtSelectOrg/index.vue';
|
|
|
82
82
|
import HtRow from '@/packages/HtRow/index.vue';
|
|
83
83
|
import HtCol from '@/packages/HtCol/index.vue';
|
|
84
84
|
import { Column } from '@/packages/type';
|
|
85
|
-
import
|
|
85
|
+
import HtDrawer from '@/packages/HtDrawer';
|
|
86
86
|
import HtBread from '@/packages/HtBread';
|
|
87
87
|
import HtMore from '@/packages/HtMore';
|
|
88
88
|
import { getSpanMethod } from '@/packages/HtTable/table-span-method';
|
|
@@ -106,7 +106,7 @@ interface State {
|
|
|
106
106
|
HtRow,
|
|
107
107
|
HtCol,
|
|
108
108
|
HtBread,
|
|
109
|
-
|
|
109
|
+
HtDrawer,
|
|
110
110
|
HtMore,
|
|
111
111
|
},
|
|
112
112
|
})
|