@truenewx/tnxvue3 3.0.0-alpha.7 → 3.0.0-alpha.9

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@truenewx/tnxvue3",
3
- "version": "3.0.0-alpha.7",
3
+ "version": "3.0.0-alpha.9",
4
4
  "description": "互联网技术解决方案:Vue3扩展支持",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -15,7 +15,7 @@
15
15
  </template>
16
16
 
17
17
  <script>
18
- import $ from 'jquery';
18
+ import * as $ from 'jquery';
19
19
 
20
20
  const util = window.tnx.util;
21
21
 
@@ -124,7 +124,7 @@ export default {
124
124
  },
125
125
  mounted() {
126
126
  let vm = this;
127
- this.$watch('model', function() {
127
+ this.$watch('model', function () {
128
128
  vm.emitModelValue();
129
129
  }, {
130
130
  deep: true
@@ -1,19 +1,19 @@
1
1
  <template>
2
2
  <el-dialog :data-v-id="id"
3
- class="tnxel-dialog"
4
- v-model="visible"
5
- destroy-on-close
6
- append-to-body
7
- :modal="options.modal"
8
- :close-on-click-modal="options['close-on-click-modal']"
9
- :close-on-press-escape="options['close-on-press-escape']"
10
- :show-close="options['show-close']"
11
- :center="options.center"
12
- :before-close="beforeClose"
13
- @closed="onClosed">
3
+ class="tnxel-dialog"
4
+ v-model="visible"
5
+ destroy-on-close
6
+ append-to-body
7
+ :modal="options.modal"
8
+ :close-on-click-modal="options['close-on-click-modal']"
9
+ :close-on-press-escape="options['close-on-press-escape']"
10
+ :show-close="options['show-close']"
11
+ :center="options.center"
12
+ :before-close="beforeClose"
13
+ @closed="onClosed">
14
14
  <template #header>
15
15
  <div class="tnxel-dialog-title" :class="mergeClass({'border-bottom': title})" v-html="title"
16
- v-if="title || options['show-close']"></div>
16
+ v-if="title || options['show-close']"></div>
17
17
  </template>
18
18
  <template v-if="$slots.default">
19
19
  <slot></slot>
@@ -23,7 +23,7 @@
23
23
  <template #footer v-if="buttons && buttons.length">
24
24
  <div class="tnxel-dialog-footer" :class="mergeClass()">
25
25
  <el-button v-for="(button, index) in buttons" :type="button.type" :key="index"
26
- :loading="buttonLoadings[index]" @click="btnClick(index)">{{ button.caption || button.text }}
26
+ :loading="buttonLoadings[index]" @click="btnClick(index)">{{ button.caption || button.text }}
27
27
  </el-button>
28
28
  </div>
29
29
  </template>
@@ -31,7 +31,7 @@
31
31
  </template>
32
32
 
33
33
  <script>
34
- import $ from 'jquery';
34
+ import * as $ from 'jquery';
35
35
  import DialogContent from './DialogContent.vue';
36
36
 
37
37
  const util = window.tnx.util;
@@ -49,7 +49,7 @@
49
49
  </template>
50
50
 
51
51
  <script>
52
- import $ from 'jquery';
52
+ import * as $ from 'jquery';
53
53
  import Icon from '../icon/Icon.vue';
54
54
  import Button from '../button/Button.vue';
55
55
  import Paged from '../paged/Paged.vue';
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <el-steps class="w-fit-content tnxel-steps-nav" :id="id" direction="vertical" :space="space">
3
3
  <el-step status="finish" v-for="item in items" :key="item.target" :data-target="item.target"
4
- :title="item.title"/>
4
+ :title="item.title"/>
5
5
  </el-steps>
6
6
  </template>
7
7
 
8
8
  <script>
9
- import $ from 'jquery';
9
+ import * as $ from 'jquery';
10
10
 
11
11
  export default {
12
12
  name: 'TnxelStepsNav',
@@ -35,8 +35,8 @@ export default {
35
35
  mounted() {
36
36
  this.topOffset = $('#' + this.id).offset().top - $(this.container).offset().top - 16;
37
37
  let vm = this;
38
- $('#' + this.id + ' .el-step').each(function(index, step) {
39
- $(step).click(function() {
38
+ $('#' + this.id + ' .el-step').each(function (index, step) {
39
+ $(step).click(function () {
40
40
  vm.navTo(index);
41
41
  });
42
42
  });
@@ -15,7 +15,7 @@
15
15
  </template>
16
16
 
17
17
  <script>
18
- import $ from 'jquery';
18
+ import * as $ from 'jquery';
19
19
  import AsyncValidator from 'async-validator';
20
20
 
21
21
  export default {
@@ -67,7 +67,7 @@
67
67
  </template>
68
68
 
69
69
  <script>
70
- import $ from 'jquery';
70
+ import * as $ from 'jquery';
71
71
  import Alert from '../alert/Alert.vue';
72
72
  import Icon from '../icon/Icon.vue';
73
73