更新
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
# testing
|
# testing
|
||||||
/coverage
|
/coverage
|
||||||
|
package.lock.json
|
||||||
|
pnpm-lock.yaml
|
||||||
|
|
||||||
# production
|
# production
|
||||||
/build
|
/build
|
||||||
|
10
README.md
10
README.md
@ -9,3 +9,13 @@ You can learn more in the [Base Extension Development Guide](https://lark-techno
|
|||||||
## Install packages
|
## Install packages
|
||||||
|
|
||||||
Install packages in Shell pane or search and add in Packages pane.
|
Install packages in Shell pane or search and add in Packages pane.
|
||||||
|
|
||||||
|
## Publish
|
||||||
|
Please npm run build first, submit it together with the dist directory, and then fill in the form:
|
||||||
|
[Share form](https://feishu.feishu.cn/share/base/form/shrcnGFgOOsFGew3SDZHPhzkM0e)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 发布
|
||||||
|
请先npm run build,连同dist目录一起提交,然后再填写表单:
|
||||||
|
[共享表单](https://feishu.feishu.cn/share/base/form/shrcnGFgOOsFGew3SDZHPhzkM0e)
|
2486
package-lock.json
generated
2486
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -9,6 +9,7 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
"output": "dist",
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -23,7 +24,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@douyinfe/semi-foundation": "^2.38.0",
|
"@douyinfe/semi-foundation": "^2.38.0",
|
||||||
"@douyinfe/semi-ui": "^2.36.0",
|
"@douyinfe/semi-ui": "^2.36.0",
|
||||||
"@lark-base-open/js-sdk": "^0.3.0",
|
"@lark-base-open/js-sdk": "https://lf3-static.bytednsdoc.com/obj/eden-cn/jjjpceh7nulojvhj/@lark-base-open-js-sdk-0.4.1-rc.3.tgz",
|
||||||
"i18next": "^23.5.1",
|
"i18next": "^23.5.1",
|
||||||
"i18next-browser-languagedetector": "^7.1.0",
|
"i18next-browser-languagedetector": "^7.1.0",
|
||||||
"react-i18next": "^13.2.2",
|
"react-i18next": "^13.2.2",
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import './App.css';
|
import './App.css';
|
||||||
import { bitable, TableMeta } from "@lark-base-open/js-sdk";
|
import { bitable, ITableMeta } from "@lark-base-open/js-sdk";
|
||||||
import { Button, Form } from '@douyinfe/semi-ui';
|
import { Button, Form } from '@douyinfe/semi-ui';
|
||||||
import { BaseFormApi } from '@douyinfe/semi-foundation/lib/es/form/interface';
|
import { BaseFormApi } from '@douyinfe/semi-foundation/lib/es/form/interface';
|
||||||
import { useState, useEffect, useRef, useCallback } from 'react';
|
import { useState, useEffect, useRef, useCallback } from 'react';
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
const [tableMetaList, setTableMetaList] = useState<TableMeta[]>();
|
const [tableMetaList, setTableMetaList] = useState<ITableMeta[]>();
|
||||||
const formApi = useRef<BaseFormApi>();
|
const formApi = useRef<BaseFormApi>();
|
||||||
const addRecord = useCallback(async ({ table: tableId }: { table: string }) => {
|
const addRecord = useCallback(async ({ table: tableId }: { table: string }) => {
|
||||||
if (tableId) {
|
if (tableId) {
|
||||||
|
Reference in New Issue
Block a user