chore: 基线提交(重构前代码快照)
- git 初始化 + .gitignore 补全(根 .env / logs / instance / __pycache__ 等) - 修复 utils/.gitignore 误将整个 utils/ 源码层忽略的问题,补入全部工具源码(含 ip2region.xdb) - 含后端全部代码:application / extensions / utils / config / migrations - 含前端 ui/(后续整体迁走) - 不含根 .env(含密钥,本地保留) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { h } from 'vue';
|
||||
import { isFunction } from '@/utils/is';
|
||||
|
||||
export function getRender(value): any {
|
||||
return isFunction(value) ? value() : h('span', {}, { default: () => value });
|
||||
}
|
||||
|
||||
export { default as Render } from './src/Render.vue';
|
||||
@@ -0,0 +1,17 @@
|
||||
<script lang="tsx">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
const props = {
|
||||
value: { type: Object },
|
||||
};
|
||||
export default defineComponent({
|
||||
name: 'Render',
|
||||
props,
|
||||
setup(props) {
|
||||
return () => {
|
||||
const { value } = props;
|
||||
return <span>{value}</span>;
|
||||
};
|
||||
},
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user