conditons (but FROM_TODAY)

This commit is contained in:
2025-01-27 02:51:58 +08:00
parent 6a0a28418f
commit dfcb522951
8 changed files with 203 additions and 54 deletions

View File

@@ -1,5 +1,5 @@
<template>
<kuc-table :class-name.camel="['plugin-kuc-table']" :columns="columns" :data="modelValue" />
<kuc-table className='plugin-kuc-table condition-table' :columns="columns" :data="modelValue" @change="tableChanged"/>
</template>
<script setup lang="ts">
@@ -64,10 +64,7 @@ const columns = reactive([
id: rowData.id,
whereConditions: props.modelValue,
'onUpdate:modelValue': ({obj, value}) => {
if (obj) {
obj.condition = value;
obj.data = '';
}
obj && (obj.condition = value);
},
});
render(vnode, container);
@@ -94,4 +91,7 @@ const columns = reactive([
},
]);
function tableChanged(e) {
console.log(e);
}
</script>