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

医疗类网站还有做seowordpress社交分享插件

医疗类网站还有做seo,wordpress社交分享插件,乐云seo可视化网站建设,it运维服务商and design vue2版的table表格不能拖拽列的宽度#xff0c;通过vue-draggable-resizable插件实现 我用的是and design 1.7.8的版本#xff0c;先下插件 yarn add vue-draggable-resizable2.1.0我这版本的and design用最新3.0.0以上的插件会有问题#xff0c;实现不了效果通过vue-draggable-resizable插件实现 我用的是and design 1.7.8的版本先下插件 yarn add vue-draggable-resizable2.1.0我这版本的and design用最新3.0.0以上的插件会有问题实现不了效果换了低版本就没问题了 官方也有教使用方法但会报错按照官方的来写需要把ResizeableTitle改成resizeableTitle这样就解决了最开始的报错 官方使用地址 下面是我封装的table公用组件但是这样弄问题很多在表格里加一下操作的时候很容易有问题所以谨慎用这玩意 templatediv classtableCommon-wrappera-tablev-ifistrue:expandIconColumnIndexexpandIconColumnIndex :expandIconAsCellexpandIconAsCell:defaultExpandAllRowsdefaultExpandAllRows :columnscolumns :dataSourcedata :loadingloading:indentSizeindentSize :paginationpagination :row-selectionrowSelection:childrenColumnNamechildrenColumnName sizemiddle :customHeaderRowtableHeader changehandleTableChange:rowKeyrowkey :scrollscroll :borderedbordered :hideDefaultSelectionshideDefaultSelections:componentscomponentstemplate slot-scopetext, record, index :slotslotv-forslot in Object.keys($scopedSlots).filter(key key ! expandedRowRender)slot :nameslot v-bind{ text, record, index }/slot/template/a-table/div /templatescript import Vue from vue; import VueDraggableResizable from vue-draggable-resizable; Vue.component(vue-draggable-resizable, VueDraggableResizable);export default {name: ttable,props: {childrenColumnName: {type: String},rowkey: {type: String},tableHead: {type: Array,required: true},tableData: {type: Array,required: true},loading: {type: Boolean,default: false},indentSize: {// eslint-disable-next-line vue/require-prop-type-constructortype: Boolean | Number},pagination: {// eslint-disable-next-line vue/require-prop-type-constructortype: Boolean | Object},rowSelection: {type: Object},scroll: {type: Object,// default:() ({x: 1200, y: 600}) ,},expandIconAsCell: {type: Boolean},expandIconColumnIndex: {type: Number},size: {// eslint-disable-next-line vue/require-prop-type-constructortype: String | Number},bordered: {type: Boolean,default: true},defaultExpandAllRows: {type: Boolean,default: false},hideDefaultSelections: {type: Boolean,default: false}},data() {return {data:[],columns:[],istrue:false,}},watch:{tableHead(newdata){console.log(表格头部,newdata)this.columns JSON.parse(JSON.stringify(newdata));},tableData(newdata){console.log(表格数据,newdata)this.data JSON.parse(JSON.stringify(newdata));}},mounted(){this.init()},methods: {init(){console.log(阿里嘎多,this.tableHead)const draggingMap {};this.columns JSON.parse(JSON.stringify(this.tableHead));// this.columns columns;this.data JSON.parse(JSON.stringify(this.tableData));this.columns.forEach(col {draggingMap[col.key] col.width;});const draggingState Vue.observable(draggingMap);const that this;this.components {header: {cell: (h, props, children) {let thDom null;const { key, ...restProps } props;const col that.columns.find(col {const k col.dataIndex || col.key;return k key;});if (!col.width) {return th {...restProps}{children}/th;}const onDrag (x, y) {draggingState[key] 0;col.width Math.max(x, 1);};const onDragstop () {draggingState[key] thDom.getBoundingClientRect().width;};return (th{...restProps}v-ant-ref{r (thDom r)}width{col.width}classresize-table-th{children}vue-draggable-resizablekey{col.key}classtable-draggable-handlew{10}x{draggingState[key] || col.width}z{1}axisxdraggable{true}resizable{false}onDragging{onDrag}onDragstop{onDragstop}//th);}}};this.istruetrue;console.log(来阿拉啦啦啦,this.components)},tableHeader(column) {// console.log(column,column);column.forEach((e, index) {column[index].className table-thead;});},handleTableChange(val) {console.log(valllsadlalsdlsa:,val);this.$emit(changeCurrent, val.current);}} } /scriptstyle langscss .resize-table-th {position: relative;.table-draggable-handle {height: 100% !important;bottom: 0;left: auto !important;right: -5px;cursor: col-resize;touch-action: none;} }::v-deep .ant-table-theadtrth {background: #f6f6f6;height: 50px;font-family: PingFang SC-Medium, PingFang SC; }::v-deep .ant-table-tbody {background-color: #ffffff; }::v-deep .ant-table-header-column .ant-table-column-title {font-size: 15px;font-weight: bold;font-family: Microsoft YaHei-Bold, Microsoft YaHei;color: #333333; } /style
http://www.hkea.cn/news/14506986/

相关文章:

  • wordpress友链汕头seo网络推广服务
  • wordpress的运用网络优化推广公司哪家好
  • 如何建设一个电商网站水泥公司网站建设
  • 网站建设课程学习微商代运营
  • 网站建设水上乐园wordpress怎么装
  • 布吉网站建设哪家技术好做网站的前端技术
  • 焦作市网站建设哪家好ui设计用的软件有哪些
  • 国内买机票最便宜网站建设基于wordpress个人博客网站论文
  • 动漫公司网站建设wordpress菜单导航插件
  • 天津网站网站建设机械加工网瓦房北方机床附件厂
  • 益阳哪里做网站外贸公司怎么做
  • 潍坊 餐饮网站建设简述三只松鼠网络营销方式
  • 手机网站设计制作服务如何免费做公司网站
  • 佛山网站建设哪家好北京手机软件开发公司
  • 网站变灰兼容代码网站建设优化服务流程
  • 龙口网站建设价格网站建设验收条款
  • 有什么做礼品的卖家网站网站建设公司 盐城市
  • 住房和城乡建设网站 上海学做视频的网站有哪些
  • 婴儿辅食中企动力提供网站建设外贸soho东莞建站
  • 牛商网建站东营做网站seo的
  • 台州做网站软件安监局网站做应急预案备案
  • 烟台网站建设哪家专业dw做的上传网站打不开
  • 浙江省一建建设集团网站首页建设库官网查询系统
  • 网站建设合同 附件那些网站可以做自媒体
  • 下载了wordpress然后怎么用广州新塘排名seo优化公司
  • 网站建设 验证码网站建设套模板
  • 传奇手机版网站淘宝网站是谁做的
  • 邢台做网站推广服务2022年互联网营销师如何报名
  • 长沙网站网站建设做网站好的网站建设公司排名
  • 甘肃肃第八建设集团网站wordpress 添加内链