Code Monkey home page Code Monkey logo

amaze-vue's Issues

文档完善

希望合作完善文档,请告知联系方式

Safari 下 DatePicker 组件的日期列表错误

DatePicker组件在 Safari 中的日期排序如下图:
2018-11-05 14 41 18
图中上月最后四天(28、29、30、31)并没有补齐,翻阅DatePicker组件源码时,在date.vue中发现以下逻辑:
2018-11-05 14 34 11
代码中生成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 可以正确识别此日期格式,测试如下:
2018-11-05 15 08 34
此外还有一种合适的做法可以避免此类情况:
2018-11-05 15 11 15
本文抛砖引玉,文中如有不足之处,希望大家批评指正,希望能够尽早修复此组件BUG。

am-select组件

问题现象

am-select点击直接跳转

问题文件

  • amaze-vue\src\components\select\src\select.vue

修改

  • 第三行的button应该设置type=“button”

结合nuxt开发,报document is not defined

结合nuxt开发ssr web网站,报document is not defined

您好,请问一下,我现在使用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,谢谢了了。^_^

Select组件: 支持label->value传入

支持Select Option的选项label和实际的value不同

应用场景:
{label: '中通快递', value: 'ZTO'},
{label: '申通快递', value: 'STO'},
{label: '圆通快递', value: 'YTO'},

导航二级菜单

貌似当前导航只有一级菜单,导航的二级菜单怎么处理呢

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.