Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

antd-mini

Package Overview
Dependencies
Maintainers
2
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antd-mini - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3-alpha.1

31

es/_base/index.d.ts

@@ -43,1 +43,32 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

export declare type IconType = string;
export interface IBoundingClientRect {
/**
* @summary 上边界
*/
top: number;
/**
* @summary 右边界
*/
right: number;
/**
* @summary 下边界
*/
bottom: number;
/**
* @summary 左边界
*/
left: number;
/**
* @summary 宽度
*/
width: number;
/**
* @summary 高度
*/
height: number;
}
export interface IScrollOffset {
scrollTop: number
}

13

es/Badge/props.d.ts

@@ -21,7 +21,2 @@ import { IBaseProps } from '../_base';

/**
* @description 是否为气泡形态(带箭头)
* @default false
*/
bubble?: boolean;
/**
* @description 相对于 children 所在访问,left-top(左上角) top-right(右上角)

@@ -36,3 +31,11 @@ * @default "top-right"

stroke?: boolean;
/**
* @description 自定义图标
*/
iconType?: string;
/**
* @description 背景色
*/
bgColor?: string;
}
export declare const BadgeDefaultProps: Partial<IBadgeProps>;
export const BadgeDefaultProps = {
placement: 'top-right',
stroke: false,
badge: 'dot',
type: 'dot',
bgColor: '#FF411C',
};
import { IBaseProps } from '../_base';
/**
* @description 手风琴,内部由多个 CollapseItem 组成。
*/
export interface ICollapseProps extends IBaseProps {
uid?: string;
/**

@@ -8,0 +9,0 @@ * @description 当前激活的索引

@@ -13,3 +13,3 @@

/**
* @description 左侧图片
* @description 图片尺寸
*/

@@ -45,4 +45,4 @@ imageSize: 'small' | 'medium' | 'large';

*/
onTap?: (event?: T) => void;
onTap?: (event?: any) => void;
}
export declare const ListItemDefaultProps: Partial<IListItemProps>;

@@ -6,4 +6,4 @@ export const ModalDefaultProps = {

mainButtonText: '主操作',
addonButtonText: '主操作',
addonButtonText: '辅助操作',
maskClosable: true,
};
import { NoticeBarDefaultProps } from './props';
import { log } from '../_util/console'; // eslint-disable-next-line @typescript-eslint/no-empty-function
import { log } from '../_util/console';
// eslint-disable-next-line @typescript-eslint/no-empty-function
var noop = function noop() {};

@@ -5,0 +6,0 @@

@@ -11,10 +11,12 @@ import { PopoverDefaultProps } from './props';

if (onVisibleChange) {
return onVisibleChange(!visible);
return onVisibleChange(!visible, 'component');
}
},
onMaskTap: function onMaskTap() {
var maskClosable = this.props.maskClosable;
var _this$props2 = this.props,
maskClosable = _this$props2.maskClosable,
onVisibleChange = _this$props2.onVisibleChange;
if (maskClosable) {
this.onVisibleChange();
if (maskClosable && onVisibleChange) {
onVisibleChange(false, 'mask');
} else {

@@ -21,0 +23,0 @@ return false;

{
"component": true
"component": true,
"usingComponents": {
"mask": "../Mask/index"
}
}

@@ -16,3 +16,3 @@

*/
onVisibleChange?: (visible: boolean) => void;
onVisibleChange?: (visible: boolean, from: 'component' | 'mask') => void;
/**

@@ -27,4 +27,19 @@ * @description 方向

*/
mode?: 'dark' | 'light'
mode?: 'dark' | 'light',
/**
* @description 是否展示蒙层
* @default false
*/
mask?: boolean;
/**
* @description 是否可点击蒙层关闭
* @default true
*/
maskClosable?: boolean;
/**
* @description 用以解决遮罩层受到 transform 影响而显示不全的问题
* @default false
*/
fixMaskFull?: boolean;
}
export declare const PopoverDefaultProps: Partial<IPopoverProps>;
export const PopoverDefaultProps = {
visible: false,
mask: false,
maskClosable: false,
maskClosable: true,
placement: 'bottom-right',
mode: 'dark',
fixMaskFull: false,
};

@@ -26,2 +26,3 @@ import { SwipeActionDefaultProps } from './props';

swipeIdContext.onUpdate(this.swipeActionItemId);
this.props.onGetRef(this.getRef());
},

@@ -196,4 +197,32 @@ didUnmount: function didUnmount() {

}
},
getRef: function getRef() {
var _this3 = this;
return {
getCompInstance: function getCompInstance() {
return _this3;
},
setItemPosition: function setItemPosition(idx) {
_this3.setData({
itemPosition: idx
});
}
};
}
},
ref: function ref() {
var _this4 = this;
return {
getCompInstance: function getCompInstance() {
return _this4;
},
setItemPosition: function setItemPosition(idx) {
_this4.setData({
itemPosition: idx
});
}
};
}
});
import { IBaseProps } from '../_base';
interface ISwipeActionRef {
getCompInstance: () => any,
setItemPosition: (idx: number) => void
}
export interface ISwipeButton extends IBaseProps {

@@ -64,6 +68,9 @@ /**

*/
onRightButtonTap?:
(index: number, text: string, type: string, extraInfo?: unknown) => void;
/**
* @description 获取组件实例与设置滑动距离
*/
onGetRef?: ISwipeActionRef;
}
export declare const SwipeActionDefaultProps: Partial<ISwipeActionProps>;
export const SwipeActionDefaultProps = {
autoClose: false,
disabled: false,
onGetRef:()=>{}
};
{
"name": "antd-mini",
"version": "0.0.2",
"version": "0.0.3-alpha.1",
"scripts": {

@@ -8,9 +8,15 @@ "dev": "minidev dev --less --typescript --no-source-map",

"build:component": "NODE_ENV=production node scripts/compile.js",
"build:component:rpx": "NODE_ENV=production node scripts/compile.js --rpx",
"build:site": "dumi build",
"build:demo": "minidev build --output=$PWD/dist --typescript --less --no-source-map",
"deploy:docs": "gh-pages -d docs-dist",
"deploy:docs": "npm run build:site && echo 'mini.ant.design' > ./docs-dist/CNAME && gh-pages -d docs-dist",
"lint:code": "eslint \"demo/pages/**/*.js\" \"scripts/*.js\" \"src/**/*.ts\"",
"lint:code:fix": "eslint \"demo/pages/**/*.js\" \"scripts/*.js\" \"src/**/*.ts\" --fix",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"prepublishOnly": "npm run build:component"
"prepublishOnly": "npm run build:component",
"pub": "node scripts/publish.js",
"test:less": "jest __tests__/less.spec.ts",
"test:markdown": "jest __tests__/markdowns.spec.ts",
"test:axml": "jest __tests__/axml.spec.ts",
"test:ts": "jest __tests__/ts.spec.ts"
},

@@ -35,3 +41,6 @@ "gitHooks": {

"devDependencies": {
"@babel/code-frame": "^7.0.0",
"@babel/core": "^7.6.4",
"@babel/generator": "^7.0.0",
"@babel/parser": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",

@@ -41,5 +50,18 @@ "@babel/plugin-transform-runtime": "^7.11.5",

"@babel/preset-typescript": "^7.6.0",
"@mini-types/alipay": "^1.0.2",
"@babel/traverse": "^7.0.0",
"@babel/types": "^7.0.0",
"@types/acorn": "^4.0.6",
"@types/babel__code-frame": "^7.0.0",
"@types/babel__core": "^7.0.0",
"@types/babel__generator": "^7.0.0",
"@types/babel__parser": "^7.0.0",
"@types/babel__traverse": "^7.0.0",
"@types/css-tree": "^1.0.7",
"@types/jest": "^27.4.0",
"@types/less": "^3.0.3",
"@types/marked": "^4.0.2",
"@mini-types/alipay": "^1.0.8",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"acorn": "^8.7.0",
"alipay-style": "^0.1.0",

@@ -49,2 +71,3 @@ "axios": "^0.24.0",

"conventional-changelog-cli": "^2.1.1",
"css-tree": "^2.0.4",
"detect-port": "1.3.0",

@@ -65,5 +88,9 @@ "dingtalk-design-cli": "^0.20.2",

"gulp-inject-envs": "^1.0.0",
"gulp-less": "^4.0.1",
"gulp-less": "^5.0.0",
"gulp-rename": "^1.2.3",
"inquirer": "^8.2.1",
"jest": "^27.5.1",
"less": "^4.1.2",
"lint-staged": "^10.0.7",
"marked": "^4.0.12",
"minidev": "^1.0.7",

@@ -78,2 +105,3 @@ "path": "^0.12.7",

"stylelint-config-standard": "^24.0.0",
"ts-jest": "^27.1.3",
"typescript": "^4.0.0",

@@ -102,3 +130,4 @@ "yorkie": "^2.0.0"

"license": "MIT",
"homepage": "https://github.com/ant-design/ant-design-mini"
}
"homepage": "https://github.com/ant-design/ant-design-mini",
"prepublishOnly": "npm run build:component"
}

@@ -20,3 +20,3 @@ <img src="https://gw.alipayobjects.com/zos/bmw-prod/0350261f-bac2-443d-9580-d25f3365a26e.svg" alt="logo" width="100%" />

如果你发现了 bug 或者是希望 antd-mini 增加一些特性,可以[提交 issue](https://github.com/ant-design/ant-design-mini/issues)。也欢迎参与共建,这里有一份[贡献指南](https://github.com/ant-design/ant-design-mini/blob/main/docs/guide/contribute.md)。
如果你发现了 bug 或者是希望 antd-mini 增加一些特性,可以[提交 issue](https://github.com/ant-design/ant-design-mini/issues)。也欢迎参与共建,这里有一份[贡献指南](/CONTRIBUTE.md)。

@@ -23,0 +23,0 @@ 如果你想深入参与讨论,可以加入我们的社区钉钉群:35097715

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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