@apexcura/ui-components 0.0.14-Beta301 → 0.0.14-Beta303
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/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1008,8 +1008,10 @@ var import_icons5 = require("@ant-design/icons");
|
|
|
1008
1008
|
var FileUpload = (props) => {
|
|
1009
1009
|
const { Dragger } = import_antd18.Upload;
|
|
1010
1010
|
const [files, setFiles] = (0, import_react25.useState)(props.value && props.value.length > 0 ? props.value : []);
|
|
1011
|
+
console.log("+++++++++++++", files);
|
|
1011
1012
|
const handleChange = ({ fileList }) => {
|
|
1012
1013
|
setFiles(fileList);
|
|
1014
|
+
console.log("--------filelist", files);
|
|
1013
1015
|
if (props.onChange) {
|
|
1014
1016
|
props.onChange({
|
|
1015
1017
|
name: props.name,
|
|
@@ -1586,6 +1588,7 @@ var import_react37 = __toESM(require("react"));
|
|
|
1586
1588
|
var import_antd22 = require("antd");
|
|
1587
1589
|
var ColorPickerElement = (props) => {
|
|
1588
1590
|
const onHandleChange = (value, hex) => {
|
|
1591
|
+
console.log(hex);
|
|
1589
1592
|
props.onChange && props.onChange(hex);
|
|
1590
1593
|
};
|
|
1591
1594
|
return /* @__PURE__ */ import_react37.default.createElement(import_antd22.Space, null, /* @__PURE__ */ import_react37.default.createElement("p", null, props.label), /* @__PURE__ */ import_react37.default.createElement(import_antd22.Space, { direction: "vertical" }, /* @__PURE__ */ import_react37.default.createElement(import_antd22.ColorPicker, { showText: true, defaultValue: "#1677ff", onChange: onHandleChange })));
|
package/dist/index.mjs
CHANGED
|
@@ -940,8 +940,10 @@ import { InboxOutlined } from "@ant-design/icons";
|
|
|
940
940
|
var FileUpload = (props) => {
|
|
941
941
|
const { Dragger } = Upload;
|
|
942
942
|
const [files, setFiles] = useState9(props.value && props.value.length > 0 ? props.value : []);
|
|
943
|
+
console.log("+++++++++++++", files);
|
|
943
944
|
const handleChange = ({ fileList }) => {
|
|
944
945
|
setFiles(fileList);
|
|
946
|
+
console.log("--------filelist", files);
|
|
945
947
|
if (props.onChange) {
|
|
946
948
|
props.onChange({
|
|
947
949
|
name: props.name,
|
|
@@ -1542,6 +1544,7 @@ import React37 from "react";
|
|
|
1542
1544
|
import { ColorPicker, Space as Space2 } from "antd";
|
|
1543
1545
|
var ColorPickerElement = (props) => {
|
|
1544
1546
|
const onHandleChange = (value, hex) => {
|
|
1547
|
+
console.log(hex);
|
|
1545
1548
|
props.onChange && props.onChange(hex);
|
|
1546
1549
|
};
|
|
1547
1550
|
return /* @__PURE__ */ React37.createElement(Space2, null, /* @__PURE__ */ React37.createElement("p", null, props.label), /* @__PURE__ */ React37.createElement(Space2, { direction: "vertical" }, /* @__PURE__ */ React37.createElement(ColorPicker, { showText: true, defaultValue: "#1677ff", onChange: onHandleChange })));
|