@yoooloo42/joker 1.0.68 → 1.0.70

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.esm.js CHANGED
@@ -22451,13 +22451,13 @@ script$h.__file = "src/form/LabelBox.vue";
22451
22451
 
22452
22452
  const _hoisted_1$e = { key: 12 };
22453
22453
  const _hoisted_2$d = { key: 0 };
22454
- const _hoisted_3$8 = { key: 13 };
22455
- const _hoisted_4$7 = { key: 0 };
22456
- const _hoisted_5$6 = { key: 14 };
22457
- const _hoisted_6$6 = { key: 0 };
22458
- const _hoisted_7$6 = { key: 16 };
22459
- const _hoisted_8$5 = ["innerHTML"];
22460
- const _hoisted_9$4 = { key: 17 };
22454
+ const _hoisted_3$7 = { key: 13 };
22455
+ const _hoisted_4$6 = { key: 0 };
22456
+ const _hoisted_5$5 = { key: 14 };
22457
+ const _hoisted_6$5 = { key: 0 };
22458
+ const _hoisted_7$5 = { key: 16 };
22459
+ const _hoisted_8$4 = ["innerHTML"];
22460
+ const _hoisted_9$3 = { key: 17 };
22461
22461
  const _hoisted_10$2 = ["width", "height", "poster"];
22462
22462
  const _hoisted_11$1 = ["src"];
22463
22463
  const _hoisted_12 = ["src"];
@@ -22985,7 +22985,7 @@ return (_ctx, _cache) => {
22985
22985
  createCommentVNode(" 图片&富文本&视频 "),
22986
22986
  createCommentVNode(" 图片 "),
22987
22987
  (__props.item.inputType === 'image')
22988
- ? (openBlock(), createElementBlock("div", _hoisted_3$8, [
22988
+ ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
22989
22989
  createElementVNode("div", null, [
22990
22990
  createVNode(_component_el_image, {
22991
22991
  style: normalizeStyle(style.image(__props.item, __props.myProps)),
@@ -22997,7 +22997,7 @@ return (_ctx, _cache) => {
22997
22997
  ]),
22998
22998
  createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
22999
22999
  (!!__props.item.imageDelete && !!__props.dataBox.fieldsValue[__props.item.fieldName])
23000
- ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
23000
+ ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
23001
23001
  createVNode(_component_el_button, {
23002
23002
  size: "small",
23003
23003
  icon: !__props.dataBox.fieldsValue[__props.item.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
@@ -23014,7 +23014,7 @@ return (_ctx, _cache) => {
23014
23014
  : createCommentVNode("v-if", true),
23015
23015
  createCommentVNode(" 多个图片 "),
23016
23016
  (__props.item.inputType === 'images')
23017
- ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
23017
+ ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
23018
23018
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.dataBox.fieldsValue[__props.item.fieldName], (itemImages, indexImages) => {
23019
23019
  return (openBlock(), createElementBlock("div", {
23020
23020
  key: indexImages,
@@ -23028,7 +23028,7 @@ return (_ctx, _cache) => {
23028
23028
  }, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
23029
23029
  ]),
23030
23030
  (!!__props.item.imageDelete)
23031
- ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
23031
+ ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
23032
23032
  createVNode(_component_el_button, {
23033
23033
  size: "small",
23034
23034
  icon: "el-icon-delete",
@@ -23060,15 +23060,15 @@ return (_ctx, _cache) => {
23060
23060
  : createCommentVNode("v-if", true),
23061
23061
  createCommentVNode(" 富文本show "),
23062
23062
  (__props.item.inputType === 'richtextShow')
23063
- ? (openBlock(), createElementBlock("div", _hoisted_7$6, [
23063
+ ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
23064
23064
  createElementVNode("div", {
23065
23065
  innerHTML: __props.dataBox.fieldsValue[__props.item.fieldName]
23066
- }, null, 8 /* PROPS */, _hoisted_8$5)
23066
+ }, null, 8 /* PROPS */, _hoisted_8$4)
23067
23067
  ]))
23068
23068
  : createCommentVNode("v-if", true),
23069
23069
  createCommentVNode(" 视频 "),
23070
23070
  (__props.item.inputType === 'video')
23071
- ? (openBlock(), createElementBlock("div", _hoisted_9$4, [
23071
+ ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
23072
23072
  createElementVNode("div", null, [
23073
23073
  createElementVNode("video", {
23074
23074
  width: style.video(__props.item, __props.myProps).width,
@@ -23270,8 +23270,8 @@ script$g.__file = "src/form/InputBox.vue";
23270
23270
 
23271
23271
  const _hoisted_1$d = { key: 0 };
23272
23272
  const _hoisted_2$c = ["colspan"];
23273
- const _hoisted_3$7 = { key: 0 };
23274
- const _hoisted_4$6 = ["colspan"];
23273
+ const _hoisted_3$6 = { key: 0 };
23274
+ const _hoisted_4$5 = ["colspan"];
23275
23275
 
23276
23276
 
23277
23277
  var script$f = {
@@ -23363,7 +23363,7 @@ return (_ctx, _cache) => {
23363
23363
  ? item2.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue)
23364
23364
  : true
23365
23365
  )
23366
- ? (openBlock(), createElementBlock("tr", _hoisted_3$7, [
23366
+ ? (openBlock(), createElementBlock("tr", _hoisted_3$6, [
23367
23367
  (item2.label)
23368
23368
  ? (openBlock(), createElementBlock("td", {
23369
23369
  key: 0,
@@ -23387,7 +23387,7 @@ return (_ctx, _cache) => {
23387
23387
  dataBox: __props.dataBox,
23388
23388
  item: item2
23389
23389
  }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
23390
- ], 12 /* STYLE, PROPS */, _hoisted_4$6)
23390
+ ], 12 /* STYLE, PROPS */, _hoisted_4$5)
23391
23391
  ]))
23392
23392
  : createCommentVNode("v-if", true)
23393
23393
  ], 64 /* STABLE_FRAGMENT */))
@@ -41716,7 +41716,7 @@ var script$6 = {
41716
41716
 
41717
41717
  const _hoisted_1$6 = { class: "el-upload__tip" };
41718
41718
  const _hoisted_2$6 = ["src"];
41719
- const _hoisted_3$6 = {
41719
+ const _hoisted_3$5 = {
41720
41720
  key: 0,
41721
41721
  style: {"font-size":"xx-small"}
41722
41722
  };
@@ -41767,7 +41767,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
41767
41767
  _: 1 /* STABLE */
41768
41768
  }, 8 /* PROPS */, ["modelValue"]),
41769
41769
  (_ctx.fileList.length>0)
41770
- ? (openBlock(), createElementBlock("div", _hoisted_3$6, toDisplayString("已上传"+_ctx.fileList.length+"个图片"), 1 /* TEXT */))
41770
+ ? (openBlock(), createElementBlock("div", _hoisted_3$5, toDisplayString("已上传"+_ctx.fileList.length+"个图片"), 1 /* TEXT */))
41771
41771
  : createCommentVNode("v-if", true),
41772
41772
  (_ctx.fileList.length>0)
41773
41773
  ? (openBlock(), createBlock(_component_el_button, {
@@ -41797,15 +41797,8 @@ var upload = {
41797
41797
  Upload_pictureCard: script$6
41798
41798
  };
41799
41799
 
41800
- const _hoisted_1$5 = { class: "value-code" };
41801
- const _hoisted_2$5 = { class: "value-text" };
41802
- const _hoisted_3$5 = { class: "value-code" };
41803
- const _hoisted_4$5 = { class: "value-text" };
41804
- const _hoisted_5$5 = { class: "value-code" };
41805
- const _hoisted_6$5 = { class: "value-text" };
41806
- const _hoisted_7$5 = { class: "select-row" };
41807
- const _hoisted_8$4 = { class: "select-row" };
41808
- const _hoisted_9$3 = { class: "select-submit" };
41800
+ const _hoisted_1$5 = { style: {"width":"100%"} };
41801
+ const _hoisted_2$5 = { style: {"width":"30%"} };
41809
41802
 
41810
41803
 
41811
41804
  var script$5 = {
@@ -41842,29 +41835,26 @@ const popup = reactive({
41842
41835
  }
41843
41836
  });
41844
41837
 
41845
- onMounted(async ()=>{
41846
- // 异步函数直接在 onMounted 顶层调用是允许的
41847
- const result = await request.ly0.storpro({
41848
- noSession: true,
41849
- storproName: 'ly0d3.gbt2260code2.init',
41850
- });
41851
- popup.select.arrCode2 = result.arrCode2;
41852
- });
41853
-
41854
41838
  watch(() => props.myProps.value,
41855
41839
  async (valNew, valOld) => {
41856
41840
  // 只有当传入的值有效时才进行网络请求
41857
41841
  if (!valNew) return;
41858
41842
 
41859
- const result = await request.ly0.storpro({
41843
+ const result2 = await request.ly0.storpro({
41844
+ noSession: true,
41845
+ storproName: 'ly0d3.gbt2260code2.init',
41846
+ });
41847
+ popup.select.arrCode2 = result2.arrCode2.filter(item => item.code2);
41848
+
41849
+ const result6 = await request.ly0.storpro({
41860
41850
  noSession: true,
41861
41851
  storproName: 'ly0d3.gbt2260code6.get',
41862
41852
  data: { code6: valNew },
41863
41853
  });
41864
41854
 
41865
- if(result.itemCode6){
41855
+ if(result6.itemCode6){
41866
41856
  // 保持响应式
41867
- Object.assign(value, result.itemCode6);
41857
+ Object.assign(value, result6.itemCode6);
41868
41858
 
41869
41859
  // 确保按顺序加载级联数据
41870
41860
  if (value.code2) {
@@ -41898,7 +41888,7 @@ const hdlChangeCode2 = async value => { // 使用 async 标记
41898
41888
  data: {code2: value},
41899
41889
  });
41900
41890
 
41901
- popup.select.arrCode4 = result.arrCode4;
41891
+ popup.select.arrCode4 = result.arrCode4.filter(item => item.code4);
41902
41892
  popup.select.code4 = '';
41903
41893
  popup.select.arrCode6 = [];
41904
41894
  popup.select.code6 = '';
@@ -41911,7 +41901,7 @@ const hdlChangeCode4 = async value => {
41911
41901
  data: {code4: value},
41912
41902
  });
41913
41903
 
41914
- popup.select.arrCode6 = result.arrCode6;
41904
+ popup.select.arrCode6 = result.arrCode6.filter(item => item.code6);
41915
41905
  popup.select.code6 = '';
41916
41906
  };
41917
41907
 
@@ -41939,6 +41929,41 @@ const hdlSubmit = () => {
41939
41929
  popup.visible = false;
41940
41930
  };
41941
41931
 
41932
+ const style = reactive({
41933
+ value: {
41934
+ code: {
41935
+ color: '#6a6a6a',
41936
+ },
41937
+ text: {
41938
+ color: '#0000bb',
41939
+ 'padding-left': '10px',
41940
+ }
41941
+ },
41942
+ popup: {
41943
+ label: {
41944
+ 'text-align': 'right',
41945
+ 'font-size': 'medium',
41946
+ 'padding-right': '20px'
41947
+ },
41948
+ select: {
41949
+ width: '300px',
41950
+ 'margin-top': '10px',
41951
+ 'margin-bottom': '10px',
41952
+ height: '40px',
41953
+ 'line-height': '40px'
41954
+ },
41955
+ submit: {
41956
+ 'text-align': 'right'
41957
+ }
41958
+ },
41959
+ line: {
41960
+ height: '1px',
41961
+ 'background-color': '#999999',
41962
+ 'margin-top': '10px',
41963
+ 'margin-bottom': '10px'
41964
+ }
41965
+ });
41966
+
41942
41967
  return (_ctx, _cache) => {
41943
41968
  const _component_edit = resolveComponent("edit");
41944
41969
  const _component_el_icon = resolveComponent("el-icon");
@@ -41965,28 +41990,40 @@ return (_ctx, _cache) => {
41965
41990
  : createCommentVNode("v-if", true)
41966
41991
  ]),
41967
41992
  createElementVNode("td", null, [
41968
- createElementVNode("span", _hoisted_1$5, toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 1 /* TEXT */)
41993
+ createElementVNode("span", {
41994
+ style: normalizeStyle(style.value.code)
41995
+ }, toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 5 /* TEXT, STYLE */)
41969
41996
  ]),
41970
41997
  createElementVNode("td", null, [
41971
- createElementVNode("span", _hoisted_2$5, toDisplayString(value.text2 ? value.text2 : ''), 1 /* TEXT */)
41998
+ createElementVNode("span", {
41999
+ style: normalizeStyle(style.value.text)
42000
+ }, toDisplayString(value.text2 ? value.text2 : ''), 5 /* TEXT, STYLE */)
41972
42001
  ])
41973
42002
  ]),
41974
42003
  createElementVNode("tr", null, [
41975
42004
  _cache[4] || (_cache[4] = createElementVNode("td", null, null, -1 /* CACHED */)),
41976
42005
  createElementVNode("td", null, [
41977
- createElementVNode("span", _hoisted_3$5, toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 1 /* TEXT */)
42006
+ createElementVNode("span", {
42007
+ style: normalizeStyle(style.value.code)
42008
+ }, toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 5 /* TEXT, STYLE */)
41978
42009
  ]),
41979
42010
  createElementVNode("td", null, [
41980
- createElementVNode("span", _hoisted_4$5, toDisplayString(value.text4 ? value.text4 : ''), 1 /* TEXT */)
42011
+ createElementVNode("span", {
42012
+ style: normalizeStyle(style.value.text)
42013
+ }, toDisplayString(value.text4 ? value.text4 : ''), 5 /* TEXT, STYLE */)
41981
42014
  ])
41982
42015
  ]),
41983
42016
  createElementVNode("tr", null, [
41984
42017
  _cache[5] || (_cache[5] = createElementVNode("td", null, null, -1 /* CACHED */)),
41985
42018
  createElementVNode("td", null, [
41986
- createElementVNode("span", _hoisted_5$5, toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 1 /* TEXT */)
42019
+ createElementVNode("span", {
42020
+ style: normalizeStyle(style.value.code)
42021
+ }, toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 5 /* TEXT, STYLE */)
41987
42022
  ]),
41988
42023
  createElementVNode("td", null, [
41989
- createElementVNode("span", _hoisted_6$5, toDisplayString(value.text6 ? value.text6 : ''), 1 /* TEXT */)
42024
+ createElementVNode("span", {
42025
+ style: normalizeStyle(style.value.text)
42026
+ }, toDisplayString(value.text6 ? value.text6 : ''), 5 /* TEXT, STYLE */)
41990
42027
  ])
41991
42028
  ])
41992
42029
  ])
@@ -42002,18 +42039,20 @@ return (_ctx, _cache) => {
42002
42039
  "destroy-on-close": true
42003
42040
  }, {
42004
42041
  default: withCtx(() => [
42005
- createElementVNode("table", null, [
42042
+ createElementVNode("table", _hoisted_1$5, [
42006
42043
  createElementVNode("tbody", null, [
42007
42044
  createElementVNode("tr", null, [
42008
- _cache[6] || (_cache[6] = createElementVNode("td", { style: {"width":"30%"} }, [
42009
- createElementVNode("div", { class: "select-label" }, "省")
42010
- ], -1 /* CACHED */)),
42045
+ createElementVNode("td", _hoisted_2$5, [
42046
+ createElementVNode("div", {
42047
+ style: normalizeStyle(style.popup.label)
42048
+ }, "省", 4 /* STYLE */)
42049
+ ]),
42011
42050
  createElementVNode("td", null, [
42012
42051
  createVNode(_component_el_select, {
42013
42052
  modelValue: popup.select.code2,
42014
42053
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((popup.select.code2) = $event)),
42015
42054
  filterable: "",
42016
- class: "select",
42055
+ style: normalizeStyle(style.popup.select),
42017
42056
  onChange: hdlChangeCode2
42018
42057
  }, {
42019
42058
  default: withCtx(() => [
@@ -42026,19 +42065,21 @@ return (_ctx, _cache) => {
42026
42065
  }), 128 /* KEYED_FRAGMENT */))
42027
42066
  ]),
42028
42067
  _: 1 /* STABLE */
42029
- }, 8 /* PROPS */, ["modelValue"])
42068
+ }, 8 /* PROPS */, ["modelValue", "style"])
42030
42069
  ])
42031
42070
  ]),
42032
- createElementVNode("tr", _hoisted_7$5, [
42033
- _cache[7] || (_cache[7] = createElementVNode("td", null, [
42034
- createElementVNode("div", { class: "select-label" }, "市")
42035
- ], -1 /* CACHED */)),
42071
+ createElementVNode("tr", null, [
42072
+ createElementVNode("td", null, [
42073
+ createElementVNode("div", {
42074
+ style: normalizeStyle(style.popup.label)
42075
+ }, "市", 4 /* STYLE */)
42076
+ ]),
42036
42077
  createElementVNode("td", null, [
42037
42078
  createVNode(_component_el_select, {
42038
42079
  modelValue: popup.select.code4,
42039
42080
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((popup.select.code4) = $event)),
42040
42081
  filterable: "",
42041
- class: "select",
42082
+ style: normalizeStyle(style.popup.select),
42042
42083
  onChange: hdlChangeCode4
42043
42084
  }, {
42044
42085
  default: withCtx(() => [
@@ -42051,19 +42092,21 @@ return (_ctx, _cache) => {
42051
42092
  }), 128 /* KEYED_FRAGMENT */))
42052
42093
  ]),
42053
42094
  _: 1 /* STABLE */
42054
- }, 8 /* PROPS */, ["modelValue"])
42095
+ }, 8 /* PROPS */, ["modelValue", "style"])
42055
42096
  ])
42056
42097
  ]),
42057
- createElementVNode("tr", _hoisted_8$4, [
42058
- _cache[8] || (_cache[8] = createElementVNode("td", null, [
42059
- createElementVNode("div", { class: "select-label" }, "县")
42060
- ], -1 /* CACHED */)),
42098
+ createElementVNode("tr", null, [
42099
+ createElementVNode("td", null, [
42100
+ createElementVNode("div", {
42101
+ style: normalizeStyle(style.popup.label)
42102
+ }, "县", 4 /* STYLE */)
42103
+ ]),
42061
42104
  createElementVNode("td", null, [
42062
42105
  createVNode(_component_el_select, {
42063
42106
  modelValue: popup.select.code6,
42064
42107
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((popup.select.code6) = $event)),
42065
42108
  filterable: "",
42066
- class: "select"
42109
+ style: normalizeStyle(style.popup.select)
42067
42110
  }, {
42068
42111
  default: withCtx(() => [
42069
42112
  (openBlock(true), createElementBlock(Fragment, null, renderList(popup.select.arrCode6, (item, index) => {
@@ -42075,24 +42118,28 @@ return (_ctx, _cache) => {
42075
42118
  }), 128 /* KEYED_FRAGMENT */))
42076
42119
  ]),
42077
42120
  _: 1 /* STABLE */
42078
- }, 8 /* PROPS */, ["modelValue"])
42121
+ }, 8 /* PROPS */, ["modelValue", "style"])
42079
42122
  ])
42080
42123
  ])
42081
42124
  ])
42082
42125
  ]),
42083
- _cache[10] || (_cache[10] = createElementVNode("div", { class: "line" }, null, -1 /* CACHED */)),
42084
- createElementVNode("div", _hoisted_9$3, [
42126
+ createElementVNode("div", {
42127
+ style: normalizeStyle(style.line)
42128
+ }, null, 4 /* STYLE */),
42129
+ createElementVNode("div", {
42130
+ style: normalizeStyle(style.popup.submit)
42131
+ }, [
42085
42132
  createVNode(_component_el_button, {
42086
42133
  type: "danger",
42087
42134
  plain: "",
42088
42135
  onClick: hdlSubmit
42089
42136
  }, {
42090
- default: withCtx(() => [...(_cache[9] || (_cache[9] = [
42137
+ default: withCtx(() => [...(_cache[6] || (_cache[6] = [
42091
42138
  createTextVNode("确认", -1 /* CACHED */)
42092
42139
  ]))]),
42093
42140
  _: 1 /* STABLE */
42094
42141
  })
42095
- ])
42142
+ ], 4 /* STYLE */)
42096
42143
  ]),
42097
42144
  _: 1 /* STABLE */
42098
42145
  }, 8 /* PROPS */, ["modelValue"])
@@ -42102,7 +42149,6 @@ return (_ctx, _cache) => {
42102
42149
 
42103
42150
  };
42104
42151
 
42105
- script$5.__scopeId = "data-v-38e9d5a6";
42106
42152
  script$5.__file = "src/gbt2260/index.vue";
42107
42153
 
42108
42154
  const _hoisted_1$4 = { key: 0 };