@yoooloo42/joker 1.0.69 → 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,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,26 @@ 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
+ popup.select.arrCode2 = result2.arrCode2.filter(item => item.code2);
41848
+
41849
+ const result6 = await request.ly0.storpro({
41862
41850
  noSession: true,
41863
41851
  storproName: 'ly0d3.gbt2260code6.get',
41864
41852
  data: { code6: valNew },
41865
41853
  });
41866
41854
 
41867
- if(result.itemCode6){
41855
+ if(result6.itemCode6){
41868
41856
  // 保持响应式
41869
- Object.assign(value, result.itemCode6);
41857
+ Object.assign(value, result6.itemCode6);
41870
41858
 
41871
41859
  // 确保按顺序加载级联数据
41872
41860
  if (value.code2) {
@@ -41941,6 +41929,41 @@ const hdlSubmit = () => {
41941
41929
  popup.visible = false;
41942
41930
  };
41943
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
+
41944
41967
  return (_ctx, _cache) => {
41945
41968
  const _component_edit = resolveComponent("edit");
41946
41969
  const _component_el_icon = resolveComponent("el-icon");
@@ -41967,28 +41990,40 @@ return (_ctx, _cache) => {
41967
41990
  : createCommentVNode("v-if", true)
41968
41991
  ]),
41969
41992
  createElementVNode("td", null, [
41970
- 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 */)
41971
41996
  ]),
41972
41997
  createElementVNode("td", null, [
41973
- 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 */)
41974
42001
  ])
41975
42002
  ]),
41976
42003
  createElementVNode("tr", null, [
41977
42004
  _cache[4] || (_cache[4] = createElementVNode("td", null, null, -1 /* CACHED */)),
41978
42005
  createElementVNode("td", null, [
41979
- 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 */)
41980
42009
  ]),
41981
42010
  createElementVNode("td", null, [
41982
- 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 */)
41983
42014
  ])
41984
42015
  ]),
41985
42016
  createElementVNode("tr", null, [
41986
42017
  _cache[5] || (_cache[5] = createElementVNode("td", null, null, -1 /* CACHED */)),
41987
42018
  createElementVNode("td", null, [
41988
- 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 */)
41989
42022
  ]),
41990
42023
  createElementVNode("td", null, [
41991
- 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 */)
41992
42027
  ])
41993
42028
  ])
41994
42029
  ])
@@ -42004,18 +42039,20 @@ return (_ctx, _cache) => {
42004
42039
  "destroy-on-close": true
42005
42040
  }, {
42006
42041
  default: withCtx(() => [
42007
- createElementVNode("table", _hoisted_7$5, [
42042
+ createElementVNode("table", _hoisted_1$5, [
42008
42043
  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 */)),
42044
+ createElementVNode("tr", null, [
42045
+ createElementVNode("td", _hoisted_2$5, [
42046
+ createElementVNode("div", {
42047
+ style: normalizeStyle(style.popup.label)
42048
+ }, "省", 4 /* STYLE */)
42049
+ ]),
42013
42050
  createElementVNode("td", null, [
42014
42051
  createVNode(_component_el_select, {
42015
42052
  modelValue: popup.select.code2,
42016
42053
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((popup.select.code2) = $event)),
42017
42054
  filterable: "",
42018
- class: "select",
42055
+ style: normalizeStyle(style.popup.select),
42019
42056
  onChange: hdlChangeCode2
42020
42057
  }, {
42021
42058
  default: withCtx(() => [
@@ -42028,19 +42065,21 @@ return (_ctx, _cache) => {
42028
42065
  }), 128 /* KEYED_FRAGMENT */))
42029
42066
  ]),
42030
42067
  _: 1 /* STABLE */
42031
- }, 8 /* PROPS */, ["modelValue"])
42068
+ }, 8 /* PROPS */, ["modelValue", "style"])
42032
42069
  ])
42033
42070
  ]),
42034
- createElementVNode("tr", _hoisted_9$3, [
42035
- _cache[7] || (_cache[7] = createElementVNode("td", null, [
42036
- createElementVNode("div", { class: "select-label" }, "市")
42037
- ], -1 /* CACHED */)),
42071
+ createElementVNode("tr", null, [
42072
+ createElementVNode("td", null, [
42073
+ createElementVNode("div", {
42074
+ style: normalizeStyle(style.popup.label)
42075
+ }, "市", 4 /* STYLE */)
42076
+ ]),
42038
42077
  createElementVNode("td", null, [
42039
42078
  createVNode(_component_el_select, {
42040
42079
  modelValue: popup.select.code4,
42041
42080
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((popup.select.code4) = $event)),
42042
42081
  filterable: "",
42043
- class: "select",
42082
+ style: normalizeStyle(style.popup.select),
42044
42083
  onChange: hdlChangeCode4
42045
42084
  }, {
42046
42085
  default: withCtx(() => [
@@ -42053,19 +42092,21 @@ return (_ctx, _cache) => {
42053
42092
  }), 128 /* KEYED_FRAGMENT */))
42054
42093
  ]),
42055
42094
  _: 1 /* STABLE */
42056
- }, 8 /* PROPS */, ["modelValue"])
42095
+ }, 8 /* PROPS */, ["modelValue", "style"])
42057
42096
  ])
42058
42097
  ]),
42059
- createElementVNode("tr", _hoisted_10$2, [
42060
- _cache[8] || (_cache[8] = createElementVNode("td", null, [
42061
- createElementVNode("div", { class: "select-label" }, "县")
42062
- ], -1 /* CACHED */)),
42098
+ createElementVNode("tr", null, [
42099
+ createElementVNode("td", null, [
42100
+ createElementVNode("div", {
42101
+ style: normalizeStyle(style.popup.label)
42102
+ }, "县", 4 /* STYLE */)
42103
+ ]),
42063
42104
  createElementVNode("td", null, [
42064
42105
  createVNode(_component_el_select, {
42065
42106
  modelValue: popup.select.code6,
42066
42107
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((popup.select.code6) = $event)),
42067
42108
  filterable: "",
42068
- class: "select"
42109
+ style: normalizeStyle(style.popup.select)
42069
42110
  }, {
42070
42111
  default: withCtx(() => [
42071
42112
  (openBlock(true), createElementBlock(Fragment, null, renderList(popup.select.arrCode6, (item, index) => {
@@ -42077,24 +42118,28 @@ return (_ctx, _cache) => {
42077
42118
  }), 128 /* KEYED_FRAGMENT */))
42078
42119
  ]),
42079
42120
  _: 1 /* STABLE */
42080
- }, 8 /* PROPS */, ["modelValue"])
42121
+ }, 8 /* PROPS */, ["modelValue", "style"])
42081
42122
  ])
42082
42123
  ])
42083
42124
  ])
42084
42125
  ]),
42085
- _cache[10] || (_cache[10] = createElementVNode("div", { class: "line" }, null, -1 /* CACHED */)),
42086
- createElementVNode("div", _hoisted_11$1, [
42126
+ createElementVNode("div", {
42127
+ style: normalizeStyle(style.line)
42128
+ }, null, 4 /* STYLE */),
42129
+ createElementVNode("div", {
42130
+ style: normalizeStyle(style.popup.submit)
42131
+ }, [
42087
42132
  createVNode(_component_el_button, {
42088
42133
  type: "danger",
42089
42134
  plain: "",
42090
42135
  onClick: hdlSubmit
42091
42136
  }, {
42092
- default: withCtx(() => [...(_cache[9] || (_cache[9] = [
42137
+ default: withCtx(() => [...(_cache[6] || (_cache[6] = [
42093
42138
  createTextVNode("确认", -1 /* CACHED */)
42094
42139
  ]))]),
42095
42140
  _: 1 /* STABLE */
42096
42141
  })
42097
- ])
42142
+ ], 4 /* STYLE */)
42098
42143
  ]),
42099
42144
  _: 1 /* STABLE */
42100
42145
  }, 8 /* PROPS */, ["modelValue"])
@@ -42104,7 +42149,6 @@ return (_ctx, _cache) => {
42104
42149
 
42105
42150
  };
42106
42151
 
42107
- script$5.__scopeId = "data-v-38e9d5a6";
42108
42152
  script$5.__file = "src/gbt2260/index.vue";
42109
42153
 
42110
42154
  const _hoisted_1$4 = { key: 0 };