Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputExcel 解析 Excel #9598

Closed
beloved-zh opened this issue Feb 7, 2024 · 0 comments
Closed

InputExcel 解析 Excel #9598

beloved-zh opened this issue Feb 7, 2024 · 0 comments
Assignees

Comments

@beloved-zh
Copy link

beloved-zh commented Feb 7, 2024

描述问题:

vite 搭建得编辑器 使用InputExcel导入解析报错,动态导入得ExcelJS对象中没有Workbook
本地导入得是esm模块下的 官方示例 (https://github.com/aisuda/amis-editor-demo) 编辑器导入得是lib

InputExcel 希望可以加上个类似于 InputFile 一样只是一个按钮

截图或视频:

image
image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    npm

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    最新版本

  3. 粘贴有问题的完整 amis schema 代码:

{
  "type": "page",
  "id": "u:5c0ea7a16dc1",
  "title": "Excel导入",
  "body": [
    {
      "type": "input-excel",
      "id": "u:1df70a80a84a",
      "label": "Excel",
      "name": "excel"
    },
    {
      "type": "json",
      "id": "u:2463e53ed096",
      "source": "${excel}"
    }
  ],
  "asideResizor": false,
  "pullRefresh": {
    "disabled": true
  },
  "regions": [
    "body",
    "header"
  ]
}
  1. 操作步骤
    导入任意excel文件
@nwind nwind self-assigned this Mar 28, 2024
@hsm-lv hsm-lv closed this as completed in 2ab6572 May 13, 2024
hsm-lv added a commit that referenced this issue May 13, 2024
chore: 兼容 exceljs 在部分打包配置下引入错误问题 Closes #9598
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants