tianheng-ui 0.0.35 → 0.0.38

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tianheng-ui",
3
3
  "description": "A Vue.js project",
4
- "version": "0.0.35",
4
+ "version": "0.0.38",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -12,11 +12,17 @@
12
12
  <div class="th-dialog__title">{{ title }}</div>
13
13
  <div class="th-dialog__action">
14
14
  <i
15
+ class="th-dialog__action_item"
15
16
  v-if="showFullscreen"
16
17
  :class="fullscreenIcon"
17
18
  @click="handleFullscreenChange"
18
19
  ></i>
19
- <i v-if="showClose" :class="closeIcon" @click="handleClose"></i>
20
+ <i
21
+ class="th-dialog__action_item "
22
+ v-if="showClose"
23
+ :class="closeIcon"
24
+ @click="handleClose"
25
+ ></i>
20
26
  </div>
21
27
  </div>
22
28
  </div>
@@ -32,7 +32,7 @@
32
32
  >
33
33
  </el-popover>
34
34
  <el-dropdown
35
- v-if="item.act === 'more'"
35
+ v-else-if="item.act === 'more'"
36
36
  :key="index"
37
37
  :trigger="item.trigger || 'click'"
38
38
  :placement="item.placement || 'bottom-end'"
@@ -121,8 +121,8 @@ export default {
121
121
  this.loadingDel = false;
122
122
  this.pop = false;
123
123
  },
124
- handleClick(item) {
125
- this.$emit("on-click", item);
124
+ handleClick(item, callback) {
125
+ this.$emit("on-click", item, callback);
126
126
  },
127
127
  handleDelete(item) {
128
128
  this.loadingDel = true;
@@ -1,45 +0,0 @@
1
- // dialog统一样式
2
- .th-dialog {
3
- .el-dialog__header {
4
- padding: 18px 20px !important;
5
- }
6
- .el-dialog__title {
7
- font-size: 16px !important;
8
- }
9
- .el-dialog__body {
10
- max-height: 60vh;
11
- overflow-y: overlay;
12
- padding: 15px 50px !important;
13
- }
14
- .el-dialog__footer {
15
- padding: 15px !important;
16
- }
17
-
18
- .is-fullscreen {
19
- .el-dialog__body {
20
- max-height: calc(100% - 150px);
21
- }
22
- }
23
-
24
- .th-dialog__header {
25
- display: flex;
26
- align-items: center;
27
- .th-dialog__title {
28
- flex: 1;
29
- }
30
- .th-dialog__action {
31
- i {
32
- margin-left: 15px;
33
- cursor: pointer;
34
- }
35
- i:hover {
36
- color: var(--app-blue);
37
- }
38
- }
39
- }
40
- .th-dialog__footer {
41
- text-align: right;
42
- -webkit-box-sizing: border-box;
43
- box-sizing: border-box;
44
- }
45
- }