htui-yllkbz 1.3.88 → 1.3.89

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.3.88",
3
+ "version": "1.3.89",
4
4
  "port": "8082",
5
5
  "typings": "types/index.d.ts",
6
6
  "main": "lib/htui.common.js",
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2022-09-28 10:24:08
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2022-11-07 17:37:27
7
+ * @LastEditTime: 2023-01-18 13:06:03
8
8
  -->
9
9
  <template>
10
10
  <el-drawer
@@ -29,7 +29,7 @@
29
29
  </span>
30
30
 
31
31
  <div
32
- style="overflow:hidden;;padding:0 16px"
32
+ style="overflow:hidden;padding:0 16px"
33
33
  :style="
34
34
  `height:calc(100vh - ${withFooter ? '90px' : '0px'} - ${
35
35
  withHeader ? '100px' : '0px'
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2022-09-28 10:24:08
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2023-01-09 16:57:36
7
+ * @LastEditTime: 2023-01-29 17:46:12
8
8
  -->
9
9
  <template>
10
10
  <el-dropdown :trigger="trigger" @command="handleCommand($event, 'command')">
@@ -18,15 +18,13 @@
18
18
  <el-dropdown-item v-if="!!showTabs.includes('edit')" command="edit"
19
19
  >编辑</el-dropdown-item
20
20
  >
21
- <el-popconfirm
21
+ <!-- <el-popconfirm
22
22
  @confirm="handleCommand('delete', 'confirm')"
23
23
  v-if="!!showTabs.includes('delete')"
24
24
  :title="`请确认是否删除${tips ? `【${tips}】` : ''}?`"
25
- >
26
- <el-dropdown-item slot="reference" command="delete"
27
- >删除</el-dropdown-item
28
- >
29
- </el-popconfirm>
25
+ > -->
26
+ <el-dropdown-item command="delete">删除</el-dropdown-item>
27
+ <!-- </el-popconfirm> -->
30
28
  </slot>
31
29
  </el-dropdown-menu>
32
30
  </el-dropdown>
@@ -58,6 +56,15 @@ export default class Index extends Vue {
58
56
  /** 生命周期 */
59
57
  handleCommand(e: string, type: string) {
60
58
  if (type === 'command' && e === 'delete') {
59
+ this.$confirm(`请确认是否删除${this.tips ? `【${this.tips}】` : ''}?`)
60
+ .then((_) => {
61
+ this.handleCommand('delete', 'confirm');
62
+ //
63
+ })
64
+ .catch((_) => {
65
+ //
66
+ });
67
+
61
68
  //不管
62
69
  } else {
63
70
  this.$emit('callback', e);