component-shipinlv 0.1.16 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -97,7 +97,8 @@ var VipList = function VipList(_ref) {
97
97
  result.vipList.forEach(function (item) {
98
98
  buyList.push({
99
99
  id: item.id,
100
- price: item.price
100
+ price: item.price,
101
+ canBuy: item.canBuy
101
102
  });
102
103
  var dataIndex = "vipLevel".concat(item.vipLevel);
103
104
  var colorPrimary = ApplyColorDict[item.vipLevel].color || '#722ED1';
@@ -351,7 +352,7 @@ var VipList = function VipList(_ref) {
351
352
  index: i,
352
353
  children: /*#__PURE__*/_jsx("div", {
353
354
  className: "onBuy",
354
- children: /*#__PURE__*/_jsx(ConfigProvider, {
355
+ children: item.canBuy && /*#__PURE__*/_jsx(ConfigProvider, {
355
356
  theme: {
356
357
  components: {
357
358
  Button: {
package/dist/global.less CHANGED
@@ -1,3 +1,4 @@
1
- .ant-modal-confirm-btns{
2
- display: none !important;
3
- }
1
+ //不要随便加, next 不支持
2
+ //.ant-modal-confirm-btns{
3
+ // display: none !important;
4
+ //}
@@ -163,7 +163,7 @@ declare const Tool: {
163
163
  setTimeOffset(serverTime: number): void;
164
164
  getTime(): number;
165
165
  h5Pay(query: Pay.H5PayQuery): void;
166
- notification(type: "error" | "success" | "info" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
166
+ notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
167
167
  notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
168
168
  notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
169
169
  notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
@@ -4,5 +4,6 @@ declare namespace VipList {
4
4
  title: string;
5
5
  price: number;
6
6
  vipLevel: number;
7
+ canBuy: boolean;
7
8
  }
8
9
  }
@@ -45,5 +45,6 @@ declare namespace VipPower {
45
45
  interface BuyList {
46
46
  id: number;
47
47
  price: number;
48
+ canBuy: boolean;
48
49
  }
49
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",