@zscreate/zhxy-app-component 1.0.110 → 1.0.111

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.
@@ -523,20 +523,9 @@
523
523
 
524
524
  </view>
525
525
 
526
- <!-- 其他未开发组件 -->
527
- <view v-else class="evan-form-item-container "
528
- :class="'evan-form-item-container--' + labelPosition" >
529
- <view class="evan-form-item-container__label"
530
- :class="{showAsteriskRect:hasRequiredAsterisk,isRequired:showRequiredAsterisk}" :style="mLabelStyle">
531
- {{ widget.name }}
532
- </view>
533
- <view class="evan-form-item-container__main" :style="mContentStyle">
534
- <view class="option-font-size">移动端暂不支持</view>
535
- </view>
536
- </view>
537
526
 
538
527
  <!-- location 定位 -->
539
- <view v-if="widget.type ==='location'" class="evan-form-item-container" :class="'evan-form-item-container--top'"
528
+ <view v-else-if="widget.type ==='location'" class="evan-form-item-container" :class="'evan-form-item-container--top'"
540
529
  :style="{borderWidth:border?'1upx':0}">
541
530
  <view class="evan-form-item-container__label"
542
531
  :class="{showAsteriskRect:hasRequiredAsterisk,isRequired:showRequiredAsterisk}" :style="mLabelStyle">
@@ -552,6 +541,21 @@
552
541
  </view>
553
542
  </view>
554
543
  </view>
544
+
545
+
546
+ <!-- 其他未开发组件 -->
547
+ <view v-else class="evan-form-item-container "
548
+ :class="'evan-form-item-container--' + labelPosition" >
549
+ <view class="evan-form-item-container__label"
550
+ :class="{showAsteriskRect:hasRequiredAsterisk,isRequired:showRequiredAsterisk}" :style="mLabelStyle">
551
+ {{ widget.name }}
552
+ </view>
553
+ <view class="evan-form-item-container__main" :style="mContentStyle">
554
+ <view class="option-font-size">移动端暂不支持</view>
555
+ </view>
556
+ </view>
557
+
558
+
555
559
  <view class="error-message" v-if="showFalse">{{ showFalseMsg }}</view>
556
560
  <view v-if="widget.options.canView && !hiddenLineTypes.includes(widget.type)" class="bottom_line">
557
561
  </view>
@@ -5,6 +5,12 @@ import { run } from "../../../utils/js-interp"
5
5
 
6
6
  export const pubSubMixin = {
7
7
  mixins: [validateByApiMinxins],
8
+ inject: {
9
+ getFormData: {
10
+ from: 'getFormData',
11
+ default: () => (() => ({}))
12
+ },
13
+ },
8
14
  methods: {
9
15
  publish: Pubsub.publish, // 发布方法
10
16
  run,
@@ -220,7 +220,8 @@ export default {
220
220
  components: { evanFormItem ,evanForm, mTextarea },
221
221
  provide() {
222
222
  return {
223
- dataObj: () => this.dataObj
223
+ dataObj: () => this.dataObj,
224
+ getFormData: () => this.value,
224
225
  }
225
226
  },
226
227
  data() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.110",
3
+ "version": "1.0.111",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",