Coder Social home page Coder Social logo

ant-mini-program / mini-antui Goto Github PK

View Code? Open in Web Editor NEW
454.0 30.0 91.0 727 KB

mini-antui 停止维护,可使用 mini-ali-ui ,品牌升级,功能加强,欢迎使用!

Home Page: https://github.com/Alibaba-mp/mini-ali-ui

License: MIT License

JavaScript 3.99% TypeScript 44.66% Less 51.35%
mini-program antui

mini-antui's Introduction

重要说明

mini-antui 将不再更新、维护。后续请使用 ant-design-mini

Mini AntUI

  • 基于 Alipay Design 设计规范;
  • 支持多端小程序(支付宝,淘宝,钉钉等);
  • 支持主题配置切换;
  • 支持 pxrpx

npm package GitHub stars GitHub forks NPM downloads GitHub issues GitHub license

示例

链接

特性

安装

$ npm install mini-antui --save

使用

在页面json中文件中进行注册,如card组件的注册如下所示:

{
  "usingComponents": {
    "card": "mini-antui/es/card/index",
  }
}

在axml文件中进行调用:

<card
  thumb="{{thumb}}"
  title="卡片标题2"
  subTitle="副标题非必填2"
  onClick="onCardClick"
  info="点击了第二个card"
/>

详细使用说明请参照官方文档使用自定义组件

贡献

如果你有好的意见或建议,欢迎给我们提issue

mini-antui's People

Contributors

0326 avatar 786320861 avatar alonprince avatar arvinzzq avatar doingsth avatar imsenyu avatar lijiang3136146 avatar linxz avatar luoroseyang avatar oimz1989 avatar openwayne avatar phieo avatar pingan1927 avatar roninliu avatar xiaoqiang730730 avatar yiminghe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mini-antui's Issues

Input-item 组件 onBlur 事件对象中,dataset 为空

Describe the bug
Input-item 组件 onBlur 事件对象中 dataset 为空,导致无法带出自定义数据

To Reproduce

模板中加入自定义属性

<input-item onBlur="handleBlur" data-field="abc"></input-item>

事件处理函数

handleBlur (e) {
    console.log(e);  // dataset 为空
}

Expected behavior
事件对象中存在有效的 dataset

swipe-action在点完rightBtn之后不自动合上

Is your feature request related to a problem? Please describe.
swipe-action在左滑点删除按钮的时候需要二次确认,现在点完一次之后就自动合上了

Describe the solution you'd like
添加类似done回调的方法,当调用done回调的时候,才去合上

onRightItemClick(index, detail, extra, done) {
    setTimeout(() => {done()}, 1000);
}

子组件能通知父组件自己的变化,即子组件能调用父组件中方法

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Tab组件中,提供控制当前选中tab页的能力

Is your feature request related to a problem? Please describe.
有时候需要从某个页面跳转到一个包含tabs的页面,且跳转过去之后,选中除第一个以外的tab

Describe the solution you'd like
通过传入一个属性和一个方法来实现双向绑定来控制选中项

tab组件,处于active的tabBar添加一个class

由于视觉给出的视觉稿常常与组件有出入,所以需要通过css覆盖来完成。但是当前tab组件处于active的tabBar并没有一个class类,所以无法通过样式覆盖来更改样式。是否可以为active的tabBar加一个class类名,便于业务开发呢?

[bug]: v-tabs 组件语法问题

Do you want to request a feature or report a bug?
bug
What is the current behavior?
语法错误
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code.
直接报错
What is the expected behavior?
index.axml 第 40 行 scroll-y={{true}} 漏掉了 }
Which versions of mini-antui, and which version of Alipay are affected by this issue? Did this work in previous versions of mini-antui?
master

tab标签切换的时候,内容部分样式有问题

Describe the bug
切换tab的时候,是通过translateX(-100%)来改变当前显示内容的,am-tabs-slides没有给width: 100%,所以am-tabs-slides是所有自己宽度的和,-100%就到空白部分了

Additional context
我改了下,但是不太熟github的协同工作流,所以这个提交和swipe-action的修改自动合并到一个pull request里面了

stepper步进器

stepper步进器达到最大值(最小)后加号会隐藏,此时setData当前值为1,加号不会自动显示,点击后可以显示。

[AMIcon]组件不支持onTap事件么?

  • 描述: 在使用AMicon图标时候 我注册了onTap事件,但是点击没有触发,难道小程序的text标签不能注册事件么?
    <am-icon type="delete" size="{{24}}" color="#333" data-index="{{1}}" onTap="delOption"></am-icon>
    delOption(e){ debugger const index = e.target.dataset.index; this.$spliceData({'items':[index,1]}); },
  • 当前行为:注册事件不触发
  • 期望行为:注册onTap事件能触发方法

miniui版本:"version": "0.4.22"

华为P20 显示有问题

华为P20, 系统:EMUI版本8.1.0, Android版本8.1.0, 支付宝版本:10.1.5,组件无法显示,

支付宝小程序打开小程序官方示例,显示不正常,扩展组件打开白屏

安装mini-antui后,无法读取webpack.config.babel.js配置文件

Cannot read property 'replace' of undefined
at /Users/.../node_modules/webpack/lib/NormalModuleFactory.js:106:27
at /Users/.../node_modules/webpack/lib/NormalModuleFactory.js:59:4
at applyPluginsAsyncWaterfall (/Users/.../node_modules/webpack/lib/NormalModuleFactory.js:236:4)

【AntUI】组件样式和数量希望与支付宝 AntUI 对齐

目前 AntUI 版本 10.1.10,请参考 https://antui.alipay.com/10.1.10/index.html
部分组件及格式缺失,请与之对齐,简单几例:
button组件没有,默认组件 button 并没有遵循 AntUI 规范,如:

小按钮没有,希望通过size直接设置:

image

规范中的button icon 及动效没有,希望增加icon props,内置规范图标:

image

具体场景组件请支持,如:

image

诸如此类,等等等等。。

[Vtabs]激活状态是否可以增加

场景:tabs下套了vtabs,此时在vtabs上切换到任意位置,在切换tabs,此时vtabs激活状态还是刚才点击的位置。可否像tabs一样增加一个activeTab来控制,让它定位至初始状态。

Tabs 组件切换bug

  1. 多tab时,内容高度不统一的时候,每个tab-content按照高度最大的撑高了,
  2. tab-content 滑动事件在内容区域,被撑高的地方无法滑动

步进器 小数计算精度不准确

Describe the bug
步进器的step设置为小数的时候,结果不准确

To Reproduce
Steps to reproduce the behavior:

  1. 设置step为0.01
  2. 设置步进器value为4
  3. 点击减号
  4. 第二次点击的时候 得到的值为3.99-0.01=3.9800000000000004

Expected behavior
3.99-0.01=3.98

tabs标签页中,滑动切换标签页成为可配置项

Is your feature request related to a problem? Please describe.
在tabs标签页中,使用了swipe-action组件,所以在滑动swipe-action组件的同时,会触发tabs的滑动切换

Describe the solution you'd like
将是否可以滑动切换tabs暴露出来成为可配置项

Component is not defined

Describe the bug
自己定制化了的组件挂在了tnpm(内网), tnpm 安装后提示Component is not defined

message组件type为fail白屏

Describe the bug
message组件type为fail的时候白屏。为success、info、warn、waiting的时候能正确显示

To Reproduce
Steps to reproduce the behavior:

<message
title="title"
subTitle="subTitle"
type="fail"

Expected behavior
正确显示结果页

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
mini-antui: 0.3.12

【AntUI】把acss里的单位统一换成rpx

现在组件里面的单位都是px,具体使用时都需要自己覆盖重写成rpx,因为页面布局用的是rpx,组件使用的px,在不同分辨率下会导致同一页面字号及样式大小不一,rpx是小程序标准,请统一替换成rpx。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.