htui-yllkbz 1.5.4 → 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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htui-yllkbz",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "port": "8082",
5
5
  "typings": "types/index.d.ts",
6
6
  "main": "lib/htui.common.js",
@@ -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-11 16:31:25
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="ht-new-drawer"
12
+ :class="htClass"
13
13
  :direction="direction"
14
14
  :custom-class="customClass"
15
15
  :append-to-body="appendToBody"
@@ -4,10 +4,15 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2022-09-28 10:24:08
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2023-04-25 09:45:13
7
+ * @LastEditTime: 2023-05-19 09:23:16
8
8
  -->
9
9
  <template>
10
- <el-dropdown :trigger="trigger" @command="handleCommand($event, 'command')">
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}】` : ''}?`"