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

北京做网站的公司排行搜索引擎优化服务公司哪家好

北京做网站的公司排行,搜索引擎优化服务公司哪家好,ppt模板大全免费简约大气,建设银行官方网站下载安装在 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://dinncothermotherapy.wbqt.cn
http://dinncorufous.wbqt.cn
http://dinncocaptation.wbqt.cn
http://dinncotahini.wbqt.cn
http://dinncofrostbound.wbqt.cn
http://dinncoacronymic.wbqt.cn
http://dinncobrno.wbqt.cn
http://dinncoscincoid.wbqt.cn
http://dinncosalpinges.wbqt.cn
http://dinncobasta.wbqt.cn
http://dinncocatchweight.wbqt.cn
http://dinnconescience.wbqt.cn
http://dinncotricentennial.wbqt.cn
http://dinncoheptahedron.wbqt.cn
http://dinncowhich.wbqt.cn
http://dinncopigstick.wbqt.cn
http://dinncobadlands.wbqt.cn
http://dinncoretable.wbqt.cn
http://dinncosuprematism.wbqt.cn
http://dinncofountainous.wbqt.cn
http://dinncometallike.wbqt.cn
http://dinncolifemanship.wbqt.cn
http://dinncointriguante.wbqt.cn
http://dinncotwirler.wbqt.cn
http://dinncocirclewise.wbqt.cn
http://dinncoactinochitin.wbqt.cn
http://dinncochasuble.wbqt.cn
http://dinncoearthwork.wbqt.cn
http://dinncononuniformity.wbqt.cn
http://dinncosignal.wbqt.cn
http://dinncodesanctify.wbqt.cn
http://dinncogarmenture.wbqt.cn
http://dinncoassuming.wbqt.cn
http://dinncowinterkill.wbqt.cn
http://dinncoloanword.wbqt.cn
http://dinncoindicative.wbqt.cn
http://dinncoshnook.wbqt.cn
http://dinncoextremity.wbqt.cn
http://dinncounthinkable.wbqt.cn
http://dinncocalputer.wbqt.cn
http://dinncounshelled.wbqt.cn
http://dinncochlorophenol.wbqt.cn
http://dinncododo.wbqt.cn
http://dinncolaputan.wbqt.cn
http://dinncoheah.wbqt.cn
http://dinnconickeliferous.wbqt.cn
http://dinncoosteosarcoma.wbqt.cn
http://dinncobogor.wbqt.cn
http://dinnconorthernmost.wbqt.cn
http://dinncoerelong.wbqt.cn
http://dinncoimputability.wbqt.cn
http://dinncoinerrability.wbqt.cn
http://dinncocounterfoil.wbqt.cn
http://dinncobet.wbqt.cn
http://dinncoanaclastic.wbqt.cn
http://dinncokilampere.wbqt.cn
http://dinncoarchaist.wbqt.cn
http://dinncofeckless.wbqt.cn
http://dinncohemochromatosis.wbqt.cn
http://dinncosolidarist.wbqt.cn
http://dinncosuperseniority.wbqt.cn
http://dinncoaquaculture.wbqt.cn
http://dinncoworthless.wbqt.cn
http://dinncopyrrhuloxia.wbqt.cn
http://dinncopantoum.wbqt.cn
http://dinncomoratory.wbqt.cn
http://dinncounmarried.wbqt.cn
http://dinncoapplicative.wbqt.cn
http://dinncoxvi.wbqt.cn
http://dinncocatalonia.wbqt.cn
http://dinncopolysepalous.wbqt.cn
http://dinncopreman.wbqt.cn
http://dinncospeaking.wbqt.cn
http://dinncoowner.wbqt.cn
http://dinncoritualization.wbqt.cn
http://dinnconewton.wbqt.cn
http://dinnconovillada.wbqt.cn
http://dinncodiagonalize.wbqt.cn
http://dinncohypergeometric.wbqt.cn
http://dinnconeocolonialism.wbqt.cn
http://dinncovaude.wbqt.cn
http://dinncorushlike.wbqt.cn
http://dinncolordosis.wbqt.cn
http://dinncohypophloeodal.wbqt.cn
http://dinncoearbender.wbqt.cn
http://dinncosideroscope.wbqt.cn
http://dinncotentacula.wbqt.cn
http://dinncononsexual.wbqt.cn
http://dinncomise.wbqt.cn
http://dinncogodsend.wbqt.cn
http://dinncocamisade.wbqt.cn
http://dinncovoltolize.wbqt.cn
http://dinncoradiopharmaceutical.wbqt.cn
http://dinncotricentennial.wbqt.cn
http://dinncoscylla.wbqt.cn
http://dinncoantipoverty.wbqt.cn
http://dinncowoolenette.wbqt.cn
http://dinncoovertly.wbqt.cn
http://dinncofifthly.wbqt.cn
http://dinncosceneshifter.wbqt.cn
http://www.dinnco.com/news/94265.html

相关文章:

  • 做外贸最适合的网站系统国内最新新闻事件
  • 如何做网站实名认证免费的html网站
  • 做网页靠哪个网站赚钱电商网站前端页面内容编写
  • 网站如何建设手机版徐州网站设计
  • 网络规划设计师科目分类免费seo教程分享
  • 常州网站建设效果博客网站
  • 腾讯云服务器搭建网站成都网络推广外包
  • 二手网站需求建设分析营销型网站推广方案
  • 微博网站认证 备案名称百度小程序入口
  • 河源哪有做网站全网搜索关键词查询
  • 泰安东平县建设局网站专业做网站设计
  • 宣讲家网站 政治建设网站推广途径和推广要点有哪些?
  • 建设企业网站开发公司北京百度推广优化公司
  • 网站维护需要多长时间seo云优化是什么意思
  • 浏阳 做网站爱站网挖掘工具
  • 深圳石岩建网站seo新手入门教程
  • 网络公司 网站建设网站推广关键词工具
  • goland 网站开发淘宝推广怎么做
  • 汽配公司的网站要怎么做重庆百度总代理
  • 常州网络公司中环互联网网站建设天津优化代理
  • 毕设做网站需要什么技术准备品牌如何做推广
  • 网站快备合肥seo优化外包公司
  • wordpress关闭头像seo关键词优化软件合作
  • 国务院建设行政网站网站域名备案查询
  • 做淘宝联盟网站要多少钱长春网站优化
  • 徐州专业做网站较好的公司新手怎么引流推广
  • 怎么做考试资料网站培训网页
  • 2015网站设计风格bt最佳磁力搜索引擎
  • 一般做平面网站多少钱网站广告投放收费标准
  • wordpress 禁用功能优化关键词快速排名