smokingrabbit / amaze-vue Goto Github PK
View Code? Open in Web Editor NEW一只基于amazeui样式封装的vue组件库。万水千山总是情,点个star再走行不行~~~
Home Page: https://SmokingRabbit.github.io/amaze-vue/
一只基于amazeui样式封装的vue组件库。万水千山总是情,点个star再走行不行~~~
Home Page: https://SmokingRabbit.github.io/amaze-vue/
DatePicker
组件在 Safari 中的日期排序如下图:
图中上月最后四天(28、29、30、31)并没有补齐,翻阅DatePicker
组件源码时,在date.vue
中发现以下逻辑:
代码中生成week
时使用的是:
week = new Date(year + "-" + month + "-" + 1).getDay();
经测试发现,初始化Date
,在 Safari 中支持yyyy-MM-dd
格式,需要把new Date(year + "-" + month + "-" + 1)
中的1
前面补零,也就是new Date(year + "-" + month + "-" + "01")
,Saifari 可以正确识别此日期格式,测试如下:
此外还有一种合适的做法可以避免此类情况:
本文抛砖引玉,文中如有不足之处,希望大家批评指正,希望能够尽早修复此组件BUG。
貌似当前导航只有一级菜单,导航的二级菜单怎么处理呢
您好,请问一下,我现在使用amaze-vue 结合 nuxt开发,将amaze-vue 作为插件引入。代码结构如下。
amaze-vue.js代码如下:
import Vue from 'vue'
import AmazeVue from 'amaze-vue';
import 'amaze-vue/dist/amaze-vue.css';
export default () => {
Vue.use(AmazeVue);
}
在nuxt.config.js中引入插件
plugins: [
'@/plugins/amaze-vue'
],
package.json已经引入最新的amaze-vue
"dependencies": {
"amaze-vue": "^1.1.12",
"nuxt": "^1.0.0"
},
然后再page/index启动页面做如下测试。
<template>
<am-button @click="notify">默认按钮</am-button>
</template>
<script>
...
methods:{
notify(){
this.$notify({
message: '你点击了确认'
});
}
...
</script>
如果要结合nuxt,如何使用amaze-vue,谢谢了了。^_^
am-select点击直接跳转
支持Select Option的选项label和实际的value不同
应用场景:
{label: '中通快递', value: 'ZTO'},
{label: '申通快递', value: 'STO'},
{label: '圆通快递', value: 'YTO'},
希望合作完善文档,请告知联系方式
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.