New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zan-choose-dialog

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zan-choose-dialog - npm Package Compare versions

Comparing version 4.2.5 to 4.2.7

20

lib/ChooseMenu.js

@@ -128,3 +128,4 @@ 'use strict';

var defaultMenuItems = {
// 所有可能的chooseMenuItem(枚举)
var AllMenuItems = {
FeatureAndCategory: '微页面及分类',

@@ -145,2 +146,17 @@ FeatureCategory: '微页面分类',

// 默认展示的chooseMenu下拉列表
var defaultMenuItems = {
FeatureAndCategory: '微页面及分类',
GoodsAndTag: '商品及分类',
Apps: '营销活动',
Survey: '投票调查',
History: '历史消息',
HomePage: '店铺主页',
UserCenter: '会员主页',
PaidColumn: '知识专栏',
PaidContent: '知识内容',
MyPaidContent: '我购买的专栏、内容',
Link: '自定义链接'
};
var defaultWeappMenuItems = {

@@ -355,3 +371,3 @@ WeappGoodsAndTag: '商品及分类',

function filterMenuItems(itemKeys, isWeapp) {
var allMenuItems = isWeapp ? defaultWeappMenuItems : defaultMenuItems;
var allMenuItems = isWeapp ? defaultWeappMenuItems : AllMenuItems;
return itemKeys.reduce(function (items, key) {

@@ -358,0 +374,0 @@ if ((0, _has2['default'])(allMenuItems, key)) {

@@ -12,2 +12,6 @@ 'use strict';

var _fullfillImage = require('zan-utils/lib/fullfillImage');
var _fullfillImage2 = _interopRequireDefault(_fullfillImage);
var _compatible = require('../compatible');

@@ -21,2 +25,3 @@

// 限时折扣
function getConfig(config) {

@@ -26,4 +31,15 @@ return {

columns: [{
title: '',
width: '50px',
bodyRender: function bodyRender(data) {
return _react2['default'].createElement('img', {
src: (0, _fullfillImage2['default'])(data.image_url, '!50x50.jpg', config.url),
alt: '\u5546\u54C1\u56FE',
width: '50',
height: '50'
});
}
}, {
title: '标题',
width: '60%',
width: '50%',
bodyRender: function bodyRender(data) {

@@ -47,6 +63,6 @@ return _react2['default'].createElement(

null,
'\u539F\u4EF7\uFF1A\xA5$',
'\u539F\u4EF7\uFF1A\xA5',
data.price,
_react2['default'].createElement('br', null),
'\u6298\u540E\uFF1A\xA5$',
'\u6298\u540E\uFF1A\xA5',
data.discount_price

@@ -79,3 +95,3 @@ );

};
} // 秒杀活动
}
module.exports = exports['default'];

12

lib/config/ump-limited-discount.js

@@ -31,3 +31,3 @@ 'use strict';

title: '标题',
width: '60%',
width: '40%',
bodyRender: function bodyRender(data) {

@@ -47,5 +47,11 @@ return _react2['default'].createElement(

title: '活动时间',
width: '40%',
bodyRender: function bodyRender(data) {
return _react2['default'].createElement(_TimeRange2['default'], { start: data.start_date, end: data.end_date });
}
}, {
title: '活动状态',
bodyRender: function bodyRender(data) {
return data.is_start ? '进行中' : '未开始';
}
}],

@@ -68,4 +74,4 @@ canSelectRow: function canSelectRow(data) {

data: data.list,
pageSize: (0, _compatible.extractPageSizeFromHtml)(data.page),
page: (0, _compatible.extractCurrentPageFromHtml)(data.page),
pageSize: data.list.length !== 0 ? (0, _compatible.extractPageSizeFromHtml)(data.page) : 6,
page: data.list.length !== 0 ? (0, _compatible.extractCurrentPageFromHtml)(data.page) : 1,
total: data.count

@@ -72,0 +78,0 @@ };

@@ -42,2 +42,3 @@ 'use strict';

title: activityTitle + ' - \u9009\u62E9\u5546\u54C1',
rowKey: 'goods_id',
buildQuery: function buildQuery(data) {

@@ -44,0 +45,0 @@ return {

{
"name": "zan-choose-dialog",
"version": "4.2.5",
"version": "4.2.7",
"description": "这是一个React组件",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc