fixed image select error

fixed select 2 ui
imporoved ui/ux meta list
pull/26/head
A1Gard 1 year ago
parent 705c5667e2
commit 69d49ede58

@ -730,6 +730,32 @@ li.no_results {
display: none;
}
.cats-x3 {
-moz-column-count: 4;
column-count: 4;
}
/*-1000px width*/
@media (max-width: 1000px) {
.cats-x3 {
-moz-column-count: 3;
column-count: 3;
}
}
/*-600px width*/
@media (max-width: 600px) {
.cats-x3 {
-moz-column-count: 2;
column-count: 2;
}
}
/*-300px width*/
@media (max-width: 300px) {
.cats-x3 {
-moz-column-count: 1;
column-count: 1;
}
}
.wizard .steps {
display: flex;
position: relative;
@ -906,6 +932,10 @@ li.no_results {
background: dodgerblue;
}
.select2-container {
max-width: 97%;
}
body {
overflow-x: hidden;
zoom: 100%;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -125,7 +125,12 @@ export default {
},
methods: {
changeImg:function ($k) {
// console.log($k);
// console.log(this.onSelectImage);
// console.log(this.quantities);
this.quantities[this.onSelectImage].image = $k;
// console.log(this.quantities);
this.$forceUpdate();
},
showModal: function (i) {
// this.showModal(i);
@ -212,12 +217,16 @@ export default {
background: #FFFFFF99;
z-index: 999;
overflow-y: scroll;
backdrop-filter: blur(3px);
}
#overlay img {
max-width: 100%;
width: 100%;
opacity: .75;
height: 150px;
object-fit: cover;
}
#overlay img.selected {

@ -1,3 +1,7 @@
.multiselect__tag{
background: dodgerblue;
}
.select2-container{
max-width: 97%;
}

@ -2,3 +2,29 @@
#xls-file,#optionz{
display: none;
}
.cats-x3{
column-count: 4
}
/*-1000px width*/
@media (max-width: 1000px) {
.cats-x3{
column-count: 3
}
}
/*-600px width*/
@media (max-width: 600px) {
.cats-x3{
column-count: 2
}
}
/*-300px width*/
@media (max-width: 300px) {
.cats-x3{
column-count: 1
}
}

@ -1,69 +1 @@
axios = require('axios');
window.axios = axios;
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
alertify = require('alertifyjs');
require('../js/bootstrap');
window._ = require('lodash');
require('bootstrap/dist/js/bootstrap.bundle')
require('chart.js/dist/chart.min')
var $ = window.jQuery = jQuery = require('jquery');
require('lightbox2/dist/js/lightbox.min');
require('owl.carousel/dist/owl.carousel.min');
require('xzoom/dist/xzoom.min');
window.Vue = require('vue').default;
// require('./js/gsap.min.js');
// require('./js/Physics2DPlugin3.min');
// require('./js/mega-menu.js');
require('./js/product.js');
require('./js/theme.js');
require('./js/chart.js');
require('../js/customer.js');
// require('../js/')
Vue.component('example-component', require('../js/components/ExampleComponent.vue').default);
Vue.component('meta-price', require('../js/components/MetaPrice.vue').default);
Vue.component('currency', require('../js/components/CurrencyInput.vue').default);
Vue.component('meta-element', require('../js/components/MetaElement.vue').default);
Vue.component('meta-search', require('../js/components/MetaSearch').default);
var app = new Vue({
el: '#app',
data: {
metaz: '123',
jdata: [],
def: [],
},
mounted() {
},
created() {
if (document.querySelector('#jDataSrc') !== undefined && document.querySelector('#jDataSrc') != null){
try {
this.jdata = JSON.parse(document.querySelector('#jDataSrc').value);
this.def = JSON.parse(document.querySelector('#jDef').value);
} catch {
console.log('json error: for meta product page');
}
}
},
methods: {
},
watch:{
jdata:{
handler: function(n) {
this.$refs.metaEl.updateJdata(n);
// this.$refs.metaPr.updateJdata(n);
},
deep: true
},
}
});
window.app = app;
axios = require('axios'); window.axios = axios; window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; alertify = require('alertifyjs'); require('../js/bootstrap'); window._ = require('lodash'); require('bootstrap/dist/js/bootstrap.bundle') require('chart.js/dist/chart.min') var $ = window.jQuery = jQuery = require('jquery'); require('lightbox2/dist/js/lightbox.min'); require('owl.carousel/dist/owl.carousel.min'); require('xzoom/dist/xzoom.min'); window.Vue = require('vue').default; // require('./js/gsap.min.js'); // require('./js/Physics2DPlugin3.min'); // require('./js/mega-menu.js'); require('./js/product.js'); require('./js/theme.js'); require('./js/chart.js'); require('../js/customer.js'); // require('../js/') Vue.component('example-component', require('../js/components/ExampleComponent.vue').default); Vue.component('meta-price', require('../js/components/MetaPrice.vue').default); Vue.component('currency', require('../js/components/CurrencyInput.vue').default); Vue.component('meta-element', require('../js/components/MetaElement.vue').default); Vue.component('meta-search', require('../js/components/MetaSearch').default); var app = new Vue({ el: '#app', data: { metaz: '123', jdata: [], def: [], }, mounted() { }, created() { if (document.querySelector('#jDataSrc') !== undefined && document.querySelector('#jDataSrc') != null){ try { this.jdata = JSON.parse(document.querySelector('#jDataSrc').value); this.def = JSON.parse(document.querySelector('#jDef').value); } catch { console.log('json error: for meta product page'); } } }, methods: { }, watch:{ jdata:{ handler: function(n) { this.$refs.metaEl.updateJdata(n); // this.$refs.metaPr.updateJdata(n); }, deep: true }, } }); window.app = app;

@ -81,20 +81,33 @@
</select>
</div>
<div class="form-group">
<label for="category">{{__("Category")}}</label>
<select
multiple
name="category[]"
id="category"
class="form-control"
data-placeholder="Select category"
required>
<option value=""></option>
@foreach($allCategories as $cat)
<option value="{{ $cat->id }}"
@if(isset($cats) && in_array($cat->id,$cats)) selected @endif > {{$cat->name}} </option>
<label>{{__("Category")}}</label>
{{-- <select--}}
{{-- multiple--}}
{{-- name="category[]"--}}
{{-- id="category"--}}
{{-- class="form-control"--}}
{{-- data-placeholder="Select category"--}}
{{-- required>--}}
{{-- <option value=""></option>--}}
{{-- @foreach($allCategories as $cat)--}}
{{-- <option value="{{ $cat->id }}"--}}
{{-- @if(isset($cats) && in_array($cat->id,$cats)) selected @endif > {{$cat->name}} </option>--}}
{{-- @endforeach--}}
{{-- </select>--}}
{{-- --}}
<div class="cats-x3">
@foreach($allCategories as $k => $cat)
<div class="form-check form-switch">
<input class="form-check-input" value="{{ $cat->id }}"
@if(isset($cats) && in_array($cat->id,$cats)) checked @endif name="category[]"
type="checkbox" id="c{{$k}}">
<label class="form-check-label" for="c{{$k}}"> {{$cat->name}} </label>
</div>
@endforeach
</select>
</div>
</div>
<div>
</div>
@ -102,7 +115,8 @@
<label>
{{__("Is effective price?")}}
</label>
<input type="checkbox" @if( isset($p) && $p->priceable) checked @endif name="priceable" class="form-check">
<input type="checkbox" @if( isset($p) && $p->priceable) checked @endif name="priceable"
class="form-check">
</div>
<div class="card-header">
{{__("Icon")}}
@ -137,7 +151,9 @@
</h2>
<div class="content">
</div>
<div class="btn btn-success m-2" style="float: left" id="add-options"> <div class="fa fa-plus"></div></div>
<div class="btn btn-success m-2" style="float: left" id="add-options">
<div class="fa fa-plus"></div>
</div>
</div>
<div class="clearfix"></div>
<div class="form-group">

Loading…
Cancel
Save