htui-yllkbz 1.4.21 → 1.4.23
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 +46 -43
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.css +1 -1
- package/lib/htui.umd.js +46 -43
- 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/HtModel/index.vue +2 -2
- package/src/packages/HtMore/index.vue +61 -23
- package/src/views/About.vue +4 -1
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2022-09-28 10:24:08
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2023-04-
|
|
7
|
+
* @LastEditTime: 2023-04-24 13:33:28
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<el-dialog
|
|
@@ -69,7 +69,7 @@ interface State {
|
|
|
69
69
|
visible: boolean;
|
|
70
70
|
}
|
|
71
71
|
@Component({
|
|
72
|
-
name: '
|
|
72
|
+
name: 'HtModel',
|
|
73
73
|
components: {},
|
|
74
74
|
})
|
|
75
75
|
export default class Index extends Vue {
|
|
@@ -4,33 +4,70 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2022-09-28 10:24:08
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2023-
|
|
7
|
+
* @LastEditTime: 2023-04-24 10:16:37
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<el-dropdown :trigger="trigger" @command="handleCommand($event, 'command')">
|
|
11
|
-
<span class="el-dropdown-link">
|
|
11
|
+
<span class="el-dropdown-link" style="cursor:pointer;color:var(--primary)">
|
|
12
12
|
<slot>
|
|
13
13
|
<i class="ht-icon-more el-icon-more"></i>
|
|
14
14
|
</slot>
|
|
15
15
|
</span>
|
|
16
16
|
<el-dropdown-menu slot="dropdown">
|
|
17
|
-
<slot name="dropdown">
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
<slot name="dropdown"> </slot>
|
|
18
|
+
<el-dropdown-item v-if="!!showTabs.includes('edit')" command="edit"
|
|
19
|
+
>编辑</el-dropdown-item
|
|
20
|
+
>
|
|
21
|
+
<!-- <el-popconfirm
|
|
22
22
|
@confirm="handleCommand('delete', 'confirm')"
|
|
23
23
|
v-if="!!showTabs.includes('delete')"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
+
|
|
62
|
+
<el-dropdown-item slot="reference" command="delete"
|
|
63
|
+
>删除</el-dropdown-item
|
|
64
|
+
>
|
|
65
|
+
</el-popover>
|
|
29
66
|
</el-dropdown-menu>
|
|
30
67
|
</el-dropdown>
|
|
31
68
|
</template>
|
|
32
69
|
<script lang="ts">
|
|
33
|
-
import { Component, Prop, Vue
|
|
70
|
+
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
34
71
|
interface State {
|
|
35
72
|
/** 数据状态 */
|
|
36
73
|
loading: boolean;
|
|
@@ -56,17 +93,18 @@ export default class Index extends Vue {
|
|
|
56
93
|
/** 生命周期 */
|
|
57
94
|
handleCommand(e: string, type: string) {
|
|
58
95
|
if (type === 'command' && e === 'delete') {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
//不管
|
|
96
|
+
//console.log('111');
|
|
97
|
+
// this.$confirm(`请确认是否删除${this.tips ? `【${this.tips}】` : ''}?`)
|
|
98
|
+
// .then((_) => {
|
|
99
|
+
// this.handleCommand('delete', 'confirm');
|
|
100
|
+
// //
|
|
101
|
+
// })
|
|
102
|
+
// .catch((_) => {
|
|
103
|
+
// //
|
|
104
|
+
// });
|
|
105
|
+
//不管1.4.2
|
|
69
106
|
} else {
|
|
107
|
+
this.state.visible = false;
|
|
70
108
|
this.$emit('callback', e);
|
|
71
109
|
}
|
|
72
110
|
}
|
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-04-
|
|
7
|
+
* @LastEditTime: 2023-04-24 09:23:59
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div>
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
<ht-col style="height:30px;border:1px solid #ccc" :span="4">iii</ht-col>
|
|
17
17
|
</ht-row>
|
|
18
18
|
<HtBread></HtBread>
|
|
19
|
+
<HtMore>操作</HtMore>
|
|
19
20
|
<!-- <HtSelectOrg :multiple="false"></HtSelectOrg> -->
|
|
20
21
|
<!-- <el-button type=""
|
|
21
22
|
@click="test">test</el-button> -->
|
|
@@ -83,6 +84,7 @@ import HtCol from '@/packages/HtCol/index.vue';
|
|
|
83
84
|
import { Column } from '@/packages/type';
|
|
84
85
|
import HtModel from '@/packages/HtModel';
|
|
85
86
|
import HtBread from '@/packages/HtBread';
|
|
87
|
+
import HtMore from '@/packages/HtMore';
|
|
86
88
|
import { getSpanMethod } from '@/packages/HtTable/table-span-method';
|
|
87
89
|
|
|
88
90
|
interface State {
|
|
@@ -105,6 +107,7 @@ interface State {
|
|
|
105
107
|
HtCol,
|
|
106
108
|
HtBread,
|
|
107
109
|
HtModel,
|
|
110
|
+
HtMore,
|
|
108
111
|
},
|
|
109
112
|
})
|
|
110
113
|
export default class Index extends Vue {
|