@pisell/common 0.0.15-0 → 0.0.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.
Files changed (100) hide show
  1. package/es/business-components/colorInput/index.js +29 -25
  2. package/es/business-components/rechargeOption/index.js +72 -55
  3. package/es/business-components/selectTag/index.d.ts +1 -1
  4. package/es/business-components/selectTag/index.js +44 -36
  5. package/es/business-components/sortModal/index.d.ts +1 -1
  6. package/es/business-components/sortModal/index.js +19 -14
  7. package/es/business-components/statistics/index.js +23 -17
  8. package/es/business-components/tagModal/index.d.ts +1 -1
  9. package/es/business-components/tagModal/index.js +16 -12
  10. package/es/business-hooks/useModal/index.d.ts +1 -1
  11. package/es/business-hooks/useModal/index.js +11 -4
  12. package/es/business-hooks/useTagModal/index.d.ts +1 -2
  13. package/es/business-hooks/useTagModal/index.js +16 -12
  14. package/es/components/ColorPicker/index.js +6 -4
  15. package/es/components/DragSort/index.d.ts +1 -2
  16. package/es/components/DragSort/index.js +39 -28
  17. package/es/components/EditorPreview/index.d.ts +1 -1
  18. package/es/components/EditorPreview/index.js +8 -3
  19. package/es/components/Iconfont/index.js +8 -2
  20. package/es/components/agreement/Detail/index.d.ts +2 -2
  21. package/es/components/agreement/Detail/index.js +15 -12
  22. package/es/components/agreement/index.js +18 -14
  23. package/es/components/avatar/index.js +8 -2
  24. package/es/components/button/index.d.ts +2 -3
  25. package/es/components/button/index.js +9 -3
  26. package/es/components/card/index.d.ts +1 -1
  27. package/es/components/card/index.js +11 -5
  28. package/es/components/checkbox/index.d.ts +2 -3
  29. package/es/components/checkbox/index.js +9 -3
  30. package/es/components/datePicker/index.d.ts +1 -2
  31. package/es/components/datePicker/index.js +8 -2
  32. package/es/components/index.d.ts +1 -1
  33. package/es/components/input/index.d.ts +5 -6
  34. package/es/components/input/index.js +12 -6
  35. package/es/components/inputNumber/index.d.ts +1 -2
  36. package/es/components/inputNumber/index.js +8 -2
  37. package/es/components/pagination/index.js +8 -1
  38. package/es/components/radio/index.d.ts +2 -3
  39. package/es/components/radio/index.js +9 -3
  40. package/es/components/select/index.d.ts +6 -2
  41. package/es/components/select/index.js +13 -2
  42. package/es/components/switch/index.js +8 -1
  43. package/es/hooks/useTableModal/index.d.ts +1 -1
  44. package/es/hooks/useTableModal/index.js +5 -2
  45. package/lib/business-components/selectTag/index.d.ts +1 -1
  46. package/lib/business-components/sortModal/index.d.ts +1 -1
  47. package/lib/business-components/tagModal/index.d.ts +1 -1
  48. package/lib/business-hooks/useModal/index.d.ts +1 -1
  49. package/lib/business-hooks/useTagModal/index.d.ts +1 -2
  50. package/lib/components/DragSort/index.d.ts +1 -2
  51. package/lib/components/DragSort/index.js +5 -6
  52. package/lib/components/EditorPreview/index.d.ts +1 -1
  53. package/lib/components/EditorPreview/index.js +1 -12
  54. package/lib/components/agreement/Detail/index.d.ts +2 -2
  55. package/lib/components/agreement/Detail/index.js +2 -2
  56. package/lib/components/button/index.d.ts +2 -3
  57. package/lib/components/button/index.js +2 -13
  58. package/lib/components/card/index.d.ts +1 -1
  59. package/lib/components/card/index.js +1 -2
  60. package/lib/components/checkbox/index.d.ts +2 -3
  61. package/lib/components/checkbox/index.js +2 -13
  62. package/lib/components/datePicker/index.d.ts +1 -2
  63. package/lib/components/datePicker/index.js +1 -12
  64. package/lib/components/index.d.ts +1 -1
  65. package/lib/components/input/index.d.ts +5 -6
  66. package/lib/components/input/index.js +5 -16
  67. package/lib/components/inputNumber/index.d.ts +1 -2
  68. package/lib/components/inputNumber/index.js +1 -12
  69. package/lib/components/radio/index.d.ts +2 -3
  70. package/lib/components/radio/index.js +2 -13
  71. package/lib/components/select/index.d.ts +6 -2
  72. package/lib/components/select/index.js +6 -12
  73. package/lib/hooks/useTableModal/index.d.ts +1 -1
  74. package/package.json +7 -16
  75. package/build/lowcode/assets-daily.json +0 -67
  76. package/build/lowcode/assets-dev.json +0 -67
  77. package/build/lowcode/assets-prod.json +0 -67
  78. package/build/lowcode/designer.html +0 -302
  79. package/build/lowcode/index.html +0 -304
  80. package/build/lowcode/index.js +0 -1
  81. package/build/lowcode/meta.js +0 -1
  82. package/build/lowcode/preview.css +0 -1
  83. package/build/lowcode/preview.html +0 -33
  84. package/build/lowcode/preview.js +0 -27
  85. package/build/lowcode/render/default/view.js +0 -20
  86. package/build/lowcode/view.js +0 -20
  87. package/es/lowcode/button/index.d.ts +0 -5
  88. package/es/lowcode/button/index.js +0 -6
  89. package/es/lowcode/checkbox/index.d.ts +0 -10
  90. package/es/lowcode/checkbox/index.js +0 -11
  91. package/es/lowcode/index.d.ts +0 -4
  92. package/es/lowcode/index.js +0 -2
  93. package/lib/lowcode/button/index.d.ts +0 -5
  94. package/lib/lowcode/button/index.js +0 -42
  95. package/lib/lowcode/checkbox/index.d.ts +0 -10
  96. package/lib/lowcode/checkbox/index.js +0 -42
  97. package/lib/lowcode/index.d.ts +0 -4
  98. package/lib/lowcode/index.js +0 -42
  99. package/lowcode/button/meta.ts +0 -324
  100. package/lowcode/checkbox/meta.ts +0 -92
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { ButtonProps } from '../../components/button';
3
- export declare type LowCodeButtonProps = ButtonProps;
4
- declare const LowCodeButton: (props: LowCodeButtonProps) => React.JSX.Element;
5
- export default LowCodeButton;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import Button from "../../components/button";
3
- var LowCodeButton = function LowCodeButton(props) {
4
- return /*#__PURE__*/React.createElement(Button, props);
5
- };
6
- export default LowCodeButton;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { CheckboxProps } from '../../components/checkbox';
3
- export declare type LowCodeCheckboxProps = CheckboxProps;
4
- /**
5
- * 多选框
6
- * @param props
7
- * @constructor
8
- */
9
- declare const LowCodeCheckbox: (props: LowCodeCheckboxProps) => React.JSX.Element;
10
- export default LowCodeCheckbox;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import Checkbox from "../../components/checkbox";
3
- /**
4
- * 多选框
5
- * @param props
6
- * @constructor
7
- */
8
- var LowCodeCheckbox = function LowCodeCheckbox(props) {
9
- return /*#__PURE__*/React.createElement(Checkbox, props);
10
- };
11
- export default LowCodeCheckbox;
@@ -1,4 +0,0 @@
1
- export { default as Button } from './button';
2
- export type { LowCodeButtonProps } from './button';
3
- export { default as Checkbox } from './checkbox';
4
- export type { LowCodeCheckboxProps } from './checkbox';
@@ -1,2 +0,0 @@
1
- export { default as Button } from "./button";
2
- export { default as Checkbox } from "./checkbox";
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { ButtonProps } from '../../components/button';
3
- export declare type LowCodeButtonProps = ButtonProps;
4
- declare const LowCodeButton: (props: LowCodeButtonProps) => React.JSX.Element;
5
- export default LowCodeButton;
@@ -1,42 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/lowcode/button/index.tsx
30
- var button_exports = {};
31
- __export(button_exports, {
32
- default: () => button_default
33
- });
34
- module.exports = __toCommonJS(button_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_button = __toESM(require("../../components/button"));
37
- var LowCodeButton = (props) => {
38
- return /* @__PURE__ */ import_react.default.createElement(import_button.default, { ...props });
39
- };
40
- var button_default = LowCodeButton;
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {});
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { CheckboxProps } from '../../components/checkbox';
3
- export declare type LowCodeCheckboxProps = CheckboxProps;
4
- /**
5
- * 多选框
6
- * @param props
7
- * @constructor
8
- */
9
- declare const LowCodeCheckbox: (props: LowCodeCheckboxProps) => React.JSX.Element;
10
- export default LowCodeCheckbox;
@@ -1,42 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/lowcode/checkbox/index.tsx
30
- var checkbox_exports = {};
31
- __export(checkbox_exports, {
32
- default: () => checkbox_default
33
- });
34
- module.exports = __toCommonJS(checkbox_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_checkbox = __toESM(require("../../components/checkbox"));
37
- var LowCodeCheckbox = (props) => {
38
- return /* @__PURE__ */ import_react.default.createElement(import_checkbox.default, { ...props });
39
- };
40
- var checkbox_default = LowCodeCheckbox;
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {});
@@ -1,4 +0,0 @@
1
- export { default as Button } from './button';
2
- export type { LowCodeButtonProps } from './button';
3
- export { default as Checkbox } from './checkbox';
4
- export type { LowCodeCheckboxProps } from './checkbox';
@@ -1,42 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/lowcode/index.ts
30
- var lowcode_exports = {};
31
- __export(lowcode_exports, {
32
- Button: () => import_button.default,
33
- Checkbox: () => import_checkbox.default
34
- });
35
- module.exports = __toCommonJS(lowcode_exports);
36
- var import_button = __toESM(require("./button"));
37
- var import_checkbox = __toESM(require("./checkbox"));
38
- // Annotate the CommonJS export names for ESM import in node:
39
- 0 && (module.exports = {
40
- Button,
41
- Checkbox
42
- });
@@ -1,324 +0,0 @@
1
- import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
2
-
3
- const ButtonMeta: ComponentMetadata = {
4
- componentName: 'Button',
5
- title: 'Button',
6
- docUrl: '',
7
- screenshot: '',
8
- devMode: 'proCode',
9
- npm: {
10
- package: '@pisell/common',
11
- version: '0.0.14',
12
- exportName: 'Button',
13
- main: 'src/lowcode/index.ts',
14
- destructuring: true,
15
- subName: '',
16
- },
17
- configure: {
18
- props: [
19
- {
20
- title: '功能',
21
- display: 'block',
22
- type: 'group',
23
- items: [
24
- {
25
- name: 'children',
26
- title: {
27
- label: '内容',
28
- tip: 'children | 内容',
29
- },
30
- defaultValue: '我是按钮',
31
- propType: {
32
- type: 'oneOfType',
33
- value: ['node', 'string'],
34
- },
35
- setter: ['SlotSetter', 'StringSetter', 'VariableSetter'],
36
- },
37
- {
38
- name: 'htmlType',
39
- title: {
40
- label: '原生类型',
41
- tip: 'htmlType | 设置 `button` 原生的 `type` 值',
42
- },
43
- propType: {
44
- type: 'oneOf',
45
- value: ['submit', 'reset', 'button'],
46
- },
47
- setter: [
48
- {
49
- componentName: 'RadioGroupSetter',
50
- props: {
51
- options: [
52
- {
53
- title: 'Submit',
54
- value: 'submit',
55
- },
56
- {
57
- title: 'Reset',
58
- value: 'reset',
59
- },
60
- {
61
- title: 'Button',
62
- value: 'button',
63
- },
64
- ],
65
- },
66
- },
67
- 'VariableSetter',
68
- ],
69
- defaultValue: 'button',
70
- },
71
- {
72
- name: 'href',
73
- title: {
74
- label: '跳转地址',
75
- tip: 'href | 点击跳转的地址,指定此属性 button 的行为和 a 链接一致',
76
- },
77
- propType: 'string',
78
- setter: ['StringSetter', 'VariableSetter'],
79
- },
80
- {
81
- name: 'target',
82
- title: {
83
- label: 'Target',
84
- tip: 'target | 相当于 a 链接的 target 属性,href 存在时生效',
85
- },
86
- propType: {
87
- type: 'oneOf',
88
- value: ['_self', '_blank', '_parent', '_top'],
89
- },
90
- setter: [
91
- {
92
- componentName: 'SelectSetter',
93
- props: {
94
- options: [
95
- {
96
- title: '本窗口跳转',
97
- value: '_self',
98
- },
99
- {
100
- title: '打开新标签页',
101
- value: '_blank',
102
- },
103
- {
104
- title: '父窗口跳转',
105
- value: '_parent',
106
- },
107
- {
108
- title: '顶层窗口跳转',
109
- value: '_top',
110
- },
111
- ],
112
- },
113
- },
114
- 'StringSetter',
115
- 'VariableSetter',
116
- ],
117
- condition: {
118
- type: 'JSFunction',
119
- value:
120
- 'target => !!target.getProps().getPropValue("href")?.trim()',
121
- },
122
- },
123
- ],
124
- },
125
- {
126
- title: '外观',
127
- display: 'block',
128
- type: 'group',
129
- items: [
130
- {
131
- name: 'type',
132
- title: { label: '类型', tip: 'type | 设置按钮类型' },
133
- propType: {
134
- type: 'oneOf',
135
- value: ['primary', 'ghost', 'dashed', 'danger', 'link', 'text'],
136
- },
137
- setter: [
138
- {
139
- componentName: 'SelectSetter',
140
- props: {
141
- options: [
142
- {
143
- title: '主按钮',
144
- value: 'primary',
145
- },
146
- {
147
- title: '虚线框按钮',
148
- value: 'dashed',
149
- },
150
- {
151
- title: '危险按钮',
152
- value: 'danger',
153
- },
154
- {
155
- title: '链接按钮',
156
- value: 'link',
157
- },
158
- {
159
- title: '类文本按钮',
160
- value: 'text',
161
- },
162
- ],
163
- },
164
- },
165
- 'VariableSetter',
166
- ],
167
- },
168
- {
169
- name: 'size',
170
- title: { label: '尺寸', tip: 'size | 设置按钮大小' },
171
- propType: { type: 'oneOf', value: ['large', 'middle', 'small'] },
172
- setter: [
173
- {
174
- componentName: 'RadioGroupSetter',
175
- props: {
176
- options: [
177
- {
178
- title: '大',
179
- value: 'large',
180
- },
181
- {
182
- title: '中',
183
- value: 'middle',
184
- },
185
- {
186
- title: '小',
187
- value: 'small',
188
- },
189
- ],
190
- },
191
- },
192
- 'VariableSetter',
193
- ],
194
- defaultValue: 'middle',
195
- },
196
- {
197
- name: 'shape',
198
- title: {
199
- label: '形状',
200
- tip: 'shape | 设置按钮形状,可选值为 `circle`、 `round` 或者不设',
201
- },
202
- propType: { type: 'oneOf', value: ['default', 'circle', 'round'] },
203
- defaultValue: 'default',
204
- setter: [
205
- {
206
- componentName: 'RadioGroupSetter',
207
- props: {
208
- options: [
209
- {
210
- title: '默认',
211
- value: 'default',
212
- },
213
- {
214
- title: '圆形',
215
- value: 'circle',
216
- },
217
- {
218
- title: '圆角',
219
- value: 'round',
220
- },
221
- ],
222
- },
223
- },
224
- 'VariableSetter',
225
- ],
226
- },
227
- {
228
- name: 'icon',
229
- title: { label: '图标', tip: 'icon | 设置按钮的图标组件' },
230
- propType: 'node',
231
- defaultValue: false,
232
- setter: {
233
- componentName: 'SlotSetter',
234
- defaultValue: false,
235
- initialValue: {
236
- type: 'JSSlot',
237
- value: [
238
- {
239
- componentName: 'Icon',
240
- props: {
241
- type: 'SmileOutlined',
242
- size: 20,
243
- rotate: 0,
244
- spin: false,
245
- },
246
- },
247
- ],
248
- },
249
- },
250
- },
251
- {
252
- name: 'block',
253
- title: {
254
- label: '自适应',
255
- tip: 'block | 将按钮宽度调整为其父宽度的选项',
256
- },
257
- propType: 'bool',
258
- setter: 'BoolSetter',
259
- defaultValue: false,
260
- },
261
- {
262
- name: 'danger',
263
- title: { label: '危险按钮', tip: 'danger | 设置危险按钮' },
264
- propType: 'bool',
265
- setter: 'BoolSetter',
266
- defaultValue: false,
267
- },
268
- {
269
- name: 'ghost',
270
- title: {
271
- label: '幽灵属性',
272
- tip: 'ghost | 幽灵属性,使按钮背景透明',
273
- },
274
- propType: 'bool',
275
- setter: 'BoolSetter',
276
- defaultValue: false,
277
- },
278
- ],
279
- },
280
- {
281
- title: '状态',
282
- display: 'block',
283
- type: 'group',
284
- items: [
285
- {
286
- name: 'loading',
287
- title: { label: '载入状态', tip: 'loading | 设置按钮载入状态' },
288
- propType: 'bool',
289
- setter: ['BoolSetter', 'VariableSetter'],
290
- },
291
- {
292
- name: 'disabled',
293
- title: { label: '是否禁用', tip: 'disabled | 是否为禁用状态' },
294
- propType: 'bool',
295
- setter: ['BoolSetter', 'VariableSetter'],
296
- defaultValue: false,
297
- },
298
- ],
299
- },
300
- {
301
- name: 'onClick',
302
- title: { label: '点击回调', tip: '点击按钮时的回调' },
303
- propType: 'func',
304
- },
305
- ],
306
- supports: {},
307
- component: {},
308
- },
309
- };
310
- const snippets: Snippet[] = [
311
- {
312
- title: 'Button',
313
- screenshot: '',
314
- schema: {
315
- componentName: 'Button',
316
- props: {},
317
- },
318
- },
319
- ];
320
-
321
- export default {
322
- ...ButtonMeta,
323
- snippets,
324
- };
@@ -1,92 +0,0 @@
1
- import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
2
-
3
- const CheckboxMeta: ComponentMetadata = {
4
- componentName: 'Checkbox',
5
- title: 'Checkbox',
6
- docUrl: '',
7
- screenshot: '',
8
- devMode: 'proCode',
9
- npm: {
10
- package: '@pisell/common',
11
- version: '0.0.14',
12
- exportName: 'Checkbox',
13
- main: 'src/lowcode/index.ts',
14
- destructuring: true,
15
- subName: '',
16
- },
17
- props: [
18
- {
19
- name: 'children',
20
- title: { label: '内容', tip: '内容' },
21
- propType: 'string',
22
- setter: 'StringSetter',
23
- supportVariable: true,
24
- defaultValue: '选项',
25
- },
26
- {
27
- name: 'autoFocus',
28
- title: { label: '自动聚焦', tip: '自动获取焦点' },
29
- propType: 'bool',
30
- defaultValue: false,
31
- setter: 'BoolSetter',
32
- supportVariable: true,
33
- },
34
- {
35
- name: 'checked',
36
- title: { label: '当前值', tip: '指定当前是否选中' },
37
- propType: 'bool',
38
- defaultValue: false,
39
- setter: 'BoolSetter',
40
- supportVariable: true,
41
- },
42
- {
43
- name: 'defaultChecked',
44
- title: { label: '默认值', tip: '初始是否选中' },
45
- propType: 'bool',
46
- defaultValue: false,
47
- setter: 'BoolSetter',
48
- supportVariable: true,
49
- },
50
- {
51
- name: 'disabled',
52
- title: { label: '是否禁用', tip: '是否为禁用状态' },
53
- propType: 'bool',
54
- defaultValue: false,
55
- setter: 'BoolSetter',
56
- supportVariable: true,
57
- },
58
- {
59
- name: 'indeterminate',
60
- title: { label: '不确定状态', tip: 'indeterminate状态' },
61
- propType: 'bool',
62
- defaultValue: false,
63
- setter: 'BoolSetter',
64
- supportVariable: true,
65
- },
66
- {
67
- name: 'onChange',
68
- title: { label: '变化时回调函数', tip: '变化时回调函数' },
69
- propType: 'func',
70
- },
71
- ],
72
- configure: {
73
- props: [],
74
- supports: {},
75
- component: {},
76
- },
77
- };
78
- const snippets: Snippet[] = [
79
- {
80
- title: 'Checkbox',
81
- screenshot: '',
82
- schema: {
83
- componentName: 'Checkbox',
84
- props: {},
85
- },
86
- },
87
- ];
88
-
89
- export default {
90
- ...CheckboxMeta,
91
- snippets,
92
- };