@yoooloo42/joker 1.0.174 → 1.0.176
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/dist/bundle.css +0 -8
- package/dist/index.cjs.js +85 -129
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +85 -129
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22670,9 +22670,6 @@ var unclassified = {
|
|
|
22670
22670
|
|
|
22671
22671
|
// with-table数据模板
|
|
22672
22672
|
|
|
22673
|
-
const ly0default$4 = {
|
|
22674
|
-
pageSize: 10
|
|
22675
|
-
};
|
|
22676
22673
|
|
|
22677
22674
|
// 数据刷新
|
|
22678
22675
|
const refresh = async _ref => {
|
|
@@ -22684,17 +22681,20 @@ const refresh = async _ref => {
|
|
|
22684
22681
|
const result = await ly0request.storpro({
|
|
22685
22682
|
storproName: scopeThis.storpro.refresh,
|
|
22686
22683
|
data: {
|
|
22687
|
-
query: scopeThis.query
|
|
22688
|
-
sort: scopeThis.query
|
|
22689
|
-
limit: scopeThis.query
|
|
22690
|
-
page: scopeThis.query
|
|
22684
|
+
query: scopeThis.query.formData,
|
|
22685
|
+
sort: scopeThis.query.sort,
|
|
22686
|
+
limit: scopeThis.query.pageSize,
|
|
22687
|
+
page: scopeThis.query.currentPage
|
|
22691
22688
|
}
|
|
22692
22689
|
});
|
|
22693
22690
|
scopeThis.tableProps.table.loading.visible = false;
|
|
22694
22691
|
if (result.code === 0) {
|
|
22695
22692
|
unclassified.deepClone.deepMerge(scopeThis.tableData, {
|
|
22696
22693
|
data: result.data,
|
|
22697
|
-
total: result.total
|
|
22694
|
+
total: result.total,
|
|
22695
|
+
sort: scopeThis.query.sort,
|
|
22696
|
+
pageSize: scopeThis.query.pageSize,
|
|
22697
|
+
currentPage: scopeThis.query.currentPage
|
|
22698
22698
|
});
|
|
22699
22699
|
if (!!message) {
|
|
22700
22700
|
ElMessage('数据已刷新');
|
|
@@ -22853,11 +22853,13 @@ const submitInsertOne = async _ref0 => {
|
|
|
22853
22853
|
// 关闭表单窗口
|
|
22854
22854
|
scopeThis.formProps.popup.visible = false;
|
|
22855
22855
|
ElMessage('新增一条记录成功');
|
|
22856
|
-
scopeThis.
|
|
22857
|
-
scopeThis.tableData =
|
|
22858
|
-
|
|
22859
|
-
|
|
22856
|
+
scopeThis.tableData.data = result.dataNew;
|
|
22857
|
+
scopeThis.tableData.total = 1;
|
|
22858
|
+
scopeThis.tableData.currentPage = 1;
|
|
22859
|
+
scopeThis.query.formData = {
|
|
22860
|
+
_id: result.dataNew._id
|
|
22860
22861
|
};
|
|
22862
|
+
scopeThis.query.currentPage = 1;
|
|
22861
22863
|
} else {
|
|
22862
22864
|
ElMessage('新增一条记录失败');
|
|
22863
22865
|
}
|
|
@@ -22949,79 +22951,6 @@ var withTable = {
|
|
|
22949
22951
|
submitDeleteOne
|
|
22950
22952
|
};
|
|
22951
22953
|
|
|
22952
|
-
// 默认值
|
|
22953
|
-
|
|
22954
|
-
var ly0default$3 = {
|
|
22955
|
-
myProps: {
|
|
22956
|
-
popup: {
|
|
22957
|
-
visible: false,
|
|
22958
|
-
title: '',
|
|
22959
|
-
width: '800px',
|
|
22960
|
-
top: '15vh'
|
|
22961
|
-
},
|
|
22962
|
-
menu: {
|
|
22963
|
-
mode: 'horizontal',
|
|
22964
|
-
menu: []
|
|
22965
|
-
},
|
|
22966
|
-
cols: [],
|
|
22967
|
-
submit: {
|
|
22968
|
-
switch: true // true - 提交模式, false - 组件模式
|
|
22969
|
-
},
|
|
22970
|
-
para: {
|
|
22971
|
-
inputWidth: '200px',
|
|
22972
|
-
placeholder: {
|
|
22973
|
-
input: '请输入',
|
|
22974
|
-
select: '请选择',
|
|
22975
|
-
datetime: '请选择时间',
|
|
22976
|
-
date: '请选择日期'
|
|
22977
|
-
},
|
|
22978
|
-
image: {
|
|
22979
|
-
width: '400px',
|
|
22980
|
-
height: '300px'
|
|
22981
|
-
},
|
|
22982
|
-
thumb: {
|
|
22983
|
-
width: '40px',
|
|
22984
|
-
height: '30px'
|
|
22985
|
-
},
|
|
22986
|
-
video: {
|
|
22987
|
-
width: '300px',
|
|
22988
|
-
height: '200px'
|
|
22989
|
-
},
|
|
22990
|
-
upload: {
|
|
22991
|
-
uploadUrl: ly0request.domain + ly0request.upload,
|
|
22992
|
-
uploadUrl_image: ly0request.domain + ly0request.upload_image,
|
|
22993
|
-
uploadUrl_carplate: ly0request.domain + ly0request.upload_carplate
|
|
22994
|
-
},
|
|
22995
|
-
richtext: {
|
|
22996
|
-
editorWidth: '500px',
|
|
22997
|
-
// 富文本编辑器宽度
|
|
22998
|
-
size: 200 // 可上传的图片大小,单位为KB, 1M = 1024KB
|
|
22999
|
-
},
|
|
23000
|
-
download: {
|
|
23001
|
-
// 行内下载
|
|
23002
|
-
fileName: 'new-file',
|
|
23003
|
-
// 下载文件名
|
|
23004
|
-
downloadLabel: '点击这里下载',
|
|
23005
|
-
// 下载标签
|
|
23006
|
-
downloadLabelNoSrc: '没有可供下载的资源' // 下载标签
|
|
23007
|
-
},
|
|
23008
|
-
ly0d7thumb: {
|
|
23009
|
-
thumb: {
|
|
23010
|
-
fieldName: 'thumb',
|
|
23011
|
-
width: '100px',
|
|
23012
|
-
height: '100px'
|
|
23013
|
-
},
|
|
23014
|
-
name: {
|
|
23015
|
-
fieldName: 'name'
|
|
23016
|
-
},
|
|
23017
|
-
number: {
|
|
23018
|
-
fieldName: 'number'
|
|
23019
|
-
}
|
|
23020
|
-
}
|
|
23021
|
-
}
|
|
23022
|
-
}
|
|
23023
|
-
};
|
|
23024
|
-
|
|
23025
22954
|
function box$1(item) {
|
|
23026
22955
|
let result = {
|
|
23027
22956
|
'text-align': 'right',
|
|
@@ -23068,14 +22997,14 @@ function box(item) {
|
|
|
23068
22997
|
}
|
|
23069
22998
|
|
|
23070
22999
|
// inputType: "text"
|
|
23071
|
-
function text(item
|
|
23000
|
+
function text(item) {
|
|
23072
23001
|
return {
|
|
23073
23002
|
'white-space': 'pre-line',
|
|
23074
23003
|
// 保留换行符
|
|
23075
23004
|
'border-left': '#ababab solid 1px',
|
|
23076
23005
|
'border-top': '#ababab solid 1px',
|
|
23077
23006
|
'padding-left': '10px',
|
|
23078
|
-
|
|
23007
|
+
height: '40px'
|
|
23079
23008
|
};
|
|
23080
23009
|
}
|
|
23081
23010
|
|
|
@@ -23089,11 +23018,8 @@ function text0(item) {
|
|
|
23089
23018
|
}
|
|
23090
23019
|
|
|
23091
23020
|
// inputType: "input", "select", "date-picker"
|
|
23092
|
-
function input$1(item
|
|
23093
|
-
return
|
|
23094
|
-
width: item.inputWidth ? item.inputWidth : formProps.para.inputWidth,
|
|
23095
|
-
height: '40px'
|
|
23096
|
-
};
|
|
23021
|
+
function input$1(item) {
|
|
23022
|
+
return item.style || '';
|
|
23097
23023
|
}
|
|
23098
23024
|
|
|
23099
23025
|
// inputType: "input-number"
|
|
@@ -23160,39 +23086,30 @@ function button_group(item, groupItem, buttonItem) {
|
|
|
23160
23086
|
|
|
23161
23087
|
// inputType: "image"
|
|
23162
23088
|
function image(item, formProps) {
|
|
23163
|
-
return
|
|
23164
|
-
width: item.imageWidth ? item.imageWidth : formProps.para.image.width,
|
|
23165
|
-
height: item.imageHeight ? item.imageHeight : formProps.para.image.height
|
|
23166
|
-
};
|
|
23089
|
+
return item.style || '';
|
|
23167
23090
|
}
|
|
23168
23091
|
|
|
23169
23092
|
// inputType: "images"
|
|
23170
|
-
function images(item
|
|
23093
|
+
function images(item) {
|
|
23171
23094
|
return {
|
|
23172
23095
|
itemBox: {
|
|
23173
23096
|
display: 'inline-block',
|
|
23174
23097
|
margin: '10px'
|
|
23175
23098
|
},
|
|
23176
|
-
itemThumb:
|
|
23177
|
-
width: item.imageWidth ? item.imageWidth : formProps.para.thumb.width,
|
|
23178
|
-
height: item.imageHeight ? item.imageHeight : formProps.para.thumb.height
|
|
23179
|
-
}
|
|
23099
|
+
itemThumb: item.style || ''
|
|
23180
23100
|
};
|
|
23181
23101
|
}
|
|
23182
23102
|
|
|
23183
23103
|
// inputType: "richtext"
|
|
23184
|
-
function richtext(item
|
|
23185
|
-
return
|
|
23186
|
-
// 富文本编辑器宽度
|
|
23187
|
-
width: item.editorWidth ? item.editorWidth : formProps.para.richtext.editorWidth
|
|
23188
|
-
};
|
|
23104
|
+
function richtext(item) {
|
|
23105
|
+
return item.style || '';
|
|
23189
23106
|
}
|
|
23190
23107
|
|
|
23191
23108
|
// inputType: "video"
|
|
23192
|
-
function video(item
|
|
23109
|
+
function video(item) {
|
|
23193
23110
|
return {
|
|
23194
|
-
width: item.
|
|
23195
|
-
height: item.
|
|
23111
|
+
width: item.width || '',
|
|
23112
|
+
height: item.height || ''
|
|
23196
23113
|
};
|
|
23197
23114
|
}
|
|
23198
23115
|
|
|
@@ -23656,7 +23573,7 @@ return (_ctx, _cache) => {
|
|
|
23656
23573
|
(unref(propsItem_box).inputType === 'text')
|
|
23657
23574
|
? (openBlock(), createElementBlock("div", {
|
|
23658
23575
|
key: 0,
|
|
23659
|
-
style: normalizeStyle(style.text(unref(propsItem_box)
|
|
23576
|
+
style: normalizeStyle(style.text(unref(propsItem_box)))
|
|
23660
23577
|
}, toDisplayString(unref(formData_box)[unref(propsItem_box).fieldName] ? unref(formData_box)[unref(propsItem_box).fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
23661
23578
|
: createCommentVNode("v-if", true),
|
|
23662
23579
|
(unref(propsItem_box).inputType === 'text0')
|
|
@@ -23668,13 +23585,13 @@ return (_ctx, _cache) => {
|
|
|
23668
23585
|
(!unref(propsItem_box).inputType)
|
|
23669
23586
|
? (openBlock(), createElementBlock("div", {
|
|
23670
23587
|
key: 2,
|
|
23671
|
-
style: normalizeStyle(style.text(unref(propsItem_box)
|
|
23588
|
+
style: normalizeStyle(style.text(unref(propsItem_box)))
|
|
23672
23589
|
}, toDisplayString(unref(formData_box)[unref(propsItem_box).fieldName] ? unref(formData_box)[unref(propsItem_box).fieldName] : ' '), 5 /* TEXT, STYLE */))
|
|
23673
23590
|
: createCommentVNode("v-if", true),
|
|
23674
23591
|
(unref(propsItem_box).inputType === 'expression')
|
|
23675
23592
|
? (openBlock(), createElementBlock("div", {
|
|
23676
23593
|
key: 3,
|
|
23677
|
-
style: normalizeStyle(style.text(unref(propsItem_box)
|
|
23594
|
+
style: normalizeStyle(style.text(unref(propsItem_box)))
|
|
23678
23595
|
}, toDisplayString(unref(propsItem_box).hdlExpression && unref(propsItem_box).hdlExpression({formData: unref(formData_box), scopeThis: __props.scopeThis})
|
|
23679
23596
|
? unref(propsItem_box).hdlExpression({formData: unref(formData_box), scopeThis: unref(scopeThis_box)})
|
|
23680
23597
|
: ' '), 5 /* TEXT, STYLE */))
|
|
@@ -23700,7 +23617,7 @@ return (_ctx, _cache) => {
|
|
|
23700
23617
|
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23701
23618
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23702
23619
|
placeholder: input.placeholder,
|
|
23703
|
-
style: normalizeStyle(style.input(unref(propsItem_box)
|
|
23620
|
+
style: normalizeStyle(style.input(unref(propsItem_box))),
|
|
23704
23621
|
onInput: input.hdlCannotInput,
|
|
23705
23622
|
"show-password": input.showPassword
|
|
23706
23623
|
}, null, 8 /* PROPS */, ["modelValue", "placeholder", "style", "onInput", "show-password"]))
|
|
@@ -23708,12 +23625,11 @@ return (_ctx, _cache) => {
|
|
|
23708
23625
|
(unref(propsItem_box).inputType === 'select')
|
|
23709
23626
|
? (openBlock(), createBlock(_component_el_select, {
|
|
23710
23627
|
key: 7,
|
|
23711
|
-
class: "deep-input",
|
|
23712
23628
|
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23713
23629
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23714
23630
|
placeholder: select.placeholder,
|
|
23715
23631
|
filterable: "",
|
|
23716
|
-
style: normalizeStyle(style.input(unref(propsItem_box)
|
|
23632
|
+
style: normalizeStyle(style.input(unref(propsItem_box))),
|
|
23717
23633
|
onChange: select.hdlChange
|
|
23718
23634
|
}, {
|
|
23719
23635
|
default: withCtx(() => [
|
|
@@ -23731,13 +23647,12 @@ return (_ctx, _cache) => {
|
|
|
23731
23647
|
(unref(propsItem_box).inputType === 'date-picker')
|
|
23732
23648
|
? (openBlock(), createBlock(_component_el_date_picker, {
|
|
23733
23649
|
key: 8,
|
|
23734
|
-
class: "deep-input",
|
|
23735
23650
|
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
23736
23651
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((unref(formData_box)[unref(propsItem_box).fieldName]) = $event)),
|
|
23737
23652
|
type: unref(propsItem_box).type ? unref(propsItem_box).type : 'datetime',
|
|
23738
23653
|
placeholder: datePicker.placeholder,
|
|
23739
23654
|
format: datePicker.format,
|
|
23740
|
-
style: normalizeStyle(style.input(unref(propsItem_box)
|
|
23655
|
+
style: normalizeStyle(style.input(unref(propsItem_box))),
|
|
23741
23656
|
onChange: datePicker.hdlChange
|
|
23742
23657
|
}, null, 8 /* PROPS */, ["modelValue", "type", "placeholder", "format", "style", "onChange"]))
|
|
23743
23658
|
: createCommentVNode("v-if", true),
|
|
@@ -23842,7 +23757,7 @@ return (_ctx, _cache) => {
|
|
|
23842
23757
|
? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
23843
23758
|
createElementVNode("div", null, [
|
|
23844
23759
|
createVNode(_component_el_image, {
|
|
23845
|
-
style: normalizeStyle(style.image(unref(propsItem_box)
|
|
23760
|
+
style: normalizeStyle(style.image(unref(propsItem_box))),
|
|
23846
23761
|
src: image.getSrc[0],
|
|
23847
23762
|
"preview-src-list": image.getSrc,
|
|
23848
23763
|
"preview-teleported": true,
|
|
@@ -23872,11 +23787,11 @@ return (_ctx, _cache) => {
|
|
|
23872
23787
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(formData_box)[unref(propsItem_box).fieldName], (itemImages, indexImages) => {
|
|
23873
23788
|
return (openBlock(), createElementBlock("div", {
|
|
23874
23789
|
key: indexImages,
|
|
23875
|
-
style: normalizeStyle(style.images(unref(propsItem_box)
|
|
23790
|
+
style: normalizeStyle(style.images(unref(propsItem_box)).itemBox)
|
|
23876
23791
|
}, [
|
|
23877
23792
|
createElementVNode("div", null, [
|
|
23878
23793
|
createVNode(_component_el_image, {
|
|
23879
|
-
style: normalizeStyle(style.images(unref(propsItem_box)
|
|
23794
|
+
style: normalizeStyle(style.images(unref(propsItem_box)).itemThumb),
|
|
23880
23795
|
src: images.getSrc(itemImages, indexImages),
|
|
23881
23796
|
"preview-src-list": images.show
|
|
23882
23797
|
}, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
|
|
@@ -23903,7 +23818,7 @@ return (_ctx, _cache) => {
|
|
|
23903
23818
|
(unref(propsItem_box).inputType === 'richtext')
|
|
23904
23819
|
? (openBlock(), createElementBlock("div", {
|
|
23905
23820
|
key: 15,
|
|
23906
|
-
style: normalizeStyle(style.richtext(unref(propsItem_box)
|
|
23821
|
+
style: normalizeStyle(style.richtext(unref(propsItem_box)))
|
|
23907
23822
|
}, [
|
|
23908
23823
|
createVNode(_component_ly0Richtext, {
|
|
23909
23824
|
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
@@ -23925,8 +23840,8 @@ return (_ctx, _cache) => {
|
|
|
23925
23840
|
? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
23926
23841
|
createElementVNode("div", null, [
|
|
23927
23842
|
createElementVNode("video", {
|
|
23928
|
-
width: style.video(unref(propsItem_box)
|
|
23929
|
-
height: style.video(unref(propsItem_box)
|
|
23843
|
+
width: style.video(unref(propsItem_box)).width,
|
|
23844
|
+
height: style.video(unref(propsItem_box)).height,
|
|
23930
23845
|
controls: "",
|
|
23931
23846
|
poster: video.poster
|
|
23932
23847
|
}, [
|
|
@@ -24101,15 +24016,15 @@ return (_ctx, _cache) => {
|
|
|
24101
24016
|
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (isRef(formData_box) ? (formData_box).value = $event : formData_box = $event)),
|
|
24102
24017
|
myProps: {
|
|
24103
24018
|
thumb: {
|
|
24104
|
-
fieldName: unref(propsItem_box).thumb.fieldName
|
|
24105
|
-
width: unref(propsItem_box).thumb.width ||
|
|
24106
|
-
height: unref(propsItem_box).thumb.height ||
|
|
24019
|
+
fieldName: unref(propsItem_box).thumb.fieldName,
|
|
24020
|
+
width: unref(propsItem_box).thumb.width || '',
|
|
24021
|
+
height: unref(propsItem_box).thumb.height || ''
|
|
24107
24022
|
},
|
|
24108
24023
|
name: {
|
|
24109
|
-
fieldName: unref(propsItem_box).name.fieldName
|
|
24024
|
+
fieldName: unref(propsItem_box).name.fieldName,
|
|
24110
24025
|
},
|
|
24111
24026
|
number: {
|
|
24112
|
-
fieldName: unref(propsItem_box).number.fieldName
|
|
24027
|
+
fieldName: unref(propsItem_box).number.fieldName,
|
|
24113
24028
|
},
|
|
24114
24029
|
readOnly: unref(propsItem_box).readOnly
|
|
24115
24030
|
}
|
|
@@ -24123,7 +24038,6 @@ return (_ctx, _cache) => {
|
|
|
24123
24038
|
|
|
24124
24039
|
};
|
|
24125
24040
|
|
|
24126
|
-
script$j.__scopeId = "data-v-a94fa4ba";
|
|
24127
24041
|
script$j.__file = "src/form/InputBox.vue";
|
|
24128
24042
|
|
|
24129
24043
|
const _hoisted_1$e = { key: 0 };
|
|
@@ -24344,6 +24258,48 @@ return (_ctx, _cache) => {
|
|
|
24344
24258
|
|
|
24345
24259
|
script$i.__file = "src/form/Form.vue";
|
|
24346
24260
|
|
|
24261
|
+
// 默认值
|
|
24262
|
+
|
|
24263
|
+
var ly0default$3 = {
|
|
24264
|
+
myProps: {
|
|
24265
|
+
popup: {
|
|
24266
|
+
visible: false,
|
|
24267
|
+
title: '',
|
|
24268
|
+
width: '800px',
|
|
24269
|
+
top: '15vh'
|
|
24270
|
+
},
|
|
24271
|
+
menu: {
|
|
24272
|
+
mode: 'horizontal',
|
|
24273
|
+
menu: []
|
|
24274
|
+
},
|
|
24275
|
+
cols: [],
|
|
24276
|
+
submit: {
|
|
24277
|
+
switch: true // true - 提交模式, false - 组件模式
|
|
24278
|
+
},
|
|
24279
|
+
para: {
|
|
24280
|
+
placeholder: {
|
|
24281
|
+
input: '请输入',
|
|
24282
|
+
select: '请选择',
|
|
24283
|
+
datetime: '请选择时间',
|
|
24284
|
+
date: '请选择日期'
|
|
24285
|
+
},
|
|
24286
|
+
upload: {
|
|
24287
|
+
uploadUrl: ly0request.domain + ly0request.upload,
|
|
24288
|
+
uploadUrl_image: ly0request.domain + ly0request.upload_image,
|
|
24289
|
+
uploadUrl_carplate: ly0request.domain + ly0request.upload_carplate
|
|
24290
|
+
},
|
|
24291
|
+
download: {
|
|
24292
|
+
// 行内下载
|
|
24293
|
+
fileName: 'new-file',
|
|
24294
|
+
// 下载文件名
|
|
24295
|
+
downloadLabel: '点击这里下载',
|
|
24296
|
+
// 下载标签
|
|
24297
|
+
downloadLabelNoSrc: '没有可供下载的资源' // 下载标签
|
|
24298
|
+
}
|
|
24299
|
+
}
|
|
24300
|
+
}
|
|
24301
|
+
};
|
|
24302
|
+
|
|
24347
24303
|
var script$h = {
|
|
24348
24304
|
__name: 'index',
|
|
24349
24305
|
props: {
|