plain-design 1.0.0-beta.92 → 1.0.0-beta.93
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/plain-design.commonjs.min.js +2 -2
- package/dist/plain-design.min.css +1 -1
- package/dist/plain-design.min.js +2 -2
- package/dist/report.html +2 -2
- package/package.json +1 -1
- package/src/packages/components/FilterFormMultiple/index.tsx +3 -2
- package/src/packages/components/Form/form.scss +3 -0
- package/src/packages/components/Form/layout/useFormLayout.tsx +2 -2
package/package.json
CHANGED
@@ -178,7 +178,6 @@ export const FilterFormMultiple = designComponent({
|
|
178
178
|
const formAttrs = computed(() => {
|
179
179
|
return {
|
180
180
|
column: props.column,
|
181
|
-
labelAlign: 'right' as const,
|
182
181
|
labelWidth: 100,
|
183
182
|
...props.formAttrs,
|
184
183
|
};
|
@@ -222,7 +221,9 @@ export const FilterFormMultiple = designComponent({
|
|
222
221
|
return (
|
223
222
|
<FormItem
|
224
223
|
class={isFirstColumn ? 'filter-form-multiple-first-column' : undefined}
|
225
|
-
|
224
|
+
labelAlign={isFirstColumn ? 'left' : 'right'}
|
225
|
+
key={key}
|
226
|
+
label={label}
|
226
227
|
column={column}
|
227
228
|
>
|
228
229
|
<InputGroup>
|
@@ -119,7 +119,7 @@ export const useFormLayout = (() => {
|
|
119
119
|
if (!!props.validateMessagePosition) {return props.validateMessagePosition;}
|
120
120
|
|
121
121
|
/*纵向文本的情况下,校验消息默认放在左下角*/
|
122
|
-
if (props.verticalLabel) {return FormValidateMessagePosition["bottom-
|
122
|
+
if (props.verticalLabel) {return FormValidateMessagePosition["bottom-right"];}
|
123
123
|
if (isSingleColumn.value) {
|
124
124
|
/*单列的情况下,校验消息默认放在右侧*/
|
125
125
|
return FormValidateMessagePosition['right'];
|
@@ -204,7 +204,7 @@ export const useFormLayout = (() => {
|
|
204
204
|
* @author 韦胜健
|
205
205
|
* @date 2022.9.4 23:22
|
206
206
|
*/
|
207
|
-
const labelAlign = computed(() => props.
|
207
|
+
const labelAlign = computed(() => form.props.verticalLabel ? eFormLabelAlign.left : (props.labelAlign || form.props.labelAlign));
|
208
208
|
|
209
209
|
/**
|
210
210
|
* 内容对其方式
|