@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.
@@ -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 Row: React.ForwardRefExoticComponent<Omit<RowProps & React.RefAttributes<HTMLDivElement> & import("@music163/tango-boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
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 Row = defineComponent(AntRow, {
28
- name: 'Row',
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: 'element',
9
+ type: 'container',
10
10
  hasChildren: true,
11
- initChildren: '<Button children="删除" />',
12
- relatedImports: ['Button'],
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 Row: ComponentPrototypeType;
2
+ export declare const Row1: ComponentPrototypeType;
@@ -1,6 +1,6 @@
1
1
  import { StylePrototypes } from './common';
2
- export const Row = {
3
- name: 'Row',
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 === Row.name);
24
+ return !(incomingName === Row1.name);
25
25
  },
26
26
  },
27
27
  };
@@ -129,7 +129,7 @@ export const Title = {
129
129
  name: 'level',
130
130
  title: '标题级别',
131
131
  setter: 'pickerSetter',
132
- options: [
132
+ comOptions: [
133
133
  { label: 'h1', value: 1 },
134
134
  { label: 'h2', value: 2 },
135
135
  { label: 'h3', value: 3 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuvp1225/antd",
3
- "version": "0.3.16",
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.8",
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": "e2ffb91692badd73cdfbea28a74dc20cf70d80fc"
57
+ "gitHead": "ff1bff63eaa19f7e9be19a6109d83296147c9a80"
58
58
  }