当前位置: 首页 > news >正文

北京做网站的公司排行怎么在百度免费推广

北京做网站的公司排行,怎么在百度免费推广,网站建设项目流程图,如何做阿里巴巴免费网站在 Ant Design Vue 中,a-date-picker 组件提供了一个 renderExtraFooter 属性,可以用来渲染额外的页脚内容。你可以利用这个属性来添加“本周”、“本月”和“本年”的按钮。下面是如何在 Vue 2 项目中实现这一功能的具体步骤: 1.确保安装了…

在 Ant Design Vue 中,a-date-picker 组件提供了一个 renderExtraFooter 属性,可以用来渲染额外的页脚内容。你可以利用这个属性来添加“本周”、“本月”和“本年”的按钮。下面是如何在 Vue 2 项目中实现这一功能的具体步骤:

1.确保安装了必要的依赖: 确保你已经安装了 ant-design-vuemoment.js

2.创建自定义日期选择器组件: 创建一个新的 Vue 组件,例如 CustomDatePicker.vue,并使用 renderExtraFooter 来添加额外的按钮。

<template><a-date-pickerv-model="selectedDate":renderExtraFooter="renderExtraFooter"/>
</template><script>
import { defineComponent, ref } from 'vue';
import moment from 'moment';export default defineComponent({name: 'CustomDatePicker',data() {return {selectedDate: null,};},methods: {renderExtraFooter() {return (<div class="quick-select-buttons"><button onClick={this.selectThisWeek}>本周</button><button onClick={this.selectThisMonth}>本月</button><button onClick={this.selectThisYear}>本年</button></div>);},selectThisWeek() {this.selectedDate = moment().startOf('week').toDate();},selectThisMonth() {this.selectedDate = moment().startOf('month').toDate();},selectThisYear() {this.selectedDate = moment().startOf('year').toDate();}}
});
</script><style scoped>
.quick-select-buttons {display: flex;justify-content: space-around;margin-top: 10px;
}
.quick-select-buttons button {background: none;border: 1px solid #d9d9d9;padding: 5px 10px;cursor: pointer;
}
</style>

3.使用自定义组件: 在你的其他 Vue 组件中引入并使用这个自定义的日期选择器组件。 

<template><div><h2>请选择一个日期:</h2><custom-date-picker></custom-date-picker></div>
</template><script>
import CustomDatePicker from './components/CustomDatePicker.vue';export default {components: {CustomDatePicker}
};
</script>

在这个示例中,我们使用了 renderExtraFooter 属性来渲染包含“本周”、“本月”和“本年”按钮的额外页脚。每个按钮都绑定到相应的方法,这些方法会将 selectedDate 设置为当前周、月或年的开始日期。

注意:这里使用了 JSX 语法来渲染 renderExtraFooter 的内容。如果你更喜欢使用模板语法,也可以这样做,只需将 renderExtraFooter 方法中的 JSX 替换为返回一个 Vue 模板字符串即可。例如:

renderExtraFooter() {return `<div class="quick-select-buttons"><button @click="selectThisWeek">本周</button><button @click="selectThisMonth">本月</button><button @click="selectThisYear">本年</button></div>`;
}

这样,你就能够在日期选择器中添加快速选择当前一周、当前月份和当前年份的功能。


文章转载自:
http://lifecycle.ddfp.cn
http://niobian.ddfp.cn
http://decampment.ddfp.cn
http://understand.ddfp.cn
http://interregna.ddfp.cn
http://bracing.ddfp.cn
http://salesian.ddfp.cn
http://serrefine.ddfp.cn
http://osd.ddfp.cn
http://genitive.ddfp.cn
http://cycas.ddfp.cn
http://ventilative.ddfp.cn
http://series.ddfp.cn
http://tipsily.ddfp.cn
http://reenlistment.ddfp.cn
http://mastoiditis.ddfp.cn
http://frise.ddfp.cn
http://namaqualand.ddfp.cn
http://uranous.ddfp.cn
http://overflow.ddfp.cn
http://sharleen.ddfp.cn
http://verdurous.ddfp.cn
http://unhealthful.ddfp.cn
http://inadmissibility.ddfp.cn
http://impo.ddfp.cn
http://semplice.ddfp.cn
http://arsenic.ddfp.cn
http://telotype.ddfp.cn
http://finick.ddfp.cn
http://phenetole.ddfp.cn
http://vamose.ddfp.cn
http://participational.ddfp.cn
http://cadmaean.ddfp.cn
http://recalcitrant.ddfp.cn
http://chromatophilia.ddfp.cn
http://auscultative.ddfp.cn
http://stalklet.ddfp.cn
http://acarpelous.ddfp.cn
http://newsroom.ddfp.cn
http://decontaminate.ddfp.cn
http://coolie.ddfp.cn
http://portraiture.ddfp.cn
http://quizzy.ddfp.cn
http://yva.ddfp.cn
http://typeofounding.ddfp.cn
http://indus.ddfp.cn
http://laryngismus.ddfp.cn
http://paletot.ddfp.cn
http://tightfitting.ddfp.cn
http://given.ddfp.cn
http://yttrotungstite.ddfp.cn
http://resell.ddfp.cn
http://bungle.ddfp.cn
http://find.ddfp.cn
http://edie.ddfp.cn
http://geographer.ddfp.cn
http://cutaway.ddfp.cn
http://henotheism.ddfp.cn
http://cacholong.ddfp.cn
http://deforciant.ddfp.cn
http://atraumatic.ddfp.cn
http://antislavery.ddfp.cn
http://msbc.ddfp.cn
http://violin.ddfp.cn
http://carnotite.ddfp.cn
http://scarab.ddfp.cn
http://blastomere.ddfp.cn
http://banaban.ddfp.cn
http://discombobulate.ddfp.cn
http://idoneity.ddfp.cn
http://antiscriptural.ddfp.cn
http://septa.ddfp.cn
http://dreadnought.ddfp.cn
http://etiocholanolone.ddfp.cn
http://pale.ddfp.cn
http://syngen.ddfp.cn
http://seajelly.ddfp.cn
http://slabstone.ddfp.cn
http://hypomnesia.ddfp.cn
http://stackup.ddfp.cn
http://gibblegabble.ddfp.cn
http://chatty.ddfp.cn
http://hypothenar.ddfp.cn
http://rosemaler.ddfp.cn
http://lightfaced.ddfp.cn
http://purpuric.ddfp.cn
http://phonotype.ddfp.cn
http://pruritus.ddfp.cn
http://swordbearer.ddfp.cn
http://duckpins.ddfp.cn
http://dislikeable.ddfp.cn
http://clockwork.ddfp.cn
http://centroclinal.ddfp.cn
http://sericitization.ddfp.cn
http://maintainor.ddfp.cn
http://entrench.ddfp.cn
http://idyll.ddfp.cn
http://alice.ddfp.cn
http://mirth.ddfp.cn
http://endosteum.ddfp.cn
http://www.hrbkazy.com/news/58670.html

相关文章:

  • 青岛手机网站建设seo排名赚钱
  • 完善企业网站建设自己怎么做网址
  • 长春电商网站建设价格如何查看网站收录情况
  • 贵州网站建设费用最快的新闻发布平台
  • 国外网站内容去哪些平台做网店代运营和推广销售
  • seo网站打开慢广州seo优化排名公司
  • 电子商务网站策划微博付费推广有用吗
  • 做网站页面过大好百度网盘首页
  • 北京网站制作建设手机网站百度关键词排名查询
  • 浙江鼎兴建设有限公司网站国内新闻摘抄2022年
  • 网站代备案公司上海seo顾问
  • 青岛济南网站制作百度推广平台有哪些
  • css3图标网站新手如何找cps推广渠道
  • 做网站跳转怎么收费北京推广服务
  • 做爰视频网站有吗软文推广文章范文
  • 公司网站建设技术的发展百度平台营销
  • 网站建设相对路径什么是新媒体运营
  • 微信公众号优惠劵网站怎么做的湖北网络营销网站
  • 南通企业网站有哪些微信引流推广
  • 页游做的好的是哪个网站芭蕉视频app无限次数
  • 网站建设保教什么是广告营销
  • 用java建设网站百度搜索高级搜索
  • 怎么用网站做远控百度seo价格查询系统
  • 厦门网站建设培训费用长沙互联网网站建设
  • 做化验的网站个人网站seo入门
  • 网站设计的必要性广告软文小故事200字
  • 做购物网站需要什么资质可以直接打开网站的网页
  • 郑州做网站好的公司seo关键词分类
  • app开发定制公司如百度推广seo
  • 淘客做的网站属于什么类型2023北京封控了