zydx-plus 1.35.539 → 1.35.541

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.
@@ -46,7 +46,7 @@ export default defineComponent({
46
46
  </td>
47
47
  )
48
48
  : (
49
- <td class="table_cell" style={`min-width:${width}px; max-width:${width}px;`} rowspan={rowSpan} colspan={colSpan} data-col-key={key}>
49
+ <td class="table_cell" style={`min-width:${width}px; max-width:${width}px;color: ${row[key]=='已使用'?'rgba(111, 61, 146, 1)':''}`} rowspan={rowSpan} colspan={colSpan} data-col-key={key}>
50
50
  {row[key]}
51
51
  </td>
52
52
  )
@@ -1,7 +1,11 @@
1
1
  <template>
2
2
  <div class="drag-pop" :class="{trans: transAll, 'drag-pop-shadow': !fixedStart}" :style="position" :id="id" @click.stop="dragTap">
3
3
  <div v-show="!fixedStart" class="drag-head" :style="{'background-color':titleColor}" @click="selectedDrag">
4
- <span :id="'draggable' + id" :style="{'text-align': title === ''? 'center':'left'}" v-html="title"></span>
4
+ <span class="title" :id="'draggable' + id">
5
+ <slot name="title">
6
+ <div v-html="title" style="width: 100%" :style="{'text-align': title === ''? 'center':'left'}"></div>
7
+ </slot>
8
+ </span>
5
9
  <div class="drag-i">
6
10
  <i class="share" v-if="share" @click.stop="shareTap"></i>
7
11
  <i class="minimize-cir" v-if="minimizeCir" @click.stop="minimizeTap"></i>
@@ -149,7 +153,7 @@ export default {
149
153
  handler: function (val) {
150
154
  this.footRightOffset = val
151
155
  if (this.isInitShowBottomRight) {
152
- this.x = window.innerWidth - val
156
+ this.x = window.innerWidth - val -3
153
157
  }
154
158
  },
155
159
  immediate: true
@@ -158,7 +162,7 @@ export default {
158
162
  handler: function (val) {
159
163
  this.footDownOffset = val
160
164
  if (this.isInitShowBottomRight) {
161
- this.y = window.innerHeight - val
165
+ this.y = window.innerHeight - val -3
162
166
  console.log('this.y', this.y)
163
167
  }
164
168
  },
@@ -306,15 +310,19 @@ export default {
306
310
  init() {
307
311
  const that = this
308
312
  if(this.fixedStart) {
309
- const wid = document.getElementById('app').offsetWidth
310
- this.x = this.left + (wid-this.initWidth)/2
311
- this.y = this.top - document.documentElement.scrollTop
313
+ if(!this.isInitShowBottomRight) {
314
+ const wid = document.getElementById('app').offsetWidth
315
+ this.x = this.left + (wid-this.initWidth)/2
316
+ this.y = this.top - document.documentElement.scrollTop
317
+ }
312
318
  } else {
313
319
  this.clientWidth = document.documentElement.clientWidth;
314
320
  this.clientHeight = document.documentElement.clientHeight;
315
- this.x = this.clientWidth / 2 - this.footRightOffset / 2;
316
- this.y = this.clientHeight / 2 - this.footDownOffset / 2;
317
- this.y=isNaN(this.y)?100:this.y
321
+ if(!this.isInitShowBottomRight) {
322
+ this.x = this.clientWidth / 2 - this.footRightOffset / 2;
323
+ this.y = this.clientHeight / 2 - this.footDownOffset / 2;
324
+ this.y=isNaN(this.y)?100:this.y
325
+ }
318
326
  }
319
327
  setTimeout(() => {
320
328
  this.draggableState = interact(`#draggable${that.id}`)
@@ -631,4 +639,14 @@ export default {
631
639
  z-index: 5;
632
640
  background-color: rgba(255,255,255,0);
633
641
  }
642
+ .drag-head > .title {
643
+ display: inline-block;
644
+ margin-right: 15px;
645
+ flex: 1;
646
+ cursor: move;
647
+ overflow: hidden;
648
+ text-overflow: ellipsis;
649
+ white-space: nowrap;
650
+ font-size: 16px;
651
+ }
634
652
  </style>
@@ -318,15 +318,19 @@ export default {
318
318
  init() {
319
319
  let that = this
320
320
  if(this.fixedStart) {
321
- const wid = document.getElementById('app').offsetWidth
322
- this.x = this.left + (wid-this.initWidth)/2
323
- this.y = this.top - document.documentElement.scrollTop
321
+ if(!this.isInitShowBottomRight) {
322
+ const wid = document.getElementById('app').offsetWidth
323
+ this.x = this.left + (wid-this.initWidth)/2
324
+ this.y = this.top - document.documentElement.scrollTop
325
+ }
324
326
  } else {
325
327
  this.clientWidth = document.documentElement.clientWidth;
326
328
  this.clientHeight = document.documentElement.clientHeight;
327
- this.x = this.clientWidth / 2 - this.footRightOffset / 2;
328
- this.y = this.clientHeight / 2 - this.footDownOffset / 2;
329
- this.y=isNaN(this.y)?100:this.y
329
+ if(!this.isInitShowBottomRight) {
330
+ this.x = this.clientWidth / 2 - this.footRightOffset / 2;
331
+ this.y = this.clientHeight / 2 - this.footDownOffset / 2;
332
+ this.y=isNaN(this.y)?100:this.y
333
+ }
330
334
  }
331
335
  setTimeout(() => {
332
336
  this.draggableState = interact(`#draggable${that.id}`)