@yoooloo42/joker 1.0.69 → 1.0.71

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,15 +22451,15 @@ 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 };
22461
- const _hoisted_10$3 = ["width", "height", "poster"];
22462
- const _hoisted_11$2 = ["src"];
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
+ const _hoisted_10$2 = ["width", "height", "poster"];
22462
+ const _hoisted_11$1 = ["src"];
22463
22463
  const _hoisted_12 = ["src"];
22464
22464
  const _hoisted_13 = ["src"];
22465
22465
  const _hoisted_14 = { key: 0 };
@@ -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,
@@ -23079,7 +23079,7 @@ return (_ctx, _cache) => {
23079
23079
  createElementVNode("source", {
23080
23080
  src: video.src,
23081
23081
  type: "video/mp4"
23082
- }, null, 8 /* PROPS */, _hoisted_11$2),
23082
+ }, null, 8 /* PROPS */, _hoisted_11$1),
23083
23083
  createCommentVNode(" MP4/H.264/AAC - 最广泛支持 "),
23084
23084
  createElementVNode("source", {
23085
23085
  src: video.src,
@@ -23091,7 +23091,7 @@ return (_ctx, _cache) => {
23091
23091
  type: "video/ogg"
23092
23092
  }, null, 8 /* PROPS */, _hoisted_13),
23093
23093
  createCommentVNode(" Ogg/Theora/Vorbis - 较旧的开源格式 ")
23094
- ], 8 /* PROPS */, _hoisted_10$3)
23094
+ ], 8 /* PROPS */, _hoisted_10$2)
23095
23095
  ]),
23096
23096
  createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
23097
23097
  (!!__props.item.videoDelete && !!__props.dataBox.fieldsValue[__props.item.fieldName])
@@ -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,17 +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 = { style: {"width":"100%"} };
41807
- const _hoisted_8$4 = { style: {"padding-top":"10px","padding-bottom":"10px"} };
41808
- const _hoisted_9$3 = { class: "select-row" };
41809
- const _hoisted_10$2 = { class: "select-row" };
41810
- const _hoisted_11$1 = { class: "select-submit" };
41800
+ const _hoisted_1$5 = { style: {"width":"100%"} };
41801
+ const _hoisted_2$5 = { style: {"width":"30%"} };
41811
41802
 
41812
41803
 
41813
41804
  var script$5 = {
@@ -41844,29 +41835,27 @@ const popup = reactive({
41844
41835
  }
41845
41836
  });
41846
41837
 
41847
- onMounted(async ()=>{
41848
- // 异步函数直接在 onMounted 顶层调用是允许的
41849
- const result = await request.ly0.storpro({
41850
- noSession: true,
41851
- storproName: 'ly0d3.gbt2260code2.init',
41852
- });
41853
- popup.select.arrCode2 = result.arrCode2.filter(item => item.code2);
41854
- });
41855
-
41856
41838
  watch(() => props.myProps.value,
41857
41839
  async (valNew, valOld) => {
41858
41840
  // 只有当传入的值有效时才进行网络请求
41859
41841
  if (!valNew) return;
41860
41842
 
41861
- const result = await request.ly0.storpro({
41843
+ const result2 = await request.ly0.storpro({
41844
+ noSession: true,
41845
+ storproName: 'ly0d3.gbt2260code2.init',
41846
+ });
41847
+ console.log('测试 000', result2);
41848
+ popup.select.arrCode2 = result2.arrCode2.filter(item => item.code2);
41849
+
41850
+ const result6 = await request.ly0.storpro({
41862
41851
  noSession: true,
41863
41852
  storproName: 'ly0d3.gbt2260code6.get',
41864
41853
  data: { code6: valNew },
41865
41854
  });
41866
41855
 
41867
- if(result.itemCode6){
41856
+ if(result6.itemCode6){
41868
41857
  // 保持响应式
41869
- Object.assign(value, result.itemCode6);
41858
+ Object.assign(value, result6.itemCode6);
41870
41859
 
41871
41860
  // 确保按顺序加载级联数据
41872
41861
  if (value.code2) {
@@ -41941,6 +41930,41 @@ const hdlSubmit = () => {
41941
41930
  popup.visible = false;
41942
41931
  };
41943
41932
 
41933
+ const style = reactive({
41934
+ value: {
41935
+ code: {
41936
+ color: '#6a6a6a',
41937
+ },
41938
+ text: {
41939
+ color: '#0000bb',
41940
+ 'padding-left': '10px',
41941
+ }
41942
+ },
41943
+ popup: {
41944
+ label: {
41945
+ 'text-align': 'right',
41946
+ 'font-size': 'medium',
41947
+ 'padding-right': '20px'
41948
+ },
41949
+ select: {
41950
+ width: '300px',
41951
+ 'margin-top': '10px',
41952
+ 'margin-bottom': '10px',
41953
+ height: '40px',
41954
+ 'line-height': '40px'
41955
+ },
41956
+ submit: {
41957
+ 'text-align': 'right'
41958
+ }
41959
+ },
41960
+ line: {
41961
+ height: '1px',
41962
+ 'background-color': '#999999',
41963
+ 'margin-top': '10px',
41964
+ 'margin-bottom': '10px'
41965
+ }
41966
+ });
41967
+
41944
41968
  return (_ctx, _cache) => {
41945
41969
  const _component_edit = resolveComponent("edit");
41946
41970
  const _component_el_icon = resolveComponent("el-icon");
@@ -41967,28 +41991,40 @@ return (_ctx, _cache) => {
41967
41991
  : createCommentVNode("v-if", true)
41968
41992
  ]),
41969
41993
  createElementVNode("td", null, [
41970
- createElementVNode("span", _hoisted_1$5, toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 1 /* TEXT */)
41994
+ createElementVNode("span", {
41995
+ style: normalizeStyle(style.value.code)
41996
+ }, toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 5 /* TEXT, STYLE */)
41971
41997
  ]),
41972
41998
  createElementVNode("td", null, [
41973
- createElementVNode("span", _hoisted_2$5, toDisplayString(value.text2 ? value.text2 : ''), 1 /* TEXT */)
41999
+ createElementVNode("span", {
42000
+ style: normalizeStyle(style.value.text)
42001
+ }, toDisplayString(value.text2 ? value.text2 : ''), 5 /* TEXT, STYLE */)
41974
42002
  ])
41975
42003
  ]),
41976
42004
  createElementVNode("tr", null, [
41977
42005
  _cache[4] || (_cache[4] = createElementVNode("td", null, null, -1 /* CACHED */)),
41978
42006
  createElementVNode("td", null, [
41979
- createElementVNode("span", _hoisted_3$5, toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 1 /* TEXT */)
42007
+ createElementVNode("span", {
42008
+ style: normalizeStyle(style.value.code)
42009
+ }, toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 5 /* TEXT, STYLE */)
41980
42010
  ]),
41981
42011
  createElementVNode("td", null, [
41982
- createElementVNode("span", _hoisted_4$5, toDisplayString(value.text4 ? value.text4 : ''), 1 /* TEXT */)
42012
+ createElementVNode("span", {
42013
+ style: normalizeStyle(style.value.text)
42014
+ }, toDisplayString(value.text4 ? value.text4 : ''), 5 /* TEXT, STYLE */)
41983
42015
  ])
41984
42016
  ]),
41985
42017
  createElementVNode("tr", null, [
41986
42018
  _cache[5] || (_cache[5] = createElementVNode("td", null, null, -1 /* CACHED */)),
41987
42019
  createElementVNode("td", null, [
41988
- createElementVNode("span", _hoisted_5$5, toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 1 /* TEXT */)
42020
+ createElementVNode("span", {
42021
+ style: normalizeStyle(style.value.code)
42022
+ }, toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 5 /* TEXT, STYLE */)
41989
42023
  ]),
41990
42024
  createElementVNode("td", null, [
41991
- createElementVNode("span", _hoisted_6$5, toDisplayString(value.text6 ? value.text6 : ''), 1 /* TEXT */)
42025
+ createElementVNode("span", {
42026
+ style: normalizeStyle(style.value.text)
42027
+ }, toDisplayString(value.text6 ? value.text6 : ''), 5 /* TEXT, STYLE */)
41992
42028
  ])
41993
42029
  ])
41994
42030
  ])
@@ -42004,18 +42040,20 @@ return (_ctx, _cache) => {
42004
42040
  "destroy-on-close": true
42005
42041
  }, {
42006
42042
  default: withCtx(() => [
42007
- createElementVNode("table", _hoisted_7$5, [
42043
+ createElementVNode("table", _hoisted_1$5, [
42008
42044
  createElementVNode("tbody", null, [
42009
- createElementVNode("tr", _hoisted_8$4, [
42010
- _cache[6] || (_cache[6] = createElementVNode("td", { style: {"width":"30%"} }, [
42011
- createElementVNode("div", { class: "select-label" }, "省")
42012
- ], -1 /* CACHED */)),
42045
+ createElementVNode("tr", null, [
42046
+ createElementVNode("td", _hoisted_2$5, [
42047
+ createElementVNode("div", {
42048
+ style: normalizeStyle(style.popup.label)
42049
+ }, "省", 4 /* STYLE */)
42050
+ ]),
42013
42051
  createElementVNode("td", null, [
42014
42052
  createVNode(_component_el_select, {
42015
42053
  modelValue: popup.select.code2,
42016
42054
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((popup.select.code2) = $event)),
42017
42055
  filterable: "",
42018
- class: "select",
42056
+ style: normalizeStyle(style.popup.select),
42019
42057
  onChange: hdlChangeCode2
42020
42058
  }, {
42021
42059
  default: withCtx(() => [
@@ -42028,19 +42066,21 @@ return (_ctx, _cache) => {
42028
42066
  }), 128 /* KEYED_FRAGMENT */))
42029
42067
  ]),
42030
42068
  _: 1 /* STABLE */
42031
- }, 8 /* PROPS */, ["modelValue"])
42069
+ }, 8 /* PROPS */, ["modelValue", "style"])
42032
42070
  ])
42033
42071
  ]),
42034
- createElementVNode("tr", _hoisted_9$3, [
42035
- _cache[7] || (_cache[7] = createElementVNode("td", null, [
42036
- createElementVNode("div", { class: "select-label" }, "市")
42037
- ], -1 /* CACHED */)),
42072
+ createElementVNode("tr", null, [
42073
+ createElementVNode("td", null, [
42074
+ createElementVNode("div", {
42075
+ style: normalizeStyle(style.popup.label)
42076
+ }, "市", 4 /* STYLE */)
42077
+ ]),
42038
42078
  createElementVNode("td", null, [
42039
42079
  createVNode(_component_el_select, {
42040
42080
  modelValue: popup.select.code4,
42041
42081
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((popup.select.code4) = $event)),
42042
42082
  filterable: "",
42043
- class: "select",
42083
+ style: normalizeStyle(style.popup.select),
42044
42084
  onChange: hdlChangeCode4
42045
42085
  }, {
42046
42086
  default: withCtx(() => [
@@ -42053,19 +42093,21 @@ return (_ctx, _cache) => {
42053
42093
  }), 128 /* KEYED_FRAGMENT */))
42054
42094
  ]),
42055
42095
  _: 1 /* STABLE */
42056
- }, 8 /* PROPS */, ["modelValue"])
42096
+ }, 8 /* PROPS */, ["modelValue", "style"])
42057
42097
  ])
42058
42098
  ]),
42059
- createElementVNode("tr", _hoisted_10$2, [
42060
- _cache[8] || (_cache[8] = createElementVNode("td", null, [
42061
- createElementVNode("div", { class: "select-label" }, "县")
42062
- ], -1 /* CACHED */)),
42099
+ createElementVNode("tr", null, [
42100
+ createElementVNode("td", null, [
42101
+ createElementVNode("div", {
42102
+ style: normalizeStyle(style.popup.label)
42103
+ }, "县", 4 /* STYLE */)
42104
+ ]),
42063
42105
  createElementVNode("td", null, [
42064
42106
  createVNode(_component_el_select, {
42065
42107
  modelValue: popup.select.code6,
42066
42108
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((popup.select.code6) = $event)),
42067
42109
  filterable: "",
42068
- class: "select"
42110
+ style: normalizeStyle(style.popup.select)
42069
42111
  }, {
42070
42112
  default: withCtx(() => [
42071
42113
  (openBlock(true), createElementBlock(Fragment, null, renderList(popup.select.arrCode6, (item, index) => {
@@ -42077,24 +42119,28 @@ return (_ctx, _cache) => {
42077
42119
  }), 128 /* KEYED_FRAGMENT */))
42078
42120
  ]),
42079
42121
  _: 1 /* STABLE */
42080
- }, 8 /* PROPS */, ["modelValue"])
42122
+ }, 8 /* PROPS */, ["modelValue", "style"])
42081
42123
  ])
42082
42124
  ])
42083
42125
  ])
42084
42126
  ]),
42085
- _cache[10] || (_cache[10] = createElementVNode("div", { class: "line" }, null, -1 /* CACHED */)),
42086
- createElementVNode("div", _hoisted_11$1, [
42127
+ createElementVNode("div", {
42128
+ style: normalizeStyle(style.line)
42129
+ }, null, 4 /* STYLE */),
42130
+ createElementVNode("div", {
42131
+ style: normalizeStyle(style.popup.submit)
42132
+ }, [
42087
42133
  createVNode(_component_el_button, {
42088
42134
  type: "danger",
42089
42135
  plain: "",
42090
42136
  onClick: hdlSubmit
42091
42137
  }, {
42092
- default: withCtx(() => [...(_cache[9] || (_cache[9] = [
42138
+ default: withCtx(() => [...(_cache[6] || (_cache[6] = [
42093
42139
  createTextVNode("确认", -1 /* CACHED */)
42094
42140
  ]))]),
42095
42141
  _: 1 /* STABLE */
42096
42142
  })
42097
- ])
42143
+ ], 4 /* STYLE */)
42098
42144
  ]),
42099
42145
  _: 1 /* STABLE */
42100
42146
  }, 8 /* PROPS */, ["modelValue"])
@@ -42104,7 +42150,6 @@ return (_ctx, _cache) => {
42104
42150
 
42105
42151
  };
42106
42152
 
42107
- script$5.__scopeId = "data-v-38e9d5a6";
42108
42153
  script$5.__file = "src/gbt2260/index.vue";
42109
42154
 
42110
42155
  const _hoisted_1$4 = { key: 0 };