Giter Site home page Giter Site logo

opentiny / tiny-engine Goto Github PK

View Code? Open in Web Editor NEW
1.6K 1.6K 232.0 2.69 MB

TinyEngine is a low-code engine based on which you can build or develop low-code platforms in different domains/TinyEngine是一个低代码引擎,基于这个引擎可以构建或者开发出不同领域的低代码平台

Home Page: https://opentiny.design/tiny-engine

License: MIT License

Shell 0.01% JavaScript 25.19% HTML 0.52% CSS 25.63% Vue 42.67% Less 5.98%
frontend lowcode lowcode-engine opentiny tiny-engine

tiny-engine's People

Contributors

betterdancing avatar catsandmice avatar chilingling avatar gaoneng-www avatar gargameljyh avatar gene9831 avatar h-ivy avatar hexqi avatar ianxinnew avatar kagol avatar lhuans avatar lichunn avatar lizhijie429 avatar lu17301156525 avatar luocongqiu avatar rhlin avatar stwflyfox avatar wenmine avatar xiejay97 avatar xppp0217 avatar yaoyun8 avatar yuhkikele avatar zeyongtsai avatar zzcr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tiny-engine's Issues

🐛 [Bug]: 下载代码时,提示错误 Cannot find module ... has a valid "main" entry

Environment

ms-edge

Version

v20.2.0

Version

3.10.1

Link to minimal reproduction

Cannot find module 'D:\opentiny\tiny-engine\mockServer\node_modules@opentiny\tiny-engine-dsl-vue\dist\tiny-engine-dsl-vue.cjs.js'. Please verify that the package.json has a valid "main" entry

Step to reproduce

pnpm dev
运行后,生产代码,然后单击“下载”按钮,右侧出现弹窗,内容为: Cannot find module 'D:\wwwroot\opentiny\tiny-engine\mockServer\node_modules@opentiny\tiny-engine-dsl-vue\dist\tiny-engine-dsl-vue.cjs.js'. Please verify that the package.json has a valid "main" entry

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

✨ [Feature]: 部署

What problem does this feature solve

请问下在生产是怎么设计器的输出结果呢?

What does the proposed API look like

看了下preview的逻辑但是发现渲染太慢,应该达不到产品所需的渲染要求

🐛 [Bug]: 示例中的选择框无法选中

Environment

Google Chrome 117.0.5938.92, window 10

Version

v16.18.0

Version

1.0.0

Link to minimal reproduction

示例中的选择框无法选中,设置此组件的右侧属性
1

示例中的输入框可以选中,设置此组件的右侧属性
2

Step to reproduce

刚初始化项目,打开官方提供的示例页面,左侧插件--》页面管理--》静态页面--》createVm

What is expected

修正此bug

What is actually happening

No response

Any additional comments (optional)

No response

请问具体怎么开发物料?

看了下学院课程中的物料文档,是基于在线平台的,并不是自己开发一个物料的教程,其他的也就只有个介绍、提纲,希望官方能有更详细的使用文档
比如:

  • 如何从0开始,开发一个物料,并接入低代码平台
  • 如果要用第三方组件库作为物料,应该怎么做
  • 如果物料的数据要支持调用接口动态获取,应该怎么开发这个物料,能给个简单的demo么

🐛 [Bug]: lowcodewrap 多余的参数

Environment

windwos11

Version

16

Version

最新

Link to minimal reproduction

Step to reproduce

ec8e83dfafbc366fcfdb09b20ecded8
4c15dfa44b09a7a8f198bdd95dfdfae

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

🐛 [Bug]: 设计态,在对话框内无法切换tab

Environment

chrome

Version

latest

Version

latest

Link to minimal reproduction

设计态,在对话框dialogBox内无法切换tab页签

Step to reproduce

a744a281d590d19022575a5da8aad81

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

✨ [Feature]:现在每次生产打包时重复构建没有改动的依赖包耗时较长,所以使用了turbo进行了改造,想要利用缓存提升构建速度,但目前遇到了循环依赖的问题

What problem does this feature solve

Turbo error: Invalid package dependency graph: cyclic dependency detected:
@opentiny/tiny-engine-http,@opentiny/tiny-engine-controller,@opentiny/tiny-engine-common,@opentiny/tiny-engine-canvas

What does the proposed API look like

后续可以提供一种方式来避免每次生产打包重复构建无改动的插件吗?或者说优化解决一下循环依赖问题

🐛 [Bug]: 生成代码报错

Environment

windwos11

Version

16

Version

最新

Link to minimal reproduction

Cannot find module 'C:\Users\cq\Desktop\12\tiny-engine-develop\tiny-engine-develop\mockServer\node_modules@opentiny\tiny-engine-dsl-vue\dist\tiny-engine-dsl-vue.cjs.js'. Please verify that the package.json has a valid "main" entry

Step to reproduce

点击生成

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

✨Q&A:常见问题答疑

直播答疑视频链接

基础功能使用类问题

问题1:如何使用第三方组件库?

答:详情可以查看如何在设计器中引入第三方组件库

问题2:如何使用插槽?

答:详情可以查看插槽的声明与使用

问题3:通过 TinyEngine 低代码引擎生成代码到本地时,如何将生成的源码页面独立放置在自己的项目中,提供example?

当前我们的出码结果依赖官方出码模板,暂时无法放置在自己项目中独立运行

第一步:下载 https://github.com/opentiny/tiny-engine-generate-preview 工程,解压
第二步:将代码下载到解压好的文件夹中(提示选择文件夹的时候,选择我们解压出来的文件夹)
第三步:用代码编辑器打开文件夹,确认出码结果,安装依赖并运行 npm run dev 启动服务,查看效果
后续相关的规划:

  • 支持开发插件,自定义出码结果
  • 支持自定义工程模板,结合自定义出码结果,可以无缝在自身项目中运行

问题4:怎样在 TinyEngine 低代码引擎中扩展左侧组件,比如创建用户、单位选择。在 form 表单里面使用,拖入这2个控件,可以弹出 dialog 框选择用户和单位,点击确定后回填到表单上 input 框上?

答:如果是想从零搭建业务组件,可以查看官方的文档教程尝试一步一步搭建(目前使用手册已更新)
如果是已有的业务组件,可以尝试通过导入第三方组件库的方式导入到左侧物料中。

问题5:分析下 TinyEngine 低代码引擎中左侧组件、中间区域渲染和右侧组件属性的代码在整体上协调一致的思路?

答:先简要介绍一下我们工程中主要的 package:

  |_ canvas  负责中间画布渲染
  |_ common  公共的组件以及 metaComponent 
  |_ controller  公共逻辑控制层
  |_ design-core 总入口
  |_ http  负责 http 相关请求
  |_ i18n lowcode-i18n 包裹层
  |_ plugins  左侧面板相关插件
  |_ settings 右侧设置面板相关组件
  |_ svgs svg 封装组件
  |_ theme  主题相关样式
  |_ toolbars 顶部工具栏相关 package
  |_ utils 公共utils
  |_ vue-generator 出码package
  |_ webcomponent webcomponent 封装

区域大致职责划分:

  • 左侧面板相关的范围:负责设置一些应用状态、页面状态、以及逻辑的控制、编写
  • 中间画布:负责视图层的编排
  • 右侧属性面板:负责视图层的属性控制、样式精细编排、事件绑定等属性相关

主要的功能入口:

1、资源请求

// packages/design-core/src/App.vue
// 这里发起请求物料、请求数据源、请求页面等相关资源请求,很关键
useResource().fetchResource()

2、画布渲染相关入口

packages
  |_ canvas
    |_ src
      |_ components
        |_ render
          |_ runner.js # 用于画布相关的资源请求,预设
          |_ RenderMain.js # 画布渲染的入口,同时也暴露了许多 api 供修改 schema
          |_ render.js # RenderMain.js 会调用该文件的 renderer 方法,递归渲染 schema

3、画布选中后,如何关联渲染右侧属性面板?

// DesignCanvas.vue

// 画布中节点选中后,会触发该方法
const nodeSelected = (node, parent, type) => {
  const { toolbars } = useLayout().layoutState
  if (type !== 'clickTree') {
    useLayout().closePlugin()
  }
  // 动态计算该方法需要渲染的 属性面板
  useProperties().getProps(node, parent)
  // 设置当前 schema
  useCanvas().setCurrentSchema(node)
  footData.value = getNodePath(node?.id)
  toolbars.visiblePopover = false
}
// settings/props/src/Main.vue
<template>
<!-- 在属性面板渲染设置属性的入口 -->
<config-render :data="properties">
  <template #prefix="{ data }">
    <block-link-field v-if="isBlock" :data="data"></block-link-field>
  </template>
</config-render>
</template>

<script>
// 选中之后,经过 getProps 的计算,我们会得到 properties,渲染在属性面板
const { properties } = useProperty({ pageState })
</script>

上面就是一些简单的入口简介,后续,我们会增加更多详细的架构原理、功能设计相关的文档,敬请期待

问题6:TinyEngine 低代码引擎是否提供排版组件,怎么实现灵活排版?

答:我们目前有内置的排版组件——行列容器,可以通过简单的剪切方式实现轻松的 flex 布局。

问题7:在使用 TinyEngine 低代码引擎时,组件内的静态资源(图片或者音频)如何引用?

答:这个问题要分多种情况讨论,

  • 设计器开发:
    可以拉下来源代码,按照原来静态资源图片等分类,放置进去要用的图片,在开发设计器的时候可以直接使用。

  • 页面运行态:
    可以通过 <input  type="file">标签选中你要的静态资源,这部分的逻辑完全取决于用户

  • 页面设计态:
    低代码引擎在开源之前是有这样的功能的,但是为了开源的合规,屏蔽了该功能。因为在设计态想用到静态资源的话,要选中静态资源,并上传到公司的文件管理系统,然后文件系统返回静态资源地址,然后再展示在画布中。如果用户想要这样的功能,只需要开发一个文件上传按钮,并把上传的内容放置用户的文件管理系统。

问题8:修改 TinyEngine 低代码引擎的物料描述文件 bundle.json 之后,无变化是什么原因?

答:可以关注一下以下 bundle.json 这个文件的设置是否正确,尤其是 widget.component 这个字段
以下为 bundle.json 这个文件的节选:

{
  "property": "text",
  "label": {
    "text": {
      "zh_CN": "按钮名称",
      "en_US": "Button Name"
    }
  },
  "required": true,
  "readOnly": false,
  "disabled": false,
  "cols": 12,
  "widget": {
    "component": "MetaBindI18n",
    "props": {}
  },
  "description": {
    "zh_CN": "按钮名称",
    "en_US": "Name of the button."
  }
}

问题9:在使用 TinyEngine 低代码引擎后,组件之间应该如何联动?

答:实现的方式是多种的,
方式一:假如 A(输入框)与 B(显示框)联动,那么可以给 A 绑定一个 change 事件,直接影响 B的显示
方式二:给 B 绑定一个值,通过影响 B 的值,从而影响 B 的显示。
方式三:通过 watch 监听

问题10:使用tiny-engine下载源码到本地时,接口报错

答:参照此issue #30 解决

功能增强拓展类问题

问题1:如何将 TinyEngine 低代码引擎项目集成到 .net 项目中?

答:原来的.net 系统可以继续独立运行,当需要跳转到低代码系统时候。从原来的.net系统带出关键参数。如 projectId, itemId, processId 等,通过URL的传参形式:https://xxxxxxxxxxx?projectId=1111&itemId=2222222&processId=33333333。 跳转到低代码系统后,在代码系统初始化时候获取URL的参数,通过服务端API接口获取到相应的流程、页面、物料等等信息。通过低代码系统搭建页面会产生schema或者源代码,在点击保存按钮的时候可以把想要的产物保存回来原来的.net系统中。

问题2:Java 后端开源的规划?

答:目前服务端有两套源代码,一套技术栈是 node.js ,一套技术栈是 Java。因为要从公司流程流程审批、技术评估还有后面的迭代演进等维度考虑,目前还不知最终会开源哪种技术栈的服务端。大家敬请期待12月30号左右的公告

问题3:TinyEngine 低代码引擎是否会增加 typescript 支持?

答:目前暂不支持,后续有在规划增加 typescript 的支持,大家敬请期待

问题4:TinyEngine 低代码引擎是否提供商业版本或者商业上的技术支持?

答:目前只有一个开源版本的代码,没有商业版本。至于商业技术上的支持,可以找到 OpenTiny 的小助手沟通,详细沟通一下贵司具体需要的商业支持。

问题5:后续是否会继续迭代 AI 能力?

答:AI 能力目前已经在 TinyEngine 官网部署,当前采用的大模型是文心一言,通过 AI生成代码->生成 AST->页面 schema->展示在页面->下载源代码 ,后续会切回华为的盘古大模型。现在 AI 能力的取决于文心一言生成的代码。同时我们也通过数据和资源的不断投入在持续训练我们的 AI 能力,大家敬请期待 AI 能力的持续迭代。

问题6:TinyEngine 低代码引擎是否支持 nuxt.js 作为后端的开发?

答:后端的开发与技术栈无关,是可以采用任意的技术栈的。我们提供了所有后端接口的文档,只需要按照设计器的文档来,给出对应接口的出入参即可。

问题7:目前 TinyEngine 低代码引擎的物料平台是否会开源?

答:TinyEngine 目前是用到的物料是已开源的 TinyVue 组件库,欢迎大家使用~

✨ [Feature]: 预览功能

What problem does this feature solve

现在的预览好像是根据源码在线编译,这样速度太慢了,请问下有更好的方式嘛?
有这样一种场景,将页面的json存储,前端直接解析json渲染出来

What does the proposed API look like

更好的方式?

🐛 [Bug]: 工具类添加npm包(vue-router)、预览打印this.utils不存在router

Environment

谷歌 119.0.6045.105

Version

18.18.2

Version

~3.10.0

Link to minimal reproduction

123

Step to reproduce

1、pnpm run dev
2、点击资源管理
2.1、新建工具类
2.2、名称:vue-router
2.3、包名:vue-router
2.4、导出名称:useRouter
2.5、是否解构:是
2.6、保存(保存的时候列表返回没有我创建的工具类)
3、进入页面管理(当前页面)
3.1、添加生命周期(function onMounted() {console.log(this.utils)} )
3.2、保存
4、 预览

What is expected

能按逻辑正常添加、运行

What is actually happening

工具类没有添加成功

Any additional comments (optional)

No response

🐛 [Bug]: TinyButtonGroup中添加数据项后,渲染错乱

Environment

Google Chrome 117.0.5938.92, window 10

Version

v16.18.0

Version

tiny-engine latest

Link to minimal reproduction

TinyButtonGroup中添加数据项后,渲染错乱:

1 2 3

Step to reproduce

希望官方解决一下

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

🐛 [Bug]: 设计器新增数据源后,在线点击发送请求能够调通接口,绑定到表格后,预览时报错,点击右上角出码后本地运行也调不了接口

Environment

谷歌浏览器

Version

17

Version

3.1.10

Link to minimal reproduction

设计器新增数据源后,在线点击发送请求能够调通接口,将数据源绑定到表格的fetchData属性后,预览时报错,点击右上角出码后本地运行也调不了接口。预览提示fetchData3.api.apply is not a function

Step to reproduce

设计器新增数据源后,在线点击发送请求能够调通接口,将数据源绑定到表格的fetchData属性后,预览时报错,点击右上角出码后本地运行也调不了接口。预览提示fetchData3.api.apply is not a function

What is expected

希望能否正常使用数据源

What is actually happening

No response

Any additional comments (optional)

No response

🐛 [Bug]: 画布设置在pc端宽度设置为1440px时,会自动切换为大屏下且宽度被设置成了1920px

Environment

chrome

Version

latest

Version

latest

Link to minimal reproduction

~HS6ZMD)1)G_GV F$%M $XM

Step to reproduce

顶部工具栏画布设置选择pc端宽度设置为1440px后,回车确认会自动切换为大屏下且宽度被设置成了1920px

What is expected

希望画布实际宽度及输入框显示的是我输入的值。

What is actually happening

No response

Any additional comments (optional)

No response

🐛 [Bug]: 进入设计器后,在没点击画布里面任意物料的情况下,即整个画布没有选中(没有选中就是指画布的外边框没有出现虚线时,或者没有选中任意物料),这时候新增变量或者脚本或者操作布局的改动,改动后点击变量的保存,或者脚本新增后点击右上角的工具栏保存,会提示保存成功,但实际没有保存成功。

Environment

谷歌浏览器

Version

17

Version

3.10.1

Link to minimal reproduction

...

Step to reproduce

希望当页面管理选择某一个页面后,即代表当前的操作时针对这个页面.vue进行操作。即使没有选中画布的情况下,点击左侧的变量或者JS按钮进行操作时,连续添加变量或者编辑JS脚本,也能正常保存编辑后的数据。而不是每次操作前都要点一下画布(选择body或者任意物流)才行,这样用户体验很差,用起来也很麻烦。点击设计器右上角的保存按钮时,会自动让鼠标在画布中的已选中物料失去焦点,因此往往在页面出现添加变量后,点击保存,后续再继续添加变量时,就实际上没保存起来。

What is expected

希望当页面管理选择某一个页面后,即代表当前的操作时针对这个页面.vue进行操作。即使没有选中画布的情况下,点击左侧的变量或者JS按钮进行操作时,连续添加变量或者编辑JS脚本,也能正常保存编辑后的数据。而不是每次操作前都要点一下画布(选择body或者任意物流)才行,这样用户体验很差,用起来也很麻烦。点击设计器右上角的保存按钮时,会自动让鼠标在画布中的已选中物料失去焦点,因此往往在页面出现添加变量后,点击保存,后续再继续添加变量时,就实际上没保存起来。

What is actually happening

No response

Any additional comments (optional)

No response

🐛 [Bug]: tinyGrid与collection绑定后报错

Environment

chrome

Version

latest

Version

latest

Link to minimal reproduction

image
image

Step to reproduce

先用Collection绑定一个数据源,然后再用tinyGrid与collection绑定。然后保存预览,会出现报错。

What is expected

希望可以正常绑定。

What is actually happening

No response

Any additional comments (optional)

No response

✨ [Feature]: 关于导入第三方组件问题

What problem does this feature solve

关于导入第三方组件问题:
1.关于如何导入第三方组件不使用npm.script方式导入,比如
"package": "@huawei/tiny-vue3", // npm 包名
"version": "0.1.16", // 版本号
"destructuring": true, // 是否解构
"exportName": "Button" // npm package 导出名

我想用这种方式导用第三方比如element-plus或antd vue 有没有文档说明?

What does the proposed API look like

关于导入第三方组件问题:
1.关于如何导入第三方组件不使用npm.script方式导入,比如
"package": "@huawei/tiny-vue3", // npm 包名
"version": "0.1.16", // 版本号
"destructuring": true, // 是否解构
"exportName": "Button" // npm package 导出名

我想用这种方式导用第三方比如element-plus或antd vue 有没有文档说明?

麻烦官方大佬写文档时,帮我们多写些例子讲解,谢谢!

What problem does this feature solve

官方大佬们好:
能否写文档的时候把下面两个写进去,或者录制视频也行,谢谢!
(1)教会我们使用这个平台搭建一个完成的增删改查例子;
(2)怎样扩展左侧组件,比如用户选择组件、单位选择组件,然后form表单里面使用,拖入这2个控件,可以弹出dialog框选择用户和单位,点击确定后回填到表单上input框上。

What does the proposed API look like

✨ [Feature]: 在当前的引擎当中,如何使用引入其他的UI组件

What problem does this feature solve

在当前的引擎当中,如何使用引入其他的UI组件,
如果我想在当前的低代码平台添加 Element-ui 或者 Ant-desgin 或者自己封装的组件改如何添加到 低代码平台的。
恳请出一个示例详情,万分感谢

What does the proposed API look like

在当前的引擎当中,如何使用引入其他的UI组件,
如果我想在当前的低代码平台添加 Element-ui 或者 Ant-desgin 或者自己封装的组件改如何添加到 低代码平台的。
恳请出一个示例详情,万分感谢

🐛 [Bug]: 右侧配置面板,给物料设置内外边距时,只有点中中间的数字才能弹出margin框进行设置,建议改成选中该区域就能够弹出来

Environment

chrome

Version

17

Version

3.1.10

Link to minimal reproduction

右侧配置面板,给物料设置内外边距时,只有点中中间的数字才能弹出margin框进行设置,建议改成选中该区域就能够弹出来右侧配置面板,给物料设置内外边距时,只有点中中间的数字才能弹出margin框进行设置,建议改成选中该区域就能够弹出来

Step to reproduce

右侧配置面板,给物料设置内外边距时,只有点中中间的数字才能弹出margin框进行设置,建议改成选中该区域就能够弹出来

What is expected

建议改成选中该区域就能够弹出来设置边距的面板,提高配置效率

What is actually happening

No response

Any additional comments (optional)

No response

🐛 [Bug]: 左侧面板编写JS脚本后,进行保存,设计器会自动格式化,但一个函数里面结尾的花括号,当大于1个时,花括号被自动挤到同一行,每次进入设计器后都要手动右键进行Prettier一下,不然难以阅读。

Environment

ch

Version

17

Version

3.1.10

Link to minimal reproduction

左侧面板点击弹出代码编辑器进行编写JS脚本后,点击保存,设计器会自动格式化,但一个函数里面结尾的花括号,当大于1个时,花括号被自动挤到同一行,每次进入设计器后都要手动右键进行Prettier一下,不然难以阅读。

Step to reproduce

左侧面板点击弹出代码编辑器进行编写JS脚本后,点击保存,设计器会自动格式化,但一个函数里面结尾的花括号,当大于1个时,花括号被自动挤到同一行,每次进入设计器后都要手动右键进行Prettier一下,不然难以阅读。

What is expected

建议优化下编辑器,在点击保存后,下次打开脚本框,不要把结尾的花括号}}}都挤到同一行,能够保存右键prettier后的代码风格。

What is actually happening

No response

Any additional comments (optional)

No response

🐛 [Bug]: CanvasRowColContainer.vue组件 拖拽后预览时报找不到标签

Environment

nodejs v18.18.0

Version

latest

Version

latest

Link to minimal reproduction

about:srcdoc:160 [Vue warn]: Failed to resolve component: canvas-col
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at


at
console. @ about:srcdoc:160
about:srcdoc:160 [Vue warn]: Failed to resolve component: canvas-row
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at
at
console. @ about:srcdoc:160
about:srcdoc:160 [Vue warn]: Failed to resolve component: canvas-row-col-container
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at
at

Step to reproduce

CanvasRowColContainer.vue component cannot find the label when previewing after dragging

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

✨ [Feature]: 如何添加自定义组件、区块?

What problem does this feature solve

在物料区添加组件是否都要手动在packages/settings/design/src/schemas添加属性配置,能否自动生成?
目前基于Img组件添加了一个简单的自定义组件 我要在bundle.json复制一份img的属性来拓展,这份组件属性配置每次都要手写?

What does the proposed API look like

是否项目中有api可以生成组建的配置属性?

🐛 [Bug]: 对话框dialogBox插槽开关无效

Environment

chrome 118

Version

node 16.15.0

Version

@opnetiny/vue 3.10.21

Link to minimal reproduction

image

Step to reproduce

拖入对话框,打开插槽

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

npm i 报错

npm ERR! code 1
npm ERR! path /Users/admin/tiny-engine/src/i18n/node_modules/esbuild
npm ERR! command failed
npm ERR! command sh -c -- node install.js
npm ERR! node:internal/errors:857
npm ERR!   const err = new Error(message);
npm ERR!               ^
npm ERR!
npm ERR! Error: Command failed: /Users/admin/tiny-engine/src/i18n/node_modules/esbuild/bin/esbuild --version
npm ERR!     at checkExecSyncError (node:child_process:861:11)
npm ERR!     at Object.execFileSync (node:child_process:896:15)
npm ERR!     at validateBinaryVersion (/Users/admin/tiny-engine/src/i18n/node_modules/esbuild/install.js:89:32)
npm ERR!     at /Users/admin/tiny-engine/src/i18n/node_modules/esbuild/install.js:242:5 {
npm ERR!   status: null,
npm ERR!   signal: 'SIGKILL',
npm ERR!   output: [ null, Buffer(0) [Uint8Array] [], Buffer(0) [Uint8Array] [] ],
npm ERR!   pid: 94608,
npm ERR!   stdout: Buffer(0) [Uint8Array] [],
npm ERR!   stderr: Buffer(0) [Uint8Array] []
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/admin/.npm/_logs/2023-09-27T01_12_43_237Z-debug-0.log

node版本v16.20.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.