From ca29edc6f24571d9cab458e690ef130efe8c848a Mon Sep 17 00:00:00 2001 From: jizai <1414589221@qq.com> Date: Fri, 7 Feb 2025 18:09:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE=20s?= =?UTF-8?q?ql=20=E6=96=87=E4=BB=B6=E5=AD=97=E6=AE=B5=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/resources/sql/h2/init_data_for_test.sql | 4 ++-- app/src/main/resources/sql/mysql/init_data_for_test.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/resources/sql/h2/init_data_for_test.sql b/app/src/main/resources/sql/h2/init_data_for_test.sql index 5d06491a..1c3adc08 100644 --- a/app/src/main/resources/sql/h2/init_data_for_test.sql +++ b/app/src/main/resources/sql/h2/init_data_for_test.sql @@ -28,7 +28,7 @@ INSERT INTO t_component (id, version, name, name_en, icon, description, doc_url, INSERT INTO t_component (id, version, name, name_en, icon, description, doc_url, screenshot, tags, keywords, dev_mode, npm, "group", category, priority, snippets, schema_fragment, configure, last_updated_by, created_time, last_updated_time, public, framework, created_by, is_official, is_default, tiny_reserved, tenant_id, component_metadata, site_id) VALUES (26, '0.1.16', '{"zh_CN":"时间线"}', 'TinyTimeLine', 'timeline', '时间线', '', 'null', '', '', 'proCode', '{"package":"@opentiny/vue","exportName":"TimeLine","version":"3.11.2","destructuring":true,"script":"https://unpkg.com/@opentiny/vue@3.11/runtime/tiny-vue.mjs","css":""}', 'component', '数据组件', 3, '[{"icon":"timeline","name":{"zh_CN":"时间线"},"schema":{"props":{"data":[{"name":"已下单"},{"name":"运输中"},{"name":"已签收"}],"active":"2"},"componentName":"TinyTimeLine"},"screenshot":"","snippetName":"TinyTimeLine"}]', '{"properties":[{"label":{"zh_CN":"基础信息"},"description":{"zh_CN":"基础信息"},"collapse":{"number":6,"text":{"zh_CN":"显示更多"}},"content":[{"property":"type","label":{"text":{"zh_CN":"type"}},"required":true,"readOnly":false,"disabled":false,"cols":12,"labelPosition":"left","type":"string","widget":{"component":"MetaInput","props":{}},"description":{"zh_CN":"normal、timeline"}},{"property":"vertical","type":"Boolean","defaultValue":{"type":"i18n","zh_CN":"布局","en_US":"layout","key":""},"label":{"text":{"zh_CN":"竖向布局"}},"cols":12,"rules":[],"hidden":false,"required":true,"readOnly":false,"disabled":false,"widget":{"component":"MetaSwitch","props":{}},"description":{"zh_CN":"竖向时间线"}},{"property":"reverse","type":"Boolean","defaultValue":{"type":"i18n","zh_CN":"布局","en_US":"layout","key":""},"label":{"text":{"zh_CN":"竖向逆向"}},"cols":12,"rules":[],"hidden":false,"required":true,"readOnly":false,"disabled":false,"widget":{"component":"MetaSwitch","props":{}},"description":{"zh_CN":"竖向时数字的顺序,从上到下还是从下到上"}},{"property":"horizontal","type":"Boolean","defaultValue":{"type":"i18n","zh_CN":"布局","en_US":"layout","key":""},"label":{"text":{"zh_CN":"水平布局"}},"cols":12,"rules":[],"hidden":false,"required":true,"readOnly":false,"disabled":false,"widget":{"component":"MetaSwitch","props":{}},"description":{"zh_CN":"节点和文字横向布局"}},{"property":"active","label":{"text":{"zh_CN":"选中值"}},"required":true,"readOnly":false,"disabled":false,"cols":12,"widget":{"component":"MetaNumeric","props":{}},"description":{"zh_CN":"步骤条的选中步骤值"},"labelPosition":"left"},{"property":"data","label":{"text":{"zh_CN":"数据"}},"required":true,"readOnly":false,"disabled":false,"defaultValue":[{"name":"配置基本信息","status":"ready"},{"name":"配置报价","status":"wait"},{"name":"完成报价","status":"wait"}],"cols":12,"widget":{"component":"MetaCodeEditor","props":{"language":"json"}},"description":{"zh_CN":"时间线步骤条数据"},"labelPosition":"left","device":[]},{"property":"status-field","label":{"text":{"zh_CN":"status-field"}},"required":true,"readOnly":false,"disabled":false,"cols":12,"labelPosition":"left","type":"string","widget":{"component":"MetaInput","props":{}},"description":{"zh_CN":"设置数据状态对应的字段名,默认为 ''status''"}},{"property":"name-field","label":{"text":{"zh_CN":"name-field"}},"required":true,"readOnly":false,"disabled":false,"cols":12,"labelPosition":"left","type":"string","widget":{"component":"MetaInput","props":{}},"description":{"zh_CN":"设置节点信息中名称对应的字段名,默认为 ''name''"}},{"property":"count-field","label":{"text":{"zh_CN":"count-field"}},"required":true,"readOnly":false,"disabled":false,"cols":12,"labelPosition":"left","type":"string","widget":{"component":"MetaInput","props":{}},"description":{"zh_CN":"设置高级向导里徽标计数对应的字段名,默认为 ''count''"}},{"property":"space","label":{"text":{"zh_CN":"space"}},"required":true,"readOnly":false,"disabled":false,"cols":12,"labelPosition":"left","type":"string","widget":{"component":"MetaNumeric","props":{}},"description":{"zh_CN":"设置步骤条的宽度。"}}]}],"events":{"onClick":{"label":{"zh_CN":"Click"},"description":{"zh_CN":"节点的点击事件,参数(index:节点索引, node:节点数据信息)"},"type":"event","functionInfo":{"params":[null],"returns":{}}}}}', '{"loop":true,"condition":true,"styles":true,"isContainer":false,"isModal":false,"nestingRule":{"childWhitelist":"","parentWhitelist":"","descendantBlacklist":"","ancestorWhitelist":""},"isNullNode":false,"isLayout":false,"rootSelector":"","shortcuts":{"properties":["horizontal","","active"]},"contextMenu":{"actions":["copy","remove","insert","updateAttr","bindEevent","createBlock"],"disable":[]},"framework":"Vue"}', 1, '2022-05-19 02:26:32', '2023-11-15 06:32:24', 1, 'Vue', 1, 1, 1, 1, 1, '{"events":[{"eventName":"click","label":"Click","params":null,"defaultValue":null,"description":"节点的点击事件,参数(index:节点索引, node:节点数据信息)","_RID":"row_16"}],"attrs":[{"property":null,"type":null,"defaultValue":null,"enumerateValue":null,"title":null,"_RID":"row_3"},{"property":"type","type":"string","defaultValue":null,"enumerateValue":null,"title":null,"_RID":"row_10"},{"property":"space","type":"number","defaultValue":null,"enumerateValue":null,"title":"设置步骤条的宽度。","_RID":"row_11"},{"property":"count-field","type":"string","defaultValue":null,"enumerateValue":null,"title":"\\t设置高级向导里徽标计数对应的字段名,默认为 ''count''","_RID":"row_12"},{"property":"name-field","type":"string","defaultValue":null,"enumerateValue":null,"title":"设置节点信息中名称对应的字段名,默认为 ''name''","_RID":"row_13"},{"property":"status-field","type":"string","defaultValue":null,"enumerateValue":null,"title":"设置数据状态对应的字段名,默认为 ''status''","_RID":"row_14"}],"slots":[{"slotName":"item","description":"步骤条数据项插槽","_RID":"row_15"}]}', 1); -INSERT INTO t_block_history (id, ref_id, message, version, label, name, framework, content, assets, build_info, screenshot, path, description, tags, is_official, public, is_default, tiny_reserved, mode, platform_id, app_id, npm_name, i18n, block_group_id, content_blocks, created_by, last_updated_by, created_time, last_updated_time, tenant_id, site_id) VALUES (1, 1, '2.0.7', '2.0.7', 'BlockTest1a', 'BlockTest1a', 'Vue', '{"state":{},"methods":{},"componentName":"Block","fileName":"BlockTest1a","css":"","props":{},"children":[{"componentName":"TinyGrid","props":{"editConfig":{"trigger":"click","mode":"cell","showStatus":true},"columns":[{"type":"index","width":60},{"type":"selection","width":60},{"field":"employees","title":"员工数"},{"field":"created_date","title":"创建日期"},{"field":"city","title":"城市"}],"data":[{"id":"1","name":"GFD科技有限公司","city":"福州","employees":800,"created_date":"2014-04-30 00:56:00","boole":false},{"id":"2","name":"WWW科技有限公司","city":"深圳","employees":300,"created_date":"2016-07-08 12:36:22","boole":true}]},"id":"9f544d43"},{"componentName":"div","props":{},"id":"c3be6334"},{"componentName":"TinyForm","props":{"labelWidth":"80px","labelPosition":"top"},"children":[{"componentName":"TinyFormItem","props":{"label":"人员"},"children":[{"componentName":"TinyInput","props":{"placeholder":"请输入","modelValue":""},"id":"6a365365"}],"id":"22464422"},{"componentName":"TinyFormItem","props":{"label":"密码"},"children":[{"componentName":"TinyInput","props":{"placeholder":"请输入","modelValue":"","type":"password"},"id":"55297132"}],"id":"c42655f5"},{"componentName":"TinyFormItem","props":{"label":""},"children":[{"componentName":"TinyButton","props":{"text":"提交","type":"primary","style":"margin-right: 10px"},"id":"521663e5"},{"componentName":"TinyButton","props":{"text":"重置","type":"primary"},"id":"33153f15"}],"id":"31541a46"}],"id":"35a24114"},{"componentName":"TinyCarousel","props":{"height":"180px"},"children":[{"componentName":"TinyCarouselItem","children":[{"componentName":"div","props":{"style":"margin:10px 0 0 30px"},"id":"92546616"}],"id":"1b2d445c","props":{"title":"选项卡","name":""}},{"componentName":"TinyCarouselItem","children":[{"componentName":"div","props":{"style":"margin:10px 0 0 30px"},"id":"3a145148"}],"id":"36631533","props":{"title":"选项卡","name":""}}],"id":"52426c25"}],"schema":{"properties":[{"label":{"zh_CN":"基础信息"},"description":{"zh_CN":"基础信息"},"collapse":{"number":6,"text":{"zh_CN":"显示更多"}},"content":[]}],"events":{},"slots":{}},"dataSource":{},"dependencies":{"scripts":[{"package":"@opentiny/vue","version":"","components":{"TinyGrid":"Grid","TinyForm":"Form","TinyFormItem":"FormItem","TinyInput":"Input","TinyButton":"Button","TinyCarousel":"Carousel","TinyCarouselItem":"CarouselItem"}}],"styles":[]}}', '{"material":[],"scripts":["https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js","https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js"],"styles":[]}', NULL, NULL, '我的分组', '区块', '[]', 0, 1, 0, 0, NULL, 1, 1, '@opentiny-assets/tinyengine-alpha-block-blocktest1a-993', '{"en_US":{"lowcode.c257d5e8":"search","lowcode.61c8ac8c":"dsdsa","lowcode.f53187a0":"test","lowcode.97ad00dd":"createMaterial","lowcode.61dcef52":"sadasda","lowcode.45f4c42a":"gfdgfd","lowcode.c6f5a652":"fsdafds"},"zh_CN":{"lowcode.c257d5e8":"查询","lowcode.61c8ac8c":"地方","lowcode.f53187a0":"测试","lowcode.97ad00dd":"创建物料资产包","lowcode.61dcef52":"terterere","lowcode.45f4c42a":"gdfgdf","lowcode.c6f5a652":"fsdaf"}}', 1, NULL, '1', '1', '2024-10-16 19:19:54', '2024-10-16 19:19:54', '1', '1'); +INSERT INTO t_block_history (id, ref_id, message, version, label, name, framework, content, assets, build_info, screenshot, path, description, tags, is_official, public, is_default, tiny_reserved, mode, platform_id, app_id, npm_name, i18n, content_blocks, created_by, last_updated_by, created_time, last_updated_time, tenant_id, site_id) VALUES (1, 1, '2.0.7', '2.0.7', 'BlockTest1a', 'BlockTest1a', 'Vue', '{"state":{},"methods":{},"componentName":"Block","fileName":"BlockTest1a","css":"","props":{},"children":[{"componentName":"TinyGrid","props":{"editConfig":{"trigger":"click","mode":"cell","showStatus":true},"columns":[{"type":"index","width":60},{"type":"selection","width":60},{"field":"employees","title":"员工数"},{"field":"created_date","title":"创建日期"},{"field":"city","title":"城市"}],"data":[{"id":"1","name":"GFD科技有限公司","city":"福州","employees":800,"created_date":"2014-04-30 00:56:00","boole":false},{"id":"2","name":"WWW科技有限公司","city":"深圳","employees":300,"created_date":"2016-07-08 12:36:22","boole":true}]},"id":"9f544d43"},{"componentName":"div","props":{},"id":"c3be6334"},{"componentName":"TinyForm","props":{"labelWidth":"80px","labelPosition":"top"},"children":[{"componentName":"TinyFormItem","props":{"label":"人员"},"children":[{"componentName":"TinyInput","props":{"placeholder":"请输入","modelValue":""},"id":"6a365365"}],"id":"22464422"},{"componentName":"TinyFormItem","props":{"label":"密码"},"children":[{"componentName":"TinyInput","props":{"placeholder":"请输入","modelValue":"","type":"password"},"id":"55297132"}],"id":"c42655f5"},{"componentName":"TinyFormItem","props":{"label":""},"children":[{"componentName":"TinyButton","props":{"text":"提交","type":"primary","style":"margin-right: 10px"},"id":"521663e5"},{"componentName":"TinyButton","props":{"text":"重置","type":"primary"},"id":"33153f15"}],"id":"31541a46"}],"id":"35a24114"},{"componentName":"TinyCarousel","props":{"height":"180px"},"children":[{"componentName":"TinyCarouselItem","children":[{"componentName":"div","props":{"style":"margin:10px 0 0 30px"},"id":"92546616"}],"id":"1b2d445c","props":{"title":"选项卡","name":""}},{"componentName":"TinyCarouselItem","children":[{"componentName":"div","props":{"style":"margin:10px 0 0 30px"},"id":"3a145148"}],"id":"36631533","props":{"title":"选项卡","name":""}}],"id":"52426c25"}],"schema":{"properties":[{"label":{"zh_CN":"基础信息"},"description":{"zh_CN":"基础信息"},"collapse":{"number":6,"text":{"zh_CN":"显示更多"}},"content":[]}],"events":{},"slots":{}},"dataSource":{},"dependencies":{"scripts":[{"package":"@opentiny/vue","version":"","components":{"TinyGrid":"Grid","TinyForm":"Form","TinyFormItem":"FormItem","TinyInput":"Input","TinyButton":"Button","TinyCarousel":"Carousel","TinyCarouselItem":"CarouselItem"}}],"styles":[]}}', '{"material":[],"scripts":["https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js","https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js"],"styles":[]}', NULL, NULL, '我的分组', '区块', '[]', 0, 1, 0, 0, NULL, 1, 1, '@opentiny-assets/tinyengine-alpha-block-blocktest1a-993', '{"en_US":{"lowcode.c257d5e8":"search","lowcode.61c8ac8c":"dsdsa","lowcode.f53187a0":"test","lowcode.97ad00dd":"createMaterial","lowcode.61dcef52":"sadasda","lowcode.45f4c42a":"gfdgfd","lowcode.c6f5a652":"fsdafds"},"zh_CN":{"lowcode.c257d5e8":"查询","lowcode.61c8ac8c":"地方","lowcode.f53187a0":"测试","lowcode.97ad00dd":"创建物料资产包","lowcode.61dcef52":"terterere","lowcode.45f4c42a":"gdfgdf","lowcode.c6f5a652":"fsdaf"}}', NULL, '1', '1', '2024-10-16 19:19:54', '2024-10-16 19:19:54', '1', '1'); INSERT INTO t_block_group (id, name, app_id, platform_id, description, created_by, last_updated_by, created_time, last_updated_time, tenant_id, site_id) VALUES (1, '我的分组', 1, 1, '区块分组', '1', '1', '2024-10-16 19:15:53', '2024-10-16 19:15:53', '1', '1'); @@ -101,7 +101,7 @@ INSERT INTO r_material_block (id, material_id, block_id) VALUES (1, 1, 1); INSERT INTO t_app (id, name, app_website, platform_id, platform_history_id, publish_url, editor_url, visit_url, image_url, assets_url, state, published, home_page_id, css, config, constants, data_handler, description, latest, git_group, project_name, branch, is_demo, is_default, template_type, set_template_time, set_template_by, set_default_by, framework, global_state, default_lang, extend_config, data_hash, can_associate, data_source_global, created_by, last_updated_by, created_time, last_updated_time, tenant_id, site_id) VALUES (1, 'portal-app', NULL, 1, '1', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, '{}', NULL, '{"type":"JSFunction","value":"function dataHanlder(res){\\n return res;\\n}"}', 'demo应用', '22', NULL, NULL, 'develop', NULL, NULL, 'serviceDevelop', '2023-11-19 18:14:37', '1', '1', 'Vue', '[{"id":"test2","state":{"name1":"xxx1"},"getters":{"count":{"type":"JSFunction","value":"function count() {}"}},"actions":{"actions":{"type":"JSFunction","value":"function actions() {}"}}},{"id":"test3","state":{"name1":"xxx"},"getters":{"count":{"type":"JSFunction","value":"function count() {}"}},"actions":{"actions":{"type":"JSFunction","value":"function actions() {}"}}},{"id":"test4","state":{"region":"","scenario":"all","productId":"","planId":"","addEvs":false,"addHss":false,"addCbr":false,"period":{"value":1,"unit":"month"},"amount":1},"getters":{},"actions":{}},{"id":"test1","state":{"name1":"xxx"},"getters":{"count":{"type":"JSFunction","value":"function count() {}"}},"actions":{"actions":{"type":"JSFunction","value":"function actions() {}"}}}]', NULL, '{"business":{"serviceName":"","endpointName":"cce","endpointId":"ee","serviceId":"ee","router":"ee"},"env":{"alpha":{"regions":[{"name":"","baseUrl":"","isDefault":false}],"isDefault":true}},"type":"console"}', '8b0eba6ad055532a586f9f669108fabb', '1', '{"dataHandler":{"type":"JSFunction","value":"function dataHanlder(res){\\n return res;\\n}"}}', '1', '1', '2024-10-16 23:27:10', '2024-10-16 23:27:10', '1', '1'); -INSERT INTO t_block (id, label, name, framework, content, assets, last_build_info, description, tags, latest_version, latest_history_id, screenshot, path, occupier_by, is_official, public, is_default, tiny_reserved, npm_name, i18n, platform_id, app_id, content_blocks, block_group_id, created_by, last_updated_by, created_time, last_updated_time, tenant_id, site_id) VALUES (1, 'BlockTest1a', 'BlockTest1a', 'Vue', '{"state":{},"methods":{},"componentName":"Block","fileName":"BlockTest1a","css":"","props":{},"children":[{"componentName":"TinyGrid","props":{"editConfig":{"trigger":"click","mode":"cell","showStatus":true},"columns":[{"type":"index","width":60},{"type":"selection","width":60},{"field":"employees","title":"员工数"},{"field":"created_date","title":"创建日期"},{"field":"city","title":"城市"}],"data":[{"id":"1","name":"GFD科技有限公司","city":"福州","employees":800,"created_date":"2014-04-30 00:56:00","boole":false},{"id":"2","name":"WWW科技有限公司","city":"深圳","employees":300,"created_date":"2016-07-08 12:36:22","boole":true}]},"id":"9f544d43"},{"componentName":"div","props":{},"id":"c3be6334"},{"componentName":"TinyForm","props":{"labelWidth":"80px","labelPosition":"top"},"children":[{"componentName":"TinyFormItem","props":{"label":"人员"},"children":[{"componentName":"TinyInput","props":{"placeholder":"请输入","modelValue":""},"id":"6a365365"}],"id":"22464422"},{"componentName":"TinyFormItem","props":{"label":"密码"},"children":[{"componentName":"TinyInput","props":{"placeholder":"请输入","modelValue":"","type":"password"},"id":"55297132"}],"id":"c42655f5"},{"componentName":"TinyFormItem","props":{"label":""},"children":[{"componentName":"TinyButton","props":{"text":"提交","type":"primary","style":"margin-right: 10px"},"id":"521663e5"},{"componentName":"TinyButton","props":{"text":"重置","type":"primary"},"id":"33153f15"}],"id":"31541a46"}],"id":"35a24114"},{"componentName":"TinyCarousel","props":{"height":"180px"},"children":[{"componentName":"TinyCarouselItem","children":[{"componentName":"div","props":{"style":"margin:10px 0 0 30px"},"id":"92546616"}],"id":"1b2d445c","props":{"title":"选项卡","name":""}},{"componentName":"TinyCarouselItem","children":[{"componentName":"div","props":{"style":"margin:10px 0 0 30px"},"id":"3a145148"}],"id":"36631533","props":{"title":"选项卡","name":""}}],"id":"52426c25"}],"schema":{"properties":[{"label":{"zh_CN":"基础信息"},"description":{"zh_CN":"基础信息"},"collapse":{"number":6,"text":{"zh_CN":"显示更多"}},"content":[]}],"events":{},"slots":{}},"dataSource":{},"dependencies":{"scripts":[{"package":"@opentiny/vue","version":"","components":{"TinyGrid":"Grid","TinyForm":"Form","TinyFormItem":"FormItem","TinyInput":"Input","TinyButton":"Button","TinyCarousel":"Carousel","TinyCarouselItem":"CarouselItem"}}],"styles":[]}}', '{"material":[],"scripts":["https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js","https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js"],"styles":[]}', '{"result":true,"versions":["@opentiny/tiny-engine-block-build@1.0.2"],"endTime":"2024/3/19 20:22:03","message":"2.0.7","filesPath":{"material":[],"scripts":["https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js","https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js"],"styles":[]},"taskId":184}', '区块', '[]', '2.0.7', 1, NULL, '我的分组', NULL, 0, 1, 0, 0, '@opentiny-assets/tinyengine-alpha-block-blocktest1a-993', '', 1, 1, NULL, 1, '1', '1', '2024-10-16 23:52:11', '2024-10-16 23:52:11', '1', '1'); +INSERT INTO t_block (id, label, name, framework, content, assets, last_build_info, description, tags, latest_version, latest_history_id, screenshot, path, occupier_by, is_official, public, is_default, tiny_reserved, npm_name, i18n, platform_id, app_id, content_blocks, block_group_id, created_by, last_updated_by, created_time, last_updated_time, tenant_id, site_id) VALUES (1, 'BlockTest1a', 'BlockTest1a', 'Vue', '{"state":{},"methods":{},"componentName":"Block","fileName":"BlockTest1a","css":"","props":{},"children":[{"componentName":"TinyGrid","props":{"editConfig":{"trigger":"click","mode":"cell","showStatus":true},"columns":[{"type":"index","width":60},{"type":"selection","width":60},{"field":"employees","title":"员工数"},{"field":"created_date","title":"创建日期"},{"field":"city","title":"城市"}],"data":[{"id":"1","name":"GFD科技有限公司","city":"福州","employees":800,"created_date":"2014-04-30 00:56:00","boole":false},{"id":"2","name":"WWW科技有限公司","city":"深圳","employees":300,"created_date":"2016-07-08 12:36:22","boole":true}]},"id":"9f544d43"},{"componentName":"div","props":{},"id":"c3be6334"},{"componentName":"TinyForm","props":{"labelWidth":"80px","labelPosition":"top"},"children":[{"componentName":"TinyFormItem","props":{"label":"人员"},"children":[{"componentName":"TinyInput","props":{"placeholder":"请输入","modelValue":""},"id":"6a365365"}],"id":"22464422"},{"componentName":"TinyFormItem","props":{"label":"密码"},"children":[{"componentName":"TinyInput","props":{"placeholder":"请输入","modelValue":"","type":"password"},"id":"55297132"}],"id":"c42655f5"},{"componentName":"TinyFormItem","props":{"label":""},"children":[{"componentName":"TinyButton","props":{"text":"提交","type":"primary","style":"margin-right: 10px"},"id":"521663e5"},{"componentName":"TinyButton","props":{"text":"重置","type":"primary"},"id":"33153f15"}],"id":"31541a46"}],"id":"35a24114"},{"componentName":"TinyCarousel","props":{"height":"180px"},"children":[{"componentName":"TinyCarouselItem","children":[{"componentName":"div","props":{"style":"margin:10px 0 0 30px"},"id":"92546616"}],"id":"1b2d445c","props":{"title":"选项卡","name":""}},{"componentName":"TinyCarouselItem","children":[{"componentName":"div","props":{"style":"margin:10px 0 0 30px"},"id":"3a145148"}],"id":"36631533","props":{"title":"选项卡","name":""}}],"id":"52426c25"}],"schema":{"properties":[{"label":{"zh_CN":"基础信息"},"description":{"zh_CN":"基础信息"},"collapse":{"number":6,"text":{"zh_CN":"显示更多"}},"content":[]}],"events":{},"slots":{}},"dataSource":{},"dependencies":{"scripts":[{"package":"@opentiny/vue","version":"","components":{"TinyGrid":"Grid","TinyForm":"Form","TinyFormItem":"FormItem","TinyInput":"Input","TinyButton":"Button","TinyCarousel":"Carousel","TinyCarouselItem":"CarouselItem"}}],"styles":[]}}', '{"material":[],"scripts":["https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js","https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js"],"styles":[]}', '{"result":true,"versions":["@opentiny/tiny-engine-block-build@1.0.2"],"endTime":"2024/3/19 20:22:03","message":"2.0.7","filesPath":{"material":[],"scripts":["https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js","https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js"],"styles":[]},"taskId":184}', '区块', '[]', '2.0.7', 1, NULL, '我的分组', NULL, 0, 1, 0, 0, '@opentiny-assets/tinyengine-alpha-block-blocktest1a-993', '', 1, 1, NULL, '1', '1', '2024-10-16 23:52:11', '2024-10-16 23:52:11', '1', '1'); INSERT INTO t_material (id, name, npm_name, framework, assets_url, image_url, published, latest_version, latest_history_id, public, last_build_info, description, is_official, is_default, tiny_reserved, component_library_id, material_category_id, material_size, tgz_url, unzip_tgz_root_path_url, unzip_tgz_files, created_by, last_updated_by, created_time, last_updated_time, tenant_id, site_id) VALUES (1, 'materialstwo', '@opentiny/lowcode-alpha-material-materialstwo-1505', 'Vue', NULL, NULL, NULL, '1.0.8', 1, 1, '{"version": "1.0.8"}', '物料包', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', '2024-10-16 23:37:14', '2024-10-16 23:37:14', '1', '1'); diff --git a/app/src/main/resources/sql/mysql/init_data_for_test.sql b/app/src/main/resources/sql/mysql/init_data_for_test.sql index 6347ccad..2d854322 100644 --- a/app/src/main/resources/sql/mysql/init_data_for_test.sql +++ b/app/src/main/resources/sql/mysql/init_data_for_test.sql @@ -49,7 +49,7 @@ INSERT INTO `t_component` (`id`, `version`, `name`, `name_en`, `icon`, `descript INSERT INTO `t_component` (`id`, `version`, `name`, `name_en`, `icon`, `description`, `doc_url`, `screenshot`, `tags`, `keywords`, `dev_mode`, `npm`, `group`, `category`, `priority`, `snippets`, `schema_fragment`, `configure`, `public`, `framework`, `is_official`, `is_default`, `tiny_reserved`, `component_metadata`, `library_id`, `tenant_id`, `renter_id`, `site_id`, `created_by`, `created_time`, `last_updated_by`, `last_updated_time`) VALUES (121, '2.4.2', '{\"zh_CN\":\"数字输入框\"}', 'TinyNumeric', 'numeric', '通过鼠标或键盘输入字符', '', '', '', '', 'proCode', '{\"package\":\"@opentiny/vue\",\"exportName\":\"Numeric\",\"version\":\"3.14.0\",\"destructuring\":true,\"script\":\"https://unpkg.com/@opentiny/vue@~3.14/runtime/tiny-vue.mjs\",\"css\":\"https://unpkg.com/@opentiny/vue-theme@~3.14/index.css\"}', 'component', 'form', 1, '[{\"name\":{\"zh_CN\":\"数字输入框\"},\"icon\":\"numeric\",\"screenshot\":\"\",\"snippetName\":\"TinyNumeric\",\"schema\":{\"componentName\":\"TinyNumeric\",\"props\":{\"allow-empty\":true,\"placeholder\":\"请输入\",\"controlsPosition\":\"right\",\"step\":1}}}]', NULL, '{\"loop\":true,\"condition\":true,\"styles\":true,\"isContainer\":true,\"isModal\":false,\"nestingRule\":{\"childWhitelist\":\"\",\"parentWhitelist\":\"\",\"descendantBlacklist\":\"\",\"ancestorWhitelist\":\"\"},\"isNullNode\":false,\"isLayout\":false,\"rootSelector\":\"\",\"shortcuts\":{\"properties\":[\"value\",\"disabled\"]},\"contextMenu\":{\"actions\":[\"create symbol\"],\"disable\":[\"copy\",\"remove\"]}}', 1, 'Vue', 1, 1, 0, NULL, NULL, '1', '1', '1', '1', '2024-12-09 22:56:19', '1', '2024-12-09 22:56:19'); -INSERT INTO `t_block_history` (`id`, `ref_id`, `message`, `version`, `label`, `name`, `framework`, `content`, `assets`, `build_info`, `screenshot`, `path`, `description`, `tags`, `is_official`, `public`, `is_default`, `tiny_reserved`, `mode`, `platform_id`, `app_id`, `npm_name`, `i18n`, `block_group_id`, `content_blocks`, `created_by`, `last_updated_by`, `created_time`, `last_updated_time`, `tenant_id`, `site_id`) VALUES (1, 1, '2.0.7', '2.0.7', 'BlockTest1a', 'BlockTest1a', 'Vue', '{\"state\":{},\"methods\":{},\"componentName\":\"Block\",\"fileName\":\"BlockTest1a\",\"css\":\"\",\"props\":{},\"children\":[{\"componentName\":\"TinyGrid\",\"props\":{\"editConfig\":{\"trigger\":\"click\",\"mode\":\"cell\",\"showStatus\":true},\"columns\":[{\"type\":\"index\",\"width\":60},{\"type\":\"selection\",\"width\":60},{\"field\":\"employees\",\"title\":\"员工数\"},{\"field\":\"created_date\",\"title\":\"创建日期\"},{\"field\":\"city\",\"title\":\"城市\"}],\"data\":[{\"id\":\"1\",\"name\":\"GFD科技有限公司\",\"city\":\"福州\",\"employees\":800,\"created_date\":\"2014-04-30 00:56:00\",\"boole\":false},{\"id\":\"2\",\"name\":\"WWW科技有限公司\",\"city\":\"深圳\",\"employees\":300,\"created_date\":\"2016-07-08 12:36:22\",\"boole\":true}]},\"id\":\"9f544d43\"},{\"componentName\":\"div\",\"props\":{},\"id\":\"c3be6334\"},{\"componentName\":\"TinyForm\",\"props\":{\"labelWidth\":\"80px\",\"labelPosition\":\"top\"},\"children\":[{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"人员\"},\"children\":[{\"componentName\":\"TinyInput\",\"props\":{\"placeholder\":\"请输入\",\"modelValue\":\"\"},\"id\":\"6a365365\"}],\"id\":\"22464422\"},{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"密码\"},\"children\":[{\"componentName\":\"TinyInput\",\"props\":{\"placeholder\":\"请输入\",\"modelValue\":\"\",\"type\":\"password\"},\"id\":\"55297132\"}],\"id\":\"c42655f5\"},{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"\"},\"children\":[{\"componentName\":\"TinyButton\",\"props\":{\"text\":\"提交\",\"type\":\"primary\",\"style\":\"margin-right: 10px\"},\"id\":\"521663e5\"},{\"componentName\":\"TinyButton\",\"props\":{\"text\":\"重置\",\"type\":\"primary\"},\"id\":\"33153f15\"}],\"id\":\"31541a46\"}],\"id\":\"35a24114\"},{\"componentName\":\"TinyCarousel\",\"props\":{\"height\":\"180px\"},\"children\":[{\"componentName\":\"TinyCarouselItem\",\"children\":[{\"componentName\":\"div\",\"props\":{\"style\":\"margin:10px 0 0 30px\"},\"id\":\"92546616\"}],\"id\":\"1b2d445c\",\"props\":{\"title\":\"选项卡\",\"name\":\"\"}},{\"componentName\":\"TinyCarouselItem\",\"children\":[{\"componentName\":\"div\",\"props\":{\"style\":\"margin:10px 0 0 30px\"},\"id\":\"3a145148\"}],\"id\":\"36631533\",\"props\":{\"title\":\"选项卡\",\"name\":\"\"}}],\"id\":\"52426c25\"}],\"schema\":{\"properties\":[{\"label\":{\"zh_CN\":\"基础信息\"},\"description\":{\"zh_CN\":\"基础信息\"},\"collapse\":{\"number\":6,\"text\":{\"zh_CN\":\"显示更多\"}},\"content\":[]}],\"events\":{},\"slots\":{}},\"dataSource\":{},\"dependencies\":{\"scripts\":[{\"package\":\"@opentiny/vue\",\"version\":\"\",\"components\":{\"TinyGrid\":\"Grid\",\"TinyForm\":\"Form\",\"TinyFormItem\":\"FormItem\",\"TinyInput\":\"Input\",\"TinyButton\":\"Button\",\"TinyCarousel\":\"Carousel\",\"TinyCarouselItem\":\"CarouselItem\"}}],\"styles\":[]}}', '{\"material\":[],\"scripts\":[\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js\",\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js\"],\"styles\":[]}', NULL, NULL, '我的分组', '区块', '[]', 0, 1, 0, 0, NULL, 1, 1, '@opentiny-assets/tinyengine-alpha-block-blocktest1a-993', '{\"en_US\":{\"lowcode.c257d5e8\":\"search\",\"lowcode.61c8ac8c\":\"dsdsa\",\"lowcode.f53187a0\":\"test\",\"lowcode.97ad00dd\":\"createMaterial\",\"lowcode.61dcef52\":\"sadasda\",\"lowcode.45f4c42a\":\"gfdgfd\",\"lowcode.c6f5a652\":\"fsdafds\"},\"zh_CN\":{\"lowcode.c257d5e8\":\"查询\",\"lowcode.61c8ac8c\":\"地方\",\"lowcode.f53187a0\":\"测试\",\"lowcode.97ad00dd\":\"创建物料资产包\",\"lowcode.61dcef52\":\"terterere\",\"lowcode.45f4c42a\":\"gdfgdf\",\"lowcode.c6f5a652\":\"fsdaf\"}}', 1, NULL, '1', '1', '2024-10-16 19:19:54', '2024-10-16 19:19:54', '1', '1'); +INSERT INTO `t_block_history` (`id`, `ref_id`, `message`, `version`, `label`, `name`, `framework`, `content`, `assets`, `build_info`, `screenshot`, `path`, `description`, `tags`, `is_official`, `public`, `is_default`, `tiny_reserved`, `mode`, `platform_id`, `app_id`, `npm_name`, `i18n`, `content_blocks`, `created_by`, `last_updated_by`, `created_time`, `last_updated_time`, `tenant_id`, `site_id`) VALUES (1, 1, '2.0.7', '2.0.7', 'BlockTest1a', 'BlockTest1a', 'Vue', '{\"state\":{},\"methods\":{},\"componentName\":\"Block\",\"fileName\":\"BlockTest1a\",\"css\":\"\",\"props\":{},\"children\":[{\"componentName\":\"TinyGrid\",\"props\":{\"editConfig\":{\"trigger\":\"click\",\"mode\":\"cell\",\"showStatus\":true},\"columns\":[{\"type\":\"index\",\"width\":60},{\"type\":\"selection\",\"width\":60},{\"field\":\"employees\",\"title\":\"员工数\"},{\"field\":\"created_date\",\"title\":\"创建日期\"},{\"field\":\"city\",\"title\":\"城市\"}],\"data\":[{\"id\":\"1\",\"name\":\"GFD科技有限公司\",\"city\":\"福州\",\"employees\":800,\"created_date\":\"2014-04-30 00:56:00\",\"boole\":false},{\"id\":\"2\",\"name\":\"WWW科技有限公司\",\"city\":\"深圳\",\"employees\":300,\"created_date\":\"2016-07-08 12:36:22\",\"boole\":true}]},\"id\":\"9f544d43\"},{\"componentName\":\"div\",\"props\":{},\"id\":\"c3be6334\"},{\"componentName\":\"TinyForm\",\"props\":{\"labelWidth\":\"80px\",\"labelPosition\":\"top\"},\"children\":[{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"人员\"},\"children\":[{\"componentName\":\"TinyInput\",\"props\":{\"placeholder\":\"请输入\",\"modelValue\":\"\"},\"id\":\"6a365365\"}],\"id\":\"22464422\"},{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"密码\"},\"children\":[{\"componentName\":\"TinyInput\",\"props\":{\"placeholder\":\"请输入\",\"modelValue\":\"\",\"type\":\"password\"},\"id\":\"55297132\"}],\"id\":\"c42655f5\"},{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"\"},\"children\":[{\"componentName\":\"TinyButton\",\"props\":{\"text\":\"提交\",\"type\":\"primary\",\"style\":\"margin-right: 10px\"},\"id\":\"521663e5\"},{\"componentName\":\"TinyButton\",\"props\":{\"text\":\"重置\",\"type\":\"primary\"},\"id\":\"33153f15\"}],\"id\":\"31541a46\"}],\"id\":\"35a24114\"},{\"componentName\":\"TinyCarousel\",\"props\":{\"height\":\"180px\"},\"children\":[{\"componentName\":\"TinyCarouselItem\",\"children\":[{\"componentName\":\"div\",\"props\":{\"style\":\"margin:10px 0 0 30px\"},\"id\":\"92546616\"}],\"id\":\"1b2d445c\",\"props\":{\"title\":\"选项卡\",\"name\":\"\"}},{\"componentName\":\"TinyCarouselItem\",\"children\":[{\"componentName\":\"div\",\"props\":{\"style\":\"margin:10px 0 0 30px\"},\"id\":\"3a145148\"}],\"id\":\"36631533\",\"props\":{\"title\":\"选项卡\",\"name\":\"\"}}],\"id\":\"52426c25\"}],\"schema\":{\"properties\":[{\"label\":{\"zh_CN\":\"基础信息\"},\"description\":{\"zh_CN\":\"基础信息\"},\"collapse\":{\"number\":6,\"text\":{\"zh_CN\":\"显示更多\"}},\"content\":[]}],\"events\":{},\"slots\":{}},\"dataSource\":{},\"dependencies\":{\"scripts\":[{\"package\":\"@opentiny/vue\",\"version\":\"\",\"components\":{\"TinyGrid\":\"Grid\",\"TinyForm\":\"Form\",\"TinyFormItem\":\"FormItem\",\"TinyInput\":\"Input\",\"TinyButton\":\"Button\",\"TinyCarousel\":\"Carousel\",\"TinyCarouselItem\":\"CarouselItem\"}}],\"styles\":[]}}', '{\"material\":[],\"scripts\":[\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js\",\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js\"],\"styles\":[]}', NULL, NULL, '我的分组', '区块', '[]', 0, 1, 0, 0, NULL, 1, 1, '@opentiny-assets/tinyengine-alpha-block-blocktest1a-993', '{\"en_US\":{\"lowcode.c257d5e8\":\"search\",\"lowcode.61c8ac8c\":\"dsdsa\",\"lowcode.f53187a0\":\"test\",\"lowcode.97ad00dd\":\"createMaterial\",\"lowcode.61dcef52\":\"sadasda\",\"lowcode.45f4c42a\":\"gfdgfd\",\"lowcode.c6f5a652\":\"fsdafds\"},\"zh_CN\":{\"lowcode.c257d5e8\":\"查询\",\"lowcode.61c8ac8c\":\"地方\",\"lowcode.f53187a0\":\"测试\",\"lowcode.97ad00dd\":\"创建物料资产包\",\"lowcode.61dcef52\":\"terterere\",\"lowcode.45f4c42a\":\"gdfgdf\",\"lowcode.c6f5a652\":\"fsdaf\"}}', NULL, '1', '1', '2024-10-16 19:19:54', '2024-10-16 19:19:54', '1', '1'); INSERT INTO `t_block_group` (`id`, `name`, `app_id`, `platform_id`, `description`, `created_by`, `last_updated_by`, `created_time`, `last_updated_time`, `tenant_id`, `site_id`) VALUES (1, '我的分组', 1, 1, '区块分组', '1', '1', '2024-10-16 19:15:53', '2024-10-16 19:15:53', '1', '1'); @@ -165,7 +165,7 @@ INSERT INTO `r_material_block` (`id`, `material_id`, `block_id`) VALUES (1, 1, 1 INSERT INTO `t_app` (`id`, `name`, `app_website`, `platform_id`, `platform_history_id`, `publish_url`, `editor_url`, `visit_url`, `image_url`, `assets_url`, `state`, `published`, `home_page_id`, `css`, `config`, `constants`, `data_handler`, `description`, `latest`, `git_group`, `project_name`, `branch`, `is_demo`, `is_default`, `template_type`, `set_template_time`, `set_template_by`, `set_default_by`, `framework`, `global_state`, `default_lang`, `extend_config`, `data_hash`, `can_associate`, `data_source_global`, `created_by`, `last_updated_by`, `created_time`, `last_updated_time`, `tenant_id`, `site_id`) VALUES (1, 'portal-app', NULL, 1, '1', NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, '{}', NULL, '{\"type\":\"JSFunction\",\"value\":\"function dataHanlder(res){\\n return res;\\n}\"}', 'demo应用', '22', NULL, NULL, 'develop', NULL, NULL, 'serviceDevelop', '2023-11-19 18:14:37', '1', '1', 'Vue', '[{\"id\":\"test2\",\"state\":{\"name1\":\"xxx1\"},\"getters\":{\"count\":{\"type\":\"JSFunction\",\"value\":\"function count() {}\"}},\"actions\":{\"actions\":{\"type\":\"JSFunction\",\"value\":\"function actions() {}\"}}},{\"id\":\"test3\",\"state\":{\"name1\":\"xxx\"},\"getters\":{\"count\":{\"type\":\"JSFunction\",\"value\":\"function count() {}\"}},\"actions\":{\"actions\":{\"type\":\"JSFunction\",\"value\":\"function actions() {}\"}}},{\"id\":\"test4\",\"state\":{\"region\":\"\",\"scenario\":\"all\",\"productId\":\"\",\"planId\":\"\",\"addEvs\":false,\"addHss\":false,\"addCbr\":false,\"period\":{\"value\":1,\"unit\":\"month\"},\"amount\":1},\"getters\":{},\"actions\":{}},{\"id\":\"test1\",\"state\":{\"name1\":\"xxx\"},\"getters\":{\"count\":{\"type\":\"JSFunction\",\"value\":\"function count() {}\"}},\"actions\":{\"actions\":{\"type\":\"JSFunction\",\"value\":\"function actions() {}\"}}}]', NULL, '{\"business\":{\"serviceName\":\"\",\"endpointName\":\"cce\",\"endpointId\":\"ee\",\"serviceId\":\"ee\",\"router\":\"ee\"},\"env\":{\"alpha\":{\"regions\":[{\"name\":\"\",\"baseUrl\":\"\",\"isDefault\":false}],\"isDefault\":true}},\"type\":\"console\"}', '8b0eba6ad055532a586f9f669108fabb', '1', '{\"dataHandler\":{\"type\":\"JSFunction\",\"value\":\"function dataHanlder(res){\\n return res;\\n}\"}}', '1', '1', '2024-10-16 23:27:10', '2024-10-16 23:27:10', '1', '1'); -INSERT INTO `t_block` (`id`, `label`, `name`, `framework`, `content`, `assets`, `last_build_info`, `description`, `tags`, `latest_version`, `latest_history_id`, `screenshot`, `path`, `occupier_by`, `is_official`, `public`, `is_default`, `tiny_reserved`, `npm_name`, `i18n`, `platform_id`, `app_id`, `content_blocks`, `block_group_id`, `created_by`, `last_updated_by`, `created_time`, `last_updated_time`, `tenant_id`, `site_id`) VALUES (1, 'BlockTest1a', 'BlockTest1a', 'Vue', '{\"state\":{},\"methods\":{},\"componentName\":\"Block\",\"fileName\":\"BlockTest1a\",\"css\":\"\",\"props\":{},\"children\":[{\"componentName\":\"TinyGrid\",\"props\":{\"editConfig\":{\"trigger\":\"click\",\"mode\":\"cell\",\"showStatus\":true},\"columns\":[{\"type\":\"index\",\"width\":60},{\"type\":\"selection\",\"width\":60},{\"field\":\"employees\",\"title\":\"员工数\"},{\"field\":\"created_date\",\"title\":\"创建日期\"},{\"field\":\"city\",\"title\":\"城市\"}],\"data\":[{\"id\":\"1\",\"name\":\"GFD科技有限公司\",\"city\":\"福州\",\"employees\":800,\"created_date\":\"2014-04-30 00:56:00\",\"boole\":false},{\"id\":\"2\",\"name\":\"WWW科技有限公司\",\"city\":\"深圳\",\"employees\":300,\"created_date\":\"2016-07-08 12:36:22\",\"boole\":true}]},\"id\":\"9f544d43\"},{\"componentName\":\"div\",\"props\":{},\"id\":\"c3be6334\"},{\"componentName\":\"TinyForm\",\"props\":{\"labelWidth\":\"80px\",\"labelPosition\":\"top\"},\"children\":[{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"人员\"},\"children\":[{\"componentName\":\"TinyInput\",\"props\":{\"placeholder\":\"请输入\",\"modelValue\":\"\"},\"id\":\"6a365365\"}],\"id\":\"22464422\"},{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"密码\"},\"children\":[{\"componentName\":\"TinyInput\",\"props\":{\"placeholder\":\"请输入\",\"modelValue\":\"\",\"type\":\"password\"},\"id\":\"55297132\"}],\"id\":\"c42655f5\"},{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"\"},\"children\":[{\"componentName\":\"TinyButton\",\"props\":{\"text\":\"提交\",\"type\":\"primary\",\"style\":\"margin-right: 10px\"},\"id\":\"521663e5\"},{\"componentName\":\"TinyButton\",\"props\":{\"text\":\"重置\",\"type\":\"primary\"},\"id\":\"33153f15\"}],\"id\":\"31541a46\"}],\"id\":\"35a24114\"},{\"componentName\":\"TinyCarousel\",\"props\":{\"height\":\"180px\"},\"children\":[{\"componentName\":\"TinyCarouselItem\",\"children\":[{\"componentName\":\"div\",\"props\":{\"style\":\"margin:10px 0 0 30px\"},\"id\":\"92546616\"}],\"id\":\"1b2d445c\",\"props\":{\"title\":\"选项卡\",\"name\":\"\"}},{\"componentName\":\"TinyCarouselItem\",\"children\":[{\"componentName\":\"div\",\"props\":{\"style\":\"margin:10px 0 0 30px\"},\"id\":\"3a145148\"}],\"id\":\"36631533\",\"props\":{\"title\":\"选项卡\",\"name\":\"\"}}],\"id\":\"52426c25\"}],\"schema\":{\"properties\":[{\"label\":{\"zh_CN\":\"基础信息\"},\"description\":{\"zh_CN\":\"基础信息\"},\"collapse\":{\"number\":6,\"text\":{\"zh_CN\":\"显示更多\"}},\"content\":[]}],\"events\":{},\"slots\":{}},\"dataSource\":{},\"dependencies\":{\"scripts\":[{\"package\":\"@opentiny/vue\",\"version\":\"\",\"components\":{\"TinyGrid\":\"Grid\",\"TinyForm\":\"Form\",\"TinyFormItem\":\"FormItem\",\"TinyInput\":\"Input\",\"TinyButton\":\"Button\",\"TinyCarousel\":\"Carousel\",\"TinyCarouselItem\":\"CarouselItem\"}}],\"styles\":[]}}', '{\"material\":[],\"scripts\":[\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js\",\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js\"],\"styles\":[]}', '{\"result\":true,\"versions\":[\"@opentiny/tiny-engine-block-build@1.0.2\"],\"endTime\":\"2024/3/19 20:22:03\",\"message\":\"2.0.7\",\"filesPath\":{\"material\":[],\"scripts\":[\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js\",\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js\"],\"styles\":[]},\"taskId\":184}', '区块', '[]', '2.0.7', 1, NULL, '我的分组', '1', 0, 1, 0, 0, '@opentiny-assets/tinyengine-alpha-block-blocktest1a-993', '', 1, 1, NULL, 1, '1', '1', '2024-10-16 23:52:11', '2024-10-16 23:52:11', '1', '1'); +INSERT INTO `t_block` (`id`, `label`, `name`, `framework`, `content`, `assets`, `last_build_info`, `description`, `tags`, `latest_version`, `latest_history_id`, `screenshot`, `path`, `occupier_by`, `is_official`, `public`, `is_default`, `tiny_reserved`, `npm_name`, `i18n`, `platform_id`, `app_id`, `content_blocks`, `created_by`, `last_updated_by`, `created_time`, `last_updated_time`, `tenant_id`, `site_id`) VALUES (1, 'BlockTest1a', 'BlockTest1a', 'Vue', '{\"state\":{},\"methods\":{},\"componentName\":\"Block\",\"fileName\":\"BlockTest1a\",\"css\":\"\",\"props\":{},\"children\":[{\"componentName\":\"TinyGrid\",\"props\":{\"editConfig\":{\"trigger\":\"click\",\"mode\":\"cell\",\"showStatus\":true},\"columns\":[{\"type\":\"index\",\"width\":60},{\"type\":\"selection\",\"width\":60},{\"field\":\"employees\",\"title\":\"员工数\"},{\"field\":\"created_date\",\"title\":\"创建日期\"},{\"field\":\"city\",\"title\":\"城市\"}],\"data\":[{\"id\":\"1\",\"name\":\"GFD科技有限公司\",\"city\":\"福州\",\"employees\":800,\"created_date\":\"2014-04-30 00:56:00\",\"boole\":false},{\"id\":\"2\",\"name\":\"WWW科技有限公司\",\"city\":\"深圳\",\"employees\":300,\"created_date\":\"2016-07-08 12:36:22\",\"boole\":true}]},\"id\":\"9f544d43\"},{\"componentName\":\"div\",\"props\":{},\"id\":\"c3be6334\"},{\"componentName\":\"TinyForm\",\"props\":{\"labelWidth\":\"80px\",\"labelPosition\":\"top\"},\"children\":[{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"人员\"},\"children\":[{\"componentName\":\"TinyInput\",\"props\":{\"placeholder\":\"请输入\",\"modelValue\":\"\"},\"id\":\"6a365365\"}],\"id\":\"22464422\"},{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"密码\"},\"children\":[{\"componentName\":\"TinyInput\",\"props\":{\"placeholder\":\"请输入\",\"modelValue\":\"\",\"type\":\"password\"},\"id\":\"55297132\"}],\"id\":\"c42655f5\"},{\"componentName\":\"TinyFormItem\",\"props\":{\"label\":\"\"},\"children\":[{\"componentName\":\"TinyButton\",\"props\":{\"text\":\"提交\",\"type\":\"primary\",\"style\":\"margin-right: 10px\"},\"id\":\"521663e5\"},{\"componentName\":\"TinyButton\",\"props\":{\"text\":\"重置\",\"type\":\"primary\"},\"id\":\"33153f15\"}],\"id\":\"31541a46\"}],\"id\":\"35a24114\"},{\"componentName\":\"TinyCarousel\",\"props\":{\"height\":\"180px\"},\"children\":[{\"componentName\":\"TinyCarouselItem\",\"children\":[{\"componentName\":\"div\",\"props\":{\"style\":\"margin:10px 0 0 30px\"},\"id\":\"92546616\"}],\"id\":\"1b2d445c\",\"props\":{\"title\":\"选项卡\",\"name\":\"\"}},{\"componentName\":\"TinyCarouselItem\",\"children\":[{\"componentName\":\"div\",\"props\":{\"style\":\"margin:10px 0 0 30px\"},\"id\":\"3a145148\"}],\"id\":\"36631533\",\"props\":{\"title\":\"选项卡\",\"name\":\"\"}}],\"id\":\"52426c25\"}],\"schema\":{\"properties\":[{\"label\":{\"zh_CN\":\"基础信息\"},\"description\":{\"zh_CN\":\"基础信息\"},\"collapse\":{\"number\":6,\"text\":{\"zh_CN\":\"显示更多\"}},\"content\":[]}],\"events\":{},\"slots\":{}},\"dataSource\":{},\"dependencies\":{\"scripts\":[{\"package\":\"@opentiny/vue\",\"version\":\"\",\"components\":{\"TinyGrid\":\"Grid\",\"TinyForm\":\"Form\",\"TinyFormItem\":\"FormItem\",\"TinyInput\":\"Input\",\"TinyButton\":\"Button\",\"TinyCarousel\":\"Carousel\",\"TinyCarouselItem\":\"CarouselItem\"}}],\"styles\":[]}}', '{\"material\":[],\"scripts\":[\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js\",\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js\"],\"styles\":[]}', '{\"result\":true,\"versions\":[\"@opentiny/tiny-engine-block-build@1.0.2\"],\"endTime\":\"2024/3/19 20:22:03\",\"message\":\"2.0.7\",\"filesPath\":{\"material\":[],\"scripts\":[\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.umd.js\",\"https://npm.onmicrosoft.cn/@opentiny-assets/tinyengine-alpha-block-blocktest1a-993@2.0.7/js\\\\web-component.es.js\"],\"styles\":[]},\"taskId\":184}', '区块', '[]', '2.0.7', 1, NULL, '我的分组', '1', 0, 1, 0, 0, '@opentiny-assets/tinyengine-alpha-block-blocktest1a-993', '', 1, 1, NULL, '1', '1', '2024-10-16 23:52:11', '2024-10-16 23:52:11', '1', '1'); INSERT INTO `t_material` (`id`, `name`, `npm_name`, `framework`, `assets_url`, `image_url`, `published`, `latest_version`, `latest_history_id`, `public`, `last_build_info`, `description`, `is_official`, `is_default`, `tiny_reserved`, `component_library_id`, `material_category_id`, `material_size`, `tgz_url`, `unzip_tgz_root_path_url`, `unzip_tgz_files`, `created_by`, `last_updated_by`, `created_time`, `last_updated_time`, `tenant_id`, `site_id`) VALUES (1, 'materialstwo', '@opentiny/lowcode-alpha-material-materialstwo-1505', 'Vue', NULL, NULL, NULL, '1.0.8', 1, 1, '{\"version\": \"1.0.8\"}', '物料包', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', '2024-10-16 23:37:14', '2024-10-16 23:37:14', '1', '1');