lu-lowcode-package-form 0.9.7 → 0.9.16

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.
@@ -1,6 +1,6 @@
1
1
  import { Input, TextArea, Password, Search ,CodeMachine} from './field/input/index.jsx'
2
2
  import '../App.css';
3
- import { TreeSelect, Select, WithSingleSelect,WithMultipleSelect, SingleSelect, MultipleSelect } from './field/select/index.jsx'
3
+ import { TreeSelect, Select, WithSingleSelect,WithMultipleSelect, SingleSelect, MultipleSelect, SearchSelect } from './field/select/index.jsx'
4
4
  import Custom from './field/custom/index.jsx'
5
5
  import { FormContainer, FormContainerWrapper,LayoutFormRow,LayoutFormGroupTitle } from './form-container/index.jsx'
6
6
  import { Checkbox ,CheckboxTree, CheckboxGroup } from './field/checkbox/index.jsx'
@@ -8,6 +8,7 @@ import { default as RadioGroup } from './field/radio/index.jsx'
8
8
  import { UploadFile,UploadImage } from './field/upload'
9
9
  import {default as Switch} from './field/switch'
10
10
  import {default as DatePicker } from './field/date-picker'
11
+ import { default as Table , TableCol } from './field/table'
11
12
  const Field = {
12
13
  Input,
13
14
  TextArea,
@@ -15,6 +16,7 @@ const Field = {
15
16
  Search,
16
17
  TreeSelect,
17
18
  Select,
19
+ SearchSelect,
18
20
  WithSingleSelect,
19
21
  WithMultipleSelect,
20
22
  SingleSelect,
@@ -28,15 +30,19 @@ const Field = {
28
30
  UploadImage,
29
31
  Switch,
30
32
  DatePicker,
33
+ Table,
31
34
  Custom,
32
35
  }
33
36
  const Layout = {
34
37
  FormRow: LayoutFormRow,
35
- FormGroupTitle: LayoutFormGroupTitle
38
+ FormGroupTitle: LayoutFormGroupTitle,
39
+ TableCol
36
40
  }
37
41
  export { FormContainer, Field ,FormContainerWrapper,Layout }
38
42
  import { default as OptionSetter} from './setter/optionsetter'
39
43
  const Setter = {
40
44
  OptionSetter
41
45
  }
42
- export { Setter }
46
+ export { Setter }
47
+
48
+ export { EditorQuill , EditorWang} from './editor'
@@ -0,0 +1,11 @@
1
+ const evalFormula =(formula) => {
2
+ let result = "";
3
+ try {
4
+ result = eval(formula.join(""));
5
+ } catch (error) {
6
+ console.error("formula error", error);
7
+ }
8
+ return result.toString();
9
+ };
10
+
11
+ export {evalFormula};