@zscreate/zhxy-app-component 1.0.98 → 1.0.100

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.
@@ -25,6 +25,7 @@ export const pubSubMixin = {
25
25
  // console.log('订阅');
26
26
  let tableIndex = this.tableIndex; //子表单联动
27
27
  subscribeKey = this.tableKey ? tableIndex + '_' + subscribeKey : subscribeKey;
28
+ if (["grid", 'grid-lay-out', 'all-lay-out', 'table'].includes(this.widget.type)) return
28
29
  this.pubsubSign = Pubsub.subscribe(subscribeKey, (msg, data) => {
29
30
  console.log('接受消息', data);
30
31
  // console.log(msg, data);
@@ -201,6 +201,7 @@ import evanFormItem from "../evan-form-item/evan-form-item";
201
201
  import evanForm from "../evan-form/evan-form";
202
202
  import mTextarea from "../m-textarea/m-textarea";
203
203
  import packageJson from '../../package.json'
204
+ import { run } from "../../utils/js-interp"
204
205
  console.log('zhxy-app-component: ', packageJson.version)
205
206
  export default {
206
207
  options: { styleIsolation: 'shared' },
@@ -311,7 +312,8 @@ export default {
311
312
  // },
312
313
  // }
313
314
  },
314
- created() {},
315
+ created() {
316
+ },
315
317
  updated() {
316
318
 
317
319
  },
@@ -574,6 +576,33 @@ export default {
574
576
  generateModle(genList) {
575
577
  if (!genList || genList.length === 0) return;
576
578
  for (let i = 0; i < genList.length; i++) {
579
+ if (["grid", 'grid-lay-out', 'all-lay-out', 'table'].includes(genList[i].type)) {
580
+ let subscribeKey = genList[i].options.subscribeOptions ?
581
+ genList[i].options.subscribeOptions.subscribeKey :
582
+ '';
583
+ this.$store.state.subscribeKeys.push(subscribeKey)
584
+ Pubsub.subscribe(subscribeKey, (msg, data) => {
585
+ console.log('layout 接受消息', data);
586
+ const widget = genList[i]
587
+ const list = data.msg
588
+ const that = this
589
+ that.isWx = true
590
+ let global = globalThis
591
+ eval(data.operateValue)
592
+ return
593
+ // #endif
594
+
595
+ console.log(run(data.operateValue, {
596
+ that: this,
597
+ widget,
598
+ global: globalThis,
599
+ list,
600
+ isWx: true,
601
+ uni
602
+ }))
603
+ });
604
+
605
+ }
577
606
  if (["grid", 'grid-lay-out', 'all-lay-out'].includes(genList[i].type)) {
578
607
  genList[i].columns.forEach(item => {
579
608
  this.generateModle(item.list);
@@ -862,10 +891,10 @@ $mybottom: 0; //底部按钮
862
891
  @include onepx('.verify-cot', 'bottom', 'after', #e6e6e6);
863
892
 
864
893
  .table-header {
865
- height: 86upx;
894
+ min-height: 86upx;
866
895
  line-height: 86upx;
896
+ padding: 0 30upx;
867
897
  font-weight: bold;
868
- text-indent: 30upx;
869
898
  font-size: $uni-form-title-font-size;
870
899
  }
871
900
 
@@ -100,7 +100,6 @@
100
100
  })
101
101
  return
102
102
  }
103
- this.uploadIng = true
104
103
  var that = this;
105
104
  //#ifdef H5
106
105
  uni.chooseFile
@@ -112,6 +111,7 @@
112
111
  count: 1,
113
112
  type: 'all',
114
113
  success: (res) => {
114
+ this.uploadIng = true
115
115
  console.log(res.tempFiles)
116
116
  const path = res.tempFiles
117
117
  const { ext = '' , options } = this.widget
@@ -169,7 +169,7 @@
169
169
  },
170
170
 
171
171
  complete: (res) => {
172
- if (res.errMsg.includes('cancel')) return that.uploadIng = false
172
+ // if (res.errMsg.includes('cancel')) return that.uploadIng = false
173
173
  }
174
174
  });
175
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.98",
3
+ "version": "1.0.100",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",