label input changes
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
5da5bb2047
commit
86bbc7cfd6
|
@ -42,25 +42,24 @@ const getInputEvents = (colField, props) => {
|
||||||
const tableColumnComponents = {
|
const tableColumnComponents = {
|
||||||
item: {
|
item: {
|
||||||
component: QBtn,
|
component: QBtn,
|
||||||
props: () => ({
|
props: {
|
||||||
color: 'blue',
|
color: 'blue',
|
||||||
flat: true,
|
flat: true,
|
||||||
}),
|
},
|
||||||
event: () => ({}),
|
event: () => ({}),
|
||||||
},
|
},
|
||||||
quantity: {
|
quantity: {
|
||||||
component: VnInput,
|
component: VnInput,
|
||||||
props: (col) => ({
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
label: col.label,
|
|
||||||
class: 'input-number',
|
class: 'input-number',
|
||||||
}),
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
packagingFk: {
|
packagingFk: {
|
||||||
component: VnSelectFilter,
|
component: VnSelectFilter,
|
||||||
props: () => ({
|
props: {
|
||||||
'option-value': 'id',
|
'option-value': 'id',
|
||||||
'option-label': 'id',
|
'option-label': 'id',
|
||||||
'emit-value': true,
|
'emit-value': true,
|
||||||
|
@ -68,76 +67,69 @@ const tableColumnComponents = {
|
||||||
'use-input': true,
|
'use-input': true,
|
||||||
'hide-selected': true,
|
'hide-selected': true,
|
||||||
options: packagingsOptions.value,
|
options: packagingsOptions.value,
|
||||||
}),
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
stickers: {
|
stickers: {
|
||||||
component: VnInput,
|
component: VnInput,
|
||||||
props: (col) => ({
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
label: col.label,
|
|
||||||
class: 'input-number',
|
class: 'input-number',
|
||||||
}),
|
},
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
weight: {
|
weight: {
|
||||||
component: VnInput,
|
component: VnInput,
|
||||||
props: (col) => ({
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
label: col.label,
|
},
|
||||||
}),
|
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
packing: {
|
packing: {
|
||||||
component: VnInput,
|
component: VnInput,
|
||||||
props: (col) => ({
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
label: col.label,
|
},
|
||||||
}),
|
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
grouping: {
|
grouping: {
|
||||||
component: VnInput,
|
component: VnInput,
|
||||||
props: (col) => ({
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
label: col.label,
|
},
|
||||||
}),
|
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
buyingValue: {
|
buyingValue: {
|
||||||
component: VnInput,
|
component: VnInput,
|
||||||
props: (col) => ({
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
label: col.label,
|
},
|
||||||
}),
|
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
price2: {
|
price2: {
|
||||||
component: VnInput,
|
component: VnInput,
|
||||||
props: (col) => ({
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
label: col.label,
|
},
|
||||||
}),
|
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
price3: {
|
price3: {
|
||||||
component: VnInput,
|
component: VnInput,
|
||||||
props: (col) => ({
|
props: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
min: 0,
|
min: 0,
|
||||||
label: col.label,
|
},
|
||||||
}),
|
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
},
|
},
|
||||||
import: {
|
import: {
|
||||||
component: 'span',
|
component: 'span',
|
||||||
props: () => {},
|
props: {},
|
||||||
event: () => ({}),
|
event: () => ({}),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -341,7 +333,7 @@ const showLockIcon = (groupingMode, mode) => {
|
||||||
<QTd v-for="col in props.cols" :key="col.name">
|
<QTd v-for="col in props.cols" :key="col.name">
|
||||||
<component
|
<component
|
||||||
:is="tableColumnComponents[col.name].component"
|
:is="tableColumnComponents[col.name].component"
|
||||||
v-bind="tableColumnComponents[col.name].props(col)"
|
v-bind="tableColumnComponents[col.name].props"
|
||||||
v-model="props.row[col.field]"
|
v-model="props.row[col.field]"
|
||||||
v-on="
|
v-on="
|
||||||
tableColumnComponents[col.name].event(
|
tableColumnComponents[col.name].event(
|
||||||
|
@ -419,9 +411,7 @@ const showLockIcon = (groupingMode, mode) => {
|
||||||
<QItem v-for="col in props.cols" :key="col.name">
|
<QItem v-for="col in props.cols" :key="col.name">
|
||||||
<component
|
<component
|
||||||
:is="tableColumnComponents[col.name].component"
|
:is="tableColumnComponents[col.name].component"
|
||||||
v-bind="
|
v-bind="tableColumnComponents[col.name].props"
|
||||||
tableColumnComponents[col.name].props(col)
|
|
||||||
"
|
|
||||||
v-model="props.row[col.field]"
|
v-model="props.row[col.field]"
|
||||||
v-on="
|
v-on="
|
||||||
tableColumnComponents[col.name].event(
|
tableColumnComponents[col.name].event(
|
||||||
|
|
Loading…
Reference in New Issue