Skip to content

Commit 3746e8f

Browse files
committed
refactor: small changes, update build files
1 parent 3b3bb00 commit 3746e8f

File tree

9 files changed

+85
-94
lines changed

9 files changed

+85
-94
lines changed

dist/coreui-vue.common.js

Lines changed: 31 additions & 33 deletions
Large diffs are not rendered by default.

dist/coreui-vue.common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/coreui-vue.esm.js

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18355,6 +18355,7 @@ var script$B = {
1835518355
// }
1835618356
// },
1835718357
computed: {
18358+
selectedItem: function selectedItem() {},
1835818359
// classesComputedProps mixin
1835918360
// haveCustomSize () {
1836018361
// return ['sm','lg'].includes(this.size)
@@ -18495,7 +18496,6 @@ var __vue_render__$e = function() {
1849518496
{
1849618497
class: _vm.inputClasses,
1849718498
attrs: { id: _vm.safeId },
18498-
domProps: { value: _vm.state },
1849918499
on: {
1850018500
input: function($event) {
1850118501
return _vm.onSelect($event)
@@ -18536,12 +18536,14 @@ var __vue_render__$e = function() {
1853618536
_vm._b(
1853718537
{
1853818538
key: key,
18539-
class: option.class,
1854018539
attrs: {
1854118540
disabled: option.disabled,
1854218541
"data-key": key
1854318542
},
18544-
domProps: { value: option.value }
18543+
domProps: {
18544+
value: option.value,
18545+
selected: option.value === _vm.value
18546+
}
1854518547
},
1854618548
"option",
1854718549
option.attrs,
@@ -18560,7 +18562,10 @@ var __vue_render__$e = function() {
1856018562
{
1856118563
key: key,
1856218564
attrs: { "data-key": key },
18563-
domProps: { value: String(option) }
18565+
domProps: {
18566+
value: option,
18567+
selected: option === _vm.value
18568+
}
1856418569
},
1856518570
[
1856618571
_vm._v(
@@ -20064,21 +20069,13 @@ var script$L = {
2006420069

2006520070
var props = _ref.props,
2006620071
data = _ref.data,
20067-
slots = _ref.slots;
20068-
var childNodes = slots().default;
20069-
20070-
if (props.fluid) {
20071-
childNodes = [h('div', {
20072-
staticClass: 'container-fluid'
20073-
}, childNodes)];
20074-
}
20075-
20072+
children = _ref.children;
2007620073
return h(props.tag, a(data, {
2007720074
staticClass: 'jumbotron',
2007820075
class: (_class = {
2007920076
'jumbotron-fluid': props.fluid
2008020077
}, _defineProperty(_class, "text-".concat(props.textColor), Boolean(props.textColor)), _defineProperty(_class, "bg-".concat(props.color), Boolean(props.color)), _defineProperty(_class, "border-".concat(props.borderColor), Boolean(props.borderColor)), _defineProperty(_class, 'border', Boolean(props.borderColor)), _class)
20081-
}), childNodes);
20078+
}), children);
2008220079
}
2008320080
};
2008420081

@@ -20481,8 +20478,7 @@ var script$P = {
2048120478
}
2048220479
},
2048320480
hide: function hide(e) {
20484-
this.$emit('update:show', false);
20485-
this.$emit('hide', e);
20481+
this.$emit('update:show', false, e);
2048620482
},
2048720483
toggle: function toggle(newVal) {
2048820484
var _this = this;
@@ -21388,9 +21384,8 @@ var script$W = {
2138821384
},
2138921385
size: {
2139021386
type: String,
21391-
default: 'md',
2139221387
validator: function validator(val) {
21393-
return ['sm', 'md', 'lg'].includes(val);
21388+
return ['', 'sm', 'lg'].includes(val);
2139421389
}
2139521390
},
2139621391
align: {
@@ -21455,7 +21450,8 @@ var script$W = {
2145521450
}];
2145621451
},
2145721452
computedClasses: function computedClasses() {
21458-
return "pagination pagination-".concat(this.size, " justify-content-").concat(this.align);
21453+
var sizeClass = this.size ? "pagination-".concat(this.size) : '';
21454+
return "pagination ".concat(sizeClass, " justify-content-").concat(this.align);
2145921455
},
2146021456
showDots: function showDots() {
2146121457
return this.dots && this.limit > 4 && this.limit < this.pages;

dist/coreui-vue.umd.js

Lines changed: 31 additions & 33 deletions
Large diffs are not rendered by default.

dist/coreui-vue.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/coreui-vue.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/coreui-vue.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/modal/CModal.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ export default {
152152
}
153153
},
154154
hide (e) {
155-
this.$emit('update:show', false)
156-
this.$emit('hide', e)
155+
this.$emit('update:show', false, e)
157156
},
158157
toggle (newVal) {
159158
setTimeout(() => { this.visible = newVal }, 0)

src/components/pagination/CPagination.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@
100100
},
101101
size: {
102102
type: String,
103-
default: 'md',
104-
validator: val => ['sm', 'md', 'lg'].includes(val)
103+
validator: val => ['', 'sm', 'lg'].includes(val)
105104
},
106105
align: {
107106
type: String,
@@ -159,7 +158,8 @@
159158
return ['page-item', { 'disabled': this.activePage === this.pages }]
160159
},
161160
computedClasses () {
162-
return `pagination pagination-${this.size} justify-content-${this.align}`
161+
const sizeClass = this.size ? `pagination-${this.size}` : ''
162+
return `pagination ${sizeClass} justify-content-${this.align}`
163163
},
164164
showDots () {
165165
return this.dots && this.limit > 4 && this.limit < this.pages

0 commit comments

Comments
 (0)