@cuvp1225/antd 0.2.62 → 0.2.64
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/designer.js +29 -7
- package/dist/index.js +28 -6
- package/lib/cjs/components/date-picker.js +48 -2
- package/lib/cjs/components/index.d.ts +1 -0
- package/lib/cjs/components/index.js +4 -2
- package/lib/cjs/components/input-number.d.ts +3 -2
- package/lib/cjs/components/input-number.js +28 -18
- package/lib/cjs/components/input.d.ts +3 -2
- package/lib/cjs/components/input.js +24 -43
- package/lib/cjs/components/popconfirm.js +2 -1
- package/lib/cjs/components/row.js +2 -5
- package/lib/cjs/prototypes/form.js +2 -2
- package/lib/esm/components/date-picker.js +49 -3
- package/lib/esm/components/index.d.ts +1 -0
- package/lib/esm/components/index.js +1 -1
- package/lib/esm/components/input-number.d.ts +3 -2
- package/lib/esm/components/input-number.js +28 -18
- package/lib/esm/components/input.d.ts +3 -2
- package/lib/esm/components/input.js +24 -43
- package/lib/esm/components/popconfirm.js +2 -1
- package/lib/esm/components/row.js +2 -5
- package/lib/esm/prototypes/form.js +2 -2
- package/package.json +2 -2
@@ -1,57 +1,38 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.TextArea = exports.Input = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
4
5
|
const antd_1 = require("antd");
|
5
6
|
const tango_boot_1 = require("@music163/tango-boot");
|
7
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
8
|
+
function InputDesigner(_a) {
|
9
|
+
var { style, value } = _a, rest = tslib_1.__rest(_a, ["style", "value"]);
|
10
|
+
console.log("AntInput:", value, rest);
|
11
|
+
if (value && value !== '') {
|
12
|
+
return react_1.default.createElement(antd_1.Input, Object.assign({ value: value }, rest, { style: style }));
|
13
|
+
}
|
14
|
+
return (react_1.default.createElement(antd_1.Input, Object.assign({}, rest, { style: style })));
|
15
|
+
}
|
6
16
|
exports.Input = (0, tango_boot_1.defineComponent)(antd_1.Input, {
|
7
17
|
name: 'Input',
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
return {
|
12
|
-
value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : '',
|
13
|
-
clear() {
|
14
|
-
setPageState({ value: '' });
|
15
|
-
},
|
16
|
-
setValue(nextValue) {
|
17
|
-
setPageState({ value: nextValue });
|
18
|
-
},
|
19
|
-
};
|
20
|
-
},
|
21
|
-
getTriggerProps({ setPageState, getPageState }) {
|
22
|
-
var _a;
|
23
|
-
return {
|
24
|
-
value: (_a = getPageState()) === null || _a === void 0 ? void 0 : _a.value,
|
25
|
-
onChange(e) {
|
26
|
-
setPageState({ value: e.target.value });
|
27
|
-
},
|
28
|
-
};
|
18
|
+
designerConfig: {
|
19
|
+
render({ designerProps, originalProps, }) {
|
20
|
+
return react_1.default.createElement(InputDesigner, Object.assign({}, designerProps, originalProps));
|
29
21
|
},
|
30
22
|
},
|
31
23
|
});
|
24
|
+
function TextAreaDesigner(_a) {
|
25
|
+
var { style, value } = _a, rest = tslib_1.__rest(_a, ["style", "value"]);
|
26
|
+
if (value && value !== '') {
|
27
|
+
return react_1.default.createElement(antd_1.Input.TextArea, Object.assign({ value: value }, rest, { style: style }));
|
28
|
+
}
|
29
|
+
return (react_1.default.createElement(antd_1.Input.TextArea, Object.assign({}, rest, { style: style })));
|
30
|
+
}
|
32
31
|
exports.TextArea = (0, tango_boot_1.defineComponent)(antd_1.Input.TextArea, {
|
33
32
|
name: 'TextArea',
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
return {
|
38
|
-
value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : '',
|
39
|
-
clear() {
|
40
|
-
setPageState({ value: '' });
|
41
|
-
},
|
42
|
-
setValue(nextValue) {
|
43
|
-
setPageState({ value: nextValue });
|
44
|
-
},
|
45
|
-
};
|
46
|
-
},
|
47
|
-
getTriggerProps({ setPageState, getPageState }) {
|
48
|
-
var _a;
|
49
|
-
return {
|
50
|
-
value: (_a = getPageState()) === null || _a === void 0 ? void 0 : _a.value,
|
51
|
-
onChange(e) {
|
52
|
-
setPageState({ value: e.target.value });
|
53
|
-
},
|
54
|
-
};
|
33
|
+
designerConfig: {
|
34
|
+
render({ designerProps, originalProps, }) {
|
35
|
+
return react_1.default.createElement(TextAreaDesigner, Object.assign({}, designerProps, originalProps));
|
55
36
|
},
|
56
|
-
}
|
37
|
+
}
|
57
38
|
});
|
@@ -5,8 +5,9 @@ const tslib_1 = require("tslib");
|
|
5
5
|
const antd_1 = require("antd");
|
6
6
|
const tango_boot_1 = require("@music163/tango-boot");
|
7
7
|
const react_1 = tslib_1.__importStar(require("react"));
|
8
|
+
const tango_helpers_1 = require("@music163/tango-helpers");
|
8
9
|
function PopconfirmDesigner(_a) {
|
9
|
-
var { children, title, dataDnd, dataId, style } = _a, rest = tslib_1.__rest(_a, ["children", "title", "
|
10
|
+
var { children, title } = _a, _b = tango_helpers_1.SLOT.dnd, dataDnd = _a[_b], _c = tango_helpers_1.SLOT.id, dataId = _a[_c], { style } = _a, rest = tslib_1.__rest(_a, ["children", "title", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
10
11
|
(0, react_1.useEffect)(() => {
|
11
12
|
console.log('PopconfirmDesigner', dataDnd, dataId, rest);
|
12
13
|
}, []);
|
@@ -8,12 +8,9 @@ const coral_system_1 = require("coral-system");
|
|
8
8
|
const antd_1 = require("antd");
|
9
9
|
const tango_boot_1 = require("@music163/tango-boot");
|
10
10
|
const placeholder_1 = require("./placeholder");
|
11
|
-
const shadow_container_1 = require("./shadow-container");
|
12
11
|
const BaseRowWrapper = (0, coral_system_1.coral)('div', (0, styled_components_1.css) `
|
13
12
|
position: relative;
|
14
13
|
background-color: #fff;
|
15
|
-
border: 1px solid var(--music-colors-line-normal);
|
16
|
-
box-shadow: var(--music-shadows-lowDown);
|
17
14
|
min-width: 600px;
|
18
15
|
|
19
16
|
.RowNewPanelBody {
|
@@ -23,9 +20,9 @@ const BaseRowWrapper = (0, coral_system_1.coral)('div', (0, styled_components_1.
|
|
23
20
|
function RowDesigner(_a) {
|
24
21
|
var { gutter, align, justify, prefixCls, wrap, style, children } = _a, rest = tslib_1.__rest(_a, ["gutter", "align", "justify", "prefixCls", "wrap", "style", "children"]);
|
25
22
|
console.log("zcq栅格行的入参", gutter, align, justify, prefixCls, wrap, style, children);
|
26
|
-
return (react_1.default.createElement(
|
23
|
+
return (react_1.default.createElement("div", null,
|
27
24
|
react_1.default.createElement(BaseRowWrapper, { style: style },
|
28
|
-
react_1.default.createElement("div",
|
25
|
+
react_1.default.createElement("div", null, children || react_1.default.createElement(placeholder_1.Placeholder, null)))));
|
29
26
|
}
|
30
27
|
exports.Row1 = (0, tango_boot_1.defineComponent)(antd_1.Row, {
|
31
28
|
name: 'Row1',
|
@@ -59,7 +59,7 @@ exports.Form = {
|
|
59
59
|
// Submit
|
60
60
|
// </Button>
|
61
61
|
// </Form.Item>`,
|
62
|
-
initChildren: '<FormItem component="Input" label="表单项"
|
62
|
+
initChildren: '<FormItem component="Input" label="表单项" ><div><Placeholder></Placeholder></div></FormItem><FormItem component="Input" label="表单项" ><div><Placeholder></Placeholder></div></FormItem><FormItem component="Input" label="表单项" ><div><Placeholder></Placeholder></div></FormItem><FormItem wrapperCol={{offset: 8,span: 16,}}><Button type="primary" htmlType="submit">提交</Button></FormItem>',
|
63
63
|
relatedImports: ['FormItem', 'FormFooter', 'Button', 'Input'],
|
64
64
|
childrenName: ['FormItem', 'Fieldset', 'FormFooter'],
|
65
65
|
props: [
|
@@ -186,7 +186,7 @@ exports.FormItem = {
|
|
186
186
|
package: '@cuvp1225/antd',
|
187
187
|
help: '一个基本的表单项',
|
188
188
|
hasChildren: true,
|
189
|
-
initChildren: '
|
189
|
+
initChildren: '<div><Placeholder></Placeholder></div>',
|
190
190
|
props: [
|
191
191
|
...common_1.StylePrototypes,
|
192
192
|
{
|
@@ -1,15 +1,61 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { defineComponent } from '@music163/tango-boot';
|
3
|
-
import { DatePicker as AntDataPicker
|
3
|
+
import { DatePicker as AntDataPicker } from 'antd';
|
4
4
|
import zhCN from 'antd/es/locale/zh_CN';
|
5
5
|
import moment from 'moment';
|
6
6
|
import 'moment/locale/zh-cn';
|
7
7
|
import React from 'react';
|
8
8
|
moment.locale('zh-cn');
|
9
|
+
const local = {
|
10
|
+
"lang": {
|
11
|
+
"locale": "zh-cn",
|
12
|
+
"placeholder": "请选择日期",
|
13
|
+
"rangePlaceholder": ["开始日期", "结束日期"],
|
14
|
+
"today": "今天",
|
15
|
+
"now": "此刻",
|
16
|
+
"backToToday": "返回今天",
|
17
|
+
"ok": "确定",
|
18
|
+
"timeSelect": "选择时间",
|
19
|
+
"dateSelect": "选择日期",
|
20
|
+
"weekSelect": "选择周",
|
21
|
+
"monthSelect": "选择月",
|
22
|
+
"yearSelect": "选择年",
|
23
|
+
"decadeSelect": "选择年代",
|
24
|
+
"clear": "清除",
|
25
|
+
"month": "月",
|
26
|
+
"year": "年",
|
27
|
+
"previousMonth": "上个月 (PageUp)",
|
28
|
+
"nextMonth": "下个月 (PageDown)",
|
29
|
+
"yearFormat": "YYYY",
|
30
|
+
"dateFormat": "M/D/YYYY",
|
31
|
+
"dayFormat": "D",
|
32
|
+
"dateTimeFormat": "M/D/YYYY HH:mm:ss",
|
33
|
+
"monthFormat": "MMMM",
|
34
|
+
"monthBeforeYear": true,
|
35
|
+
"previousYear": "上一年 (Control + left)",
|
36
|
+
"nextYear": "下一年 (Control + right)",
|
37
|
+
"previousDecade": "上一年代",
|
38
|
+
"nextDecade": "下一年代",
|
39
|
+
"previousCentury": "上一世纪",
|
40
|
+
"nextCentury": "下一世纪",
|
41
|
+
"shortWeekDays": ["日", "一", "二", "三", "四", "五", "六"],
|
42
|
+
"shortMonths": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
43
|
+
"longMonths": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
44
|
+
"weekShorter": "周",
|
45
|
+
"yearShorter": "年",
|
46
|
+
"monthShorter": "月",
|
47
|
+
},
|
48
|
+
"timePickerLocale": {
|
49
|
+
"placeholder": "请选择时间"
|
50
|
+
},
|
51
|
+
"dateFormat": "YYYY-MM-DD",
|
52
|
+
"dateTimeFormat": "YYYY-MM-DD HH:mm:ss",
|
53
|
+
"weekFormat": "YYYY-wo",
|
54
|
+
"monthFormat": "YYYY-MM"
|
55
|
+
};
|
9
56
|
function DataPickerDesigner(_a) {
|
10
57
|
var { style } = _a, rest = __rest(_a, ["style"]);
|
11
|
-
return (React.createElement(
|
12
|
-
React.createElement(AntDataPicker, Object.assign({}, rest, { style: style }))));
|
58
|
+
return (React.createElement(AntDataPicker, Object.assign({}, rest, { style: style, locale: zhCN })));
|
13
59
|
}
|
14
60
|
export const DatePicker = defineComponent(AntDataPicker, {
|
15
61
|
name: 'DatePicker',
|
@@ -4,6 +4,7 @@ export { Box } from './box';
|
|
4
4
|
export { Button, ButtonGroup } from './button';
|
5
5
|
export * from './formily';
|
6
6
|
export { InputNumber } from './input-number';
|
7
|
+
export { Input, TextArea } from './input';
|
7
8
|
export { Modalnew } from './modal';
|
8
9
|
export * from './page';
|
9
10
|
export * from './placeholder';
|
@@ -5,7 +5,7 @@ export { Box } from './box';
|
|
5
5
|
export { Button, ButtonGroup } from './button';
|
6
6
|
export * from './formily';
|
7
7
|
export { InputNumber } from './input-number';
|
8
|
-
|
8
|
+
export { Input, TextArea } from './input';
|
9
9
|
export { Modalnew } from './modal';
|
10
10
|
export * from './page';
|
11
11
|
export * from './placeholder';
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { InputNumberProps } from 'antd';
|
2
|
-
|
2
|
+
import React from 'react';
|
3
|
+
export declare const InputNumber: React.ForwardRefExoticComponent<Omit<InputNumberProps<import("rc-input-number/lib/utils/MiniDecimal").ValueType> & {
|
3
4
|
children?: React.ReactNode;
|
4
5
|
} & {
|
5
6
|
ref?: React.Ref<HTMLInputElement> | undefined;
|
6
|
-
} & import("@music163/tango-boot").TangoComponentProps, "ref"> &
|
7
|
+
} & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -1,25 +1,35 @@
|
|
1
|
+
import { __rest } from "tslib";
|
1
2
|
import { defineComponent } from '@music163/tango-boot';
|
2
3
|
import { InputNumber as AntInputNumber } from 'antd';
|
4
|
+
import React from 'react';
|
5
|
+
function InputNumberDesigner(_a) {
|
6
|
+
var { style, value } = _a, rest = __rest(_a, ["style", "value"]);
|
7
|
+
console.log("AntInputNumber:", value, rest);
|
8
|
+
return (React.createElement(AntInputNumber, Object.assign({}, rest, { style: style })));
|
9
|
+
}
|
3
10
|
export const InputNumber = defineComponent(AntInputNumber, {
|
4
11
|
name: 'InputNumber',
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
return {
|
9
|
-
value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : props.value,
|
10
|
-
setValue(value) {
|
11
|
-
setPageState({ value });
|
12
|
-
},
|
13
|
-
};
|
14
|
-
},
|
15
|
-
getTriggerProps({ setPageState, getPageState }) {
|
16
|
-
var _a;
|
17
|
-
return {
|
18
|
-
value: (_a = getPageState()) === null || _a === void 0 ? void 0 : _a.value,
|
19
|
-
onChange(value) {
|
20
|
-
setPageState({ value });
|
21
|
-
},
|
22
|
-
};
|
12
|
+
designerConfig: {
|
13
|
+
render({ designerProps, originalProps, }) {
|
14
|
+
return React.createElement(InputNumberDesigner, Object.assign({}, designerProps, originalProps));
|
23
15
|
},
|
24
16
|
},
|
17
|
+
// registerState: {
|
18
|
+
// getInitStates({ setPageState }, props) {
|
19
|
+
// return {
|
20
|
+
// value: props.defaultValue ?? props.value,
|
21
|
+
// setValue(value: number) {
|
22
|
+
// setPageState({ value });
|
23
|
+
// },
|
24
|
+
// };
|
25
|
+
// },
|
26
|
+
// getTriggerProps({ setPageState, getPageState }): InputNumberProps {
|
27
|
+
// return {
|
28
|
+
// value: getPageState()?.value,
|
29
|
+
// onChange(value) {
|
30
|
+
// setPageState({ value });
|
31
|
+
// },
|
32
|
+
// };
|
33
|
+
// },
|
34
|
+
// },
|
25
35
|
});
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { InputProps } from 'antd';
|
2
2
|
import { TextAreaProps } from 'antd/lib/input';
|
3
|
-
|
4
|
-
export declare const
|
3
|
+
import React from 'react';
|
4
|
+
export declare const Input: React.ForwardRefExoticComponent<Omit<InputProps & React.RefAttributes<import("antd").InputRef> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
5
|
+
export declare const TextArea: React.ForwardRefExoticComponent<Omit<TextAreaProps & React.RefAttributes<import("antd/lib/input/TextArea").TextAreaRef> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -1,54 +1,35 @@
|
|
1
|
+
import { __rest } from "tslib";
|
1
2
|
import { Input as AntInput } from 'antd';
|
2
3
|
import { defineComponent } from '@music163/tango-boot';
|
4
|
+
import React from 'react';
|
5
|
+
function InputDesigner(_a) {
|
6
|
+
var { style, value } = _a, rest = __rest(_a, ["style", "value"]);
|
7
|
+
console.log("AntInput:", value, rest);
|
8
|
+
if (value && value !== '') {
|
9
|
+
return React.createElement(AntInput, Object.assign({ value: value }, rest, { style: style }));
|
10
|
+
}
|
11
|
+
return (React.createElement(AntInput, Object.assign({}, rest, { style: style })));
|
12
|
+
}
|
3
13
|
export const Input = defineComponent(AntInput, {
|
4
14
|
name: 'Input',
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
return {
|
9
|
-
value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : '',
|
10
|
-
clear() {
|
11
|
-
setPageState({ value: '' });
|
12
|
-
},
|
13
|
-
setValue(nextValue) {
|
14
|
-
setPageState({ value: nextValue });
|
15
|
-
},
|
16
|
-
};
|
17
|
-
},
|
18
|
-
getTriggerProps({ setPageState, getPageState }) {
|
19
|
-
var _a;
|
20
|
-
return {
|
21
|
-
value: (_a = getPageState()) === null || _a === void 0 ? void 0 : _a.value,
|
22
|
-
onChange(e) {
|
23
|
-
setPageState({ value: e.target.value });
|
24
|
-
},
|
25
|
-
};
|
15
|
+
designerConfig: {
|
16
|
+
render({ designerProps, originalProps, }) {
|
17
|
+
return React.createElement(InputDesigner, Object.assign({}, designerProps, originalProps));
|
26
18
|
},
|
27
19
|
},
|
28
20
|
});
|
21
|
+
function TextAreaDesigner(_a) {
|
22
|
+
var { style, value } = _a, rest = __rest(_a, ["style", "value"]);
|
23
|
+
if (value && value !== '') {
|
24
|
+
return React.createElement(AntInput.TextArea, Object.assign({ value: value }, rest, { style: style }));
|
25
|
+
}
|
26
|
+
return (React.createElement(AntInput.TextArea, Object.assign({}, rest, { style: style })));
|
27
|
+
}
|
29
28
|
export const TextArea = defineComponent(AntInput.TextArea, {
|
30
29
|
name: 'TextArea',
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
return {
|
35
|
-
value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : '',
|
36
|
-
clear() {
|
37
|
-
setPageState({ value: '' });
|
38
|
-
},
|
39
|
-
setValue(nextValue) {
|
40
|
-
setPageState({ value: nextValue });
|
41
|
-
},
|
42
|
-
};
|
43
|
-
},
|
44
|
-
getTriggerProps({ setPageState, getPageState }) {
|
45
|
-
var _a;
|
46
|
-
return {
|
47
|
-
value: (_a = getPageState()) === null || _a === void 0 ? void 0 : _a.value,
|
48
|
-
onChange(e) {
|
49
|
-
setPageState({ value: e.target.value });
|
50
|
-
},
|
51
|
-
};
|
30
|
+
designerConfig: {
|
31
|
+
render({ designerProps, originalProps, }) {
|
32
|
+
return React.createElement(TextAreaDesigner, Object.assign({}, designerProps, originalProps));
|
52
33
|
},
|
53
|
-
}
|
34
|
+
}
|
54
35
|
});
|
@@ -2,8 +2,9 @@ import { __rest } from "tslib";
|
|
2
2
|
import { Popconfirm as AntPopconfirm } from 'antd';
|
3
3
|
import { defineComponent } from '@music163/tango-boot';
|
4
4
|
import React, { useEffect } from 'react';
|
5
|
+
import { SLOT } from '@music163/tango-helpers';
|
5
6
|
function PopconfirmDesigner(_a) {
|
6
|
-
var { children, title, dataDnd, dataId, style } = _a, rest = __rest(_a, ["children", "title", "
|
7
|
+
var { children, title } = _a, _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, ["children", "title", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
7
8
|
useEffect(() => {
|
8
9
|
console.log('PopconfirmDesigner', dataDnd, dataId, rest);
|
9
10
|
}, []);
|
@@ -5,12 +5,9 @@ import { coral } from 'coral-system';
|
|
5
5
|
import { Row as AntRow } from 'antd';
|
6
6
|
import { defineComponent } from '@music163/tango-boot';
|
7
7
|
import { Placeholder } from './placeholder';
|
8
|
-
import { ShadowContainer } from './shadow-container';
|
9
8
|
const BaseRowWrapper = coral('div', css `
|
10
9
|
position: relative;
|
11
10
|
background-color: #fff;
|
12
|
-
border: 1px solid var(--music-colors-line-normal);
|
13
|
-
box-shadow: var(--music-shadows-lowDown);
|
14
11
|
min-width: 600px;
|
15
12
|
|
16
13
|
.RowNewPanelBody {
|
@@ -20,9 +17,9 @@ const BaseRowWrapper = coral('div', css `
|
|
20
17
|
function RowDesigner(_a) {
|
21
18
|
var { gutter, align, justify, prefixCls, wrap, style, children } = _a, rest = __rest(_a, ["gutter", "align", "justify", "prefixCls", "wrap", "style", "children"]);
|
22
19
|
console.log("zcq栅格行的入参", gutter, align, justify, prefixCls, wrap, style, children);
|
23
|
-
return (React.createElement(
|
20
|
+
return (React.createElement("div", null,
|
24
21
|
React.createElement(BaseRowWrapper, { style: style },
|
25
|
-
React.createElement("div",
|
22
|
+
React.createElement("div", null, children || React.createElement(Placeholder, null)))));
|
26
23
|
}
|
27
24
|
export const Row1 = defineComponent(AntRow, {
|
28
25
|
name: 'Row1',
|
@@ -56,7 +56,7 @@ export const Form = {
|
|
56
56
|
// Submit
|
57
57
|
// </Button>
|
58
58
|
// </Form.Item>`,
|
59
|
-
initChildren: '<FormItem component="Input" label="表单项"
|
59
|
+
initChildren: '<FormItem component="Input" label="表单项" ><div><Placeholder></Placeholder></div></FormItem><FormItem component="Input" label="表单项" ><div><Placeholder></Placeholder></div></FormItem><FormItem component="Input" label="表单项" ><div><Placeholder></Placeholder></div></FormItem><FormItem wrapperCol={{offset: 8,span: 16,}}><Button type="primary" htmlType="submit">提交</Button></FormItem>',
|
60
60
|
relatedImports: ['FormItem', 'FormFooter', 'Button', 'Input'],
|
61
61
|
childrenName: ['FormItem', 'Fieldset', 'FormFooter'],
|
62
62
|
props: [
|
@@ -183,7 +183,7 @@ export const FormItem = {
|
|
183
183
|
package: '@cuvp1225/antd',
|
184
184
|
help: '一个基本的表单项',
|
185
185
|
hasChildren: true,
|
186
|
-
initChildren: '
|
186
|
+
initChildren: '<div><Placeholder></Placeholder></div>',
|
187
187
|
props: [
|
188
188
|
...StylePrototypes,
|
189
189
|
{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cuvp1225/antd",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.64",
|
4
4
|
"description": "antd components for tango app",
|
5
5
|
"author": "wwsun <ww.sww@outlook.com>",
|
6
6
|
"homepage": "https://github.com/netease/tango-components#readme",
|
@@ -54,5 +54,5 @@
|
|
54
54
|
"classnames": "^2.3.2",
|
55
55
|
"coral-system": "^1.0.6"
|
56
56
|
},
|
57
|
-
"gitHead": "
|
57
|
+
"gitHead": "97929ed682ec2e43bd20600de22d4de287fc272a"
|
58
58
|
}
|