@cuvp1225/antd 0.3.16 → 0.3.18
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 +8 -41
- package/dist/index.js +4 -37
- package/lib/cjs/components/button.d.ts +4 -5
- package/lib/cjs/components/button.js +26 -12
- package/lib/cjs/components/index.d.ts +1 -1
- package/lib/cjs/components/index.js +2 -2
- package/lib/cjs/components/popconfirm.d.ts +2 -1
- package/lib/cjs/components/popconfirm.js +7 -0
- package/lib/cjs/components/row.d.ts +1 -1
- package/lib/cjs/components/row.js +3 -3
- package/lib/cjs/prototypes/popconfirm.js +4 -3
- package/lib/cjs/prototypes/row.d.ts +1 -1
- package/lib/cjs/prototypes/row.js +4 -4
- package/lib/cjs/prototypes/typography.js +1 -1
- package/lib/esm/components/button.d.ts +4 -5
- package/lib/esm/components/button.js +26 -12
- package/lib/esm/components/index.d.ts +1 -1
- package/lib/esm/components/index.js +1 -1
- package/lib/esm/components/popconfirm.d.ts +2 -1
- package/lib/esm/components/popconfirm.js +7 -1
- package/lib/esm/components/row.d.ts +1 -1
- package/lib/esm/components/row.js +2 -2
- package/lib/esm/prototypes/popconfirm.js +4 -3
- package/lib/esm/prototypes/row.d.ts +1 -1
- package/lib/esm/prototypes/row.js +3 -3
- package/lib/esm/prototypes/typography.js +1 -1
- package/package.json +3 -3
@@ -1,5 +1,11 @@
|
|
1
|
-
import { Popconfirm as AntPopconfirm } from 'antd';
|
1
|
+
import { Button, Popconfirm as AntPopconfirm } from 'antd';
|
2
2
|
import { defineComponent } from '@music163/tango-boot';
|
3
|
+
import React from 'react';
|
3
4
|
export const Popconfirm = defineComponent(AntPopconfirm, {
|
4
5
|
name: 'Popconfirm',
|
6
|
+
designerConfig: {
|
7
|
+
defaultProps: {
|
8
|
+
children: React.createElement(Button, { children: "\u5220\u9664" }),
|
9
|
+
},
|
10
|
+
},
|
5
11
|
});
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { RowProps } from 'antd';
|
3
|
-
export declare const
|
3
|
+
export declare const Row1: React.ForwardRefExoticComponent<Omit<RowProps & React.RefAttributes<HTMLDivElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -24,8 +24,8 @@ function RowDesigner(_a) {
|
|
24
24
|
React.createElement(BaseRowWrapper, { style: style },
|
25
25
|
React.createElement("div", { className: "RowNewPanelBody" }, children || React.createElement(Placeholder, null)))));
|
26
26
|
}
|
27
|
-
export const
|
28
|
-
name: '
|
27
|
+
export const Row1 = defineComponent(AntRow, {
|
28
|
+
name: 'Row1',
|
29
29
|
designerConfig: {
|
30
30
|
render({ designerProps, originalProps }) {
|
31
31
|
return React.createElement(RowDesigner, Object.assign({}, designerProps, originalProps));
|
@@ -6,10 +6,11 @@ export const Popconfirm = {
|
|
6
6
|
package: '@cuvp1225/antd',
|
7
7
|
icon: 'icon-qipaoqueren',
|
8
8
|
help: '点击元素,弹出气泡式的确认框',
|
9
|
-
type: '
|
9
|
+
type: 'container',
|
10
10
|
hasChildren: true,
|
11
|
-
|
12
|
-
|
11
|
+
siblingNames: ['Popconfirm'],
|
12
|
+
// initChildren: '<Button children="删除" />',
|
13
|
+
// relatedImports: ['Button'],
|
13
14
|
props: [
|
14
15
|
...StylePrototypes,
|
15
16
|
{ name: 'title', title: '确认框文本', initValue: '确认吗?', setter: 'expressionSetter' },
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ComponentPrototypeType } from '@music163/tango-helpers';
|
2
|
-
export declare const
|
2
|
+
export declare const Row1: ComponentPrototypeType;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { StylePrototypes } from './common';
|
2
|
-
export const
|
3
|
-
name: '
|
2
|
+
export const Row1 = {
|
3
|
+
name: 'Row1',
|
4
4
|
title: '栅格行0214',
|
5
5
|
package: '@cuvp1225/antd',
|
6
6
|
icon: 'icon-column',
|
@@ -21,7 +21,7 @@ export const Row = {
|
|
21
21
|
],
|
22
22
|
rules: {
|
23
23
|
canMoveIn(incomingName) {
|
24
|
-
return !(incomingName ===
|
24
|
+
return !(incomingName === Row1.name);
|
25
25
|
},
|
26
26
|
},
|
27
27
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cuvp1225/antd",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.18",
|
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",
|
@@ -49,10 +49,10 @@
|
|
49
49
|
"@cuvp1225/formily": "^0.2.6",
|
50
50
|
"@cuvp1225/foundation": "^0.3.2",
|
51
51
|
"@music163/tango-boot": "^0.3.3",
|
52
|
-
"@music163/tango-helpers": "^1.2.
|
52
|
+
"@music163/tango-helpers": "^1.2.9",
|
53
53
|
"antd": "4",
|
54
54
|
"classnames": "^2.3.2",
|
55
55
|
"coral-system": "^1.0.6"
|
56
56
|
},
|
57
|
-
"gitHead": "
|
57
|
+
"gitHead": "ff1bff63eaa19f7e9be19a6109d83296147c9a80"
|
58
58
|
}
|