2024-01-29 09:26:07 +08:00
|
|
|
import { createTextVNode } from 'vue';
|
2024-08-02 18:19:39 +08:00
|
|
|
export function render(r, ...args) {
|
2024-01-29 09:26:07 +08:00
|
|
|
if (typeof r === 'function') {
|
|
|
|
return r(...args);
|
|
|
|
} else if (typeof r === 'string') {
|
|
|
|
return createTextVNode(r);
|
|
|
|
} else if (typeof r === 'number') {
|
|
|
|
return createTextVNode(String(r));
|
|
|
|
} else {
|
|
|
|
return null;
|
|
|
|
}
|
2024-08-02 18:19:39 +08:00
|
|
|
}
|