mirror of
https://github.com/certd/certd.git
synced 2026-05-18 06:17:31 +08:00
🔱: [client] sync upgrade with 6 commits [trident-sync]
chore: perf: v-model editable-row示例 chore: mock tip fix: 修复行编辑模式下,render、conditionalRender无效的bug fix: 修复行编辑初始化无效的bug
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, watch } from "vue";
|
||||
import { defineComponent, onMounted, watch } from "vue";
|
||||
import createCrudOptions from "./crud";
|
||||
import { useFs } from "@fast-crud/fast-crud";
|
||||
|
||||
@@ -19,6 +19,10 @@ export default defineComponent({
|
||||
setup(props) {
|
||||
const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions });
|
||||
|
||||
onMounted(() => {
|
||||
crudExpose.editable.enable({ mode: "row" });
|
||||
});
|
||||
|
||||
//通过导出modelValue, 可以导出成为一个input组件
|
||||
watch(
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user