@yoooloo42/joker 1.0.53 → 1.0.54

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/dist/index.cjs.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vueRouter = require('vue-router');
5
6
  var vue = require('vue');
6
7
 
7
8
  function _mergeNamespaces(n, m) {
@@ -21960,6 +21961,7 @@ const {
21960
21961
  mergeConfig
21961
21962
  } = axios;
21962
21963
 
21964
+ const router = vueRouter.useRouter();
21963
21965
  const domainPara = 'http://127.0.0.1:443';
21964
21966
  const upload$1 = '/ly0/upload-req/image';
21965
21967
  const upload_carplate = '/ly0/upload-req/carplate';
@@ -21992,9 +21994,7 @@ async function ly0request(_ref2) {
21992
21994
  domain = domainPara,
21993
21995
  url,
21994
21996
  // 路由
21995
- data,
21996
- // 请求数据
21997
- scopeThis // 当前的组件实例
21997
+ data // 请求数据
21998
21998
  } = _ref2;
21999
21999
  try {
22000
22000
  const response = await request$1({
@@ -22006,16 +22006,13 @@ async function ly0request(_ref2) {
22006
22006
  // session 异常
22007
22007
  if (response.data.sessionStatusCode && response.data.sessionStatusCode !== 0) {
22008
22008
  console.log('session异常', response.data.sessionStatusMessage);
22009
- if (scopeThis) {
22010
- // scopeThis.$message(response.data.sessionStatusMessage)
22011
- }
22012
22009
  let ly0session = ly0sessionLoad();
22013
22010
  ly0sessionSave({
22014
22011
  session: {
22015
22012
  usertbl: ly0session && ly0session.session && ly0session.session.usertbl ? ly0session.session.usertbl : 'ly0d0user'
22016
22013
  }
22017
22014
  });
22018
- ly0sessionLose(scopeThis !== null && scopeThis !== void 0 ? scopeThis : null);
22015
+ ly0sessionLose();
22019
22016
  return {
22020
22017
  code: 1,
22021
22018
  message: 'session 异常'
@@ -22035,9 +22032,7 @@ async function storpro(_ref3) {
22035
22032
  storproName,
22036
22033
  // 存储过程名称
22037
22034
  data,
22038
- noSession = false,
22039
- // 不进行session验证
22040
- scopeThis // 当前的组件实例
22035
+ noSession = false // 不进行session验证
22041
22036
  } = _ref3;
22042
22037
  try {
22043
22038
  const result = await ly0request({
@@ -22050,8 +22045,7 @@ async function storpro(_ref3) {
22050
22045
  storproName,
22051
22046
  data: data !== null && data !== void 0 ? data : null
22052
22047
  }
22053
- },
22054
- scopeThis: scopeThis !== null && scopeThis !== void 0 ? scopeThis : null
22048
+ }
22055
22049
  });
22056
22050
  return result;
22057
22051
  } catch (err) {
@@ -22076,7 +22070,7 @@ function ly0sessionClear() {
22076
22070
  }
22077
22071
 
22078
22072
  // session丢失
22079
- function ly0sessionLose(scopeThis) {
22073
+ function ly0sessionLose() {
22080
22074
  let ly0session = ly0sessionLoad(),
22081
22075
  lose = false,
22082
22076
  route = '';
@@ -22092,7 +22086,7 @@ function ly0sessionLose(scopeThis) {
22092
22086
  }
22093
22087
  }
22094
22088
  if (lose) {
22095
- scopeThis.$router.replace({
22089
+ router.replace({
22096
22090
  path: route
22097
22091
  });
22098
22092
  }
@@ -22100,7 +22094,7 @@ function ly0sessionLose(scopeThis) {
22100
22094
  }
22101
22095
 
22102
22096
  // session丢失
22103
- function ly0sessionLoseWithUsertbl(scopeThis, usertbl) {
22097
+ function ly0sessionLoseWithUsertbl(usertbl) {
22104
22098
  let ly0session = ly0sessionLoad(),
22105
22099
  lose = false,
22106
22100
  route = '';
@@ -22116,7 +22110,7 @@ function ly0sessionLoseWithUsertbl(scopeThis, usertbl) {
22116
22110
  }
22117
22111
  }
22118
22112
  if (lose) {
22119
- scopeThis.$router.replace({
22113
+ router.replace({
22120
22114
  path: route
22121
22115
  });
22122
22116
  }
@@ -22424,7 +22418,7 @@ var styleModule = {
22424
22418
 
22425
22419
  var script$g = {
22426
22420
  __name: 'LabelBox',
22427
- props: ["scopeThis", "myProps", "dataBox", "item"],
22421
+ props: ["myProps", "dataBox", "item"],
22428
22422
  setup(__props) {
22429
22423
 
22430
22424
  const props = __props;
@@ -22440,7 +22434,7 @@ const style = {
22440
22434
 
22441
22435
  const hdlClick = () => {
22442
22436
  if(props.item.hdlLabelClick){
22443
- props.item.hdlLabelClick(props.scopeThis, props.dataBox.fieldsValue);
22437
+ props.item.hdlLabelClick(props.dataBox.fieldsValue, props.item);
22444
22438
  }
22445
22439
  };
22446
22440
 
@@ -39335,7 +39329,7 @@ const _hoisted_28 = { key: 30 };
39335
39329
 
39336
39330
  var script$f = {
39337
39331
  __name: 'InputBox',
39338
- props: ["scopeThis", "myProps", "dataBox", "item"],
39332
+ props: ["myProps", "dataBox", "item"],
39339
39333
  setup(__props) {
39340
39334
 
39341
39335
  const props = __props;
@@ -39360,12 +39354,12 @@ const select = vue.reactive({
39360
39354
  if (props.item.items) {
39361
39355
  return props.item.items
39362
39356
  } else if (props.item.hdlGetItems) {
39363
- return props.item.hdlGetItems(props.scopeThis)
39357
+ return props.item.hdlGetItems(props.dataBox.fieldsValue, props.item)
39364
39358
  }
39365
39359
  }),
39366
39360
  hdlChange: value => {
39367
39361
  if (props.item.hdlChange) {
39368
- props.item.hdlChange(props.scopeThis, value);
39362
+ props.item.hdlChange(props.dataBox.fieldsValue, props.item, value);
39369
39363
  }
39370
39364
  }
39371
39365
  });
@@ -39397,7 +39391,7 @@ const datePicker = vue.reactive({
39397
39391
  }),
39398
39392
  hdlChange: value => {
39399
39393
  if (props.item.hdlChange) {
39400
- props.item.hdlChange(props.scopeThis, value);
39394
+ props.item.hdlChange(props.dataBox.fieldsValue, props.item, value);
39401
39395
  }
39402
39396
  }
39403
39397
  });
@@ -39405,7 +39399,7 @@ const datePicker = vue.reactive({
39405
39399
  const ly0switch = vue.reactive({
39406
39400
  hdlChange: value => {
39407
39401
  if (props.item.hdlChange) {
39408
- props.item.hdlChange(props.scopeThis, value);
39402
+ props.item.hdlChange(props.dataBox.fieldsValue, props.item, value);
39409
39403
  }
39410
39404
  }
39411
39405
  });
@@ -39413,7 +39407,7 @@ const ly0switch = vue.reactive({
39413
39407
  const radioGroup = vue.reactive({
39414
39408
  hdlChange: value => {
39415
39409
  if (props.item.hdlChange) {
39416
- props.item.hdlChange(props.scopeThis, value);
39410
+ props.item.hdlChange(props.dataBox.fieldsValue, props.item, value);
39417
39411
  }
39418
39412
  }
39419
39413
  });
@@ -39540,7 +39534,7 @@ const download = vue.reactive({
39540
39534
  return props.myProps.download.downloadLabelNoSrc
39541
39535
  }
39542
39536
  if (props.item.hdlGetDownloadLabel) {
39543
- return props.item.hdlGetDownloadLabel(props.scopeThis, props.item)
39537
+ return props.item.hdlGetDownloadLabel(props.dataBox.fieldsValue, props.item)
39544
39538
  }
39545
39539
  return props.myProps.download.downloadLabel
39546
39540
  }),
@@ -39683,16 +39677,16 @@ return (_ctx, _cache) => {
39683
39677
  ? (vue.openBlock(), vue.createElementBlock("div", {
39684
39678
  key: 3,
39685
39679
  style: vue.normalizeStyle(style.text(__props.item, __props.myProps))
39686
- }, vue.toDisplayString(__props.item.hdlExpression && __props.item.hdlExpression(__props.scopeThis, __props.dataBox.fieldsValue)
39687
- ? __props.item.hdlExpression(__props.scopeThis, __props.dataBox.fieldsValue)
39680
+ }, vue.toDisplayString(__props.item.hdlExpression && __props.item.hdlExpression(__props.dataBox.fieldsValue, __props.item)
39681
+ ? __props.item.hdlExpression(__props.dataBox.fieldsValue, __props.item)
39688
39682
  : ' '), 5 /* TEXT, STYLE */))
39689
39683
  : vue.createCommentVNode("v-if", true),
39690
39684
  (__props.item.inputType === 'expression0')
39691
39685
  ? (vue.openBlock(), vue.createElementBlock("div", {
39692
39686
  key: 4,
39693
39687
  style: vue.normalizeStyle(style.text0(__props.item))
39694
- }, vue.toDisplayString(__props.item.hdlExpression && __props.item.hdlExpression(__props.scopeThis, __props.dataBox.fieldsValue)
39695
- ? __props.item.hdlExpression(__props.scopeThis, __props.dataBox.fieldsValue)
39688
+ }, vue.toDisplayString(__props.item.hdlExpression && __props.item.hdlExpression(__props.dataBox.fieldsValue, __props.item)
39689
+ ? __props.item.hdlExpression(__props.dataBox.fieldsValue, __props.item)
39696
39690
  : ' '), 5 /* TEXT, STYLE */))
39697
39691
  : vue.createCommentVNode("v-if", true),
39698
39692
  (__props.item.inputType === 'line')
@@ -39824,7 +39818,7 @@ return (_ctx, _cache) => {
39824
39818
  plain: style.button_group(__props.item, item0, item1).button.facade.plain,
39825
39819
  round: style.button_group(__props.item, item0, item1).button.facade.round,
39826
39820
  circle: style.button_group(__props.item, item0, item1).button.facade.circle,
39827
- onClick: $event => (item1.hdlClick ? item1.hdlClick(__props.scopeThis) : null),
39821
+ onClick: $event => (item1.hdlClick ? item1.hdlClick(__props.dataBox.fieldsValue, __props.item) : null),
39828
39822
  key: index1
39829
39823
  }, {
39830
39824
  default: vue.withCtx(() => [
@@ -40139,7 +40133,7 @@ const _hoisted_4$6 = ["colspan"];
40139
40133
 
40140
40134
  var script$e = {
40141
40135
  __name: 'Form',
40142
- props: ["scopeThis", "myProps", "dataBox"],
40136
+ props: ["myProps", "dataBox"],
40143
40137
  setup(__props) {
40144
40138
 
40145
40139
  const style = vue.reactive({
@@ -40162,9 +40156,8 @@ return (_ctx, _cache) => {
40162
40156
  (__props.myProps.menu && __props.myProps.menu.length > 0)
40163
40157
  ? (vue.openBlock(), vue.createBlock(_component_ly0Menu, {
40164
40158
  key: 0,
40165
- scopeThis: __props.scopeThis,
40166
40159
  myProps: __props.myProps.menu
40167
- }, null, 8 /* PROPS */, ["scopeThis", "myProps"]))
40160
+ }, null, 8 /* PROPS */, ["myProps"]))
40168
40161
  : vue.createCommentVNode("v-if", true),
40169
40162
  vue.createCommentVNode(" 表单区域可以分为多个列 "),
40170
40163
  vue.createElementVNode("div", {
@@ -40176,7 +40169,7 @@ return (_ctx, _cache) => {
40176
40169
  vue.createElementVNode("tbody", null, [
40177
40170
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.items, (item0, index0) => {
40178
40171
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index0 }, [
40179
- (item0.hdlVisible ? item0.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue) : true)
40172
+ (item0.hdlVisible ? item0.hdlVisible(__props.dataBox.fieldsValue) : true)
40180
40173
  ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1$c, [
40181
40174
  (!!item0.label)
40182
40175
  ? (vue.openBlock(), vue.createElementBlock("td", {
@@ -40184,11 +40177,10 @@ return (_ctx, _cache) => {
40184
40177
  style: vue.normalizeStyle(style.field_box.left)
40185
40178
  }, [
40186
40179
  vue.createVNode(script$g, {
40187
- scopeThis: __props.scopeThis,
40188
40180
  myProps: __props.myProps,
40189
40181
  dataBox: __props.dataBox,
40190
40182
  item: item0
40191
- }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
40183
+ }, null, 8 /* PROPS */, ["myProps", "dataBox", "item"])
40192
40184
  ], 4 /* STYLE */))
40193
40185
  : vue.createCommentVNode("v-if", true),
40194
40186
  vue.createElementVNode("td", {
@@ -40209,7 +40201,7 @@ return (_ctx, _cache) => {
40209
40201
  default: vue.withCtx(() => [
40210
40202
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item0.items, (item1, index1) => {
40211
40203
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index1 }, [
40212
- (item1.hdlVisible ? item1.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue) : true)
40204
+ (item1.hdlVisible ? item1.hdlVisible(__props.dataBox.fieldsValue) : true)
40213
40205
  ? (vue.openBlock(), vue.createBlock(_component_el_collapse_item, {
40214
40206
  key: 0,
40215
40207
  title: item1.title,
@@ -40223,7 +40215,7 @@ return (_ctx, _cache) => {
40223
40215
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
40224
40216
  (
40225
40217
  item2.hdlVisible
40226
- ? item2.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue)
40218
+ ? item2.hdlVisible(__props.dataBox.fieldsValue)
40227
40219
  : true
40228
40220
  )
40229
40221
  ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_3$7, [
@@ -40233,11 +40225,10 @@ return (_ctx, _cache) => {
40233
40225
  style: vue.normalizeStyle(style.field_box.left)
40234
40226
  }, [
40235
40227
  vue.createVNode(script$g, {
40236
- scopeThis: __props.scopeThis,
40237
40228
  myProps: __props.myProps,
40238
40229
  dataBox: __props.dataBox,
40239
40230
  item: item2
40240
- }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
40231
+ }, null, 8 /* PROPS */, ["myProps", "dataBox", "item"])
40241
40232
  ], 4 /* STYLE */))
40242
40233
  : vue.createCommentVNode("v-if", true),
40243
40234
  vue.createElementVNode("td", {
@@ -40245,11 +40236,10 @@ return (_ctx, _cache) => {
40245
40236
  colspan: style.no_field_label(item2)
40246
40237
  }, [
40247
40238
  vue.createVNode(script$f, {
40248
- scopeThis: __props.scopeThis,
40249
40239
  myProps: __props.myProps,
40250
40240
  dataBox: __props.dataBox,
40251
40241
  item: item2
40252
- }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
40242
+ }, null, 8 /* PROPS */, ["myProps", "dataBox", "item"])
40253
40243
  ], 12 /* STYLE, PROPS */, _hoisted_4$6)
40254
40244
  ]))
40255
40245
  : vue.createCommentVNode("v-if", true)
@@ -40267,11 +40257,10 @@ return (_ctx, _cache) => {
40267
40257
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["accordion", "modelValue", "onUpdate:modelValue", "style"]))
40268
40258
  : (vue.openBlock(), vue.createBlock(script$f, {
40269
40259
  key: 1,
40270
- scopeThis: __props.scopeThis,
40271
40260
  myProps: __props.myProps,
40272
40261
  dataBox: __props.dataBox,
40273
40262
  item: item0
40274
- }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"]))
40263
+ }, null, 8 /* PROPS */, ["myProps", "dataBox", "item"]))
40275
40264
  ], 12 /* STYLE, PROPS */, _hoisted_2$c)
40276
40265
  ]))
40277
40266
  : vue.createCommentVNode("v-if", true)
@@ -40295,7 +40284,7 @@ return (_ctx, _cache) => {
40295
40284
  type: style.submit_box.button.facade.type,
40296
40285
  plain: style.submit_box.button.facade.plain,
40297
40286
  style: vue.normalizeStyle(style.submit_box.button.style),
40298
- onClick: _cache[0] || (_cache[0] = $event => (__props.dataBox.hdlSubmit(__props.scopeThis, __props.dataBox.fieldsValue)))
40287
+ onClick: _cache[0] || (_cache[0] = $event => (__props.dataBox.hdlSubmit(__props.dataBox.fieldsValue)))
40299
40288
  }, {
40300
40289
  default: vue.withCtx(() => [...(_cache[1] || (_cache[1] = [
40301
40290
  vue.createTextVNode("提交", -1 /* CACHED */)
@@ -40367,7 +40356,7 @@ var ly0default$2 = {
40367
40356
 
40368
40357
  var script$d = {
40369
40358
  __name: 'index',
40370
- props: ["scopeThis", "myProps", "dataBox"],
40359
+ props: ["myProps", "dataBox"],
40371
40360
  setup(__props) {
40372
40361
 
40373
40362
  const props = __props;
@@ -40395,10 +40384,9 @@ return (_ctx, _cache) => {
40395
40384
  myProps0
40396
40385
  ? (vue.openBlock(), vue.createBlock(script$e, {
40397
40386
  key: 0,
40398
- scopeThis: __props.scopeThis,
40399
40387
  myProps: myProps0,
40400
40388
  dataBox: __props.dataBox
40401
- }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox"]))
40389
+ }, null, 8 /* PROPS */, ["myProps", "dataBox"]))
40402
40390
  : vue.createCommentVNode("v-if", true)
40403
40391
  ]),
40404
40392
  _: 1 /* STABLE */
@@ -40406,10 +40394,9 @@ return (_ctx, _cache) => {
40406
40394
  : myProps0
40407
40395
  ? (vue.openBlock(), vue.createBlock(script$e, {
40408
40396
  key: 1,
40409
- scopeThis: __props.scopeThis,
40410
40397
  myProps: myProps0,
40411
40398
  dataBox: __props.dataBox
40412
- }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox"]))
40399
+ }, null, 8 /* PROPS */, ["myProps", "dataBox"]))
40413
40400
  : vue.createCommentVNode("v-if", true)
40414
40401
  }
40415
40402
  }
@@ -40433,7 +40420,7 @@ var ly0default$1 = {
40433
40420
  };
40434
40421
 
40435
40422
  var script$c = {
40436
- props: ['scopeThis', 'myProps'],
40423
+ props: ['myProps'],
40437
40424
  computed: {
40438
40425
  myProps0(){
40439
40426
  return Object.assign({}, ly0default$1.myProps, this.myProps)
@@ -40466,7 +40453,7 @@ var script$c = {
40466
40453
  // 节点存在自定义索引
40467
40454
  if (!!menu[i].index && index === menu[i].index) {
40468
40455
  if (menu[i].handle) {
40469
- menu[i].handle(this.scopeThis, index);
40456
+ menu[i].handle(index);
40470
40457
  }
40471
40458
  result = true;
40472
40459
  break
@@ -40474,7 +40461,7 @@ var script$c = {
40474
40461
  // 节点不存在自定义索引
40475
40462
  if (index === index0) {
40476
40463
  if (menu[i].handle) {
40477
- menu[i].handle(this.scopeThis, index);
40464
+ menu[i].handle(index);
40478
40465
  }
40479
40466
  result = true;
40480
40467
  break
@@ -40525,7 +40512,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
40525
40512
  'disabled' in item
40526
40513
  ? item.disabled
40527
40514
  : 'hdlDisabled' in item
40528
- ? item.hdlDisabled($props.scopeThis, item, index)
40515
+ ? item.hdlDisabled(item, index)
40529
40516
  : false
40530
40517
 
40531
40518
  }, {
@@ -40554,7 +40541,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
40554
40541
  'disabled' in item0
40555
40542
  ? item0.disabled
40556
40543
  : 'hdlDisabled' in item0
40557
- ? item0.hdlDisabled($props.scopeThis, item0, index0)
40544
+ ? item0.hdlDisabled(item0, index0)
40558
40545
  : false
40559
40546
 
40560
40547
  }, {
@@ -40591,7 +40578,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
40591
40578
  'disabled' in item1
40592
40579
  ? item1.disabled
40593
40580
  : 'hdlDisabled' in item1
40594
- ? item1.hdlDisabled($props.scopeThis, item1, index1)
40581
+ ? item1.hdlDisabled(item1, index1)
40595
40582
  : false
40596
40583
 
40597
40584
  }, {
@@ -40632,7 +40619,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
40632
40619
  'disabled' in item2
40633
40620
  ? item2.disabled
40634
40621
  : 'hdlDisabled' in item2
40635
- ? item2.hdlDisabled($props.scopeThis, item2, index2)
40622
+ ? item2.hdlDisabled(item2, index2)
40636
40623
  : false
40637
40624
 
40638
40625
  }, {
@@ -40670,7 +40657,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
40670
40657
  'disabled' in item3
40671
40658
  ? item3.disabled
40672
40659
  : 'hdlDisabled' in item3
40673
- ? item3.hdlDisabled($props.scopeThis, item3, index3)
40660
+ ? item3.hdlDisabled(item3, index3)
40674
40661
  : false
40675
40662
 
40676
40663
  }, {
@@ -41752,7 +41739,6 @@ const hdlPopup = () => {
41752
41739
  const hdlChangeCode2 = value => {
41753
41740
  return new Promise((resolve, reject) => {
41754
41741
  request.ly0.storpro({
41755
- scopeThis: this,
41756
41742
  noSession: true,
41757
41743
  storproName: 'ly0d3.gbt2260code4.code2',
41758
41744
  data: {code2: value},