@dhccmobile/vue3-lo-form 0.1.2 → 0.1.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/dist/vue3-lo-form.common.js +98 -92
- package/dist/vue3-lo-form.common.js.map +1 -1
- package/dist/vue3-lo-form.css +1 -1
- package/dist/vue3-lo-form.umd.js +98 -92
- package/dist/vue3-lo-form.umd.js.map +1 -1
- package/dist/vue3-lo-form.umd.min.js +4 -4
- package/dist/vue3-lo-form.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/form/DvFormLayout.vue +19 -2
- package/src/main.ts +1 -1
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
</div>
|
|
102
102
|
<div class="lo-input">
|
|
103
103
|
<!--styleMode="credit-rd" :formId="'773549593606574080'"-->
|
|
104
|
-
<dy-form v-if="showForm" :formId="'
|
|
104
|
+
<dy-form v-if="showForm" :formId="'987017065575092224'" 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
105
|
<template #combinationSelector:updateTime="{ control, onChange }">
|
|
106
106
|
<div class="lo-custom-control-box">
|
|
107
107
|
<a-input v-model:value="control.formControl.value" @input="onChange(control.formControl)" v-if="control && control.formControl" />
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<template v-slot:suffix v-if="$slots['input:suffix:' + formControl.key]">
|
|
85
85
|
<slot :name="'input:suffix:' + formControl.key"></slot>
|
|
86
86
|
</template>
|
|
87
|
-
<template v-slot:addonBefore v-if="$slots['input:addonBefore:' + formControl.key] || controlAttr.bindingPrefix || controlAttr.builtInFrontLabel"
|
|
87
|
+
<template v-slot:addonBefore v-if="$slots['input:addonBefore:' + formControl.key] || controlAttr.bindingPrefix || controlAttr.builtInFrontLabel">
|
|
88
88
|
<template v-if="$slots['input:addonBefore:' + formControl.key]">
|
|
89
89
|
<slot :name="'input:addonBefore:' + formControl.key"> </slot>
|
|
90
90
|
</template>
|
|
@@ -94,8 +94,9 @@
|
|
|
94
94
|
<template v-else-if="controlAttr.builtInFrontLabel">
|
|
95
95
|
<ordered-list-outlined class="addon-icon" />
|
|
96
96
|
</template>
|
|
97
|
+
<span class="addon-inner" @click="onAddonBeforeHandler(control)"></span>
|
|
97
98
|
</template>
|
|
98
|
-
<template v-slot:addonAfter v-if="$slots['input:addonAfter:' + formControl.key] || controlAttr.bindingSuffix || controlAttr.builtInPostLabel"
|
|
99
|
+
<template v-slot:addonAfter v-if="$slots['input:addonAfter:' + formControl.key] || controlAttr.bindingSuffix || controlAttr.builtInPostLabel">
|
|
99
100
|
<template v-if="$slots['input:addonAfter:' + formControl.key]">
|
|
100
101
|
<slot :name="'input:addonAfter:' + formControl.key"></slot>
|
|
101
102
|
</template>
|
|
@@ -105,6 +106,7 @@
|
|
|
105
106
|
<template v-else-if="controlAttr.builtInPostLabel">
|
|
106
107
|
<ordered-list-outlined class="addon-icon" />
|
|
107
108
|
</template>
|
|
109
|
+
<span class="addon-inner" @click="onAddonAfterHandler(control)"></span>
|
|
108
110
|
</template>
|
|
109
111
|
</component>
|
|
110
112
|
</template>
|
|
@@ -1522,10 +1524,25 @@ export default class DvFormLayout extends Vue {
|
|
|
1522
1524
|
color: #333333;
|
|
1523
1525
|
}
|
|
1524
1526
|
}
|
|
1527
|
+
:deep(.ant-input-group-addon:last-child) {
|
|
1528
|
+
border-top-left-radius: 0 !important;
|
|
1529
|
+
border-bottom-left-radius: 0 !important;
|
|
1530
|
+
}
|
|
1525
1531
|
.addon-icon {
|
|
1526
1532
|
font-size: 15px;
|
|
1527
1533
|
cursor: pointer;
|
|
1528
1534
|
}
|
|
1535
|
+
.addon-inner {
|
|
1536
|
+
position: absolute;
|
|
1537
|
+
width: 100%;
|
|
1538
|
+
height: 100%;
|
|
1539
|
+
top: 0;
|
|
1540
|
+
left: 0;
|
|
1541
|
+
cursor: pointer;
|
|
1542
|
+
}
|
|
1543
|
+
.addon-inner:active {
|
|
1544
|
+
background: rgba(240, 240, 240, 0.3);
|
|
1545
|
+
}
|
|
1529
1546
|
}
|
|
1530
1547
|
.lo-textarea-count {
|
|
1531
1548
|
position: absolute;
|
package/src/main.ts
CHANGED
|
@@ -10,7 +10,7 @@ app.config.performance = true;
|
|
|
10
10
|
app
|
|
11
11
|
.use(VueLoForm, {
|
|
12
12
|
url: "http://82.157.46.222:9135/ms-loong/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype",
|
|
13
|
-
appId: "
|
|
13
|
+
appId: "986199063717875712",
|
|
14
14
|
onlySimpleLoadConfig: false,
|
|
15
15
|
loadMode: "dynamic",
|
|
16
16
|
})
|