Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed May 23, 2019
1 parent 5591933 commit f889c3b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vue-element-extends/favicon.ico><title>ElementUI 2.X components extends.</title><link href=/vue-element-extends/static/css/chunk-vendors.a8b08852.css rel=preload as=style><link href=/vue-element-extends/static/css/index.b5f8c35c.css rel=preload as=style><link href=/vue-element-extends/static/js/chunk-vendors.5e1205b6.js rel=preload as=script><link href=/vue-element-extends/static/js/index.4358e20d.js rel=preload as=script><link href=/vue-element-extends/static/css/chunk-vendors.a8b08852.css rel=stylesheet><link href=/vue-element-extends/static/css/index.b5f8c35c.css rel=stylesheet></head><body><noscript><strong>We're sorry but test2 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vue-element-extends/static/js/chunk-vendors.5e1205b6.js></script><script src=/vue-element-extends/static/js/index.4358e20d.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vue-element-extends/favicon.ico><title>ElementUI 2.X components extends.</title><link href=/vue-element-extends/static/css/chunk-vendors.a8b08852.css rel=preload as=style><link href=/vue-element-extends/static/css/index.b5f8c35c.css rel=preload as=style><link href=/vue-element-extends/static/js/chunk-vendors.5e1205b6.js rel=preload as=script><link href=/vue-element-extends/static/js/index.4a2c86b7.js rel=preload as=script><link href=/vue-element-extends/static/css/chunk-vendors.a8b08852.css rel=stylesheet><link href=/vue-element-extends/static/css/index.b5f8c35c.css rel=stylesheet></head><body><noscript><strong>We're sorry but test2 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vue-element-extends/static/js/chunk-vendors.5e1205b6.js></script><script src=/vue-element-extends/static/js/index.4a2c86b7.js></script></body></html>

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions lib/index.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -5876,12 +5876,12 @@ table_column.install = function (Vue) {

var TableColumn = table_column;
/* harmony default export */ var packages_table_column = (table_column);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"224f41c8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/editable/src/editable.vue?vue&type=template&id=21eb7b1c&
var editablevue_type_template_id_21eb7b1c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-table',_vm._g(_vm._b({ref:"refElTable",staticClass:"elx-editable",scopedSlots:_vm._u([(_vm.$slots.empty)?{key:"empty",fn:function(){return [_vm._t("empty")]},proxy:true}:null,{key:"append",fn:function(){return [(_vm.isCtxMenu)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ctxMenuStore.visible),expression:"ctxMenuStore.visible"}],ref:"contextMenu",staticClass:"elx-contextmenu",style:(_vm.ctxMenuStore.style)},_vm._l((_vm.ctxMenuStore.list),function(options,index){return _c('ul',{key:index,staticClass:"ctx-menu_wrapper"},_vm._l((options),function(item){return _c('li',{key:item.code,class:[item.code, {disabled: item.disabled, 'active': item === _vm.ctxMenuStore.selected}]},[_c('a',{staticClass:"ctx-menu_link",on:{"click":function($event){return _vm._ctxMenuEvent($event, item)},"mouseover":function($event){return _vm._ctxMenuMouseoverEvent($event, item)},"mouseout":function($event){return _vm._ctxMenuMouseoutEvent($event, item)}}},[(item.prefixIcon)?_c('i',{staticClass:"ctx-prefix-icon",class:item.prefixIcon}):_vm._e(),_c('span',{staticClass:"content"},[_vm._v(_vm._s(item.name))]),(item.suffixIcon)?_c('i',{staticClass:"ctx-suffix-icon",class:item.suffixIcon}):_vm._e()]),(_vm._hasCtxChilds(item))?_c('ul',{staticClass:"ctx-menu_child-wrapper",class:{show: item === _vm.ctxMenuStore.selected && _vm.ctxMenuStore.showChild}},_vm._l((item.children),function(child,cIndex){return _c('li',{key:(index + "_" + cIndex),class:[child.code, {disabled: child.disabled, 'active': child === _vm.ctxMenuStore.selectChild}]},[_c('a',{staticClass:"ctx-menu_link",on:{"click":function($event){return _vm._ctxMenuEvent($event, child)},"mouseover":function($event){return _vm._ctxMenuMouseoverEvent($event, item, child)},"mouseout":function($event){return _vm._ctxMenuMouseoutEvent($event, item, child)}}},[(child.prefixIcon)?_c('i',{staticClass:"ctx-prefix-icon",class:child.prefixIcon}):_vm._e(),_c('span',{staticClass:"content"},[_vm._v(_vm._s(child.name))])])])}),0):_vm._e()])}),0)}),0):_vm._e(),(_vm.$slots.append)?[_vm._t("append")]:_vm._e()]},proxy:true}],null,true)},'el-table',_vm.attrs,false),_vm.events),[_vm._t("default")],2)}
var editablevue_type_template_id_21eb7b1c_staticRenderFns = []
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"224f41c8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/editable/src/editable.vue?vue&type=template&id=01fbf5cb&
var editablevue_type_template_id_01fbf5cb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-table',_vm._g(_vm._b({ref:"refElTable",staticClass:"elx-editable",scopedSlots:_vm._u([(_vm.$slots.empty)?{key:"empty",fn:function(){return [_vm._t("empty")]},proxy:true}:null,{key:"append",fn:function(){return [(_vm.isCtxMenu)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ctxMenuStore.visible),expression:"ctxMenuStore.visible"}],ref:"contextMenu",staticClass:"elx-contextmenu",style:(_vm.ctxMenuStore.style)},_vm._l((_vm.ctxMenuStore.list),function(options,index){return _c('ul',{key:index,staticClass:"ctx-menu_wrapper"},_vm._l((options),function(item){return _c('li',{key:item.code,class:[item.code, {disabled: item.disabled, 'active': item === _vm.ctxMenuStore.selected}]},[_c('a',{staticClass:"ctx-menu_link",on:{"click":function($event){return _vm._ctxMenuEvent($event, item)},"mouseover":function($event){return _vm._ctxMenuMouseoverEvent($event, item)},"mouseout":function($event){return _vm._ctxMenuMouseoutEvent($event, item)}}},[(item.prefixIcon)?_c('i',{staticClass:"ctx-prefix-icon",class:item.prefixIcon}):_vm._e(),_c('span',{staticClass:"content"},[_vm._v(_vm._s(item.name))]),(item.suffixIcon)?_c('i',{staticClass:"ctx-suffix-icon",class:item.suffixIcon}):_vm._e()]),(_vm._hasCtxChilds(item))?_c('ul',{staticClass:"ctx-menu_child-wrapper",class:{show: item === _vm.ctxMenuStore.selected && _vm.ctxMenuStore.showChild}},_vm._l((item.children),function(child,cIndex){return _c('li',{key:(index + "_" + cIndex),class:[child.code, {disabled: child.disabled, 'active': child === _vm.ctxMenuStore.selectChild}]},[_c('a',{staticClass:"ctx-menu_link",on:{"click":function($event){return _vm._ctxMenuEvent($event, child)},"mouseover":function($event){return _vm._ctxMenuMouseoverEvent($event, item, child)},"mouseout":function($event){return _vm._ctxMenuMouseoutEvent($event, item, child)}}},[(child.prefixIcon)?_c('i',{staticClass:"ctx-prefix-icon",class:child.prefixIcon}):_vm._e(),_c('span',{staticClass:"content"},[_vm._v(_vm._s(child.name))])])])}),0):_vm._e()])}),0)}),0):_vm._e(),(_vm.$slots.append)?[_vm._t("append")]:_vm._e()]},proxy:true}],null,true)},'el-table',_vm.attrs,false),_vm.events),[_vm._t("default")],2)}
var editablevue_type_template_id_01fbf5cb_staticRenderFns = []


// CONCATENATED MODULE: ./packages/editable/src/editable.vue?vue&type=template&id=21eb7b1c&
// CONCATENATED MODULE: ./packages/editable/src/editable.vue?vue&type=template&id=01fbf5cb&

// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js
var iterator = __webpack_require__("5d58");
Expand Down Expand Up @@ -7666,6 +7666,10 @@ window.addEventListener(wheelName, GlobalEvent.trigger, false);
}

return resolve(rule);
}, {
rules: rules,
row: row,
column: column
});
} else {
var restVal;
Expand Down Expand Up @@ -8674,8 +8678,8 @@ var editablevue_type_style_index_0_lang_css_ = __webpack_require__("00fb");

var editable_component = normalizeComponent(
src_editablevue_type_script_lang_js_,
editablevue_type_template_id_21eb7b1c_render,
editablevue_type_template_id_21eb7b1c_staticRenderFns,
editablevue_type_template_id_01fbf5cb_render,
editablevue_type_template_id_01fbf5cb_staticRenderFns,
false,
null,
null,
Expand Down
16 changes: 10 additions & 6 deletions lib/index.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -5885,12 +5885,12 @@ table_column.install = function (Vue) {

var TableColumn = table_column;
/* harmony default export */ var packages_table_column = (table_column);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"224f41c8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/editable/src/editable.vue?vue&type=template&id=21eb7b1c&
var editablevue_type_template_id_21eb7b1c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-table',_vm._g(_vm._b({ref:"refElTable",staticClass:"elx-editable",scopedSlots:_vm._u([(_vm.$slots.empty)?{key:"empty",fn:function(){return [_vm._t("empty")]},proxy:true}:null,{key:"append",fn:function(){return [(_vm.isCtxMenu)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ctxMenuStore.visible),expression:"ctxMenuStore.visible"}],ref:"contextMenu",staticClass:"elx-contextmenu",style:(_vm.ctxMenuStore.style)},_vm._l((_vm.ctxMenuStore.list),function(options,index){return _c('ul',{key:index,staticClass:"ctx-menu_wrapper"},_vm._l((options),function(item){return _c('li',{key:item.code,class:[item.code, {disabled: item.disabled, 'active': item === _vm.ctxMenuStore.selected}]},[_c('a',{staticClass:"ctx-menu_link",on:{"click":function($event){return _vm._ctxMenuEvent($event, item)},"mouseover":function($event){return _vm._ctxMenuMouseoverEvent($event, item)},"mouseout":function($event){return _vm._ctxMenuMouseoutEvent($event, item)}}},[(item.prefixIcon)?_c('i',{staticClass:"ctx-prefix-icon",class:item.prefixIcon}):_vm._e(),_c('span',{staticClass:"content"},[_vm._v(_vm._s(item.name))]),(item.suffixIcon)?_c('i',{staticClass:"ctx-suffix-icon",class:item.suffixIcon}):_vm._e()]),(_vm._hasCtxChilds(item))?_c('ul',{staticClass:"ctx-menu_child-wrapper",class:{show: item === _vm.ctxMenuStore.selected && _vm.ctxMenuStore.showChild}},_vm._l((item.children),function(child,cIndex){return _c('li',{key:(index + "_" + cIndex),class:[child.code, {disabled: child.disabled, 'active': child === _vm.ctxMenuStore.selectChild}]},[_c('a',{staticClass:"ctx-menu_link",on:{"click":function($event){return _vm._ctxMenuEvent($event, child)},"mouseover":function($event){return _vm._ctxMenuMouseoverEvent($event, item, child)},"mouseout":function($event){return _vm._ctxMenuMouseoutEvent($event, item, child)}}},[(child.prefixIcon)?_c('i',{staticClass:"ctx-prefix-icon",class:child.prefixIcon}):_vm._e(),_c('span',{staticClass:"content"},[_vm._v(_vm._s(child.name))])])])}),0):_vm._e()])}),0)}),0):_vm._e(),(_vm.$slots.append)?[_vm._t("append")]:_vm._e()]},proxy:true}],null,true)},'el-table',_vm.attrs,false),_vm.events),[_vm._t("default")],2)}
var editablevue_type_template_id_21eb7b1c_staticRenderFns = []
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"224f41c8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/editable/src/editable.vue?vue&type=template&id=01fbf5cb&
var editablevue_type_template_id_01fbf5cb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-table',_vm._g(_vm._b({ref:"refElTable",staticClass:"elx-editable",scopedSlots:_vm._u([(_vm.$slots.empty)?{key:"empty",fn:function(){return [_vm._t("empty")]},proxy:true}:null,{key:"append",fn:function(){return [(_vm.isCtxMenu)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ctxMenuStore.visible),expression:"ctxMenuStore.visible"}],ref:"contextMenu",staticClass:"elx-contextmenu",style:(_vm.ctxMenuStore.style)},_vm._l((_vm.ctxMenuStore.list),function(options,index){return _c('ul',{key:index,staticClass:"ctx-menu_wrapper"},_vm._l((options),function(item){return _c('li',{key:item.code,class:[item.code, {disabled: item.disabled, 'active': item === _vm.ctxMenuStore.selected}]},[_c('a',{staticClass:"ctx-menu_link",on:{"click":function($event){return _vm._ctxMenuEvent($event, item)},"mouseover":function($event){return _vm._ctxMenuMouseoverEvent($event, item)},"mouseout":function($event){return _vm._ctxMenuMouseoutEvent($event, item)}}},[(item.prefixIcon)?_c('i',{staticClass:"ctx-prefix-icon",class:item.prefixIcon}):_vm._e(),_c('span',{staticClass:"content"},[_vm._v(_vm._s(item.name))]),(item.suffixIcon)?_c('i',{staticClass:"ctx-suffix-icon",class:item.suffixIcon}):_vm._e()]),(_vm._hasCtxChilds(item))?_c('ul',{staticClass:"ctx-menu_child-wrapper",class:{show: item === _vm.ctxMenuStore.selected && _vm.ctxMenuStore.showChild}},_vm._l((item.children),function(child,cIndex){return _c('li',{key:(index + "_" + cIndex),class:[child.code, {disabled: child.disabled, 'active': child === _vm.ctxMenuStore.selectChild}]},[_c('a',{staticClass:"ctx-menu_link",on:{"click":function($event){return _vm._ctxMenuEvent($event, child)},"mouseover":function($event){return _vm._ctxMenuMouseoverEvent($event, item, child)},"mouseout":function($event){return _vm._ctxMenuMouseoutEvent($event, item, child)}}},[(child.prefixIcon)?_c('i',{staticClass:"ctx-prefix-icon",class:child.prefixIcon}):_vm._e(),_c('span',{staticClass:"content"},[_vm._v(_vm._s(child.name))])])])}),0):_vm._e()])}),0)}),0):_vm._e(),(_vm.$slots.append)?[_vm._t("append")]:_vm._e()]},proxy:true}],null,true)},'el-table',_vm.attrs,false),_vm.events),[_vm._t("default")],2)}
var editablevue_type_template_id_01fbf5cb_staticRenderFns = []


// CONCATENATED MODULE: ./packages/editable/src/editable.vue?vue&type=template&id=21eb7b1c&
// CONCATENATED MODULE: ./packages/editable/src/editable.vue?vue&type=template&id=01fbf5cb&

// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js
var iterator = __webpack_require__("5d58");
Expand Down Expand Up @@ -7675,6 +7675,10 @@ window.addEventListener(wheelName, GlobalEvent.trigger, false);
}

return resolve(rule);
}, {
rules: rules,
row: row,
column: column
});
} else {
var restVal;
Expand Down Expand Up @@ -8683,8 +8687,8 @@ var editablevue_type_style_index_0_lang_css_ = __webpack_require__("00fb");

var editable_component = normalizeComponent(
src_editablevue_type_script_lang_js_,
editablevue_type_template_id_21eb7b1c_render,
editablevue_type_template_id_21eb7b1c_staticRenderFns,
editablevue_type_template_id_01fbf5cb_render,
editablevue_type_template_id_01fbf5cb_staticRenderFns,
false,
null,
null,
Expand Down
2 changes: 1 addition & 1 deletion lib/index.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/editable/src/editable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ export default {
return reject(cusRule)
}
return resolve(rule)
})
}, { rules, row, column })
} else {
let restVal
let isNumber = rule.type === 'number'
Expand Down

0 comments on commit f889c3b

Please sign in to comment.