{ "IcoMoonType": "selection", "icons": [ { "icon": { "paths": [ "M864.626 473.162c-65.754-183.44-205.11-348.15-352.626-473.162-147.516 125.012-286.87 289.722-352.626 473.162-40.664 113.436-44.682 236.562 12.584 345.4 65.846 125.14 198.632 205.438 340.042 205.438s274.196-80.298 340.040-205.44c57.27-108.838 53.25-231.962 12.586-345.398zM738.764 758.956c-43.802 83.252-132.812 137.044-226.764 137.044-55.12 0-108.524-18.536-152.112-50.652 13.242 1.724 26.632 2.652 40.112 2.652 117.426 0 228.668-67.214 283.402-171.242 44.878-85.292 40.978-173.848 23.882-244.338 14.558 28.15 26.906 56.198 36.848 83.932 22.606 63.062 40.024 156.34-5.368 242.604z" ], "attrs": [], "tags": [ "droplet", "color", "water" ], "grid": 16 }, "attrs": [], "properties": { "id": 87, "order": 3, "prevSize": 32, "ligatures": "droplet, color2", "name": "icon-saturation", "code": 58880 }, "setIdx": 0, "setId": 0, "iconIdx": 11 }, { "icon": { "paths": [ "M512 0c-282.77 0-512 229.23-512 512s229.23 512 512 512 512-229.23 512-512-229.23-512-512-512zM128 512c0-212.078 171.922-384 384-384v768c-212.078 0-384-171.922-384-384z" ], "attrs": [], "tags": [ "contrast" ], "grid": 16 }, "attrs": [], "properties": { "id": 854, "order": 2, "prevSize": 32, "ligatures": "contrast", "name": "icon-contrast", "code": 58881 }, "setIdx": 0, "setId": 0, "iconIdx": 213 }, { "icon": { "paths": [ "M64 512h384v128h-128v384h-128v-384h-128zM960 256h-251.75v768h-136.5v-768h-251.75v-128h640z" ], "attrs": [], "tags": [ "font-size", "wysiwyg" ], "grid": 16 }, "attrs": [], "properties": { "id": 1226, "order": 1, "prevSize": 32, "ligatures": "font-size, wysiwyg3", "name": "icon-fontsize", "code": 58882 }, "setIdx": 0, "setId": 0, "iconIdx": 353 } ], "height": 1024, "metadata": { "name": "a11y" }, "preferences": { "showGlyphs": true, "showQuickUse": true, "showQuickUse2": true, "showSVGs": true, "fontPref": { "prefix": "icon-", "metadata": { "fontFamily": "a11y", "majorVersion": 1, "minorVersion": 0 }, "metrics": { "emSize": 1024, "baseline": 6.25, "whitespace": 50 }, "embed": false, "showSelector": false, "resetPoint": 58880 }, "imagePref": { "prefix": "icon-", "png": true, "useClassSelector": true, "color": 4473924, "bgColor": 16777215, "classSelector": ".icon", "columns": 16, "margin": 16, "height": 32 }, "historySize": 100, "showCodes": true } }/*! elementor - v3.2.4 - 26-05-2021 */ (self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[192],{1351:(e,t,r)=>{"use strict";var s=r(7971);r(7394)(t,"__esModule",{value:!0}),t.default=void 0,r(1954);var n=s(r(1959)),o=s(r(9041)),u=s(r(6700)),l=s(r(4263)),a=s(r(7371)),i=s(r(8537)),f=function(e){(0,a.default)(Progress,e);var t=(0,i.default)(Progress);function Progress(){return(0,n.default)(this,Progress),t.apply(this,arguments)}return(0,o.default)(Progress,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectors:{progressNumber:".elementor-progress-bar"}}}},{key:"getDefaultElements",value:function getDefaultElements(){var e=this.getSettings("selectors");return{$progressNumber:this.$element.find(e.progressNumber)}}},{key:"onInit",value:function onInit(){var e=this;(0,u.default)((0,l.default)(Progress.prototype),"onInit",this).call(this),elementorFrontend.waypoint(this.elements.$progressNumber,(function(){var t=e.elements.$progressNumber;t.css("width",t.data("max")+"%")}))}}]),Progress}(elementorModules.frontend.handlers.Base);t.default=f}}]);import { oneOf } from '../../utils/assist'; import { checkConditions } from '../../mixins/check-conditions'; const Pagination = { name: 'cx-vui-pagination', template: '#cx-vui-pagination', mixins: [ checkConditions ], props: { current: { type: Number, default: 1 }, total: { type: Number, default: 0 }, pageSize: { type: Number, default: 10 }, prevText: { type: String, default: '' }, nextText: { type: String, default: '' }, customCss: { type: String, default: '' }, elementId: { type: String, default: '' }, conditions: { type: Array, default() { return []; } }, }, data() { return { baseClass: 'cx-vui-pagination', currentPage: this.current, currentPageSize: this.pageSize }; }, watch: { total ( val ) { let maxPage = Math.ceil( val / this.currentPageSize ); if ( maxPage < this.currentPage ) { this.currentPage = ( maxPage === 0 ? 1 : maxPage ); } }, current ( val ) { this.currentPage = val; }, pageSize ( val ) { this.currentPageSize = val; } }, computed: { classesList() { let classesList = [ this.baseClass, ]; if ( this.customCss ) { classesList.push( this.customCss ); } return classesList; }, prevClasses () { return [ `${this.baseClass}-item`, `${this.baseClass}-prev`, { [`${this.baseClass}-disabled`]: this.currentPage === 1 || false, [`${this.baseClass}-custom-text`]: this.prevText !== '' } ]; }, nextClasses () { return [ `${this.baseClass}-item`, `${this.baseClass}-next`, { [`${this.baseClass}-disabled`]: this.currentPage === this.allPages || false, [`${this.baseClass}-custom-text`]: this.nextText !== '' } ]; }, firstPageClasses () { return [ `${this.baseClass}-item`, { [`${this.baseClass}-item-active`]: this.currentPage === 1 } ]; }, lastPageClasses () { return [ `${this.baseClass}-item`, { [`${this.baseClass}-item-active`]: this.currentPage === this.allPages } ]; }, allPages () { const allPage = Math.ceil( this.total / this.currentPageSize ); return ( allPage === 0 ) ? 1 : allPage; }, }, methods: { changePage ( page ) { if ( this.currentPage !== page ) { this.currentPage = page; this.$emit( 'update:current', page ); this.$emit( 'on-change', page ); } }, prev () { const current = this.currentPage; if ( current <= 1 ) { return false; } this.changePage( current - 1 ); }, next () { const current = this.currentPage; if ( current >= this.allPages ) { return false; } this.changePage(current + 1); }, fastPrev () { const page = this.currentPage - 5; if ( page > 0 ) { this.changePage( page ); } else { this.changePage( 1 ); } }, fastNext () { const page = this.currentPage + 5; if ( page > this.allPages ) { this.changePage( this.allPages ); } else { this.changePage( page ); } }, }, }; export default Pagination; import { oneOf } from '../../utils/assist'; import { checkConditions } from '../../mixins/check-conditions'; const Pagination = { name: 'cx-vui-pagination', template: '#cx-vui-pagination', mixins: [ checkConditions ], props: { current: { type: Number, default: 1 }, total: { type: Number, default: 0 }, pageSize: { type: Number, default: 10 }, prevText: { type: String, default: '' }, nextText: { type: String, default: '' }, customCss: { type: String, default: '' }, elementId: { type: String, default: '' }, conditions: { type: Array, default() { return []; } }, }, data() { return { baseClass: 'cx-vui-pagination', currentPage: this.current, currentPageSize: this.pageSize }; }, watch: { total ( val ) { let maxPage = Math.ceil( val / this.currentPageSize ); if ( maxPage < this.currentPage ) { this.currentPage = ( maxPage === 0 ? 1 : maxPage ); } }, current ( val ) { this.currentPage = val; }, pageSize ( val ) { this.currentPageSize = val; } }, computed: { classesList() { let classesList = [ this.baseClass, ]; if ( this.customCss ) { classesList.push( this.customCss ); } return classesList; }, prevClasses () { return [ `${this.baseClass}-item`, `${this.baseClass}-prev`, { [`${this.baseClass}-disabled`]: this.currentPage === 1 || false, [`${this.baseClass}-custom-text`]: this.prevText !== '' } ]; }, nextClasses () { return [ `${this.baseClass}-item`, `${this.baseClass}-next`, { [`${this.baseClass}-disabled`]: this.currentPage === this.allPages || false, [`${this.baseClass}-custom-text`]: this.nextText !== '' } ]; }, firstPageClasses () { return [ `${this.baseClass}-item`, { [`${this.baseClass}-item-active`]: this.currentPage === 1 } ]; }, lastPageClasses () { return [ `${this.baseClass}-item`, { [`${this.baseClass}-item-active`]: this.currentPage === this.allPages } ]; }, allPages () { const allPage = Math.ceil( this.total / this.currentPageSize ); return ( allPage === 0 ) ? 1 : allPage; }, }, methods: { changePage ( page ) { if ( this.currentPage !== page ) { this.currentPage = page; this.$emit( 'update:current', page ); this.$emit( 'on-change', page ); } }, prev () { const current = this.currentPage; if ( current <= 1 ) { return false; } this.changePage( current - 1 ); }, next () { const current = this.currentPage; if ( current >= this.allPages ) { return false; } this.changePage(current + 1); }, fastPrev () { const page = this.currentPage - 5; if ( page > 0 ) { this.changePage( page ); } else { this.changePage( 1 ); } }, fastNext () { const page = this.currentPage + 5; if ( page > this.allPages ) { this.changePage( this.allPages ); } else { this.changePage( page ); } }, }, }; export default Pagination; {"id":92651,"date":"2024-12-21T19:02:08","date_gmt":"2024-12-21T16:02:08","guid":{"rendered":"https:\/\/smartlook.com.sa\/?p=92651"},"modified":"2024-12-21T19:47:33","modified_gmt":"2024-12-21T16:47:33","slug":"slot-trong-vuejs-la-gi-nh-cho-con-1-slot-m-nhe-4","status":"publish","type":"post","link":"https:\/\/smartlook.com.sa\/slot-trong-vuejs-la-gi-nh-cho-con-1-slot-m-nhe-4\/","title":{"rendered":"Slot trong VueJS l\u00e0 g\u00ec nh\u1ec9? \u0110\u1ec3 cho con 1 slot m\u1eb9 nh\u00e9 .."},"content":{"rendered":"
AnhHLV Arne Slot \u0111\u00e1nh gi\u00e1 cao n\u0103ng l\u1ef1c gi\u1ea3i quy\u1ebft v\u1ea5n \u0111\u1ec1 c\u1ee7a Pep Guardiola, nh\u01b0ng hy v\u1ecdng \u0111\u1ed3ng nghi\u1ec7p ch\u1ec9 t\u00ecm ra gi\u1ea3i ph\u00e1p sau tr\u1eadn \u0111\u1ea5u Liverpool \u1edf v\u00f2ng 13 Ngo\u1ea1i h\u1ea1ng Anh tu\u1ea7n n\u00e0y. Trong x\u00e2y d\u1ef1ng, t\u1eeb “slot” \u0111\u1ec1 c\u1eadp \u0111\u1ebfn khe, r\u00e3nh ho\u1eb7c v\u1ecb tr\u00ed \u0111\u01b0\u1ee3c c\u1eaft x\u1ebb trong c\u00e1c c\u00f4ng tr\u00ecnh, nh\u1eb1m ph\u1ee5c v\u1ee5 m\u1ee5c \u0111\u00edch c\u1ee5 th\u1ec3. Slot c\u00f3 m\u1ed9t thu\u1ed9c t\u00ednh \u0111\u1eb7c bi\u1ec7t l\u00e0 name gi\u00fap ch\u00fang ta c\u00f3 th\u1ec3 \u0111\u1eb7t t\u00ean cho slot \u0111\u00f3. Trong m\u1ed9t component c\u00f3 th\u1ec3 ch\u1ee9a nhi\u1ec1u slot v\u1edbi t\u00ean kh\u00e1c nhau v\u00e0 Vue.js c\u0169ng cho ph\u00e9p c\u00f3 m\u1ed9t slot kh\u00f4ng \u0111\u01b0\u1ee3c \u0111\u1eb7t t\u00ean \u0111\u1ec3 ch\u1ee9a nh\u1eefng n\u1ed9i dung kh\u00f4ng tr\u00f9ng kh\u1edbp v\u1edbi b\u1ea5t k\u00ec slot name n\u00e0o trong component. V\u1edbi c\u00e1c kh\u00f4ng gian g\u1eb7p t\u00ecnh tr\u1ea1ng k\u00edn, b\u00ed kh\u00ed th\u00ec ch\u1eafc ch\u1eafn kh\u00f4ng th\u1ec3 thi\u1ebfu h\u1ec7 th\u1ed1ng th\u00f4ng gi\u00f3.<\/p>\n