pb-sxp-ui 1.0.6 → 1.0.7

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 (45) hide show
  1. package/dist/index.cjs +87 -61
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +87 -62
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.cjs +3 -3
  6. package/dist/index.min.cjs.map +1 -1
  7. package/dist/index.min.js +3 -3
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/pb-ui.js +87 -61
  10. package/dist/pb-ui.js.map +1 -1
  11. package/dist/pb-ui.min.js +3 -3
  12. package/dist/pb-ui.min.js.map +1 -1
  13. package/es/core/hooks/useEventReport.js +35 -39
  14. package/es/index.d.ts +1 -0
  15. package/es/index.js +1 -0
  16. package/es/materials/sxp/HashTag/settingRender.d.ts +4 -1
  17. package/es/materials/sxp/HashTag/settingRender.js +7 -3
  18. package/es/materials/sxp/defaultSetting.d.ts +11 -0
  19. package/es/materials/sxp/defaultSetting.js +7 -0
  20. package/es/materials/sxp/popup/AppointForm/material.js +0 -1
  21. package/es/materials/sxp/popup/AppointForm/settingRender.d.ts +3 -0
  22. package/es/materials/sxp/popup/AppointForm/settingRender.js +4 -1
  23. package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +4 -1
  24. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +7 -3
  25. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +4 -1
  26. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +7 -3
  27. package/es/materials/sxp/template/components/settingRender.d.ts +6 -0
  28. package/es/materials/sxp/template/components/settingRender.js +8 -4
  29. package/lib/core/hooks/useEventReport.js +35 -39
  30. package/lib/index.d.ts +1 -0
  31. package/lib/index.js +3 -1
  32. package/lib/materials/sxp/HashTag/settingRender.d.ts +4 -1
  33. package/lib/materials/sxp/HashTag/settingRender.js +7 -3
  34. package/lib/materials/sxp/defaultSetting.d.ts +11 -0
  35. package/lib/materials/sxp/defaultSetting.js +10 -0
  36. package/lib/materials/sxp/popup/AppointForm/material.js +0 -1
  37. package/lib/materials/sxp/popup/AppointForm/settingRender.d.ts +3 -0
  38. package/lib/materials/sxp/popup/AppointForm/settingRender.js +4 -1
  39. package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +4 -1
  40. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +7 -3
  41. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +4 -1
  42. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +7 -3
  43. package/lib/materials/sxp/template/components/settingRender.d.ts +6 -0
  44. package/lib/materials/sxp/template/components/settingRender.js +8 -4
  45. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fontOptions = void 0;
4
+ exports.fontOptions = [
5
+ { label: '应用字体', value: 'appFont' },
6
+ { label: '黑体', value: '黑体' }
7
+ ];
8
+ exports.default = {
9
+ fontOptions: exports.fontOptions
10
+ };
@@ -29,7 +29,6 @@ const AppointForm = (0, create_1.createMaterial)(_1.default, {
29
29
  textStyle: {
30
30
  fontSize: 14,
31
31
  color: '#000',
32
- fontFamily: '黑体',
33
32
  textAlign: 'center'
34
33
  }
35
34
  },
@@ -19,6 +19,7 @@ declare const _default: ({
19
19
  type: string;
20
20
  name: string[];
21
21
  options?: undefined;
22
+ initialValue?: undefined;
22
23
  addonAfter?: undefined;
23
24
  } | {
24
25
  type: string;
@@ -27,12 +28,14 @@ declare const _default: ({
27
28
  label: string;
28
29
  value: string;
29
30
  }[];
31
+ initialValue: string;
30
32
  addonAfter?: undefined;
31
33
  } | {
32
34
  type: string;
33
35
  name: string[];
34
36
  addonAfter: string;
35
37
  options?: undefined;
38
+ initialValue?: undefined;
36
39
  })[];
37
40
  name?: undefined;
38
41
  options?: undefined;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
+ var _a;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ const defaultSetting_1 = require("../../defaultSetting");
3
5
  exports.default = [
4
6
  {
5
7
  type: 'Text',
@@ -25,7 +27,8 @@ exports.default = [
25
27
  {
26
28
  type: 'Select',
27
29
  name: ['textStyle', 'fontFamily'],
28
- options: [{ label: '黑体', value: '黑体' }]
30
+ options: defaultSetting_1.fontOptions,
31
+ initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
29
32
  },
30
33
  {
31
34
  type: 'Number',
@@ -38,6 +38,7 @@ declare const _default: ({
38
38
  type: string;
39
39
  name: string[];
40
40
  options?: undefined;
41
+ initialValue?: undefined;
41
42
  addonAfter?: undefined;
42
43
  } | {
43
44
  type: string;
@@ -46,12 +47,14 @@ declare const _default: ({
46
47
  value: string;
47
48
  }[];
48
49
  name: string[];
50
+ initialValue: string;
49
51
  addonAfter?: undefined;
50
52
  } | {
51
53
  type: string;
52
54
  addonAfter: string;
53
55
  name: string[];
54
56
  options?: undefined;
57
+ initialValue?: undefined;
55
58
  })[];
56
59
  options?: undefined;
57
60
  name?: undefined;
@@ -118,7 +121,7 @@ declare const _default: ({
118
121
  label: string;
119
122
  value: string;
120
123
  }[];
121
- initialValue?: undefined;
124
+ initialValue: string;
122
125
  addonAfter?: undefined;
123
126
  } | {
124
127
  type: string;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
+ var _a, _b;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ const defaultSetting_1 = require("../../defaultSetting");
3
5
  exports.default = [
4
6
  {
5
7
  title: '商品图片',
@@ -67,8 +69,9 @@ exports.default = [
67
69
  },
68
70
  {
69
71
  type: 'Select',
70
- options: [{ label: '黑体', value: '黑体' }],
71
- name: ['fontFamily']
72
+ options: defaultSetting_1.fontOptions,
73
+ name: ['fontFamily'],
74
+ initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
72
75
  },
73
76
  {
74
77
  type: 'Number',
@@ -147,7 +150,8 @@ exports.default = [
147
150
  {
148
151
  type: 'Select',
149
152
  name: ['props', 'buttonStyle', 'fontFamily'],
150
- options: [{ label: '黑体', value: '黑体' }]
153
+ options: defaultSetting_1.fontOptions,
154
+ initialValue: (_b = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _b === void 0 ? void 0 : _b.value
151
155
  },
152
156
  {
153
157
  type: 'Number',
@@ -38,6 +38,7 @@ declare const _default: ({
38
38
  type: string;
39
39
  name: string[];
40
40
  options?: undefined;
41
+ initialValue?: undefined;
41
42
  addonAfter?: undefined;
42
43
  } | {
43
44
  type: string;
@@ -46,12 +47,14 @@ declare const _default: ({
46
47
  value: string;
47
48
  }[];
48
49
  name: string[];
50
+ initialValue: string;
49
51
  addonAfter?: undefined;
50
52
  } | {
51
53
  type: string;
52
54
  addonAfter: string;
53
55
  name: string[];
54
56
  options?: undefined;
57
+ initialValue?: undefined;
55
58
  })[];
56
59
  options?: undefined;
57
60
  name?: undefined;
@@ -118,7 +121,7 @@ declare const _default: ({
118
121
  label: string;
119
122
  value: string;
120
123
  }[];
121
- initialValue?: undefined;
124
+ initialValue: string;
122
125
  addonAfter?: undefined;
123
126
  } | {
124
127
  type: string;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
+ var _a, _b;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ const defaultSetting_1 = require("../../defaultSetting");
3
5
  exports.default = [
4
6
  {
5
7
  title: '商品图片',
@@ -71,8 +73,9 @@ exports.default = [
71
73
  },
72
74
  {
73
75
  type: 'Select',
74
- options: [{ label: '黑体', value: '黑体' }],
75
- name: ['fontFamily']
76
+ options: defaultSetting_1.fontOptions,
77
+ name: ['fontFamily'],
78
+ initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
76
79
  },
77
80
  {
78
81
  type: 'Number',
@@ -151,7 +154,8 @@ exports.default = [
151
154
  {
152
155
  type: 'Select',
153
156
  name: ['props', 'buttonStyle', 'fontFamily'],
154
- options: [{ label: '黑体', value: '黑体' }]
157
+ options: defaultSetting_1.fontOptions,
158
+ initialValue: (_b = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _b === void 0 ? void 0 : _b.value
155
159
  },
156
160
  {
157
161
  type: 'Number',
@@ -50,6 +50,7 @@ declare const _default: ({
50
50
  type: string;
51
51
  name: string[];
52
52
  options?: undefined;
53
+ initialValue?: undefined;
53
54
  addonAfter?: undefined;
54
55
  } | {
55
56
  type: string;
@@ -58,12 +59,14 @@ declare const _default: ({
58
59
  value: string;
59
60
  }[];
60
61
  name: string[];
62
+ initialValue: string;
61
63
  addonAfter?: undefined;
62
64
  } | {
63
65
  type: string;
64
66
  addonAfter: string;
65
67
  name: string[];
66
68
  options?: undefined;
69
+ initialValue?: undefined;
67
70
  })[];
68
71
  name?: undefined;
69
72
  } | {
@@ -101,6 +104,7 @@ declare const _default: ({
101
104
  type: string;
102
105
  name: string[];
103
106
  options?: undefined;
107
+ initialValue?: undefined;
104
108
  addonAfter?: undefined;
105
109
  } | {
106
110
  type: string;
@@ -109,12 +113,14 @@ declare const _default: ({
109
113
  value: string;
110
114
  }[];
111
115
  name: string[];
116
+ initialValue: string;
112
117
  addonAfter?: undefined;
113
118
  } | {
114
119
  type: string;
115
120
  addonAfter: string;
116
121
  name: string[];
117
122
  options?: undefined;
123
+ initialValue?: undefined;
118
124
  })[];
119
125
  name?: undefined;
120
126
  })[];
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
+ var _a, _b;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ const defaultSetting_1 = require("../../defaultSetting");
3
5
  exports.default = [
4
6
  {
5
7
  title: '主题样式',
@@ -114,8 +116,9 @@ exports.default = [
114
116
  },
115
117
  {
116
118
  type: 'Select',
117
- options: [{ label: '黑体', value: '黑体' }],
118
- name: ['props', 'ctaTempStyles', 'title', 'fontFamily']
119
+ options: defaultSetting_1.fontOptions,
120
+ name: ['props', 'ctaTempStyles', 'title', 'fontFamily'],
121
+ initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
119
122
  },
120
123
  {
121
124
  type: 'Number',
@@ -192,8 +195,9 @@ exports.default = [
192
195
  },
193
196
  {
194
197
  type: 'Select',
195
- options: [{ label: '黑体', value: '黑体' }],
196
- name: ['props', 'ctaTempStyles', 'ctaTitle', 'fontFamily']
198
+ options: defaultSetting_1.fontOptions,
199
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'fontFamily'],
200
+ initialValue: (_b = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _b === void 0 ? void 0 : _b.value
197
201
  },
198
202
  {
199
203
  type: 'Number',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",