Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jun 14, 2019
1 parent d8469e4 commit 01a239e
Show file tree
Hide file tree
Showing 141 changed files with 9,934 additions and 10 deletions.
19 changes: 19 additions & 0 deletions lib/button/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.Button = void 0;

var _button = _interopRequireDefault(require("./src/button"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_button.default.install = function (Vue) {
Vue.component(_button.default.name, _button.default);
};

var Button = _button.default;
exports.Button = Button;
var _default = _button.default;
exports.default = _default;
1 change: 1 addition & 0 deletions lib/button/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions lib/button/src/button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;

var _xeUtils = _interopRequireDefault(require("xe-utils"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var _default = {
name: 'VxeButton',
props: {
type: String,
size: String
},
computed: {
vSize: function vSize() {
return this.size || this.$parent.size || this.$parent.vSize;
}
},
render: function render(h) {
var _this = this,
_ref;

var $listeners = this.$listeners,
type = this.type,
vSize = this.vSize;
var on = null;

if ($listeners) {
on = _xeUtils.default.objectMap($listeners, function (cb, type) {
return function (evnt) {
return _this.$emit(type, evnt);
};
});
}

return h(type === 'text' ? 'a' : 'button', {
class: ['vxe-button', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, "type--".concat(type), type), _ref)],
on: on
}, this.$slots.default);
}
};
exports.default = _default;
1 change: 1 addition & 0 deletions lib/button/src/button.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/button/style/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('./style.css')
1 change: 1 addition & 0 deletions lib/button/style/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions lib/checkbox/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.Checkbox = void 0;

var _checkbox = _interopRequireDefault(require("./src/checkbox"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_checkbox.default.install = function (Vue) {
Vue.component(_checkbox.default.name, _checkbox.default);
};

var Checkbox = _checkbox.default;
exports.Checkbox = Checkbox;
var _default = _checkbox.default;
exports.default = _default;
1 change: 1 addition & 0 deletions lib/checkbox/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions lib/checkbox/src/checkbox.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var _default = {
name: 'VxeCheckbox',
props: {
value: Boolean,
indeterminate: Boolean,
disabled: Boolean,
name: String,
size: String
},
computed: {
vSize: function vSize() {
return this.size || this.$parent.size || this.$parent.vSize;
}
},
render: function render(h) {
var _ref,
_this = this;

var disabled = this.disabled,
vSize = this.vSize,
indeterminate = this.indeterminate,
value = this.value;
return h('label', {
class: ['vxe-checkbox', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--indeterminate', indeterminate), _defineProperty(_ref, 'is--disabled', disabled), _ref)]
}, [h('input', {
attrs: {
type: 'checkbox',
disabled: disabled
},
domProps: {
checked: value
},
on: {
change: function change(evnt) {
if (!_this.disabled) {
var checked = evnt.target.checked;

_this.$emit('input', checked);

_this.$emit('change', checked, evnt);
}
}
}
}), h('span', {
class: ['checkbox--icon']
}), this.$slots.default ? h('span', {
class: 'checkbox--label'
}, this.$slots.default) : null]);
}
};
exports.default = _default;
1 change: 1 addition & 0 deletions lib/checkbox/src/checkbox.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/checkbox/style/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('./style.css')
1 change: 1 addition & 0 deletions lib/checkbox/style/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions lib/conf/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// import XEUtils from 'xe-utils'
// import zhCNLocat from '../lib/locale/lang/zh-CN'
var GlobalConfig = {
// size: null,
// showAllOverflow: null,
// showHeaderAllOverflow: null,
// contextMenu: null,
// resizeInterval: 250,
version: 0,
// 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
optimization: {
animat: true,
scrollX: {
gt: 60,
oSize: 6,
rSize: 18,
vSize: 0
},
scrollY: {
gt: 500,
oSize: 30,
rSize: 80,
vSize: 0,
rHeight: 0
}
},
tooltipConfig: {
// zIndex: 99,
theme: 'dark'
},
iconMap: {
sortAsc: 'vxe-icon--caret-top',
sortDesc: 'vxe-icon--caret-bottom',
filter: 'vxe-icon--funnel',
edit: 'vxe-icon--edit-outline',
tree: 'vxe-icon--caret-right',
jumpPrev: 'vxe-icon--d-arrow-left',
jumpNext: 'vxe-icon--d-arrow-right',
prevPage: 'vxe-icon--arrow-left',
nextPage: 'vxe-icon--arrow-right'
},
pager: {// pageSize: 10,
// pagerCount: 7,
// pageSizes: [10, 15, 20, 50, 100],
// layouts: ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total']
},
toolbar: {// storageKey: 'VXE_TABLE_CUSTOM_HIDDEN',
// setting: false,
// buttons: []
},
i18n: function i18n(key) {
return key;
}
};
var _default = GlobalConfig;
exports.default = _default;
1 change: 1 addition & 0 deletions lib/conf/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions lib/context-menu/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.TableContextMenu = void 0;

var _menu = _interopRequireDefault(require("./src/menu"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_menu.default.install = function (Vue) {
Vue.component(_menu.default.name, _menu.default);
};

var TableContextMenu = _menu.default;
exports.TableContextMenu = TableContextMenu;
var _default = _menu.default;
exports.default = _default;
1 change: 1 addition & 0 deletions lib/context-menu/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 86 additions & 0 deletions lib/context-menu/src/menu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = {
name: 'VxeTableContextMenu',
props: {
ctxMenuStore: Object
},
render: function render(h) {
var $table = this.$parent;
var _e = this._e,
ctxMenuStore = this.ctxMenuStore;
return h('div', {
class: ['vxe-table--ctxmenu-wrapper', {
show: ctxMenuStore.visible
}],
style: ctxMenuStore.style
}, ctxMenuStore.list.map(function (options, gIndex) {
return h('ul', {
class: ['vxe-ctxmenu--option-wrapper'],
key: gIndex
}, options.map(function (item, index) {
var hasChild = item.children && item.children.length;
return h('li', {
class: [{
'link--disabled': item.disabled,
'link--active': item === ctxMenuStore.selected
}],
key: "".concat(gIndex, "_").concat(index)
}, [h('a', {
class: ['vxe-ctxmenu--link'],
on: {
click: function click(evnt) {
$table.ctxMenuLinkEvent(evnt, item);
},
mouseover: function mouseover(evnt) {
$table.ctxMenuMouseoverEvent(evnt, item);
},
mouseout: function mouseout(evnt) {
$table.ctxMenuMouseoutEvent(evnt, item);
}
}
}, [h('i', {
class: ['vxe-ctxmenu--link-prefix', item.prefixIcon]
}), h('span', {
class: ['vxe-ctxmenu--link-content']
}, item.name), h('i', {
class: ['vxe-ctxmenu--link-suffix', hasChild ? item.suffixIcon || 'suffix--haschild' : item.suffixIcon]
})]), hasChild ? h('ul', {
class: ['vxe-table--ctxmenu-clild-wrapper', {
show: item === ctxMenuStore.selected && ctxMenuStore.showChild
}]
}, item.children.map(function (child, cIndex) {
return h('li', {
class: [{
'link--disabled': child.disabled,
'link--active': child === ctxMenuStore.selectChild
}],
key: "".concat(gIndex, "_").concat(index, "_").concat(cIndex)
}, [h('a', {
class: ['vxe-ctxmenu--link'],
on: {
click: function click(evnt) {
$table.ctxMenuLinkEvent(evnt, child);
},
mouseover: function mouseover(evnt) {
$table.ctxMenuMouseoverEvent(evnt, item, child);
},
mouseout: function mouseout(evnt) {
$table.ctxMenuMouseoutEvent(evnt, item, child);
}
}
}, [h('i', {
class: ['vxe-ctxmenu--link-prefix', child.prefixIcon]
}), h('span', {
class: ['vxe-ctxmenu--link-content']
}, child.name)])]);
})) : _e()]);
}));
}));
}
};
exports.default = _default;
1 change: 1 addition & 0 deletions lib/context-menu/src/menu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/context-menu/style/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('./style.css')
Empty file.
10 changes: 0 additions & 10 deletions lib/demo.html

This file was deleted.

19 changes: 19 additions & 0 deletions lib/excel/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.Excel = void 0;

var _excel = _interopRequireDefault(require("./src/excel"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_excel.default.install = function (Vue) {
Vue.component(_excel.default.name, _excel.default);
};

var Excel = _excel.default;
exports.Excel = Excel;
var _default = _excel.default;
exports.default = _default;
Loading

0 comments on commit 01a239e

Please sign in to comment.