mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 21:53:24 +08:00
parent
4a4872e11e
commit
dafa8c56c6
@ -11,7 +11,6 @@
|
||||
:precision="precision"
|
||||
controls-position="right"
|
||||
:class="'display-type-' + cssClass"
|
||||
@blur="validateInput"
|
||||
@change="preHandleChange"
|
||||
/>
|
||||
</template>
|
||||
@ -22,12 +21,6 @@ import { fieldMixin } from '@/components/ADempiere/Field/FieldMixin'
|
||||
export default {
|
||||
name: 'FieldNumber',
|
||||
mixins: [fieldMixin],
|
||||
props: {
|
||||
validateInput: {
|
||||
type: Function,
|
||||
default: () => undefined
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
pattern: undefined,
|
||||
|
@ -43,7 +43,7 @@ export default {
|
||||
typeTextBox() {
|
||||
// String, Url, FileName...
|
||||
var typeInput = 'text'
|
||||
if (['Memo', 'Text', 'TextLong'].includes(this.metadata.referenceType)) {
|
||||
if (['Memo', 'Text'].includes(this.metadata.referenceType)) {
|
||||
typeInput = 'textarea'
|
||||
}
|
||||
if (this.metadata.isEncrypted) {
|
||||
|
0
src/components/ADempiere/Field/FieldTextLong.vue
Normal file
0
src/components/ADempiere/Field/FieldTextLong.vue
Normal file
@ -81,13 +81,13 @@ export const FIELD_DISPLAY_SIZES = [
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'FieldTextArea',
|
||||
type: 'FieldTextLong',
|
||||
size: {
|
||||
xs: 24,
|
||||
sm: 12,
|
||||
md: 8,
|
||||
lg: 6,
|
||||
xl: 6
|
||||
sm: 24,
|
||||
md: 24,
|
||||
lg: 24,
|
||||
xl: 24
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -162,6 +162,9 @@ export default {
|
||||
}
|
||||
|
||||
if (this.panelType === 'window') {
|
||||
if (this.field.componentPath === 'FieldTextLong') {
|
||||
return sizeField
|
||||
}
|
||||
// two columns if is mobile or desktop and show record navigation
|
||||
if (this.getWidth <= 768 || (this.getWidth >= 768 && this.getterIsShowedRecordNavigation)) {
|
||||
newSizes.xs = 12
|
||||
|
@ -206,7 +206,7 @@ const REFERENCES = [
|
||||
},
|
||||
{
|
||||
id: 36,
|
||||
type: 'FieldText',
|
||||
type: 'FieldTextLong',
|
||||
support: true,
|
||||
description: 'Text (Long) - Text > 2000 characters',
|
||||
alias: ['TextLong', 'Text Long']
|
||||
|
Loading…
x
Reference in New Issue
Block a user