bk-magic-vue 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bk-magic-vue.css +113 -24
- package/dist/bk-magic-vue.js +1091 -839
- package/dist/bk-magic-vue.min.css +1 -1
- package/dist/bk-magic-vue.min.css.gz +0 -0
- package/dist/bk-magic-vue.min.css.map +1 -1
- package/dist/bk-magic-vue.min.js +1 -1
- package/dist/bk-magic-vue.min.js.gz +0 -0
- package/dist/bk-magic-vue.min.js.map +1 -1
- package/lib/alert.js +472 -472
- package/lib/back-top.js +1 -1
- package/lib/big-tree.js +3 -3
- package/lib/breadcrumb-item.js +426 -426
- package/lib/breadcrumb.js +438 -438
- package/lib/button.js +509 -509
- package/lib/cascade.js +36 -2
- package/lib/checkbox-group.js +16 -9
- package/lib/checkbox.js +9 -1
- package/lib/container.js +454 -454
- package/lib/date-picker.js +5 -8
- package/lib/dialog.js +8 -9
- package/lib/directives/clickoutside.js +61 -61
- package/lib/directives/copy.js +51 -51
- package/lib/divider.js +446 -446
- package/lib/dropdown-menu.js +1747 -1747
- package/lib/form-item.js +1 -1
- package/lib/image-viewer.js +67 -2
- package/lib/image.js +73 -3
- package/lib/info-box.js +8 -9
- package/lib/link.js +430 -430
- package/lib/locale/lang/en-US.js +153 -143
- package/lib/locale/lang/zh-CN.js +151 -143
- package/lib/message.js +1 -1
- package/lib/mixins/emitter.js +18 -18
- package/lib/navigation-menu-group.js +412 -412
- package/lib/navigation-menu-item.js +722 -722
- package/lib/navigation.js +668 -668
- package/lib/notify.js +1 -1
- package/lib/option-group.js +9 -1
- package/lib/option.js +1 -1
- package/lib/pagination.js +13 -13
- package/lib/process.js +233 -51
- package/lib/progress.js +499 -499
- package/lib/radio-button.js +541 -541
- package/lib/radio.js +555 -555
- package/lib/rate.js +607 -607
- package/lib/round-progress.js +502 -502
- package/lib/search-select.js +5 -5
- package/lib/select.js +6 -6
- package/lib/sideslider.js +1 -1
- package/lib/slider.js +5 -5
- package/lib/spin.js +500 -500
- package/lib/star.js +496 -496
- package/lib/steps.js +3 -3
- package/lib/switcher.js +538 -538
- package/lib/tab-panel.js +456 -456
- package/lib/table-setting-content.js +35 -20
- package/lib/table.js +764 -575
- package/lib/tag.js +459 -459
- package/lib/time-picker.js +2 -2
- package/lib/transfer.js +6 -6
- package/lib/ui/bk-magic-vue.css +113 -24
- package/lib/ui/bk-magic-vue.min.css +1 -1
- package/lib/ui/bk-magic-vue.min.css.gz +0 -0
- package/lib/ui/bk-magic-vue.min.css.map +1 -1
- package/lib/ui/image-viewer.css +38 -17
- package/lib/ui/image-viewer.min.css +1 -1
- package/lib/ui/image-viewer.min.css.map +1 -1
- package/lib/ui/process.css +76 -0
- package/lib/ui/process.min.css +1 -1
- package/lib/ui/process.min.css.map +1 -1
- package/lib/ui/slider.css +4 -2
- package/lib/ui/slider.min.css +1 -1
- package/lib/ui/slider.min.css.map +1 -1
- package/lib/ui/spin.css +5 -1
- package/lib/ui/spin.min.css +1 -1
- package/lib/ui/spin.min.css.map +1 -1
- package/lib/ui/table.css +16 -5
- package/lib/ui/table.min.css +1 -1
- package/lib/ui/table.min.css.map +1 -1
- package/lib/upload.js +2 -2
- package/lib/version-detail.js +9 -10
- package/lib/virtual-scroll.js +805 -805
- package/lib/zoom-image.js +502 -502
- package/package.json +1 -1
|
@@ -86,6 +86,12 @@
|
|
|
86
86
|
|
|
87
87
|
var script = {
|
|
88
88
|
name: 'bk-checkbox-group',
|
|
89
|
+
provide: function provide() {
|
|
90
|
+
return {
|
|
91
|
+
handleAddItem: this.handleAddItem,
|
|
92
|
+
handleRemoveItem: this.handleRemoveItem
|
|
93
|
+
};
|
|
94
|
+
},
|
|
89
95
|
props: {
|
|
90
96
|
value: {
|
|
91
97
|
type: Array,
|
|
@@ -112,16 +118,17 @@
|
|
|
112
118
|
this.localValue = _toConsumableArray(_value);
|
|
113
119
|
}
|
|
114
120
|
},
|
|
115
|
-
created: function created() {
|
|
116
|
-
var _this = this;
|
|
117
|
-
this.$on('checkbox-item-add', function (item) {
|
|
118
|
-
if (item) {
|
|
119
|
-
_this.checkboxItems.push(item);
|
|
120
|
-
}
|
|
121
|
-
return false;
|
|
122
|
-
});
|
|
123
|
-
},
|
|
124
121
|
methods: {
|
|
122
|
+
handleAddItem: function handleAddItem(item) {
|
|
123
|
+
if (!item || this.checkboxItems.includes(item)) return;
|
|
124
|
+
this.checkboxItems.push(item);
|
|
125
|
+
},
|
|
126
|
+
handleRemoveItem: function handleRemoveItem(item) {
|
|
127
|
+
var index = this.checkboxItems.indexOf(item);
|
|
128
|
+
if (index > -1) {
|
|
129
|
+
this.checkboxItems.splice(index, 1);
|
|
130
|
+
}
|
|
131
|
+
},
|
|
125
132
|
handleChange: function handleChange(checked, value) {
|
|
126
133
|
var oldValue = _toConsumableArray(this.localValue);
|
|
127
134
|
var localValue = [];
|
|
@@ -1072,6 +1079,7 @@
|
|
|
1072
1079
|
var script$1 = {
|
|
1073
1080
|
name: 'bk-checkbox',
|
|
1074
1081
|
mixins: [emitter],
|
|
1082
|
+
inject: ['handleRemoveItem', 'handleAddItem'],
|
|
1075
1083
|
props: {
|
|
1076
1084
|
value: {
|
|
1077
1085
|
type: [String, Number, Boolean],
|
|
@@ -1151,9 +1159,16 @@
|
|
|
1151
1159
|
}
|
|
1152
1160
|
},
|
|
1153
1161
|
created: function created() {
|
|
1154
|
-
this.
|
|
1162
|
+
if (this.handleAddItem && typeof this.handleAddItem === 'function') {
|
|
1163
|
+
this.handleAddItem(this);
|
|
1164
|
+
}
|
|
1155
1165
|
this.init();
|
|
1156
1166
|
},
|
|
1167
|
+
destroyed: function destroyed() {
|
|
1168
|
+
if (this.handleRemoveItem && typeof this.handleRemoveItem === 'function') {
|
|
1169
|
+
this.handleRemoveItem(this);
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1157
1172
|
methods: {
|
|
1158
1173
|
getValue: function getValue() {
|
|
1159
1174
|
if (this.selected) {
|
|
@@ -1677,14 +1692,14 @@
|
|
|
1677
1692
|
staticClass: "content-fields clearfix"
|
|
1678
1693
|
}, [_c('p', {
|
|
1679
1694
|
staticClass: "setting-title"
|
|
1680
|
-
}, [_vm._v("\n
|
|
1695
|
+
}, [_vm._v("\n " + _vm._s(_vm.t('bk.table.setting.fields.title')) + "\n "), _vm.limit ? _c('span', {
|
|
1681
1696
|
staticClass: "setting-subtitle",
|
|
1682
1697
|
class: {
|
|
1683
1698
|
'is-limit': _vm.reachLimit
|
|
1684
1699
|
}
|
|
1685
|
-
}, [_vm._v("\n
|
|
1700
|
+
}, [_vm._v("\n " + _vm._s(_vm.t('bk.table.setting.fields.subtitle', {
|
|
1686
1701
|
max: _vm.limit
|
|
1687
|
-
})) + "\n
|
|
1702
|
+
})) + "\n ")]) : _c('bk-checkbox', {
|
|
1688
1703
|
staticClass: "fr setting-checkbox",
|
|
1689
1704
|
attrs: {
|
|
1690
1705
|
"checked": _vm.allSelected
|
|
@@ -1694,7 +1709,7 @@
|
|
|
1694
1709
|
return _vm.handleSelectAll($event);
|
|
1695
1710
|
}
|
|
1696
1711
|
}
|
|
1697
|
-
}, [_vm._v("\n
|
|
1712
|
+
}, [_vm._v("\n " + _vm._s(_vm.t('bk.table.setting.fields.selectAll')) + "\n ")])], 1), _c('bk-checkbox-group', {
|
|
1698
1713
|
staticClass: "fields-group",
|
|
1699
1714
|
model: {
|
|
1700
1715
|
value: _vm.localSelected,
|
|
@@ -1714,12 +1729,12 @@
|
|
|
1714
1729
|
"value": field[_vm.valueKey],
|
|
1715
1730
|
"title": field[_vm.labelKey]
|
|
1716
1731
|
}
|
|
1717
|
-
}, [_vm._v("\n
|
|
1732
|
+
}, [_vm._v("\n " + _vm._s(field[_vm.labelKey]) + "\n ")])], 1)];
|
|
1718
1733
|
})], 2)], 1), _c('div', {
|
|
1719
1734
|
staticClass: "content-line-height"
|
|
1720
1735
|
}, [_c('p', {
|
|
1721
1736
|
staticClass: "setting-title"
|
|
1722
|
-
}, [_vm._v("\n
|
|
1737
|
+
}, [_vm._v("\n " + _vm._s(_vm.t('bk.table.setting.lineHeight.title')) + "\n ")]), _c('div', {
|
|
1723
1738
|
staticClass: "bk-button-group link-button-group"
|
|
1724
1739
|
}, [_c('bk-button', {
|
|
1725
1740
|
class: ['link-button', {
|
|
@@ -1733,7 +1748,7 @@
|
|
|
1733
1748
|
_vm.setSize('small');
|
|
1734
1749
|
}
|
|
1735
1750
|
}
|
|
1736
|
-
}, [_vm._v("\n
|
|
1751
|
+
}, [_vm._v("\n " + _vm._s(_vm.t('bk.table.setting.lineHeight.small')) + "\n ")]), _c('bk-button', {
|
|
1737
1752
|
class: ['link-button', {
|
|
1738
1753
|
'is-selected': _vm.currentSize === 'medium'
|
|
1739
1754
|
}],
|
|
@@ -1745,7 +1760,7 @@
|
|
|
1745
1760
|
_vm.setSize('medium');
|
|
1746
1761
|
}
|
|
1747
1762
|
}
|
|
1748
|
-
}, [_vm._v("\n
|
|
1763
|
+
}, [_vm._v("\n " + _vm._s(_vm.t('bk.table.setting.lineHeight.medium')) + "\n ")]), _c('bk-button', {
|
|
1749
1764
|
class: ['link-button', {
|
|
1750
1765
|
'is-selected': _vm.currentSize === 'large'
|
|
1751
1766
|
}],
|
|
@@ -1757,7 +1772,7 @@
|
|
|
1757
1772
|
_vm.setSize('large');
|
|
1758
1773
|
}
|
|
1759
1774
|
}
|
|
1760
|
-
}, [_vm._v("\n
|
|
1775
|
+
}, [_vm._v("\n " + _vm._s(_vm.t('bk.table.setting.lineHeight.large')) + "\n ")])], 1)])]), _c('div', {
|
|
1761
1776
|
staticClass: "content-options"
|
|
1762
1777
|
}, [_c('bk-button', {
|
|
1763
1778
|
staticClass: "mr10",
|
|
@@ -1768,7 +1783,7 @@
|
|
|
1768
1783
|
on: {
|
|
1769
1784
|
"click": _vm.handleConfirm
|
|
1770
1785
|
}
|
|
1771
|
-
}, [_vm._v("\n
|
|
1786
|
+
}, [_vm._v("\n " + _vm._s(_vm.t('bk.table.setting.options.ok')) + "\n ")]), _c('bk-button', {
|
|
1772
1787
|
attrs: {
|
|
1773
1788
|
"theme": "default"
|
|
1774
1789
|
},
|