szld-libs 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Upload/index.js +2 -2
- package/es/index.js +2 -1
- package/lib/components/Upload/index.js +2 -2
- package/lib/index.js +2 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Upload, Image, Button, message, Modal } from "antd";
|
|
3
3
|
import { PlusOutlined, UploadOutlined } from "@ant-design/icons";
|
|
4
|
-
import { FileSuffix } from "
|
|
4
|
+
import { FileSuffix } from "../../utils/filetype";
|
|
5
5
|
import { useState } from "react";
|
|
6
|
-
import { getFileSuffix, getBase64 } from "
|
|
6
|
+
import { getFileSuffix, getBase64 } from "../../utils";
|
|
7
7
|
import ReactDOM from "react-dom";
|
|
8
8
|
const defaultFileType = [FileSuffix.jpeg, FileSuffix.jpg, FileSuffix.png];
|
|
9
9
|
const UploadFile = (props) => {
|
package/es/index.js
CHANGED
|
@@ -2,7 +2,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import ReactDOM from "react-dom/client";
|
|
4
4
|
import { BrowserRouter } from "react-router-dom";
|
|
5
|
-
import { BackHeader, AuthButton, SearchTable, EditTable, VirtualTable
|
|
5
|
+
import { BackHeader, AuthButton, SearchTable, EditTable, VirtualTable } from "./main";
|
|
6
|
+
import { UploadFile } from "../es/main";
|
|
6
7
|
const Demo = () => {
|
|
7
8
|
const [list, setList] = useState([
|
|
8
9
|
{
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
const antd = require("antd");
|
|
4
4
|
const icons = require("@ant-design/icons");
|
|
5
|
-
const filetype = require("
|
|
5
|
+
const filetype = require("../../utils/filetype");
|
|
6
6
|
const react = require("react");
|
|
7
|
-
const utils = require("
|
|
7
|
+
const utils = require("../../utils");
|
|
8
8
|
const ReactDOM = require("react-dom");
|
|
9
9
|
const defaultFileType = [filetype.FileSuffix.jpeg, filetype.FileSuffix.jpg, filetype.FileSuffix.png];
|
|
10
10
|
const UploadFile = (props) => {
|
package/lib/index.js
CHANGED
|
@@ -4,6 +4,7 @@ const react = require("react");
|
|
|
4
4
|
const ReactDOM = require("react-dom/client");
|
|
5
5
|
const reactRouterDom = require("react-router-dom");
|
|
6
6
|
const main = require("./main");
|
|
7
|
+
const main$1 = require("../es/main");
|
|
7
8
|
const Demo = () => {
|
|
8
9
|
const [list, setList] = react.useState([
|
|
9
10
|
{
|
|
@@ -131,7 +132,7 @@ const Demo = () => {
|
|
|
131
132
|
}
|
|
132
133
|
),
|
|
133
134
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
134
|
-
main.UploadFile,
|
|
135
|
+
main$1.UploadFile,
|
|
135
136
|
{
|
|
136
137
|
uploadBtnName: "上传文件",
|
|
137
138
|
accept: ".zip,.jpg,.png",
|