@yoooloo42/joker 1.0.131 → 1.0.132
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 +99 -99
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +99 -99
- package/dist/index.esm.js.map +1 -1
- package/package.json +60 -60
package/dist/index.cjs.js
CHANGED
|
@@ -23334,83 +23334,83 @@ const _hoisted_1$c = { key: 0 };
|
|
|
23334
23334
|
const _hoisted_2$c = ["colspan"];
|
|
23335
23335
|
const _hoisted_3$5 = { key: 0 };
|
|
23336
23336
|
const _hoisted_4$3 = ["colspan"];
|
|
23337
|
-
|
|
23337
|
+
|
|
23338
23338
|
|
|
23339
23339
|
var script$f = {
|
|
23340
23340
|
__name: 'Form',
|
|
23341
|
-
props: {
|
|
23342
|
-
modelValue: {
|
|
23343
|
-
type: Object,
|
|
23344
|
-
default: () => ({})
|
|
23345
|
-
},
|
|
23346
|
-
myProps: {
|
|
23347
|
-
type: Object,
|
|
23348
|
-
default: () => ({})
|
|
23349
|
-
},
|
|
23350
|
-
scopeThis: {
|
|
23351
|
-
type: Object,
|
|
23352
|
-
default: () => ({})
|
|
23353
|
-
}
|
|
23341
|
+
props: {
|
|
23342
|
+
modelValue: {
|
|
23343
|
+
type: Object,
|
|
23344
|
+
default: () => ({})
|
|
23345
|
+
},
|
|
23346
|
+
myProps: {
|
|
23347
|
+
type: Object,
|
|
23348
|
+
default: () => ({})
|
|
23349
|
+
},
|
|
23350
|
+
scopeThis: {
|
|
23351
|
+
type: Object,
|
|
23352
|
+
default: () => ({})
|
|
23353
|
+
}
|
|
23354
23354
|
},
|
|
23355
23355
|
setup(__props) {
|
|
23356
|
-
|
|
23357
|
-
const props = __props;
|
|
23358
|
-
|
|
23359
|
-
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
23360
|
-
let formData_box = props.modelValue;
|
|
23361
|
-
const formProps_box = props.myProps;
|
|
23362
|
-
const scopeThis_box = props.scopeThis;
|
|
23363
|
-
|
|
23364
|
-
const style = vue.reactive({
|
|
23365
|
-
collapse: styleModule.collapse,
|
|
23366
|
-
field_box: styleModule.field_box,
|
|
23367
|
-
line: styleModule.line,
|
|
23368
|
-
no_field_label: styleModule.no_field_label,
|
|
23369
|
-
root_box: styleModule.root_box,
|
|
23370
|
-
submit_box: styleModule.submit_box
|
|
23371
|
-
});
|
|
23372
|
-
|
|
23373
|
-
const hdl = {
|
|
23374
|
-
async submit(){
|
|
23375
|
-
if(formProps_box.submit.handle){
|
|
23376
|
-
// 执行用户句柄
|
|
23377
|
-
const result = await formProps_box.submit.handle({
|
|
23378
|
-
formData: formData_box,
|
|
23379
|
-
scopeThis: scopeThis_box
|
|
23380
|
-
});
|
|
23381
|
-
if(result.code !== 0){
|
|
23382
|
-
return
|
|
23383
|
-
}
|
|
23384
|
-
}
|
|
23385
|
-
|
|
23386
|
-
// 后台提交 - URL地址
|
|
23387
|
-
if(formProps_box.submit.url){
|
|
23388
|
-
const result = await request.ly0.ly0request({
|
|
23389
|
-
url: formProps_box.submit.url,
|
|
23390
|
-
data: formData_box
|
|
23391
|
-
});
|
|
23392
|
-
if(result.code !== 0){
|
|
23393
|
-
return
|
|
23394
|
-
}
|
|
23395
|
-
}
|
|
23396
|
-
|
|
23397
|
-
// 后台提交 - 存储过程
|
|
23398
|
-
if(formProps_box.submit.storpro){
|
|
23399
|
-
const result = await request.ly0.storpro({
|
|
23400
|
-
storproName: formProps_box.submit.storpro,
|
|
23401
|
-
data: formData_box
|
|
23402
|
-
});
|
|
23403
|
-
if(result.code !== 0){
|
|
23404
|
-
return
|
|
23405
|
-
}
|
|
23406
|
-
}
|
|
23407
|
-
|
|
23408
|
-
if(formProps_box.popup){
|
|
23409
|
-
// 关闭表单窗口
|
|
23410
|
-
formProps_box.popup.visible = false;
|
|
23411
|
-
}
|
|
23412
|
-
}
|
|
23413
|
-
};
|
|
23356
|
+
|
|
23357
|
+
const props = __props;
|
|
23358
|
+
|
|
23359
|
+
// props属性包装,继承了顶层组件的响应性,页面和js可以使用相同的命名
|
|
23360
|
+
let formData_box = props.modelValue;
|
|
23361
|
+
const formProps_box = props.myProps;
|
|
23362
|
+
const scopeThis_box = props.scopeThis;
|
|
23363
|
+
|
|
23364
|
+
const style = vue.reactive({
|
|
23365
|
+
collapse: styleModule.collapse,
|
|
23366
|
+
field_box: styleModule.field_box,
|
|
23367
|
+
line: styleModule.line,
|
|
23368
|
+
no_field_label: styleModule.no_field_label,
|
|
23369
|
+
root_box: styleModule.root_box,
|
|
23370
|
+
submit_box: styleModule.submit_box
|
|
23371
|
+
});
|
|
23372
|
+
|
|
23373
|
+
const hdl = {
|
|
23374
|
+
async submit(){
|
|
23375
|
+
if(formProps_box.submit.handle){
|
|
23376
|
+
// 执行用户句柄
|
|
23377
|
+
const result = await formProps_box.submit.handle({
|
|
23378
|
+
formData: formData_box,
|
|
23379
|
+
scopeThis: scopeThis_box
|
|
23380
|
+
});
|
|
23381
|
+
if(result.code !== 0){
|
|
23382
|
+
return
|
|
23383
|
+
}
|
|
23384
|
+
}
|
|
23385
|
+
|
|
23386
|
+
// 后台提交 - URL地址
|
|
23387
|
+
if(formProps_box.submit.url){
|
|
23388
|
+
const result = await request.ly0.ly0request({
|
|
23389
|
+
url: formProps_box.submit.url,
|
|
23390
|
+
data: formData_box
|
|
23391
|
+
});
|
|
23392
|
+
if(result.code !== 0){
|
|
23393
|
+
return
|
|
23394
|
+
}
|
|
23395
|
+
}
|
|
23396
|
+
|
|
23397
|
+
// 后台提交 - 存储过程
|
|
23398
|
+
if(formProps_box.submit.storpro){
|
|
23399
|
+
const result = await request.ly0.storpro({
|
|
23400
|
+
storproName: formProps_box.submit.storpro,
|
|
23401
|
+
data: formData_box
|
|
23402
|
+
});
|
|
23403
|
+
if(result.code !== 0){
|
|
23404
|
+
return
|
|
23405
|
+
}
|
|
23406
|
+
}
|
|
23407
|
+
|
|
23408
|
+
if(formProps_box.popup){
|
|
23409
|
+
// 关闭表单窗口
|
|
23410
|
+
formProps_box.popup.visible = false;
|
|
23411
|
+
}
|
|
23412
|
+
}
|
|
23413
|
+
};
|
|
23414
23414
|
|
|
23415
23415
|
return (_ctx, _cache) => {
|
|
23416
23416
|
const _component_ly0Menu = vue.resolveComponent("ly0Menu");
|
|
@@ -23460,9 +23460,9 @@ return (_ctx, _cache) => {
|
|
|
23460
23460
|
(item0.inputType === 'collapse')
|
|
23461
23461
|
? (vue.openBlock(), vue.createBlock(_component_el_collapse, {
|
|
23462
23462
|
key: 0,
|
|
23463
|
-
accordion:
|
|
23464
|
-
'accordion' in item0 &&
|
|
23465
|
-
(item0.accordion === true || item0.accordion === 'true')
|
|
23463
|
+
accordion:
|
|
23464
|
+
'accordion' in item0 &&
|
|
23465
|
+
(item0.accordion === true || item0.accordion === 'true')
|
|
23466
23466
|
,
|
|
23467
23467
|
modelValue: item0.activeNames,
|
|
23468
23468
|
"onUpdate:modelValue": $event => ((item0.activeNames) = $event),
|
|
@@ -23483,10 +23483,10 @@ return (_ctx, _cache) => {
|
|
|
23483
23483
|
}, [
|
|
23484
23484
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item1.items, (item2, index2) => {
|
|
23485
23485
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
23486
|
-
(
|
|
23487
|
-
item2.hdlVisible
|
|
23488
|
-
? item2.hdlVisible({formData: vue.unref(formData_box), scopeThis: vue.unref(scopeThis_box)})
|
|
23489
|
-
: true
|
|
23486
|
+
(
|
|
23487
|
+
item2.hdlVisible
|
|
23488
|
+
? item2.hdlVisible({formData: vue.unref(formData_box), scopeThis: vue.unref(scopeThis_box)})
|
|
23489
|
+
: true
|
|
23490
23490
|
)
|
|
23491
23491
|
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_3$5, [
|
|
23492
23492
|
(item2.label)
|
|
@@ -23580,28 +23580,28 @@ script$f.__file = "src/form/Form.vue";
|
|
|
23580
23580
|
|
|
23581
23581
|
var script$e = {
|
|
23582
23582
|
__name: 'index',
|
|
23583
|
-
props: {
|
|
23584
|
-
modelValue: {
|
|
23585
|
-
type: Object,
|
|
23586
|
-
default: () => ({})
|
|
23587
|
-
},
|
|
23588
|
-
myProps: {
|
|
23589
|
-
type: Object,
|
|
23590
|
-
default: () => ({})
|
|
23591
|
-
},
|
|
23592
|
-
scopeThis: {
|
|
23593
|
-
type: Object,
|
|
23594
|
-
default: () => ({})
|
|
23595
|
-
}
|
|
23583
|
+
props: {
|
|
23584
|
+
modelValue: {
|
|
23585
|
+
type: Object,
|
|
23586
|
+
default: () => ({})
|
|
23587
|
+
},
|
|
23588
|
+
myProps: {
|
|
23589
|
+
type: Object,
|
|
23590
|
+
default: () => ({})
|
|
23591
|
+
},
|
|
23592
|
+
scopeThis: {
|
|
23593
|
+
type: Object,
|
|
23594
|
+
default: () => ({})
|
|
23595
|
+
}
|
|
23596
23596
|
},
|
|
23597
23597
|
setup(__props) {
|
|
23598
|
-
|
|
23599
|
-
const props = __props;
|
|
23600
|
-
|
|
23601
|
-
// 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
|
|
23602
|
-
let formData_box = vue.reactive(props.modelValue);
|
|
23603
|
-
const formProps_box = vue.reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
|
|
23604
|
-
const scopeThis_box = vue.reactive(props.scopeThis);
|
|
23598
|
+
|
|
23599
|
+
const props = __props;
|
|
23600
|
+
|
|
23601
|
+
// 顶层组件的props属性需做响应性包装,页面和js可以使用相同的命名
|
|
23602
|
+
let formData_box = vue.reactive(props.modelValue);
|
|
23603
|
+
const formProps_box = vue.reactive(Object.assign({}, ly0default$2.myProps, props.myProps));
|
|
23604
|
+
const scopeThis_box = vue.reactive(props.scopeThis);
|
|
23605
23605
|
|
|
23606
23606
|
return (_ctx, _cache) => {
|
|
23607
23607
|
const _component_el_dialog = vue.resolveComponent("el-dialog");
|