@pisell/materials 1.0.365 → 1.0.367

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 (138) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +142 -142
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +22 -22
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +22 -22
  11. package/es/components/iconfont/index.js +1 -1
  12. package/es/components/page/index.js +11 -6
  13. package/es/components/pisell-config-provider/context.d.ts +2 -3
  14. package/es/components/pisell-config-provider/index.d.ts +1 -0
  15. package/es/components/pisell-config-provider/index.js +5 -3
  16. package/es/components/pisellAlert/index.d.ts +12 -0
  17. package/es/components/pisellAlert/index.js +67 -0
  18. package/es/components/pisellAlert/index.less +149 -0
  19. package/es/components/pisellCard/index.d.ts +2 -42
  20. package/es/components/pisellCard/index.js +5 -78
  21. package/es/components/pisellCard/index.less +5 -85
  22. package/es/components/pisellCardList/index.d.ts +7 -4
  23. package/es/components/pisellCardList/index.js +22 -59
  24. package/es/components/pisellCheckboxGroup/index.d.ts +1 -1
  25. package/es/components/pisellCheckboxGroup/index.js +8 -7
  26. package/es/components/pisellInformationEntry/Input/index.d.ts +8 -0
  27. package/es/components/pisellInformationEntry/Input/index.js +47 -0
  28. package/es/components/pisellInformationEntry/Input/index.less +14 -0
  29. package/es/components/pisellInformationEntry/Scan/index.d.ts +8 -0
  30. package/es/components/pisellInformationEntry/Scan/index.js +24 -0
  31. package/es/components/pisellInformationEntry/Scan/index.less +8 -0
  32. package/es/components/pisellInformationEntry/constants.d.ts +3 -0
  33. package/es/components/pisellInformationEntry/constants.js +21 -0
  34. package/es/components/pisellInformationEntry/index.d.ts +31 -0
  35. package/es/components/pisellInformationEntry/index.js +188 -0
  36. package/es/components/pisellInformationEntry/index.less +40 -0
  37. package/es/components/pisellInformationEntry/utils.d.ts +4 -0
  38. package/es/components/pisellInformationEntry/utils.js +38 -0
  39. package/es/components/pisellModal/components/Information/index.js +4 -3
  40. package/es/components/pisellModal/components/Information/index.less +3 -2
  41. package/es/components/pisellModal/components/MobileModal/index.less +1 -0
  42. package/es/components/pisellModal/components/PcModal/index.d.ts +1 -1
  43. package/es/components/pisellModal/components/PcModal/index.less +8 -0
  44. package/es/components/pisellModal/constants.js +1 -1
  45. package/es/components/pisellScan/index.d.ts +14 -0
  46. package/es/components/pisellScan/index.js +73 -0
  47. package/es/components/pisellScan/index.less +12 -0
  48. package/es/components/pisellWalletPassCard/bg.jpeg +0 -0
  49. package/es/components/pisellWalletPassCard/index.d.ts +50 -0
  50. package/es/components/pisellWalletPassCard/index.js +91 -0
  51. package/es/components/pisellWalletPassCard/index.less +100 -0
  52. package/es/index.d.ts +6 -1
  53. package/es/index.js +9 -2
  54. package/es/locales/en-US.d.ts +6 -0
  55. package/es/locales/en-US.js +9 -1
  56. package/es/locales/index.js +3 -1
  57. package/es/locales/zh-CN.d.ts +6 -0
  58. package/es/locales/zh-CN.js +9 -1
  59. package/es/locales/zh-TW.d.ts +6 -0
  60. package/es/locales/zh-TW.js +9 -1
  61. package/es/utils/locale.js +2 -1
  62. package/lib/components/iconfont/index.js +1 -1
  63. package/lib/components/page/index.js +13 -6
  64. package/lib/components/pisell-config-provider/context.d.ts +2 -3
  65. package/lib/components/pisell-config-provider/index.d.ts +1 -0
  66. package/lib/components/pisell-config-provider/index.js +8 -2
  67. package/lib/components/pisellAlert/index.d.ts +12 -0
  68. package/lib/components/pisellAlert/index.js +95 -0
  69. package/lib/components/pisellAlert/index.less +149 -0
  70. package/lib/components/pisellCard/index.d.ts +2 -42
  71. package/lib/components/pisellCard/index.js +5 -54
  72. package/lib/components/pisellCard/index.less +5 -85
  73. package/lib/components/pisellCardList/index.d.ts +7 -4
  74. package/lib/components/pisellCardList/index.js +21 -59
  75. package/lib/components/pisellCheckboxGroup/index.d.ts +1 -1
  76. package/lib/components/pisellCheckboxGroup/index.js +9 -7
  77. package/lib/components/pisellInformationEntry/Input/index.d.ts +8 -0
  78. package/lib/components/pisellInformationEntry/Input/index.js +54 -0
  79. package/lib/components/pisellInformationEntry/Input/index.less +14 -0
  80. package/lib/components/pisellInformationEntry/Scan/index.d.ts +8 -0
  81. package/lib/components/pisellInformationEntry/Scan/index.js +63 -0
  82. package/lib/components/pisellInformationEntry/Scan/index.less +8 -0
  83. package/lib/components/pisellInformationEntry/constants.d.ts +3 -0
  84. package/lib/components/pisellInformationEntry/constants.js +49 -0
  85. package/lib/components/pisellInformationEntry/index.d.ts +31 -0
  86. package/lib/components/pisellInformationEntry/index.js +162 -0
  87. package/lib/components/pisellInformationEntry/index.less +40 -0
  88. package/lib/components/pisellInformationEntry/utils.d.ts +4 -0
  89. package/lib/components/pisellInformationEntry/utils.js +40 -0
  90. package/lib/components/pisellModal/components/Information/index.js +3 -3
  91. package/lib/components/pisellModal/components/Information/index.less +3 -2
  92. package/lib/components/pisellModal/components/MobileModal/index.less +1 -0
  93. package/lib/components/pisellModal/components/PcModal/index.d.ts +1 -1
  94. package/lib/components/pisellModal/components/PcModal/index.less +8 -0
  95. package/lib/components/pisellModal/constants.js +1 -1
  96. package/lib/components/pisellScan/index.d.ts +14 -0
  97. package/lib/components/pisellScan/index.js +103 -0
  98. package/lib/components/pisellScan/index.less +12 -0
  99. package/lib/components/pisellWalletPassCard/bg.jpeg +0 -0
  100. package/lib/components/pisellWalletPassCard/index.d.ts +50 -0
  101. package/lib/components/pisellWalletPassCard/index.js +99 -0
  102. package/lib/components/pisellWalletPassCard/index.less +100 -0
  103. package/lib/index.d.ts +6 -1
  104. package/lib/index.js +20 -3
  105. package/lib/locales/en-US.d.ts +6 -0
  106. package/lib/locales/en-US.js +9 -1
  107. package/lib/locales/index.js +3 -1
  108. package/lib/locales/zh-CN.d.ts +6 -0
  109. package/lib/locales/zh-CN.js +9 -1
  110. package/lib/locales/zh-TW.d.ts +6 -0
  111. package/lib/locales/zh-TW.js +9 -1
  112. package/lib/utils/locale.js +2 -1
  113. package/lowcode/pisell-alert/meta.ts +117 -0
  114. package/lowcode/pisell-alert/snippets.ts +50 -0
  115. package/lowcode/pisell-card/__screenshots__/card-1.png +0 -0
  116. package/lowcode/pisell-card/meta.ts +76 -165
  117. package/lowcode/pisell-card/snippets.ts +1 -11
  118. package/lowcode/pisell-information-entry/meta.ts +131 -0
  119. package/lowcode/pisell-information-entry/snippets.ts +17 -0
  120. package/lowcode/pisell-modal/meta.ts +31 -31
  121. package/lowcode/pisell-modal.information/meta.ts +7 -0
  122. package/lowcode/pisell-scan/meta.ts +53 -0
  123. package/lowcode/pisell-scan/snippets.ts +13 -0
  124. package/lowcode/pisell-wallet-pass-card/meta.ts +189 -0
  125. package/lowcode/pisell-wallet-pass-card/snippets.ts +20 -0
  126. package/package.json +5 -4
  127. package/build/lowcode/assets/7b1c7af5ce9e37e4b40ea53fea6ccfd9.jpeg +0 -0
  128. package/build/lowcode/render/default/assets/7b1c7af5ce9e37e4b40ea53fea6ccfd9.jpeg +0 -0
  129. package/dist/umd/materials.min.css +0 -1
  130. package/dist/umd/materials.min.js +0 -1
  131. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  132. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  133. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  134. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  135. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  136. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  137. package/es/components/pisellCard/bg.jpeg +0 -0
  138. package/lib/components/pisellCard/bg.jpeg +0 -0
@@ -141,5 +141,13 @@ var en_US_default = {
141
141
  "pisell-input-copy-success": "Copy Success",
142
142
  "pisell-input-copy": "Copy",
143
143
  // 空状态
144
- "pisell-empty-description-no-data": "No Data"
144
+ "pisell-empty-description-no-data": "No Data",
145
+ // 信息录入组件
146
+ "pisell-information-entry-input-search": "Search",
147
+ "pisell-information-entry-scan-exit": "Exit",
148
+ // 钱包卡片组件
149
+ "pisell-wallet-pass-card-detail": "Detail",
150
+ "pisell-wallet-pass-card-redeem": "Redeem",
151
+ "pisell-wallet-pass-card-balance": "Balance",
152
+ "pisell-wallet-pass-card-valid-to": "Valid to"
145
153
  };
@@ -39,7 +39,9 @@ var import_locale = require("../utils/locale");
39
39
  var langMap = {
40
40
  "zh-CN": import_zh_CN.default,
41
41
  "en-US": import_en_US.default,
42
- "zh-TW": import_zh_TW.default
42
+ "zh-TW": import_zh_TW.default,
43
+ "zh-HK": import_zh_TW.default,
44
+ "en": import_en_US.default
43
45
  };
44
46
  var getText = (id) => {
45
47
  if (!id) {
@@ -112,5 +112,11 @@ declare const _default: {
112
112
  'pisell-input-copy-success': string;
113
113
  'pisell-input-copy': string;
114
114
  'pisell-empty-description-no-data': string;
115
+ 'pisell-information-entry-input-search': string;
116
+ 'pisell-information-entry-scan-exit': string;
117
+ 'pisell-wallet-pass-card-detail': string;
118
+ 'pisell-wallet-pass-card-redeem': string;
119
+ 'pisell-wallet-pass-card-balance': string;
120
+ 'pisell-wallet-pass-card-valid-to': string;
115
121
  };
116
122
  export default _default;
@@ -141,5 +141,13 @@ var zh_CN_default = {
141
141
  "pisell-input-copy-success": "复制成功",
142
142
  "pisell-input-copy": "复制",
143
143
  // 空状态
144
- "pisell-empty-description-no-data": "暂无数据"
144
+ "pisell-empty-description-no-data": "暂无数据",
145
+ // 信息录入组件
146
+ "pisell-information-entry-input-search": "搜索",
147
+ "pisell-information-entry-scan-exit": "退出",
148
+ // 钱包卡片组件
149
+ "pisell-wallet-pass-card-detail": "详情",
150
+ "pisell-wallet-pass-card-redeem": "核销",
151
+ "pisell-wallet-pass-card-balance": "余额",
152
+ "pisell-wallet-pass-card-valid-to": "有效期至"
145
153
  };
@@ -112,5 +112,11 @@ declare const _default: {
112
112
  'pisell-input-copy-success': string;
113
113
  'pisell-input-copy': string;
114
114
  'pisell-empty-description-no-data': string;
115
+ 'pisell-information-entry-input-search': string;
116
+ 'pisell-information-entry-scan-exit': string;
117
+ 'pisell-wallet-pass-card-detail': string;
118
+ 'pisell-wallet-pass-card-redeem': string;
119
+ 'pisell-wallet-pass-card-balance': string;
120
+ 'pisell-wallet-pass-card-valid-to': string;
115
121
  };
116
122
  export default _default;
@@ -141,5 +141,13 @@ var zh_TW_default = {
141
141
  "pisell-input-copy-success": "復製成功",
142
142
  "pisell-input-copy": "復製",
143
143
  // 空状态
144
- "pisell-empty-description-no-data": "暫無數據"
144
+ "pisell-empty-description-no-data": "暫無數據",
145
+ // 信息录入组件
146
+ "pisell-information-entry-input-search": "搜索",
147
+ "pisell-information-entry-scan-exit": "退出",
148
+ // 钱包卡片组件
149
+ "pisell-wallet-pass-card-detail": "詳情",
150
+ "pisell-wallet-pass-card-redeem": "核銷",
151
+ "pisell-wallet-pass-card-balance": "餘額",
152
+ "pisell-wallet-pass-card-valid-to": "有效期至"
145
153
  };
@@ -22,8 +22,9 @@ __export(locale_exports, {
22
22
  getCurrentLocale: () => getCurrentLocale
23
23
  });
24
24
  module.exports = __toCommonJS(locale_exports);
25
+ var import_context = require("../components/pisell-config-provider/context");
25
26
  var getCurrentLocale = () => {
26
- const locale = localStorage.getItem("umi_locale") || "en-US";
27
+ const locale = import_context.globalConfig.getConfig().locale || localStorage.getItem("umi_locale") || "en-US";
27
28
  return locale;
28
29
  };
29
30
  // Annotate the CommonJS export names for ESM import in node:
@@ -0,0 +1,117 @@
1
+ import { ComponentMetadata } from "@alilc/lowcode-types";
2
+ import snippets from "./snippets";
3
+
4
+ const AlertMeta: ComponentMetadata = {
5
+ componentName: "PisellAlert",
6
+ title: "警告提示",
7
+ category: "反馈",
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "PisellAlert",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "",
18
+ },
19
+ props: [
20
+ {
21
+ name: "type",
22
+ title: { label: "类型", tip: "类型" },
23
+ propType: {
24
+ type: "oneOf",
25
+ value: ["success", "info", "warning", "error"],
26
+ },
27
+ },
28
+ {
29
+ name: "showDismiss",
30
+ title: { label: "忽略按钮", tip: "忽略按钮" },
31
+ propType: "bool",
32
+ },
33
+ {
34
+ name: "dismiss",
35
+ title: { label: "", tip: "" },
36
+ propType: { type: "oneOfType", value: ["string", "node"] },
37
+ setter: ["PisellI18nSetter", "SlotSetter"],
38
+ },
39
+ {
40
+ name: "showView",
41
+ title: { label: "行为按钮", tip: "行为按钮" },
42
+ propType: "bool",
43
+ },
44
+ {
45
+ name: "view",
46
+ title: { label: "", tip: "" },
47
+ propType: { type: "oneOfType", value: ["string", "node"] },
48
+ setter: ["PisellI18nSetter", "SlotSetter"],
49
+ },
50
+ {
51
+ name: "closable",
52
+ title: { label: "关闭按钮", tip: "关闭按钮" },
53
+ propType: "bool",
54
+ },
55
+ {
56
+ name: "icon",
57
+ title: {
58
+ label: "图标",
59
+ tip: "自定义图标,`showIcon` 为 true 时有效",
60
+ },
61
+ propType: "node",
62
+ },
63
+ {
64
+ name: "description",
65
+ title: {
66
+ label: "正文内容",
67
+ tip: "正文内容",
68
+ },
69
+ propType: { type: "oneOfType", value: ["string", "node"] },
70
+ setter: ["PisellI18nSetter", "SlotSetter"],
71
+ },
72
+ {
73
+ name: "message",
74
+ title: { label: "标题内容", tip: "标题内容" },
75
+ propType: { type: "oneOfType", value: ["string", "node"] },
76
+ setter: ["PisellI18nSetter", "SlotSetter"],
77
+ },
78
+ {
79
+ name: "showIcon",
80
+ title: { label: "显示图标", tip: "是否显示辅助图标" },
81
+ propType: "bool",
82
+ },
83
+ {
84
+ name: "onClose",
85
+ title: { label: "关闭时触发的回调函数", tip: "关闭时触发的回调函数" },
86
+ propType: "func",
87
+ },
88
+ ],
89
+ configure: {
90
+ supports: {
91
+ style: true,
92
+ events: [
93
+ {
94
+ name: "onClose",
95
+ template:
96
+ "onChange(event,${extParams}){\n// 关闭时触发的回调函数\nconsole.log('onChange');}",
97
+ },
98
+ {
99
+ name: "onClick",
100
+ template:
101
+ "onClick(event,${extParams}){\n// 点击时的回调\nconsole.log('onClick', event);}",
102
+ },
103
+ {
104
+ name: "onViewClick",
105
+ template:
106
+ "onClick(event,${extParams}){\n// 点击行为按钮的回调\nconsole.log('onClick', event);}",
107
+ },
108
+ ],
109
+ },
110
+ component: {},
111
+ },
112
+ };
113
+
114
+ export default {
115
+ ...AlertMeta,
116
+ snippets,
117
+ };
@@ -0,0 +1,50 @@
1
+ export default [
2
+ {
3
+ title: '成功提示',
4
+ schema: {
5
+ componentName: 'PisellAlert',
6
+ props: {
7
+ message: 'Success Tips',
8
+ description: 'Detailed description and advice about successful copywriting.',
9
+ type: 'success',
10
+ showIcon: true,
11
+ },
12
+ },
13
+ },
14
+ {
15
+ title: '信息提示',
16
+ schema: {
17
+ componentName: 'PisellAlert',
18
+ props: {
19
+ message: 'Informational Notes',
20
+ description: 'Additional description and information about copywriting.',
21
+ type: 'info',
22
+ showIcon: true,
23
+ },
24
+ },
25
+ },
26
+ {
27
+ title: '警告提示',
28
+ schema: {
29
+ componentName: 'PisellAlert',
30
+ props: {
31
+ message: 'Warning',
32
+ description: 'This is a warning notice about copywriting.',
33
+ type: 'warning',
34
+ showIcon: true,
35
+ },
36
+ },
37
+ },
38
+ {
39
+ title: '错误提示',
40
+ schema: {
41
+ componentName: 'PisellAlert',
42
+ props: {
43
+ message: 'Error',
44
+ description: 'This is an error message about copywriting.',
45
+ type: 'error',
46
+ showIcon: true,
47
+ },
48
+ },
49
+ },
50
+ ];
@@ -1,189 +1,100 @@
1
- import snippets from './snippets';
1
+ import snippets from "./snippets";
2
2
 
3
3
  export default {
4
4
  snippets,
5
- componentName: 'PisellCard',
6
- title: 'PisellCard',
7
- category: '数据展示',
8
- docUrl: '',
9
- screenshot: '',
10
- devMode: 'proCode',
5
+ componentName: "PisellCard",
6
+ title: "卡片",
7
+ category: "数据展示",
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
11
  npm: {
12
- package: '@pisell/materials',
13
- version: '1.0.1',
14
- exportName: 'PisellCard',
15
- main: 'src/index.tsx',
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "PisellCard",
15
+ main: "src/index.tsx",
16
16
  destructuring: true,
17
- subName: '',
17
+ subName: "",
18
18
  },
19
+ experimental: { hideSelectTools: true },
19
20
  props: [
20
21
  {
21
- name: "platform",
22
- title: {
23
- label: "平台",
24
- },
25
- propType: { type: "oneOf", value: ["h5", "pc", "ipad"] },
26
- setter: [
27
- {
28
- componentName: "RadioGroupSetter",
29
- props: {
30
- options: [
31
- {
32
- title: "h5",
33
- value: "h5",
34
- },
35
- {
36
- title: "pc",
37
- value: "pc",
38
- },
39
- {
40
- title: "ipad",
41
- value: "ipad",
42
- },
43
- ],
44
- },
45
- },
46
- "VariableSetter",
47
- ],
48
- defaultValue: "pc",
49
- },
50
- {
51
- name: "themeMode",
52
- title: {
53
- label: "选择类型",
54
- },
55
- propType: { type: "oneOf", value: ["light", "dark", null] },
56
- setter: [
57
- {
58
- componentName: "RadioGroupSetter",
59
- props: {
60
- options: [
61
- {
62
- title: "Light",
63
- value: "light",
64
- },
65
- {
66
- title: "Dark",
67
- value: "dark",
68
- },
69
- ],
70
- },
71
- },
72
- "VariableSetter",
73
- ],
74
- defaultValue: "light",
75
- },
76
- {
77
- name: 'name',
78
- title: { label: '商品名称', tip: '商品名称' },
79
- propType: 'string',
80
- setter: 'StringSetter'
81
- },
82
- {
83
- name: 'showName',
84
- title: { label: '显示商品名称', tip: '显示商品名称' },
85
- propType: 'bool',
86
- setter: 'BoolSetter',
87
- defaultValue: true,
88
- },
89
- {
90
- name: 'storeName',
91
- title: { label: '共享店铺名称', tip: '共享店铺名称' },
92
- propType: 'string',
93
- setter: 'StringSetter'
94
- },
95
- {
96
- name: 'showStoreName',
97
- title: { label: '显示共享店铺名称', tip: '显示共享店铺名称' },
98
- propType: 'bool',
99
- setter: 'BoolSetter',
22
+ name: "title",
23
+ title: { label: "卡片标题", tip: "卡片标题" },
24
+ propType: { type: "oneOfType", value: ["string", "node"] },
25
+ setter: ['PisellI18nSetter', 'SlotSetter']
26
+ },
27
+ // {
28
+ // name: 'actions',
29
+ // title: { label: '卡片操作组', tip: '卡片操作组,位置在卡片底部' },
30
+ // propType: { type: 'arrayOf', value: 'node' },
31
+ // },
32
+ // {
33
+ // name: 'headStyle',
34
+ // title: { label: '标题区域样式', tip: '自定义标题区域样式' },
35
+ // propType: 'object',
36
+ // },
37
+ // {
38
+ // name: 'bodyStyle',
39
+ // title: { label: '内容区域样式', tip: '内容区域自定义样式' },
40
+ // propType: 'object',
41
+ // },
42
+ {
43
+ name: "bordered",
44
+ title: { label: "显示边框", tip: "是否有边框" },
45
+ propType: "bool",
100
46
  defaultValue: true,
101
47
  },
102
48
  {
103
- name: 'redeem',
104
- title: { label: '使用金额', tip: '使用金额' },
105
- propType: 'string',
106
- setter: ['StringSetter', 'NumberSetter', 'VariableSetter'],
107
- },
108
- {
109
- name: 'showRedeem',
110
- title: { label: '显示使用金额', tip: '显示使用金额' },
111
- propType: 'bool',
112
- setter: 'BoolSetter',
113
- defaultValue: true,
49
+ name: "cover",
50
+ title: { label: "卡片封面", tip: "卡片封面" },
51
+ propType: "node",
114
52
  },
115
53
  {
116
- name: 'balance',
117
- title: { label: '余额', tip: '余额' },
118
- propType: 'string',
119
- setter: ['StringSetter', 'NumberSetter', 'VariableSetter'],
54
+ name: "extra",
55
+ title: { label: "额外元素", tip: "卡片右上角的操作区域" },
56
+ propType: { type: "oneOfType", value: ["string", "node"] },
57
+ setter: ['PisellI18nSetter', 'SlotSetter']
120
58
  },
121
59
  {
122
- name: 'showBalance',
123
- title: { label: '显示余额', tip: '显示余额' },
124
- propType: 'bool',
125
- setter: 'BoolSetter',
126
- defaultValue: true,
60
+ name: "hoverable",
61
+ title: { label: "可浮起", tip: "鼠标移过时可浮起" },
62
+ propType: "bool",
63
+ defaultValue: false,
127
64
  },
128
65
  {
129
- name: 'code',
130
- title: { label: '识别码编号', tip: '识别码编号' },
131
- propType: 'string',
132
- setter: ['StringSetter', 'NumberSetter', 'VariableSetter'],
133
- },
134
- {
135
- name: 'showCode',
136
- title: { label: '显示识别码编号', tip: '显示识别码编号' },
137
- propType: 'bool',
138
- setter: 'BoolSetter',
139
- defaultValue: true,
140
- },
141
- {
142
- name: 'validDate',
143
- title: { label: '有效期', tip: '有效期' },
144
- propType: 'string',
145
- setter: ['StringSetter', 'VariableSetter'],
146
- },
147
- {
148
- name: 'showValidDate',
149
- title: { label: '显示有效期', tip: '显示有效期' },
150
- propType: 'bool',
151
- setter: 'BoolSetter',
152
- defaultValue: true,
153
- },
154
- {
155
- name: 'showDetail',
156
- title: { label: '显示查看详情按钮', tip: '显示查看详情按钮' },
157
- propType: 'bool',
158
- setter: 'BoolSetter',
159
- defaultValue: true,
160
- },
161
- {
162
- name: 'qrCode',
163
- title: { label: '二维码', tip: '二维码' },
164
- propType: 'string',
165
- setter: ['StringSetter', 'VariableSetter'],
166
- },
167
- {
168
- name: 'showQrCode',
169
- title: { label: '显示识别码二维码', tip: '显示识别码二维码' },
170
- propType: 'bool',
171
- setter: 'BoolSetter',
172
- defaultValue: true,
66
+ name: "loading",
67
+ title: {
68
+ label: "loading",
69
+ tip: "当卡片内容还在加载中时,可以用 loading 展示一个占位",
70
+ },
71
+ propType: "bool",
72
+ defaultValue: false,
173
73
  },
174
74
  {
175
- name: 'cover',
176
- title: { label: '识别码卡封面', tip: '识别码卡封面' },
177
- propType: 'string',
178
- setter: ['StringSetter', 'VariableSetter'],
75
+ name: "size",
76
+ title: { label: "尺寸", tip: "card 的尺寸" },
77
+ propType: { type: "oneOf", value: ["default", "small"] },
78
+ defaultValue: "default",
179
79
  },
180
80
  {
181
- name: 'showCover',
182
- title: { label: '显示识别码卡封面', tip: '显示识别码卡封面' },
183
- propType: 'bool',
184
- setter: 'BoolSetter',
185
- defaultValue: true,
81
+ name: "type",
82
+ title: { label: "卡片类型", tip: "卡片类型" },
83
+ propType: { type: "oneOf", value: ["default", "inner"] },
84
+ defaultValue: "default",
186
85
  },
187
86
  ],
188
- configure: { supports: { style: true } },
87
+ configure: {
88
+ component: { isContainer: true },
89
+ supports: {
90
+ style: true,
91
+ events: [
92
+ {
93
+ name: "onTabChange",
94
+ template:
95
+ "onTabChange(key,${extParams}){\n// 页签切换的回调\nconsole.log('onTabChange', key);}",
96
+ },
97
+ ],
98
+ },
99
+ },
189
100
  };
@@ -1,19 +1,9 @@
1
1
  export default [
2
2
  {
3
- title: '识别码卡片',
3
+ title: 'Card卡片',
4
4
  schema: {
5
5
  componentName: 'PisellCard',
6
6
  props: {
7
- name: '张三',
8
- qrCode: 'https://gw.alipayobjects.com/zos/rmsportal/mqaQswcyDLRpBpr.png',
9
- storeName: '张三的店铺',
10
- balance: 100,
11
- code: 'Walletpass code',
12
- validDate: '2022-01-01',
13
- redeem: 1000,
14
- disabled: false,
15
- disabledReason: '',
16
- cover: '',
17
7
  },
18
8
  },
19
9
  },