Files
certd/packages/ui/certd-client/src/views/crud/component/code/mock.ts
GitHub Actions Bot 34aea1d398 🔱: [client] sync upgrade with 2 commits [trident-sync]
perf: 添加代码编辑器示例
2025-03-31 19:25:06 +00:00

25 lines
403 B
TypeScript

import mockUtil from "/src/mock/base";
const options: any = {
name: "ComponentCode",
idGenerator: 0
};
const list: any = [
{
json: '{"p1":1,"b":2}',
yaml: `
property: 1
p1: 3
services:
certd:
container_name: certd
`,
javascript: `console.log(123)`
},
{
json: '{"p1":3,"b":4}'
}
];
options.list = list;
const mock = mockUtil.buildMock(options);
export default mock;