diff --git a/app/components/app/mcu-order-item/list-entry.cfg.ts b/app/components/app/mcu-order-item/list-entry.cfg.ts index 89d85dce..8bf2fb18 100644 --- a/app/components/app/mcu-order-item/list-entry.cfg.ts +++ b/app/components/app/mcu-order-item/list-entry.cfg.ts @@ -1,18 +1,19 @@ import type { Config } from '~/components/pub/my-ui/data-table' import { defineAsyncComponent } from 'vue' +import type { McuOrderItem } from '~/models/mcu-order-item' const action = defineAsyncComponent(() => import('~/components/pub/my-ui/data/dropdown-action-dud.vue')) -const input = defineAsyncComponent(() => import('~/components/pub/ui/input/Input.vue')) +const input = defineAsyncComponent(() => import('~/components/pub/my-ui/data/editable-div.vue')) export const config: Config = { - cols: [{}, {}, { classVal: '!p-0.5' }, { width: 50 }], + cols: [{}, {}, { classVal: '!p-0.5' }], headers: [ [ { label: 'Nama' }, { label: 'Jenis' }, - { label: 'Catatan' }, - { label: '' }, + { label: 'Catatan', classVal: '!w-[40%]' }, + // { label: '' }, ], ], @@ -27,16 +28,17 @@ export const config: Config = { return { idx, rec: rec as object, + props: { data: (rec as McuOrderItem).note }, component: input, } }, - action(rec, idx) { - return { - idx, - rec: rec as object, - component: action, - } - }, + // action(rec, idx) { + // return { + // idx, + // rec: rec as object, + // component: action, + // } + // }, }, htmls: {}, diff --git a/app/components/app/mcu-order-item/list-entry.vue b/app/components/app/mcu-order-item/list-entry.vue index 6c93c5ac..4fd8edb8 100644 --- a/app/components/app/mcu-order-item/list-entry.vue +++ b/app/components/app/mcu-order-item/list-entry.vue @@ -1,4 +1,6 @@