publish 3.4.2-rc.1

This commit is contained in:
梁灏 2019-05-21 11:52:45 +08:00
parent 054a8eebe2
commit 494204e572
100 changed files with 87 additions and 4613 deletions

79
dist/iview.js vendored
View file

@ -1710,8 +1710,8 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__ = __webpack_require__(112);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d027d31_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__ = __webpack_require__(319);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d027d31_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d027d31_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_676402f8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__ = __webpack_require__(319);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_676402f8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_676402f8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__ = __webpack_require__(0);
/* script */
@ -1729,8 +1729,8 @@ var __vue_module_identifier__ = null
var Component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue___default.a,
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d027d31_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4d027d31_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__["staticRenderFns"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_676402f8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_676402f8_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__["staticRenderFns"],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
@ -2552,8 +2552,8 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_select_vue__ = __webpack_require__(99);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_select_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_select_vue__);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_select_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_select_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_c30eca26_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_select_vue__ = __webpack_require__(307);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_c30eca26_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_select_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_c30eca26_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_select_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8125e8fc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_select_vue__ = __webpack_require__(307);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8125e8fc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_select_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8125e8fc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_select_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__ = __webpack_require__(0);
/* script */
@ -2571,8 +2571,8 @@ var __vue_module_identifier__ = null
var Component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_select_vue___default.a,
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_c30eca26_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_select_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_c30eca26_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_select_vue__["staticRenderFns"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8125e8fc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_select_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8125e8fc_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_select_vue__["staticRenderFns"],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
@ -4991,6 +4991,8 @@ exports.default = {
if (query === null) {
this.onQueryChange('');
this.values = [];
this.lastRemoteQuery = '';
}
},
clearSingleSelect: function clearSingleSelect() {
@ -8830,10 +8832,7 @@ exports.default = {
default: false
},
autocomplete: {
validator: function validator(value) {
return (0, _assist.oneOf)(value, ['on', 'off']);
},
type: String,
default: 'off'
},
clearable: {
@ -20345,7 +20344,8 @@ exports.default = {
dragY: null,
dragging: false
},
modalIndex: this.handleGetModalIndex() };
modalIndex: this.handleGetModalIndex(),
isMouseTriggerIn: false };
},
computed: {
@ -20434,9 +20434,17 @@ exports.default = {
}
},
handleWrapClick: function handleWrapClick(event) {
if (this.isMouseTriggerIn) {
this.isMouseTriggerIn = false;
return;
}
var className = event.target.getAttribute('class');
if (className && className.indexOf(prefixCls + '-wrap') > -1) this.handleMask();
},
handleMousedown: function handleMousedown() {
this.isMouseTriggerIn = true;
},
cancel: function cancel() {
this.close();
},
@ -24219,6 +24227,17 @@ exports.default = {
} else {
return [this.columns];
}
},
isSelectDisabled: function isSelectDisabled() {
var _this2 = this;
var isSelectDisabled = false;
if (!this.data.length) isSelectDisabled = true;
if (!this.data.find(function (item) {
(0, _newArrowCheck3.default)(this, _this2);
return !item._disabled;
}.bind(this))) isSelectDisabled = true;
return isSelectDisabled;
}
},
methods: {
@ -24251,10 +24270,10 @@ exports.default = {
this.$parent.selectAll(status);
},
handleSort: function handleSort(index, type) {
var _this2 = this;
var _this3 = this;
var column = this.columns.find(function (item) {
(0, _newArrowCheck3.default)(this, _this2);
(0, _newArrowCheck3.default)(this, _this3);
return item._index === index;
}.bind(this));
var _index = column._index;
@ -24265,10 +24284,10 @@ exports.default = {
this.$parent.handleSort(_index, type);
},
handleSortByHead: function handleSortByHead(index) {
var _this3 = this;
var _this4 = this;
var column = this.columns.find(function (item) {
(0, _newArrowCheck3.default)(this, _this3);
(0, _newArrowCheck3.default)(this, _this4);
return item._index === index;
}.bind(this));
if (column.sortable) {
@ -24295,14 +24314,14 @@ exports.default = {
this.$parent.handleFilterHide(index);
},
getColumn: function getColumn(rowIndex, index) {
var _this4 = this;
var _this5 = this;
var isGroup = this.columnRows.length > 1;
if (isGroup) {
var id = this.headRows[rowIndex][index].__id;
return this.columns.filter(function (item) {
(0, _newArrowCheck3.default)(this, _this4);
(0, _newArrowCheck3.default)(this, _this5);
return item.__id === id;
}.bind(this))[0];
} else {
@ -27941,7 +27960,7 @@ if (typeof window !== 'undefined' && window.Vue) {
}
var API = (0, _extends3.default)({
version: '3.4.1',
version: '3.4.2-rc.1',
locale: _index2.default.use,
i18n: _index2.default.i18n,
install: install,
@ -37317,8 +37336,8 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modal_vue__ = __webpack_require__(199);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modal_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modal_vue__);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modal_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modal_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_206faf29_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modal_vue__ = __webpack_require__(483);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_206faf29_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modal_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_206faf29_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modal_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2a5bc433_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modal_vue__ = __webpack_require__(483);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2a5bc433_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modal_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2a5bc433_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modal_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__ = __webpack_require__(0);
/* script */
@ -37336,8 +37355,8 @@ var __vue_module_identifier__ = null
var Component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_modal_vue___default.a,
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_206faf29_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modal_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_206faf29_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modal_vue__["staticRenderFns"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2a5bc433_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modal_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2a5bc433_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_modal_vue__["staticRenderFns"],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
@ -37358,7 +37377,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var render = function render() {
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "transfer-dom", rawName: "v-transfer-dom" }], attrs: { "data-transfer": _vm.transfer } }, [_c('transition', { attrs: { "name": _vm.transitionNames[1] } }, [_vm.showMask ? _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }], class: _vm.maskClasses, style: _vm.wrapStyles, on: { "click": _vm.handleMask } }) : _vm._e()]), _vm._v(" "), _c('div', { class: _vm.wrapClasses, style: _vm.wrapStyles, on: { "click": _vm.handleWrapClick } }, [_c('transition', { attrs: { "name": _vm.transitionNames[0] }, on: { "after-leave": _vm.animationFinish } }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }], class: _vm.classes, style: _vm.mainStyles }, [_c('div', { ref: "content", class: _vm.contentClasses, style: _vm.contentStyles, on: { "click": _vm.handleClickModal } }, [_vm.closable ? _c('a', { class: [_vm.prefixCls + '-close'], on: { "click": _vm.close } }, [_vm._t("close", [_c('Icon', { attrs: { "type": "ios-close" } })])], 2) : _vm._e(), _vm._v(" "), _vm.showHead ? _c('div', { class: [_vm.prefixCls + '-header'], on: { "mousedown": _vm.handleMoveStart } }, [_vm._t("header", [_c('div', { class: [_vm.prefixCls + '-header-inner'] }, [_vm._v(_vm._s(_vm.title))])])], 2) : _vm._e(), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-body'] }, [_vm._t("default")], 2), _vm._v(" "), !_vm.footerHide ? _c('div', { class: [_vm.prefixCls + '-footer'] }, [_vm._t("footer", [_c('i-button', { attrs: { "type": "text", "size": "large" }, nativeOn: { "click": function click($event) {
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "transfer-dom", rawName: "v-transfer-dom" }], attrs: { "data-transfer": _vm.transfer } }, [_c('transition', { attrs: { "name": _vm.transitionNames[1] } }, [_vm.showMask ? _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }], class: _vm.maskClasses, style: _vm.wrapStyles, on: { "click": _vm.handleMask } }) : _vm._e()]), _vm._v(" "), _c('div', { class: _vm.wrapClasses, style: _vm.wrapStyles, on: { "click": _vm.handleWrapClick } }, [_c('transition', { attrs: { "name": _vm.transitionNames[0] }, on: { "after-leave": _vm.animationFinish } }, [_c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }], class: _vm.classes, style: _vm.mainStyles, on: { "mousedown": _vm.handleMousedown } }, [_c('div', { ref: "content", class: _vm.contentClasses, style: _vm.contentStyles, on: { "click": _vm.handleClickModal } }, [_vm.closable ? _c('a', { class: [_vm.prefixCls + '-close'], on: { "click": _vm.close } }, [_vm._t("close", [_c('Icon', { attrs: { "type": "ios-close" } })])], 2) : _vm._e(), _vm._v(" "), _vm.showHead ? _c('div', { class: [_vm.prefixCls + '-header'], on: { "mousedown": _vm.handleMoveStart } }, [_vm._t("header", [_c('div', { class: [_vm.prefixCls + '-header-inner'] }, [_vm._v(_vm._s(_vm.title))])])], 2) : _vm._e(), _vm._v(" "), _c('div', { class: [_vm.prefixCls + '-body'] }, [_vm._t("default")], 2), _vm._v(" "), !_vm.footerHide ? _c('div', { class: [_vm.prefixCls + '-footer'] }, [_vm._t("footer", [_c('i-button', { attrs: { "type": "text", "size": "large" }, nativeOn: { "click": function click($event) {
return _vm.cancel($event);
} } }, [_vm._v(_vm._s(_vm.localeCancelText))]), _vm._v(" "), _c('i-button', { attrs: { "type": "primary", "size": "large", "loading": _vm.buttonLoading }, nativeOn: { "click": function click($event) {
return _vm.ok($event);
@ -39940,8 +39959,8 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_table_head_vue__ = __webpack_require__(218);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_table_head_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_table_head_vue__);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_table_head_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_table_head_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_30bd3237_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_table_head_vue__ = __webpack_require__(531);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_30bd3237_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_table_head_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_30bd3237_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_table_head_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_43614e5d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_table_head_vue__ = __webpack_require__(531);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_43614e5d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_table_head_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_43614e5d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_table_head_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__ = __webpack_require__(0);
/* script */
@ -39959,8 +39978,8 @@ var __vue_module_identifier__ = null
var Component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_table_head_vue___default.a,
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_30bd3237_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_table_head_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_30bd3237_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_table_head_vue__["staticRenderFns"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_43614e5d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_table_head_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_43614e5d_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_table_head_vue__["staticRenderFns"],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
@ -40021,7 +40040,7 @@ var render = function render() {
return _c('col', { attrs: { "width": _vm.setCellWidth(column) } });
}), _vm._v(" "), _vm.$parent.showVerticalScrollBar ? _c('col', { attrs: { "width": _vm.$parent.scrollBarWidth } }) : _vm._e()], 2), _vm._v(" "), _c('thead', _vm._l(_vm.headRows, function (cols, rowIndex) {
return _c('tr', [_vm._l(cols, function (column, index) {
return _c('th', { class: _vm.alignCls(column), attrs: { "colspan": column.colSpan, "rowspan": column.rowSpan } }, [_c('div', { class: _vm.cellClasses(column) }, [column.type === 'expand' ? [!column.renderHeader ? _c('span', [_vm._v(_vm._s(column.title || ''))]) : _c('render-header', { attrs: { "render": column.renderHeader, "column": column, "index": index } })] : column.type === 'selection' ? [_c('Checkbox', { attrs: { "value": _vm.isSelectAll, "disabled": !_vm.data.length }, on: { "on-change": _vm.selectAll } })] : [!column.renderHeader ? _c('span', { class: (_obj = {}, _obj[_vm.prefixCls + '-cell-sort'] = column.sortable, _obj), on: { "click": function click($event) {
return _c('th', { class: _vm.alignCls(column), attrs: { "colspan": column.colSpan, "rowspan": column.rowSpan } }, [_c('div', { class: _vm.cellClasses(column) }, [column.type === 'expand' ? [!column.renderHeader ? _c('span', [_vm._v(_vm._s(column.title || ''))]) : _c('render-header', { attrs: { "render": column.renderHeader, "column": column, "index": index } })] : column.type === 'selection' ? [_c('Checkbox', { attrs: { "value": _vm.isSelectAll, "disabled": _vm.isSelectDisabled }, on: { "on-change": _vm.selectAll } })] : [!column.renderHeader ? _c('span', { class: (_obj = {}, _obj[_vm.prefixCls + '-cell-sort'] = column.sortable, _obj), on: { "click": function click($event) {
_vm.handleSortByHead(_vm.getColumn(rowIndex, index)._index);
} } }, [_vm._v(_vm._s(column.title || '#'))]) : _c('render-header', { attrs: { "render": column.renderHeader, "column": column, "index": index } }), _vm._v(" "), column.sortable ? _c('span', { class: [_vm.prefixCls + '-sort'] }, [_c('i', { staticClass: "ivu-icon ivu-icon-md-arrow-dropup", class: { on: _vm.getColumn(rowIndex, index)._sortType === 'asc' }, on: { "click": function click($event) {
_vm.handleSort(_vm.getColumn(rowIndex, index)._index, 'asc');

2
dist/iview.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/iview.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/iview.min.js.gz vendored

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("iview/locale",["vue"],t):"object"==typeof exports?exports["iview/locale"]=t(require("vue")):e["iview/locale"]=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/dist/locale/",a(a.s=28)}({0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){n||void 0!==window.iview&&("langs"in iview||(iview.langs={}),iview.langs[e.i.locale]=e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(a(1)).default.prototype.$isServer},1:function(t,a){t.exports=e},28:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={i:{locale:"tr-TR",select:{placeholder:"Seç",noMatch:"Eşleşen veri yok",loading:"yükleme"},table:{noDataText:"Veri Yok",noFilteredDataText:"Süzülen veri yok",confirmFilter:"Onayla",resetFilter:"Sıfırla",clearFilter:"Hepsi"},datepicker:{selectDate:"Tarih seç",selectTime:"Zaman seç",startTime:"Başlangıç",endTime:"Bitişe",clear:"Temizle",ok:"Tamam",datePanelLabel:"[mmmm] [yyyy]",month:"",month1:"Ocak",month2:"Şubat",month3:"Mart",month4:"Nisan",month5:"Mayıs",month6:"Haziran",month7:"Temmuz",month8:"Ağustos",month9:"Eylül",month10:"Ekim",month11:"Kasım",month12:"Aralık",year:"",weekStartDay:"0",weeks:{sun:"Paz",mon:"Pzt",tue:"Sal",wed:"Çar",thu:"Per",fri:"Cum",sat:"Cmt"},months:{m1:"Oca",m2:"Şub",m3:"Mar",m4:"Nis",m5:"May",m6:"Haz",m7:"Tem",m8:"Ağu",m9:"Eyl",m10:"Ekm",m11:"Kas",m12:"Ara"}},transfer:{titles:{source:"Kaynak",target:"Hedef"},filterPlaceholder:"Arama yapın",notFoundText:"Bulunamadı"},modal:{okText:"Tamam",cancelText:"İptal"},poptip:{okText:"Tamam",cancelText:"İptal"},page:{prev:"Önceki",next:"Sonraki",total:"Toplam",item:"öğe",items:"öğeler",prev5:"Önceki 5 Sayfa",next5:"Sonraki 5 Sayfa",page:"/sayfa",goto:"Git",p:""},rate:{star:"Yıldız",stars:"Yıldız"},tree:{emptyText:"Veri Yok"}}};(0,function(e){return e&&e.__esModule?e:{default:e}}(a(0)).default)(n),t.default=n}})});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("iview/locale",["vue"],t):"object"==typeof exports?exports["iview/locale"]=t(require("vue")):e["iview/locale"]=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/dist/locale/",a(a.s=28)}({0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){n||void 0!==window.iview&&("langs"in iview||(iview.langs={}),iview.langs[e.i.locale]=e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(a(1)).default.prototype.$isServer},1:function(t,a){t.exports=e},28:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={i:{locale:"tr-TR",select:{placeholder:"Seç",noMatch:"Eşleşen veri yok",loading:"yükleme"},table:{noDataText:"Veri Yok",noFilteredDataText:"Süzülen veri yok",confirmFilter:"Onayla",resetFilter:"Sıfırla",clearFilter:"Hepsi"},datepicker:{selectDate:"Tarih seç",selectTime:"Zaman seç",startTime:"Başlangıç",endTime:"Bitişe",clear:"Temizle",ok:"Tamam",datePanelLabel:"[mmmm] [yyyy]",month:"",month1:"Ocak",month2:"Şubat",month3:"Mart",month4:"Nisan",month5:"Mayıs",month6:"Haziran",month7:"Temmuz",month8:"Ağustos",month9:"Eylül",month10:"Ekim",month11:"Kasım",month12:"Aralık",year:"",weekStartDay:"0",weeks:{sun:"Paz",mon:"Pzt",tue:"Sal",wed:"Çar",thu:"Per",fri:"Cum",sat:"Cmt"},months:{m1:"Oca",m2:"Şub",m3:"Mar",m4:"Nis",m5:"May",m6:"Haz",m7:"Tem",m8:"Ağu",m9:"Eyl",m10:"Ekm",m11:"Kas",m12:"Ara"}},transfer:{titles:{source:"Kaynak",target:"Hedef"},filterPlaceholder:"Arama yapın",notFoundText:"Bulunamadı"},modal:{okText:"Tamam",cancelText:"İptal"},poptip:{okText:"Tamam",cancelText:"İptal"},page:{prev:"Önceki",next:"Sonraki",total:"Toplam",item:"öğe",items:"öğeler",prev5:"Önceki 5 Sayfa",next5:"Sonraki 5 Sayfa",page:"/sayfa",goto:"Git",p:""},rate:{star:"Yıldız",stars:"Yıldız"},time:{before:" önce",after:" sonra",just:"hemen şimdi",seconds:" saniye",minutes:" dakika",hours:" saat",days:" gün"},tree:{emptyText:"Veri Yok"}}};(0,function(e){return e&&e.__esModule?e:{default:e}}(a(0)).default)(n),t.default=n}})});
//# sourceMappingURL=tr-TR.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

22
dist/types/affix.d.ts vendored
View file

@ -1,22 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Affix extends Vue {
/**
*
* @default 0
*/
'offset-top'?: number;
/**
*
*/
'offset-bottom'?: number;
/**
*
* @param value true | false
*/
$emit(eventName: 'on-change', value: boolean): this;
}

48
dist/types/alert.d.ts vendored
View file

@ -1,48 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Alert extends Vue {
/**
* infosuccesswarningerror
* @default info
*/
type?: 'info' | 'success' | 'warning' | 'error';
/**
*
* @default false
*/
closable?: boolean;
/**
*
* @default false
*/
'show-icon'?: boolean;
/**
*
*/
$emit(eventName: 'on-close', event: HTMLElement): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
desc: VNode[];
/**
*
*/
icon: VNode[];
/**
*
*/
close: VNode[];
};
}

View file

@ -1,67 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Anchor extends Vue {
/**
*
* @default true
*/
affix?: boolean;
/**
*
* @default 0
*/
'offset-top'?: number;
/**
*
*/
'offset-bottom'?: number;
/**
* px
* @default 5
*/
bounds?: number;
/**
*
* @default 0
*/
'scroll-offset'?: number;
/**
*
*/
container?: string | HTMLElement;
/**
*
* @default false
*/
'show-ink'?: boolean;
/**
*
*/
$emit(eventName: 'on-select', href: string): this;
/**
*
*/
$emit(eventName: 'on-change', []): this;
}
export declare interface AnchorLink extends Vue {
/**
*
* @default
*/
href?: string;
/**
*
* @default
*/
title?: string;
/**
*
* @default 0
*/
'scroll-offset'?: number;
}

View file

@ -1,75 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface AutoComplete extends Vue {
/**
* 使 v-model
*/
value?: string | number;
/**
*
* @default []
*/
data?: string[] | number[];
/**
*
* @default false
*/
clearable?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
*/
placeholder?: string;
/**
* largesmalldefault
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
*/
icon?: string;
/**
* value option
* option true false,
* @default false
*/
'filter-method'?: boolean | (() => boolean);
/**
* body Tabs fixed Table 使
* ,
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: string;
/**
* option input value
*/
$emit(eventName: 'on-change', value: string | number): this;
/**
* value
*/
$emit(eventName: 'on-select', value: string | number): this;
/**
*
*/
$emit(eventName: 'on-search', query: string): this;
/**
*
*/
$emit(eventName: 'on-focus', event: KeyboardEvent): this;
/**
*
*/
$emit(eventName: 'on-blur', event: KeyboardEvent): this;
}

View file

@ -1,30 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Avatar extends Vue {
/**
* circlesquare
* @default circle
*/
shape?: 'circle' | 'square';
/**
* largesmalldefault
* @default default
*/
size?: 'large'|'small'|'default';
/**
*
*/
src?: string;
/**
* Icon
*/
icon?: string;
/**
*
*/
'custom-icon'?: string;
}

View file

@ -1,32 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface BackTop extends Vue {
/**
* BackTop组件
* @default 400
*/
height?: number;
/**
*
* @default 30
*/
bottom?: number;
/**
*
* @default 30
*/
right?: number;
/**
*
* @default 1000
*/
duration?: number;
/**
*
*/
$emit(eventName: 'on-click'): this;
}

47
dist/types/badge.d.ts vendored
View file

@ -1,47 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Badge extends Vue {
/**
* overflowCount时${overflowCount}+ 0
*/
count?: number | string;
/**
*
* @default 99
*/
'overflow-count'?: number | string;
/**
* dot count为 0
* @default false
*/
dot?: boolean
/**
* class名称dot
*/
'class-name'?: string;
/**
* 使 successprimarynormalerrorwarninginfo
*/
type?: 'success' | 'primary' | 'normal' | 'error' | 'warning' | 'info';
/**
* 0 Badge
* @default false
*/
'show-zero'?: boolean;
/**
* Badge successprocessingdefaulterrorwarning
*/
status?: 'success' | 'processing' | 'default' | 'error' | 'warning';
/**
* status
*/
text?: string;
/**
* [x, y]
*/
offset?: number[];
}

View file

@ -1,30 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Breadcrumb extends Vue {
/**
*
* @default /
*/
separator?: string;
}
export declare interface BreadcrumbItem extends Vue {
/**
*
*/
to?: string | object;
/**
* replace history
* @default false
*/
replace?: boolean;
/**
* a target
* @default _self
*/
target?: '_blank' | '_self' | '_parent' | '_top';
}

View file

@ -1,86 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Button extends Vue {
/**
* defaultprimarydashedtextinfosuccesswarningerror或者不设置
* @default default
*/
type?: '' | 'default' | 'primary' | 'dashed' | 'text' | 'info' | 'success' | 'warning' | 'error';
/**
* 使
* @default false
*/
ghost?: boolean;
/**
* largesmalldefault或者不设置
* @default default
*/
size?: '' | 'large' | 'small' | 'default';
/**
* circle或者不设置
*/
shape?: '' | 'circle';
/**
* 100%
* @default false
*/
long?: boolean;
/**
* button原生的typebuttonsubmitreset
* @default button
*/
'html-type'?: 'button' | 'submit' | 'reset';
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
loading?: boolean;
/**
*
*/
icon?: string;
/**
*
*/
'custom-icon'?: string;
/**
* vue-router
*/
to?: string | object;
/**
* replace history
* @default false
*/
replace?: boolean;
/**
* a target
* @default _self
*/
target?: '_blank' | '_self' | '_parent' | '_top';
}
export declare interface ButtonGroup extends Vue {
/**
* largesmalldefault或者不设置
* @default default
*/
size?: 'large' | 'small' | 'default';
/**
* circle或者不设置
*/
shape?: '' | 'circle';
/**
*
* @default false
*/
vertical?: boolean;
}

53
dist/types/card.d.ts vendored
View file

@ -1,53 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Card extends Vue {
/**
* 使
* @default true
*/
'bordered'?: boolean;
/**
*
* @default false
*/
'dis-hover'?: boolean;
/**
* 使
* @default false
*/
'shadow'?: boolean;
/**
* px
* @default 16
*/
'padding'?: number;
/**
* 2.12.0
*/
title?: string;
/**
* 2.12.0
*/
icon?: string;
/**
* slot插槽对象
*/
$slots: {
/**
* 使<p>
*/
title: VNode[];
/**
*
*/
extra: VNode[];
/**
*
*/
'': VNode[];
};
}

View file

@ -1,65 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Carousel extends Vue {
/**
* 0 使 v-model
* @default 0
*/
value?: number;
/**
* auto px
* @default auto
*/
height?: string | number;
/**
*
* @default false
*/
loop?: boolean;
/**
*
*/
autoplay?: boolean;
/**
*
* @default 2000
*/
'autoplay-speed'?: number;
/**
* inside outsidenone
* @default inside
*/
dots?: 'inside' | 'outside' | 'none';
/**
*
* @default false
*/
'radius-dot'?: boolean;
/**
* clickhover
* @default click
*/
trigger?: 'click' | 'hover';
/**
* hoveralwaysnever
* @default hover
*/
arrow?: 'hover' | 'always' | 'never';
/**
*
* @default ease
*/
easing?: string;
/**
*
*/
$emit(eventName: 'on-change', oldValue: number, value: number): this;
}
export declare interface CarouselItem extends Vue {
}

View file

@ -1,84 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Cascader extends Vue {
/**
*
* @default []
*/
data?: object[];
/**
*
* @default []
*/
value?: object[];
/**
*
* @default label => label.join(' / ')
*/
'render-format'?: (label?: string[]) => string
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default true
*/
clearable?: boolean;
/**
*
* @default
*/
placeholder?: string;
/**
* click hover
* @default click
*/
trigger?: 'click' | 'hover';
/**
* true
* @default false
*/
'change-on-select'?: boolean;
/**
* large和small或者不填
*/
size?: '' | 'large' | 'small';
/**
* loading
*/
'load-data'?: () => void;
/**
*
* @default false
*/
filterable?: boolean;
/**
*
* @default
*/
'not-found-text'?: string;
/**
* body Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: string;
/**
* value valueselectedData
*/
$emit(eventName: 'on-change', value: object, selectedData: object[]): this;
/**
*
*/
$emit(eventName: 'on-visible-change', status: boolean): this;
}

81
dist/types/cell.d.ts vendored
View file

@ -1,81 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Cell extends Vue {
/**
*
*/
name?: string | number;
/**
*
*/
title?: string;
/**
*
*/
label?: string;
/**
*
*/
extra?: string;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
selected?: boolean;
/**
* vue-router
*/
to?: string | object;
/**
* replace history
* @default false
*/
replace?: boolean;
/**
* a target
* @default _self
*/
target?: '_blank' | '_self' | '_parent' | '_top';
/**
* slot插槽对象
*/
$slots: {
/**
* title
*/
'': VNode[];
/**
* Icon
*/
icon: VNode[];
/**
* label
*/
label: VNode[];
/**
* extra
*/
extra: VNode[];
/**
*
*/
arrow: VNode[];
}
}
export declare interface CellGroup extends Vue {
/**
*
*
*/
$emit(eventName: 'on-click', name: string): this;
}

View file

@ -1,61 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Checkbox extends Vue {
/**
* 使使 v-model
* @default false
*/
value?: boolean;
/**
* 使 value
*/
label?: string | number | boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
* indeterminate
* @default false
*/
indeterminate?: boolean;
/**
* largesmalldefault
*/
size?: '' | 'large' | 'small' | 'default';
/**
* 使 1 0
* @default true
*/
'true-value'?: string | number | boolean;
/**
* 使 1 0
* @default false
*/
'false-value'?: string | number | boolean;
/**
* 使
*/
$emit(eventName: 'on-change', value: boolean): this;
}
export declare interface CheckboxGroup extends Vue {
/**
* 使 v-model
* @default []
*/
value?: string[] | number[] | boolean[];
/**
* largesmalldefault
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
*/
$emit(eventName: 'on-change', values: Array<string | number | boolean>): this;
}

View file

@ -1,57 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Circle extends Vue {
/**
*
* @default 0
*/
percent?: number;
/**
* px
* @default 120
*/
size?: number;
/**
* squareround
* @default round
*/
'stroke-linecap'?: 'square' | 'round';
/**
* 线 px
* @default 6
*/
'stroke-width'?: number;
/**
*
* @default #2db7f5
*/
'stroke-color'?: string
/**
* 线 px
* @default 5
*/
'trail-width'?: number;
/**
*
* @default #eaeef2
*/
'trail-color'?: string;
/**
*
* @default false
*/
dashboard?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
};
}

View file

@ -1,53 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Collapse extends Vue {
/**
* name使 v-model
*/
value?: string[] | string;
/**
*
* @default false
*/
accordion?: boolean;
/**
*
* @default false
*/
simple?: boolean;
/**
* key
* @default []
*/
$emit(eventName: 'on-change', []): this;
}
export declare interface CollapsePanel extends Vue {
/**
* name Collapse的value对应
* @default index的值
*/
name?: string;
/**
*
* @default false
*/
'hide-arrow'?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
content: VNode[];
};
}

View file

@ -1,64 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface ColorPicker extends Vue {
/**
* 使 v-model
*/
value?: string;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
editable?: boolean;
/**
*
* @default false
*/
alpha?: boolean;
/**
*
* @default true
*/
hue?: boolean;
/**
*
* @default false
*/
recommend?: boolean;
/**
*
*/
colors?: string[];
/**
* hslhsvhexrgb
* @default alpha rgb hex
*/
format?: 'hsl' | 'hsv' | 'hex' | 'rgb';
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default
*/
$emit(eventName: 'on-change', value: string): this;
/**
*
* @default
*/
$emit(eventName: 'on-active-change', value: string): this;
/**
*
*/
$emit(eventName: 'on-open-change', value: boolean): this;
}

View file

@ -1,8 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Content extends Vue {
}

View file

@ -1,153 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface DatePicker extends Vue {
/**
* datedaterangedatetimedatetimerangeyearmonth'|'date
*/
type?: 'date' | 'daterange' | 'datetime' | 'datetimerange' | 'year' | 'month';
/**
* JavaScript Date new Date()
* value 使 v-model Date @on-change 使
*/
value?: Date;
/**
*
* date | daterange?: yyyy-MM-dd
* datetime | datetimerangeyyyy-MM-dd HH:mm:ss
* yearyyyy
* monthyyyy-MM
*/
format?: string;
/**
*
* top,top-start,top-end,
* bottom,bottom-start,bottom-end,
* left,left-start,left-end,
* right,right-start,right-end
* 2.12.0
* @default bottom-start
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end'
/**
*
* @default
*/
placeholder?: string;
/**
*
*/
options?: DatePickerOptions;
/**
* daterange datetimerange
* @default false
*/
'split-panels'?: boolean;
/**
* date
* @default false
*/
multiple?: boolean;
/**
*
* @default false
*/
'show-week-numbers': boolean;
/**
*
*/
'start-date'?: Date;
/**
* ,
* @default false
*/
confirm?: boolean;
/**
* true false 使
* slot confirm 使
* @default null
*/
open?: boolean;
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default true
*/
clearable?: boolean;
/**
* open
* @default false
*/
readonly?: boolean;
/**
* 使 slot
* @default true
*/
editable?: boolean;
/**
* body Tabs fixed Table 使
* ,
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: string;
/**
* type datetime datetimerange TimePicker
* steps:time-picker-options="{steps: [1, 10, 10]}"
* @default {}
*/
'time-picker-options'?: object;
/**
* 2016-01-01
*/
$emit(eventName: 'on-change', value: string): this;
/**
*
*/
$emit(eventName: 'on-open-change', value: boolean): this;
/**
* confirm
*/
$emit(eventName: 'on-ok'): this;
/**
* confirm clearable = true
*/
$emit(eventName: 'on-clear'): this;
/**
* slot插槽对象
*/
$slots: {
/**
* open 使
*/
'': VNode[];
};
}
export declare interface DatePickerOptions {
/**
*
* text
* value?: 返回指定的日期使 onClick
* onClick?: 点击时的回调 Vue 使
*/
shortcuts?: { text?: string, value?: () => void, onClick?: () => void }[];
/**
* Boolean
*/
disabledDate(): boolean;
}

View file

@ -1,23 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Divider extends Vue {
/**
* horizontal vertical
* @default horizontal
*/
type?: 'horizontal' | 'vertical';
/**
* 线 leftright center
* @default center
*/
orientation?: 'left' | 'right' | 'center';
/**
* 线
* @default false
*/
dashed?: boolean;
}

View file

@ -1,95 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Drawer extends Vue {
/**
* 使 v-model
* @default false
*/
value?: boolean;
/**
* 使 slot title
* @default center
*/
title?: string;
/**
* 100 100
* @default 256
*/
width?: number | string;
/**
*
* @default true
*/
closable?: boolean;
/**
*
* @default true
*/
'mask-closable'?: boolean;
/**
*
* @default true
*/
mask?: boolean;
/**
*
*/
'mask-style'?: object;
/**
*
*/
styles?: object;
/**
*
* @default false
*/
scrollable?: boolean;
/**
* left right
* @default right
*/
placement?: 'left' | 'right';
/**
*
* @default true
*/
transfer?: boolean;
/**
*
*/
'class-name'?: string;
/**
* transfer
* @default false
*/
'inner'?: boolean;
/**
*
*/
$emit(eventName: 'on-close'): this;
/**
*
*/
$emit(eventName: 'on-visible-change', value: boolean): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
header: VNode[];
/**
*
*/
close: VNode[];
};
}

View file

@ -1,82 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Dropdown extends Vue {
/**
* hoverclickcontextMenucustom使 custom visible 使
* @default hover
*/
trigger?: 'hover'|'click'|'custom'|'contextMenu';
/**
* trigger = 'custom' 使
* @default false
*/
visible?: boolean;
/**
*
* toptop-starttop-endbottombottom-startbottom-end
* leftleft-startleft-endrightright-startright-end
* 2.12.0
* @default bottom
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
/**
* body Tabs fixed Table 使
* @default false
*/
transfer?: boolean;
/**
*
*
*/
$emit(eventName: 'on-click', value: string): this;
/**
*
*/
$emit(eventName: 'on-visible-change', value: boolean): this;
/**
*
*/
$emit(eventName: 'on-clickoutside', event: object): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
* DropdownMenu
*/
list: VNode[];
};
}
export declare interface DropdownMenu extends Vue {
}
export declare interface DropdownItem extends Vue {
/**
*
*/
name?: string;
/**
*
* @default false
*/
disabled?: boolean;
/**
* 线
* @default false
*/
divided?: boolean;
/**
*
* @default false
*/
selected?: boolean;
}

View file

@ -1,8 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Footer extends Vue {
}

100
dist/types/form.d.ts vendored
View file

@ -1,100 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Form extends Vue {
/**
*
*/
model?: object;
/**
* async-validator
*/
rules?: object;
/**
*
* @default false
*/
inline?: boolean;
/**
* leftrighttop
* @default right
*/
'label-position'?: 'left'|'right'|'top';
/**
* FormItem Form label-width
*/
'label-width'?: number;
/**
*
* @default true
*/
'show-message'?: boolean;
/**
* Boolean
*/
validate(callback?: (valid?: boolean) => void): void;
/**
* 1 prop2
*/
validateField(prop?: string, callback?: (valid?: boolean) => void): void;
/**
*
*/
resetFields(): void;
}
export declare interface FormItem extends Vue {
/**
* model
*/
prop?: string;
/**
*
*/
label?: string;
/**
*
*/
'label-width'?: number;
/**
* label for element-id label
*/
'label-for'?: string;
/**
*
*/
required?: boolean;
/**
*
*/
rules?: object | Array<any>;
/**
* , 使error
*/
error?: string;
/**
*
* @default true
*/
'show-message'?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
* label
*/
label: VNode[];
};
}

72
dist/types/grid.d.ts vendored
View file

@ -1,72 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Row extends Vue {
/**
* px
* @default 0
*/
gutter?: number;
/**
* flex或不选
*/
type?: string;
/**
* lex topmiddlebottom
*/
align?: 'top'|'middle'|'bottom';
/**
* flex startendcenterspace-aroundspace-between
*/
justify?: 'start'|'end'|'center'|'space-around'|'space-between';
/**
* class名称
*/
'class-name'?: string;
}
export declare interface Col extends Vue {
/**
* 0~24 0 相当于display:none
*/
span?: number | string;
/**
* flex布局模式下有效
*/
order?: number | string;
/**
*
*/
offset?: number | string;
/**
*
*/
push?: number | string;
/**
*
*/
pull?: number | string;
/**
* class名称
*/
'class-name'?: string;
/**
* <768px 响应式栅格可为栅格数或一个包含其他属性的对象
*/
xs?: number | object;
/**
* 768px
*/
sm?: number | object;
/**
* 992px
*/
md?: number | object;
/**
* 1200px
*/
lg?: number | object;
}

View file

@ -1,8 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Header extends Vue {
}

20
dist/types/icon.d.ts vendored
View file

@ -1,20 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Icon extends Vue {
/**
*
*/
type?: string;
/**
* px
*/
size?: number | string;
/**
*
*/
color?: string;
}

10
dist/types/index.d.ts vendored
View file

@ -1,10 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import iView from './iview';
export default iView;
export as namespace iView;
export * from './iview.components';

View file

@ -1,80 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface InputNumber extends Vue {
/**
* Infinity
*/
max?: number;
/**
* -Infinity
*/
min?: number;
/**
* 使 v-model 1
*/
value?: number;
/**
* 1
*/
step?: number;
/**
* largesmalldefault或者不填
*/
size?: '' | 'large' | 'small' | 'default';
/**
* false
*/
disabled?: boolean;
/**
*
* @default
*/
placeholder?: string;
/**
*
*/
formatter?: () => void;
/**
* formatter formatter 使
*/
parser?: () => void;
/**
*
* @default false
*/
readonly?: boolean;
/**
*
* @default true
*/
editable?: boolean;
/**
*
*/
precision?: number;
/**
* id Form
*/
'element-id'?: string;
/**
* false
* @default true
*/
'active-change'?: boolean;
/**
*
*/
$emit(eventName: 'on-change', value: number): this;
/**
*
*/
$emit(eventName: 'on-focus', event: KeyboardEvent): this;
/**
*
*/
$emit(eventName: 'on-blur', event: KeyboardEvent): this;
}

168
dist/types/input.d.ts vendored
View file

@ -1,168 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Input extends Vue {
/**
* textpasswordtextareaurlemaildate
* @default text
*/
type?: 'text' | 'password' | 'textarea' | 'url' | 'email' | 'date';
/**
* 使 v-model
* @default
*/
value?: string | number;
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
*/
placeholder?: string;
/**
*
* @default false
*/
clearable?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
readonly?: boolean;
/**
*
*/
maxlength?: number;
/**
* text
*/
icon?: string;
/**
*
* @default false
*/
prefix?: string;
/**
*
* @default false
*/
suffix?: String;
/**
*
* @default false
*/
search?: boolean;
/**
* search
* @default false
*/
'enter-button'?: boolean | string;
/**
* textarea
* @default 2
*/
rows?: number;
/**
* textarea { minRows: 2, maxRows: 6 }
* @default false
*/
autosize?: boolean | { minRows?: number, maxRows?: number };
/**
* number
* @default false
*/
number?: boolean;
/**
*
* @default false
*/
autofocus?: boolean;
/**
* off on,off
*/
autocomplete?: string;
/**
* id Form
*/
'element-id'?: string;
/**
* spellcheck
* @default false
*/
spellcheck?: boolean;
/**
* wrap hard soft textarea
* @default soft
*/
wrap?: 'hard' | 'soft';
/**
*
*/
$emit(eventName: 'on-enter'): this;
/**
* icon
*/
$emit(eventName: 'on-click'): this;
/**
*
*/
$emit(eventName: 'on-change', event: string): this;
/**
*
*/
$emit(eventName: 'on-focus'): this;
/**
*
*/
$emit(eventName: 'on-blur'): this;
/**
* keyup
*/
$emit(eventName: 'on-keyup', event: KeyboardEvent): this;
/**
* keydown
*/
$emit(eventName: 'on-keydown', event: KeyboardEvent): this;
/**
* keypress
*/
$emit(eventName: 'on-keypress', event: KeyboardEvent): this;
/**
* search
*/
$emit(eventName: 'on-search', value: string): this;
/**
*
*/
focus(): void;
/**
* slot插槽对象
*/
$slots: {
/**
* text
*/
prepend: VNode[];
/**
* text
*/
append: VNode[];
/**
*
*/
prefix: VNode[];
/**
*
*/
suffix: VNode[];
};
}

View file

@ -1,91 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export { Affix } from './affix';
export { Alert } from './alert';
export { Anchor, AnchorLink } from './anchor';
export { AutoComplete } from './auto-complete';
export { Avatar } from './avatar';
export { BackTop } from './back-top';
export { Badge } from './badge';
export { Breadcrumb, BreadcrumbItem } from './breadcrumb';
export { Button, ButtonGroup } from './button';
export { Card } from './card';
export { Carousel, CarouselItem } from './carousel';
export { Cascader } from './cascader';
export { Cell, CellGroup } from './cell';
export { Checkbox, CheckboxGroup } from './checkbox';
export { Circle, Circle as ICircle } from './circle';
export { Collapse, CollapsePanel } from './collapse';
export { ColorPicker } from './color-picker';
export { Content } from './content';
export { DatePicker, DatePickerOptions } from './date-picker';
export { Divider } from './divider';
export { Drawer } from './drawer';
export { Dropdown, DropdownMenu, DropdownItem } from './dropdown';
export { Footer } from './footer';
export { Form, FormItem } from './form';
export { Row, Col } from './grid';
export { Header } from './header';
export { Icon } from './icon';
export { Input } from './input';
export { InputNumber } from './input-number';
export { Scroll } from './scroll';
export { Split } from './split';
export { Layout } from './layout';
export { LoadingBar, LoadingBarConfig } from './loading-bar';
export { Menu, MenuGroup, MenuItem, MenuSub } from './menu';
export { Message, MessageConfig } from './message';
export { Modal, ModalInstance, ModalConfig } from './modal';
export { Notice, NoticeConfig, NoticeGlobalConfig } from './notice';
export { Page } from './page';
export { Poptip } from './poptip';
export { Progress } from './progress';
export { Radio, RadioGroup } from './radio';
export { Rate } from './rate';
export { Select, Option, OptionGroup } from './select';
export { Sider } from './sider';
export { Slider } from './slider';
export { Spin } from './spin';
export { Steps, StepsStep } from './steps';
export { Switch, Switch as ISwitch } from './switch';
export { Table, TableColumn, TableRenderCreateElementData, TableColumnRenderParams, TableRenderCreateElementResult, TableColumnRenderHeadParams, TableExportCsvParams } from './table';
export { Tabs, TabsPane } from './tabs';
export { Tag } from './tag';
export { Time } from './time';
export { Timeline, TimelineItem } from './timeline';
export { TimePicker } from './time-picker';
export { Tooltip } from './tooltip';
export { Transfer } from './transfer';
export { Tree, TreeChild } from './tree';
export { Upload } from './upload';
declare const API: {
version: string;
locale: (l:any) => void;
i18n: (fn:any) => void;
install: (
Vue: Vue,
opts: {
locale?: any;
i18n?: any;
size?: any;
transfer?: any;
}
) => void;
lang: (code: string) => void;
};
export default API;
declare module 'vue/types/vue' {
interface Vue {
$IVIEW: {
size?: string;
transfer?: string;
};
}
}

View file

@ -1,6 +0,0 @@
import { PluginFunction } from 'vue';
interface IView extends PluginFunction<any> {}
declare const iView: IView;
export default iView;

View file

@ -1,72 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Layout extends Vue {
/**
* xs,sm,md,lg,xl或xxl
* {
* xs?: '480px',
* sm?: '768px',
* md?: '992px',
* lg?: '1200px',
* xl?: '1600px'
* }
*/
breakpoint?: string;
/**
* 使 v-model
* @default false
*/
value?: boolean;
/**
*
* @default 200
*/
width?: number;
/**
* false后
* @default false
*/
collapsible?: boolean;
/**
* 0 trigger
* @default 64
*/
'collapsed-width'?: number;
/**
*
* @default false
*/
'hide-trigger'?: boolean;
/**
* collapsible后设置此属性侧边栏仍会收起
* @default false
*/
'default-collapsed'?: boolean;
/**
* Sider在右边时可以使用
* @default false
*/
'reverse-arrow'?: boolean;
/**
* -true/false
*/
$emit(eventName: 'on-collapse', []): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
* @default
*/
trigger: VNode[];
};
/**
* methods, Sider展开-
*/
toggleCollapse(): void;
}

View file

@ -1,61 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface LoadingBar {
/**
* 0
*/
start(): void;
/**
*
*/
finish(): void;
/**
*
*/
error(): void;
/**
*
* @param percent
*/
update(percent?: number): void;
/**
*
* @param options
*/
config(options?: LoadingBarConfig): void;
/**
*
*/
destroy(): void;
}
export declare interface LoadingBarConfig {
/**
* iView
* @default primary
*/
color?: string;
/**
* iView
* @default error
*/
failedColor?: string;
/**
* px
* @default 2
*/
height?: number;
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Loading: LoadingBar;
}
}

102
dist/types/menu.d.ts vendored
View file

@ -1,102 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Menu extends Vue {
/**
* horizontal vertical
* @default vertical
*/
mode?: 'horizontal' | 'vertical';
/**
* lightdarkprimary primary mode="horizontal"
* @default light
*/
theme?: 'light' | 'dark' | 'primary';
/**
* name
*/
'active-name'?: string | number;
/**
* Submenu name
*/
'open-names'?: string[] | number[];
/**
*
* @default false
*/
accordion?: boolean;
/**
* mode="vertical" 使 Col auto
* @default 240px
*/
width?: string;
/**
* MenuItem
*/
$emit(eventName: 'on-select', name?: string | number): this;
/**
* /
* @default Submenu name
*/
$emit(eventName: 'on-open-change', names: string[] | number[]): this;
/**
* $nextTick
*/
updateOpened(): void;
/**
* $nextTick
*/
updateActiveName(): void;
}
export declare interface MenuItem extends Vue {
/**
*
*/
name?: string | number;
/**
* vue-router
*/
to?: string | object;
/**
* replace history
* @default false
*/
replace?: boolean;
/**
* a target
* @default _self
*/
target?: '_blank' | '_self' | '_parent' | '_top';
}
export declare interface MenuSub extends Vue {
/**
*
*/
name?: string | number;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
title: VNode[];
};
}
export declare interface MenuGroup extends Vue {
/**
*
* @default
*/
title?: string;
}

View file

@ -1,84 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode, CreateElement } from "vue";
export declare interface Message {
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
info(config?: MessageConfig | string): void;
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
success(config?: MessageConfig | string): void;
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
warning(config?: MessageConfig | string): void;
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
error(config?: MessageConfig | string): void;
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
loading(options?: MessageConfig | string): void;
/**
*
* @param config MessageConfig为相关配置,string为待显示的内容
*/
config(options?: MessageConfig): void;
/**
*
*/
destroy(): void;
}
export declare interface MessageConfig {
/**
*
*/
content?: string;
/**
* 使 Vue Render
*/
render?: (h: CreateElement) => VNode;
/**
*
*/
onClose?: () => void;
/**
*
* @default false
*/
closable?: boolean;
/**
*
* @default 24
*/
top?: number;
/**
*
* @default 1.5
*/
duration?: number;
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Message: Message;
}
}

223
dist/types/modal.d.ts vendored
View file

@ -1,223 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Modal {
/**
* 使 v-model
* @default false
*/
value?: boolean;
/**
* 使 slot title
*/
title?: string;
/**
* Esc ,
* @default true
*/
closable?: boolean;
/**
*
* @default true
*/
'mask-closable'?: boolean;
/**
* loading visible来关闭对话框,
* @default false
*/
loading?: boolean;
/**
*
* @default false
*/
scrollable?: boolean;
/**
*
* @default false
*/
fullscreen?: boolean;
/**
*
* @default false
*/
draggable?: boolean;
/**
* draggable
* @default true
*/
mask?: boolean;
/**
*
* @default
*/
'ok-text'?: string;
/**
*
* @default
*/
'cancel-text'?: string;
/**
* px
* 768px auto,
* @default 520
*/
width?: number | string;
/**
*
* @default false
*/
'footer-hide'?: boolean;
/**
* .ivu-modal的样式
*/
style?: object;
/**
* .ivu-modal-wrap的类名
*/
'class-name'?: string;
/**
*
* @default 1000
*/
'z-index'?: number;
/**
* ,
* @default ['ease', 'fade']
*/
'transition-names'?: Array<string>;
/**
* body true
* @default true
*/
transfer?: boolean;
/**
*
*/
$emit(eventName: 'on-ok'): this;
/**
*
*/
$emit(eventName: 'on-cancel'): this;
/**
*
*/
$emit(eventName: 'on-visible-change', visible: boolean): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
header: VNode[];
/**
*
*/
footer: VNode[];
/**
*
*/
close: VNode[];
};
}
export declare interface ModalInstance {
/**
*
* @param config ModalConfig为相关配置,string为待显示的内容
*/
info(config?: ModalConfig | string): void;
/**
*
* @param config ModalConfig为相关配置,string为待显示的内容
*/
success(config?: ModalConfig | string): void;
/**
*
* @param config ModalConfig为相关配置,string为待显示的内容
*/
warning(config?: ModalConfig | string): void;
/**
*
* @param config ModalConfig为相关配置,string为待显示的内容
*/
error(config?: ModalConfig | string): void;
/**
*
* @param config ModalConfig为相关配置,string为待显示的内容
*/
confirm(config?: ModalConfig | string): void;
/**
*
*/
remove(): void;
}
export declare interface ModalConfig {
/**
* Element选择器字符串
*/
title?: string;
/**
* Element选择器字符串
*/
content?: string;
/**
* 使 content
*/
render?: () => void;
/**
* px
* @default 416
*/
width?: number | string;
/**
*
* @default
*/
okText?: string;
/**
* Modal.confirm()
* @default
*/
cancelText?: string;
/**
* loading Modal.remove()
* @default false
*/
loading?: boolean;
/**
*
* @default false
*/
scrollable?: boolean;
/**
*
* @default false
*/
closable?: boolean;
/**
*
*/
onOk?: () => void;
/**
* Modal.confirm()
*/
onCancel?: () => void;
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Modal: ModalInstance;
}
}

View file

@ -1,92 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode, CreateElement } from "vue";
export declare interface Notice {
/**
*
* @param config NoticeConfig为相关配置,string为待显示的内容
*/
open(config?: NoticeConfig | string): void;
/**
*
* @param config NoticeConfig为相关配置,string为待显示的内容
*/
info(config?: NoticeConfig | string): void;
/**
*
* @param config NoticeConfig为相关配置,string为待显示的内容
*/
success(config?: NoticeConfig | string): void;
/**
*
* @param config NoticeConfig为相关配置,string为待显示的内容
*/
warning(config?: NoticeConfig | string): void;
/**
*
* @param config NoticeConfig为相关配置,string为待显示的内容
*/
error(config?: NoticeConfig): void;
/**
*
*/
config(options?: NoticeGlobalConfig): void;
/**
*
*/
close(name?: string): void;
/**
*
*/
destroy(): void;
}
export declare interface NoticeConfig {
/**
*
*/
title?: string;
/**
*
*/
desc?: string;
/**
* 使 Vue Render
*/
render?: (h: CreateElement) => VNode;
/**
* 0 4.5
*/
duration?: number;
/**
*
*/
name?: string;
/**
*
*/
onClose?: Function;
}
export declare interface NoticeGlobalConfig {
/**
* 24
*/
top?: number;
/**
* 4.5
*/
duration?: number;
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Notice: Notice;
}
}

99
dist/types/page.d.ts vendored
View file

@ -1,99 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Page extends Vue {
/**
* .sync
* @default 1
*/
current?: number;
/**
*
* @default 0
*/
total?: number;
/**
*
* @default 10
*/
'page-size'?: number;
/**
*
* @default [10, 20, 30, 40]
*/
'page-size-opts'?: number[];
/**
* bottom top
* @default bottom
*/
placement?: string;
/**
* small
*/
size?: string;
/**
*
* @default false
*/
simple?: boolean;
/**
*
* @default false
*/
'show-total'?: boolean;
/**
*
* @default false
*/
'show-elevator'?: boolean;
/**
* page-size
* @default false
*/
'show-sizer'?: boolean;
/**
* class
*/
'class-name'?: string;
/**
* style
*/
styles?: object;
/**
* body
* Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
*
*/
'prev-text'?: string;
/**
*
*/
'next-text'?: string;
/**
*
* @param pageNum
*/
$emit(eventName: 'on-change', pageNum: number): this;
/**
*
* @param pageSize
*/
$emit(eventName: 'on-page-size-change', pageSize: number): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
};
}

123
dist/types/poptip.d.ts vendored
View file

@ -1,123 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Poptip extends Vue {
/**
* hoverclickfocus,
* confirm click
* @default click
*/
trigger?: string;
/**
*
*/
title?: string | number;
/**
* confirm \
* @default
*/
content?: string | number;
/**
*
* toptop-starttop-endbottombottom-startbottom-end
* leftleft-startleft-endrightright-startright-end
* 2.12.0
* @default top
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
/**
* 150px confirm 300px
*/
width?: string | number;
/**
*
* @default false
*/
confirm?: boolean;
/**
* confirm
* @default
*/
'ok-text'?: string;
/**
* confirm
* @default
*/
'cancel-text'?: string;
/**
* body Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
* Poptip class-name使 transfer
* @default false
*/
'popper-class'?: string;
/**
*
* @default false
*/
'word-wrap'?: boolean;
/**
*
* @default 8px 16px
*/
padding?: string;
/**
*
* @default false
*/
offset?: string;
/**
* popper.js popper.js
* @default {
modifiers: {
computeStyle:{
gpuAcceleration: false,
},
preventOverflow :{
boundariesElement: 'window'
}
}
}
*/
options?: object;
/**
*
*/
$emit(eventName: 'on-popper-show'): this;
/**
*
*/
$emit(eventName: 'on-popper-hide'): this;
/**
* confirm
*/
$emit(eventName: 'on-ok'): this;
/**
* confirm
*/
$emit(eventName: 'on-cancel'): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
* slot props title
*/
title: VNode[];
/**
* slot props content confirm
*/
content: VNode[];
}
}

View file

@ -1,47 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Progress extends Vue {
/**
*
* @default 0
*/
percent?: number;
/**
* normalactivewrongsuccess
* @default normal
*/
status?: 'normal'|'active'|'wrong'|'success';
/**
* 线 px
* @default 10
*/
'stroke-width'?: number;
/**
*
* @default false
*/
'hide-info'?: boolean;
/**
*
* @default false
*/
vertical?: boolean;
/**
*
* @default 0
*/
'success-percent'?: number;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
};
}

64
dist/types/radio.d.ts vendored
View file

@ -1,64 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Radio extends Vue {
/**
* 使使 v-model
* @default false
*/
value?: boolean;
/**
* 使 value
*/
label?: string | number;
/**
*
* @default false
*/
disabled?: boolean;
/**
* largesmalldefault
*/
size?: '' | 'large' | 'small' | 'default';
/**
* 使 1 0
* @default true
*/
'true-value'?: string | number | boolean;
/**
* 使 1 0
* @default false
*/
'false-value'?: string | number | boolean;
/**
*
*/
$emit(eventName: 'on-change', arg: string | number | boolean): this;
}
export declare interface RadioGroup extends Vue {
/**
* 使 v-model
*/
value?: string | number;
/**
* button button 使
*/
type?: string;
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default false
*/
vertical?: boolean;
/**
*
*/
$emit(eventName: 'on-change', ...args: Array<string | number | boolean>): this;
}

54
dist/types/rate.d.ts vendored
View file

@ -1,54 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Rate extends Vue {
/**
* star总数
* @default 5
*/
count?: number;
/**
* star 使 v-model
* @default 0
*/
value?: number;
/**
*
* @default false
*/
'allow-half'?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
'show-text'?: boolean;
/**
*
* @default false
*/
clearable?: boolean;
/**
*
*/
character?: string;
/**
* 使
*/
icon?: string;
/**
* 使
*/
'custom-icon'?: string;
/**
*
*/
$emit(eventName: 'on-change', value: number): this;
}

View file

@ -1,35 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Scroll extends Vue {
/**
*
* @default 300
*/
height?: string | number;
/**
*
* @default
*/
'loading-text'?: string;
/**
* Promise
*/
'on-reach-top'?: () => void;
/**
* Promise
*/
'on-reach-bottom'?: () => void;
/**
* Promise
*/
'on-reach-edge'?: () => void;
/**
* 24
* @default [20, 20]
*/
'distance-to-edge'?: number | number[];
}

141
dist/types/select.d.ts vendored
View file

@ -1,141 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Select extends Vue {
/**
* value 使 v-model
* String Number Array
* @default
*/
value?: string | number | string[] | number[];
/**
*
* @default false
*/
multiple?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
clearable?: boolean;
/**
*
* @default false
*/
filterable?: boolean;
/**
* 使
* @default false
*/
remote?: boolean;
/**
*
*/
'remote-method'?: () => void;
/**
*
* @default false
*/
loading?: boolean;
/**
*
* @default
*/
'loading-text'?: string;
/**
* remote 使 value label
*/
label?: string | number | string[] | number[];
/**
* largesmalldefault或者不填
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default
*/
placeholder?: string;
/**
*
* @default
*/
'not-found-text'?: string;
/**
* label value
* @default false
*/
'label-in-value'?: boolean;
/**
* topbottomtop-startbottom-starttop-endbottom-end
* @default bottom-start
*/
placement?: 'bottom' | 'top' | 'top-start' | 'bottom-start' | 'top-end' | 'bottom-end';
/**
* body Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: string;
/**
* Option变化时触发 value label label-in-value
*/
$emit(eventName: 'on-change'): this;
/**
* ,query
*/
$emit(eventName: 'on-query-change', query: string): this;
/**
* ,query
*/
$emit(eventName: 'on-clear'): this;
/**
* ,query
*/
$emit(eventName: 'on-open-change', params: boolean): this;
/**
* filterable="true"
*/
setQuery(query: string): void;
/**
* clearable="true"
*/
clearSingleSelect(): void;
}
export declare interface Option extends Vue {
/**
*
*/
value?: string | number;
/**
* slot slot label
* label value label
* slot
*/
label?: string;
/**
*
* @default false
*/
disabled?: boolean;
}
export declare interface OptionGroup extends Vue {
/**
*
* @default
*/
label?: string;
}

View file

@ -1,8 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Sider extends Vue {
}

View file

@ -1,70 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Slider extends Vue {
/**
* 使 v-model
* 2,
* @default 0
*/
value?: number | number[];
/**
*
* @default 0
*/
min?: number;
/**
*
* @default 100
*/
max?: number;
/**
* max - min
* @default 1
*/
step?: number;
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default false
*/
range?: boolean;
/**
*
* @default false
*/
'show-input'?: boolean;
/**
* step 使
* @default false
*/
'show-stops'?: boolean;
/**
* hoveralwaysnever
* @default false
*/
'show-tip'?: boolean;
/**
* tip-format Tooltip tip-format null Tooltip
*/
'tip-format'?: (value?: number | number[]) => void;
/**
* largesmalldefault或者不填 show-input
*/
'input-size'?: '' | 'large' | 'small' | 'default';
/**
*
*/
$emit(eventName: 'on-change', value: number | number[]): this;
/**
*
*/
$emit(eventName: 'on-input', value: number | number[]): this;
}

35
dist/types/spin.d.ts vendored
View file

@ -1,35 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Spin extends Vue {
/**
* Spin尺寸large和small或者不设置
*/
size?: 'large' | 'small';
/**
* relative或absolute
* @default false
*/
fix?: boolean;
/**
* slot插槽对象
*/
$slots: {
/**
* Spin slot后
*/
'': VNode[];
};
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Spin: Spin;
}
}

68
dist/types/split.d.ts vendored
View file

@ -1,68 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Split extends Vue {
/**
* 0~1 v-model
* @default 0.5
*/
value?: number | string;
/**
* horizontal vertical
* @default horizontal
*/
mode?: 'horizontal' | 'vertical';
/**
*
* @default 40px
*/
min?: number | string;
/**
*
* @default 40px
*/
max?: number | string;
/**
* -
* @default false
*/
$emit(eventName: 'on-move-start', []): this;
/**
*
*/
$emit(eventName: 'on-moving', []): this;
/**
*
* @default false
*/
$emit(eventName: 'on-move-end', []): this;
/**
* slot插槽对象
*/
$slots: {
/**
* mode horizontal
* @default false
*/
left: VNode[];
/**
* mode horizontal
*/
right: VNode[];
/**
* mode vertical
*/
top: VNode[];
/**
* mode vertical
*/
bottom: VNode[];
/**
*
*/
trigger: VNode[];
}
}

48
dist/types/steps.d.ts vendored
View file

@ -1,48 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Steps extends Vue {
/**
* 0
* @default 0
*/
current?: number;
/**
* waitprocessfinisherror
* @default process
*/
status?: 'wait' | 'process' | 'finish' | 'error';
/**
* small或者不写
*/
size?: '' | 'small';
/**
* horizontalvertical
* @default horizontal
*/
direction?: 'horizontal' | 'vertical';
}
export declare interface StepsStep extends Vue {
/**
* waitprocessfinisherror
* @default process
*/
status?: 'wait' | 'process' | 'finish' | 'error';
/**
*
* @default
*/
title?: string;
/**
*
*/
content?: string;
/**
*
*/
icon?: string;
}

View file

@ -1,54 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Switch extends Vue {
/**
* 使 v-model
* @default false
*/
value?: boolean;
/**
* largesmalldefault或者不写使2使 large
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default false
*/
disabled?: boolean;
/**
* 使 1 0
* @default true
*/
'true-value'?: string | number | boolean;
/**
* 使 1 0
* @default false
*/
'false-value'?: string | number | boolean;
/**
*
* @default false
*/
loading?: boolean;
/**
*
*/
$emit(eventName: 'on-change', value: boolean): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
open: VNode[];
/**
*
*/
close: VNode[];
};
}

419
dist/types/table.d.ts vendored
View file

@ -1,419 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Table extends Vue {
/**
* cellClassName
* 使
* @default []
*/
data?: object[];
/**
*
* @default []
*/
columns?: object[];
/**
*
* @default false
*/
stripe?: boolean;
/**
*
* @default false
*/
border?: boolean;
/**
*
* @default true
*/
'show-header'?: boolean;
/**
* px
* @default
*/
width?: number | string;
/**
* px
*/
height?: number | string;
/**
*
* @default false
*/
loading?: boolean;
/**
*
* @default false
*/
'disabled-hover'?: boolean;
/**
*
* @default false
*/
'highlight-row'?: boolean;
/**
* className
* row
* index
*/
'row-class-name'?: (row?: object, index?: number) => void;
/**
* largesmalldefault
*/
size?: string;
/**
*
* @default
*/
'no-data-text'?: string;
/**
*
* @default
*/
'no-filtered-data-text'?: string;
/**
* highlight-row
* currentRow
* oldCurrentRow
*/
$emit(eventName: 'on-current-change', currentRow: object, oldCurrentRow: object): this;
/**
*
* selection
* row
*/
$emit(eventName: 'on-select', selection: object[], row: object): this;
/**
*
* selection
* row
*/
$emit(eventName: 'on-select-cancel', selection: object[], row: object): this;
/**
*
* selection
*/
$emit(eventName: 'on-select-all', selection: object[]): this;
/**
*
* selection
*/
$emit(eventName: 'on-selection-change', selection: object[]): this;
/**
*
* column
* key
* order asc desc
*/
$emit(eventName: 'on-sort-change', column?: object, key?: string, order?: 'asc' | 'desc'): this;
/**
*
*/
$emit(eventName: 'on-filter-change', value: any): this;
/**
*
* currentRow
* index?: 当前行的索引
*/
$emit(eventName: 'on-row-click', currentRow: object, index: number): this;
/**
*
* currentRow
* index?: 当前行的索引
*/
$emit(eventName: 'on-row-dblclick', currentRow: object, index: number): this;
/**
*
* row
* status
*/
$emit(eventName: 'on-expand', row: object, status: string): this;
/**
*
*/
exportCsv(params: TableExportCsvParams): void;
/**
* table
*/
handleResize(): void;
/**
* highlight-row
*/
clearCurrentRow(): void;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
header: VNode[];
/**
*
*/
footer: VNode[];
/**
*
*/
loading: VNode[];
};
}
export declare interface TableColumn {
/**
* indexselectionexpandhtml
*/
type?: 'index' | 'selection' | 'expand' | 'html';
/**
*
* @default #
*/
title?: string;
/**
*
*/
key?: string;
/**
*
*/
width?: number;
/**
*
*/
minWidth?: number;
/**
*
*/
maxWidth?: number;
/**
* left right center , left
* @default left
*/
align?: 'left' | 'right' | 'center';
/**
*
*/
className?: string;
/**
* left right
*/
fixed?: 'left' | 'right';
/**
*
* @default false
*/
ellipsis?: boolean;
/**
* Tooltip
* @default false
*/
tooltip?: boolean;
/**
* 使 Vue Render
* h rowcolumn index
*
* Render rc.18 render
*/
render?: (h?:
(
el?: string | object | Function,
data?: string | TableRenderCreateElementData | TableRenderCreateElementResult | Array<TableRenderCreateElementResult>,
vnode?: string | TableRenderCreateElementResult[]
) => TableRenderCreateElementResult,
params?: TableColumnRenderParams
) => TableRenderCreateElementResult;
/**
* column index
*/
renderHeader?: (h?:
(
el?: string | object | Function,
data?: string | TableRenderCreateElementData | TableRenderCreateElementResult | Array<TableRenderCreateElementResult>,
vnode?: string | TableRenderCreateElementResult[]
) => TableRenderCreateElementResult,
params?: TableColumnRenderHeadParams
) => TableRenderCreateElementResult;
/**
* custom
* Table on- sort - change ,false
* @default false
*/
sortable?: boolean | 'custom';
/**
* 使 a b type
* sortable?: true type asc desc
*/
sortMethod?: (a: any, b: any, type: 'asc' | 'desc') => void;
/**
* asc desc
*/
sortType?: 'asc' | 'desc';
/**
* label value 使filterMethod
*/
filters?: { label: string, value: string | number | boolean }[];
/**
* 使 true
*/
filterMethod?: () => void;
/**
*
* @default true
*/
filterMultiple?: boolean;
/**
* 使 value
*/
filteredValue?: (string | number | boolean)[];
/**
* 使
*/
filterRemote?: () => void;
/**
*
*/
children?: object[];
}
export declare interface TableRenderCreateElementData {
/**
* `v-bind:class` API
*/
'class'?: object;
/**
* `v-bind:style` API
*/
style?: object;
/**
* HTML
*/
attrs?: object,
/**
* props
*/
props?: object;
/**
* DOM
*/
domProps?: object;
/**
* "on"
* v-on?:keyup.enter
* keyCode
*/
on?: object;
/**
* 使 vm.$emit
*/
nativeOn?: object;
/**
* .
* Vue
*/
directives?: object[];
/**
* slot
*/
slot?: string;
/**
* ,myKey
*/
key?: string;
/**
* myRef
*/
ref?: string
}
export declare interface TableColumnRenderParams {
/**
*
*/
row?: object;
/**
*
*/
column?: object;
/**
*
*/
index?: number;
}
export declare interface TableRenderCreateElementResult {
child?: object;
children?: Array<any>;
componentInstance?: object;
componentOptions?: object;
context?: object;
data?: object;
elm?: object;
functionalContext?: object;
isCloned?: boolean;
isComment?: boolean;
isOnce?: boolean;
isRootInsert?: boolean;
isStatic?: boolean;
key?: object;
ns?: object;
parent?: object;
raw?: boolean;
tag?: string;
text?: object;
}
export declare interface TableColumnRenderHeadParams {
/**
*
*/
column?: object;
/**
*
*/
index?: number;
}
export declare interface TableExportCsvParams {
/**
* table.csv
*/
filename?: string;
/**
* true
*/
original?: boolean;
/**
* false
*/
noHeader?: boolean;
/**
*
*/
columns?: any[];
/**
*
*/
data?: any[];
/**
*
*/
callback?: () => void;
/**
* (,)
* @default ,
*/
separator?: string;
/**
*
* @default false
*/
quoted?: boolean;
}

85
dist/types/tabs.d.ts vendored
View file

@ -1,85 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Tabs extends Vue {
/**
* tab name使 v-model
* @default name
*/
value?: string;
/**
* line card
* @default line
*/
type?: 'line' | 'card';
/**
* default small type="line"
* @default default
*/
size?: 'default' | 'small';
/**
* type="card"
* @default false
*/
closable?: boolean;
/**
* 使 CSS3
* @default true
*/
animated?: boolean;
/**
* Tabs
* @default false
*/
'capture-focus'?: boolean;
/**
* Promise
*/
'before-remove'?: (index: number) => {};
/**
* tab
*/
$emit(eventName: 'on-click', name: string): this;
/**
* tab
*/
$emit(eventName: 'on-tab-remove', name: string): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
extra: VNode[];
};
}
export declare interface TabPane extends Vue {
/**
* value
*/
name?: string | number;
/**
* Render
* @default
*/
label?: string | (() => void);
/**
*
*/
icon?: string;
/**
*
* @default false
*/
disabled?: boolean;
/**
* type="card"
* @default null
*/
closable?: boolean;
}

48
dist/types/tag.d.ts vendored
View file

@ -1,48 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Tag extends Vue {
/**
*
* @default false
*/
closable?: boolean
/**
*
* @default false
*/
checkable?: boolean;
/**
*
* @default true
*/
checked?: boolean;
/**
* borderdot或不填
*/
type?: '' | 'border' | 'dot';
/**
*
* defaultprimarysuccesswarningerrorbluegreen
* redyellowpinkmagentavolcanoorangegold
* limecyangeekbluepurple
*
*/
color?: 'default' | 'primary' | 'success' | 'warning' | 'error' | 'blue' | 'green' | 'red' | 'yellow' | 'pink' | 'magenta' | 'volcano' | 'orange' | 'gold' | 'lime' | 'cyan' | 'geekblue' | 'purple';
/**
* 使 v-for
*/
name?: string | number;
/**
* 使
* @default true
*/
fade?: boolean;
/**
*
*/
$emit(eventName: 'on-close', event: object, name: string): this;
}

View file

@ -1,169 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface TimePicker extends Vue {
/**
* timetimerange
* @default time
*/
type?: 'time' | 'timerange';
/**
* JavaScript Date new Date()
* value 使 v-model Date @on-change 使
*
* yyyy 2016
* yy 16
* MM 01
* M 1
* MMMM January
* MMM Jan
* dd 01
* d 1
* Do 1st
* DD 00
* D 0
* dddd Monday
* ddd Mon
* HH 24 01
* H 24 1
* hh 12 01
* h 12 1
* mm 01
* m 1
* ss 01
* s 1
* SSS 019
* SS 01
* S 1
* A AM/PM
* a am/pm
* ZZ +0800
*/
value?: Date;
/**
*
* @default HH:mm:ss
*
* yyyy 2016
* yy 16
* MM 01
* M 1
* MMMM January
* MMM Jan
* dd 01
* d 1
* Do 1st
* DD 00
* D 0
* dddd Monday
* ddd Mon
* HH 24 01
* H 24 1
* hh 12 01
* h 12 1
* mm 01
* m 1
* ss 01
* s 1
* SSS 019
* SS 01
* S 1
* A AM/PM
* a am/pm
* ZZ +0800
*/
format?: string;
/**
*
* [1, 15] 00153045
* @default []
*/
steps?: any[];
/**
*
* top,top-start,top-end
* bottom,bottom-start,bottom-end
* left,left-start,left-end
* right,right-start,right-end
* @default bottom-start
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
/**
*
* @default
*/
placeholder?: string;
/**
*
* @default false
*/
confirm?: boolean;
/**
* true false
* 使 slot confirm 使,
* @default null
*/
open?: boolean;
/**
* largesmalldefault或者不设置
*/
size?: '' | 'large' | 'small' | 'default';
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default true
*/
clearable?: boolean;
/**
* open
* @default false
*/
readonly?: boolean;
/**
* 使 slot
* @default true
*/
editable?: boolean;
/**
* body Tabs fixed Table 使
* @default false
*/
transfer?: boolean;
/**
* id Form
*/
'element-id'?: boolean;
/**
* 09:41:00
*/
$emit(eventName: 'on-change', value: string): this;
/**
*
*/
$emit(eventName: 'on-open-change', value: boolean): this;
/**
*
*/
$emit(eventName: 'on-ok'): this;
/**
*
*/
$emit(eventName: 'on-clear'): this;
/**
* slot插槽对象
*/
$slots: {
/**
* open 使
*/
'': VNode[];
};
}

27
dist/types/time.ts vendored
View file

@ -1,27 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Time extends Vue {
/**
* Date
*/
time?: number |Date |string;
/**
* relativedate datetime
* @default relative
*/
type?: 'relative'|'date'|'datetime';
/**
*
* @default 60
*/
interval?: number;
/**
*
* @default false
*/
hash?: string;
}

View file

@ -1,34 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Timeline extends Vue {
/**
*
* @default false
*/
pending?: boolean;
}
export declare interface TimelineItem extends Vue {
/**
* blueredgreen
* @default blue
*/
color?: 'blue' | 'red' | 'green' | string;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
dot: VNode[];
};
}

View file

@ -1,91 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Tooltip extends Vue {
/**
*
* @default
*/
content?: string | number;
/**
*
* toptop-starttop-endbottombottom-startbottom-end
* leftleft-startleft-endrightright-startright-end
* 2.12.0
* @default bottom
*/
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
/**
*
* @default false
*/
disabled?: boolean;
/**
*
* @default 0
*/
delay?: number;
/**
*
* @default false
*/
always?: boolean;
/**
* dark light
* @default dark
*/
theme?: string;
/**
*
*/
'max-width'?: string|number;
/**
*
* @default 0
*/
offset?: number;
/**
* body Tabs fixed Table 使
*
* @default false
*/
transfer?: boolean;
/**
*
* @default {
modifiers: {
computeStyle:{
gpuAcceleration: false,
},
preventOverflow :{
boundariesElement: 'window'
}
}
}
*/
options?: object;
/**
*
*/
$emit(eventName: 'on-popper-show'): this;
/**
*
*/
$emit(eventName: 'on-popper-hide'): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
* slot props content
*/
content: VNode[];
};
}

View file

@ -1,80 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Transfer extends Vue {
/**
* targetKeys
* @default []
*/
data?: object[];
/**
* key集合
* @default []
*/
targetKeys?: string[];
/**
* data
* value?: 默认显示labelkey
*/
'render-format'?: (value?: string) => void;
/**
*
* @default []
*/
'selected-keys'?: string[];
/**
* 穿
* @default {}
*/
'list-style'?: object;
/**
* Array
* @default ['源列表', '目的列表']
*/
titles?: string[];
/**
*
* @default []
*/
operations?: object[];
/**
*
* @default false
*/
filterable?: object[];
/**
*
* @default
*/
'filter-placeholder'?: string;
/**
* data querydata query
* label
*/
'filter-method'?: (value?: string) => void;
/**
*
* @default
*/
'not-found-text'?: string;
/**
*
*/
$emit(eventName: 'on-change', targetKeys: string[], direction: string, moveKeys: string[]): this;
/**
*
*/
$emit(eventName: 'on-selected-change', sourceSelectedKeys: string[], targetSelectedKeys: string[]): this;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
};
}

103
dist/types/tree.d.ts vendored
View file

@ -1,103 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Tree extends Vue {
/**
* tree
*/
data?: TreeChild[];
/**
*
* @default false
*/
multiple?: boolean;
/**
*
* @default false
*/
'show-checkbox'?: boolean;
/**
*
* @default
*/
'empty-text'?: string;
/**
*
*/
'load-data'?: () => void;
/**
*
*/
render?: () => void;
/**
*
* @default children
*/
'children-key'?:string;
/**
*
* @default
*/
$emit(eventName: 'on-select-change', value: TreeChild[]): this;
/**
*
* @default
*/
$emit(eventName: 'on-check-change', value: TreeChild[]): this;
/**
*
* @default
*/
$emit(eventName: 'on-toggle-expand', value: TreeChild): this;
/**
*
*/
getCheckedNodes(): void;
/**
*
*/
getSelectedNodes(): void;
}
export declare interface TreeChild extends Vue {
/**
*
*/
title?: string;
/**
*
* @default false
*/
expand?: boolean;
/**
*
* @default false
*/
disabled?: boolean;
/**
* checkbox
* @default false
*/
disableCheckbox?: boolean;
/**
*
* @default false
*/
selected?: boolean;
/**
* ()
* @default false
*/
checked?: boolean;
/**
*
*/
children?: TreeChild[];
/**
*
*/
render(): void;
}

130
dist/types/upload.d.ts vendored
View file

@ -1,130 +0,0 @@
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface Upload extends Vue {
/**
*
*/
action?: string;
/**
*
* @default {}
*/
headers?: object;
/**
*
* @default false
*/
multiple?: boolean;
/**
*
* @default false
*/
paste?: boolean;
/**
*
*/
data?: object;
/**
*
* @default file
*/
name?: string;
/**
* cookie
* @default false
*/
'with-credentials'?: boolean;
/**
*
* @default true
*/
'show-upload-list'?: boolean;
/**
* selectdrag
* @default select
*/
type?: 'select' | 'drag';
/**
*
*/
accept?: string;
/**
* accept
* format
* accept input accept
* 使
* @default []
*/
format?: string[];
/**
* kb
*/
'max-size'?: number;
/**
* false Promise
*/
'before-upload'?: Function;
/**
* event, file, fileList
*/
'on-progress'?: Function;
/**
* response, file, fileList
*/
'on-success'?: Function;
/**
* error, file, fileList
*/
'on-error'?: Function;
/**
* file file.response
*/
'on-preview'?: Function;
/**
* file, fileList
*/
'on-remove'?: Function;
/**
* file, fileList
*/
'on-format-error'?: Function;
/**
* file, fileList
*/
'on-exceeded-size'?: Function;
/**
*
* [
* {
* name?: 'img1.jpg',
* url?: 'http://www.xxx.com/img1.jpg'
* },
* {
* name?: 'img2.jpg',
* url?: 'http://www.xxx.com/img2.jpg'
* }
* ]
*/
'default-file-list'?: string[];
/**
*
*/
'clearFiles'(): void;
/**
* slot插槽对象
*/
$slots: {
/**
*
*/
'': VNode[];
/**
*
*/
tip: VNode[];
};
}

View file

@ -1,6 +1,6 @@
{
"name": "iview",
"version": "3.4.1",
"version": "3.4.2-rc.1",
"title": "iView",
"description": "A high quality UI components Library with Vue.js",
"homepage": "http://www.iviewui.com",