-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
- Loading branch information
There are no files selected for viewing
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('./style.css') |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('./style.css') |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('./style.css') |
This file was deleted.
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; |