@netang/quasar 0.2.49 → 0.2.51

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.
@@ -108,6 +108,14 @@
108
108
  name="crop_original"
109
109
  color="white"
110
110
  />
111
+
112
+ <!-- 其他菜单 -->
113
+ <q-icon
114
+ v-for="e in otherMenus"
115
+ class="cursor-pointer"
116
+ :name="e.icon"
117
+ @click="e.click(currentImg)"
118
+ />
111
119
  </div>
112
120
  </div>
113
121
 
@@ -118,7 +126,7 @@
118
126
  v-for="(item, i) in currentImages"
119
127
  :key="`${item.src}-${i}`"
120
128
  class="non-selectable no-outline"
121
- @click="onClickImg({ src })"
129
+ @click="onClickImg({ src: item.origin })"
122
130
  >
123
131
  <img
124
132
  :ref="(el) => (imgRefs[i] = el)"
@@ -162,6 +170,7 @@ import $n_get from 'lodash/get'
162
170
 
163
171
  import $n_forEach from '@netang/utils/forEach'
164
172
  import $n_run from '@netang/utils/run'
173
+ import $n_isValidArray from '@netang/utils/isValidArray'
165
174
 
166
175
  import $n_getImage from '../../../utils/getImage'
167
176
 
@@ -297,6 +306,10 @@ export default {
297
306
  // 图片是否可点击
298
307
  const isClickImg = ref($n_get(configs, 'components.imgViewer.isClickImg') === true)
299
308
 
309
+ // 其他菜单
310
+ const _menus = $n_get(configs, 'components.imgViewer.menus')
311
+ const otherMenus = ref($n_isValidArray(_menus) ? _menus : [])
312
+
300
313
  // 转换效果
301
314
  const transform = ref({
302
315
  scale: 1,
@@ -599,6 +612,8 @@ export default {
599
612
  transform,
600
613
  // 图片是否可点击
601
614
  isClickImg,
615
+ // 其他菜单
616
+ otherMenus,
602
617
 
603
618
  // 当前图片数组
604
619
  currentImages,
@@ -267,7 +267,7 @@
267
267
  >
268
268
  <q-item-section>
269
269
  <q-input
270
- class="n-field-fieldset"
270
+ class="n-field-fieldset n-field--console"
271
271
  v-model="formData.requestQuery.list[itemIndex]"
272
272
  placeholder="请输入参数"
273
273
  outlined
@@ -301,7 +301,7 @@
301
301
  >
302
302
  <q-item-section>
303
303
  <q-input
304
- class="n-field-fieldset"
304
+ class="n-field-fieldset n-field--console"
305
305
  v-model="formData.requestQuery.query[itemIndex]"
306
306
  placeholder="请输入参数"
307
307
  outlined
@@ -331,7 +331,7 @@
331
331
  <div class="col-xs-12">
332
332
  <q-input
333
333
  style="max-width:800px"
334
- class="n-field-fieldset"
334
+ class="n-field-fieldset n-field--console"
335
335
  v-model="formData.params"
336
336
  placeholder="请输入参数"
337
337
  outlined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.2.49",
3
+ "version": "0.2.51",
4
4
 
5
5
  "description": "netang-quasar",
6
6
  "scripts": {