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