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-beat.6

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
}

3

es/Collapse/props.d.ts
import { IBaseProps } from '../_base';
/**
* @description 手风琴,内部由多个 CollapseItem 组成。
*/
export interface ICollapseProps extends IBaseProps {
uid?: string;
/**

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

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 @@

@@ -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-beat.6",
"scripts": {

@@ -8,9 +8,14 @@ "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": "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",
"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 +40,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 +49,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 +70,3 @@ "axios": "^0.24.0",

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

@@ -65,5 +87,8 @@ "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",
"jest": "^27.5.1",
"less": "^4.1.2",
"lint-staged": "^10.0.7",
"marked": "^4.0.12",
"minidev": "^1.0.7",

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

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

@@ -103,2 +129,2 @@ "yorkie": "^2.0.0"

"homepage": "https://github.com/ant-design/ant-design-mini"
}
}

@@ -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

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