@dhccmobile/vue3-lo-form 2.0.2 → 2.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhccmobile/vue3-lo-form",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "VUE3动态表单",
5
5
  "private": false,
6
6
  "main": "dist/vue3-lo-form.umd.js",
package/src/App.vue CHANGED
@@ -102,7 +102,7 @@
102
102
  </div>
103
103
  <div class="lo-input">
104
104
  <!--styleMode="credit-rd" :formId="'773549593606574080'"-->
105
- <dy-form v-if="showForm" :formId="'995416144285929472'" v-model:edit="formApi.edit" v-model:formApi="formApi" @change="onChange($event)" @click="onClick($event)" @focus="onFocus($event)" @blur="onBlur($event)" @addon-before="onAddonBeforeHandler($event)" @addon-after="onAddonAfterHandler($event)" @add-item="selectAddItem($event)">
105
+ <dy-form v-if="showForm" :formId="'984034993956851712'" v-model:edit="formApi.edit" v-model:formApi="formApi" @change="onChange($event)" @click="onClick($event)" @focus="onFocus($event)" @blur="onBlur($event)" @addon-before="onAddonBeforeHandler($event)" @addon-after="onAddonAfterHandler($event)" @add-item="selectAddItem($event)">
106
106
  <template #combinationSelector="{ control, onChange }">
107
107
  <div class="lo-custom-control-box">
108
108
  <a-input v-model:value="control.formControl.value" @input="onChange(control.formControl)" v-if="control && control.formControl" />
@@ -17,6 +17,7 @@
17
17
  ['form-model-item-' + controlAttr.boundProperty]: true,
18
18
  ['form-model-item-' + control.code]: true,
19
19
  'lo-form-model-item-textarea-box': control.code === formFieldType.Textarea.code,
20
+ 'lo-form-item-mobile': isMobileBrowser(),
20
21
  }"
21
22
  >
22
23
  <template v-slot:label>
@@ -726,6 +727,9 @@ export default class DvFormLayout extends Vue {
726
727
  get labelSpanWidth(): any {
727
728
  const controlAttr: DesFormControl = this.controlAttr as DesFormControl;
728
729
  const parentControlAttr: DesFormLayout = this.parentControlAttr as DesFormLayout;
730
+ if (this.isMobileBrowser()) {
731
+ return "120px";
732
+ }
729
733
  if (controlAttr.titleWidth) {
730
734
  return controlAttr.titleWidth;
731
735
  } else if (parentControlAttr.labelSpan) {
@@ -1589,4 +1593,14 @@ export default class DvFormLayout extends Vue {
1589
1593
  </script>
1590
1594
  <style lang="scss" scoped>
1591
1595
  @import "../../styles/themes.scss";
1596
+
1597
+ .lo-form-item-mobile {
1598
+ display: flex;
1599
+ :deep(.ant-form-item-label) {
1600
+ flex: 1 !important;
1601
+ }
1602
+ :deep(.ant-form-item-control) {
1603
+ flex: 3 !important;
1604
+ }
1605
+ }
1592
1606
  </style>
package/src/main.ts CHANGED
@@ -9,8 +9,8 @@ const app = createApp(App);
9
9
  app.config.performance = true;
10
10
  app
11
11
  .use(VueLoForm, {
12
- url: "http://http://82.156.213.34:8080/",
13
- appId: "1009549605007003648",
12
+ url: "http://82.156.213.34:8080",
13
+ appId: "1009549397931601920",
14
14
  onlySimpleLoadConfig: false,
15
15
  loadMode: "dynamic",
16
16
  })