@v2coding/ui 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2coding-ui.esm.js +39 -471
- package/dist/v2coding-ui.min.js +2 -2
- package/dist/v2coding-ui.ssr.js +42 -432
- package/package.json +1 -1
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -7731,394 +7731,48 @@ const __vue_component__$g = /*#__PURE__*/normalizeComponent({
|
|
|
7731
7731
|
|
|
7732
7732
|
var FormDialog = __vue_component__$g;
|
|
7733
7733
|
|
|
7734
|
-
// 判断参数是否是其中之一
|
|
7735
|
-
function oneOf(value, validList) {
|
|
7736
|
-
for (let i = 0; i < validList.length; i++) {
|
|
7737
|
-
if (value === validList[i]) {
|
|
7738
|
-
return true;
|
|
7739
|
-
}
|
|
7740
|
-
}
|
|
7741
|
-
|
|
7742
|
-
return false;
|
|
7743
|
-
}
|
|
7744
|
-
|
|
7745
|
-
/**
|
|
7746
|
-
* Get target DOM Node
|
|
7747
|
-
* @param {(Node|string|Boolean)} [node=document.body] DOM Node, CSS selector, or Boolean
|
|
7748
|
-
* @return {Node} The target that the el will be appended to
|
|
7749
|
-
*/
|
|
7750
|
-
function getTarget(node) {
|
|
7751
|
-
if (node === void 0) {
|
|
7752
|
-
node = document.body;
|
|
7753
|
-
}
|
|
7754
|
-
|
|
7755
|
-
if (node === true) {
|
|
7756
|
-
return document.body;
|
|
7757
|
-
}
|
|
7758
|
-
|
|
7759
|
-
return node instanceof window.Node ? node : document.querySelector(node);
|
|
7760
|
-
}
|
|
7761
|
-
|
|
7762
|
-
const directive = {
|
|
7763
|
-
inserted(el, _ref) {
|
|
7764
|
-
let {
|
|
7765
|
-
value
|
|
7766
|
-
} = _ref;
|
|
7767
|
-
if (el.dataset && el.dataset.transfer !== 'true') return false;
|
|
7768
|
-
el.className = el.className ? el.className + ' v-transfer-dom' : 'v-transfer-dom';
|
|
7769
|
-
const parentNode = el.parentNode;
|
|
7770
|
-
if (!parentNode) return;
|
|
7771
|
-
const home = document.createComment('');
|
|
7772
|
-
let hasMovedOut = false;
|
|
7773
|
-
|
|
7774
|
-
if (value !== false) {
|
|
7775
|
-
parentNode.replaceChild(home, el); // moving out, el is no longer in the document
|
|
7776
|
-
|
|
7777
|
-
getTarget(value).appendChild(el); // moving into new place
|
|
7778
|
-
|
|
7779
|
-
hasMovedOut = true;
|
|
7780
|
-
}
|
|
7781
|
-
|
|
7782
|
-
if (!el.__transferDomData) {
|
|
7783
|
-
el.__transferDomData = {
|
|
7784
|
-
parentNode: parentNode,
|
|
7785
|
-
home: home,
|
|
7786
|
-
target: getTarget(value),
|
|
7787
|
-
hasMovedOut: hasMovedOut
|
|
7788
|
-
};
|
|
7789
|
-
}
|
|
7790
|
-
},
|
|
7791
|
-
|
|
7792
|
-
componentUpdated(el, _ref2) {
|
|
7793
|
-
let {
|
|
7794
|
-
value
|
|
7795
|
-
} = _ref2;
|
|
7796
|
-
if (el.dataset && el.dataset.transfer !== 'true') return false; // need to make sure children are done updating (vs. `update`)
|
|
7797
|
-
|
|
7798
|
-
const ref$1 = el.__transferDomData;
|
|
7799
|
-
if (!ref$1) return; // homes.get(el)
|
|
7800
|
-
|
|
7801
|
-
const parentNode = ref$1.parentNode;
|
|
7802
|
-
const home = ref$1.home;
|
|
7803
|
-
const hasMovedOut = ref$1.hasMovedOut; // recall where home is
|
|
7804
|
-
|
|
7805
|
-
if (!hasMovedOut && value) {
|
|
7806
|
-
// remove from document and leave placeholder
|
|
7807
|
-
parentNode.replaceChild(home, el); // append to target
|
|
7808
|
-
|
|
7809
|
-
getTarget(value).appendChild(el);
|
|
7810
|
-
el.__transferDomData = Object.assign({}, el.__transferDomData, {
|
|
7811
|
-
hasMovedOut: true,
|
|
7812
|
-
target: getTarget(value)
|
|
7813
|
-
});
|
|
7814
|
-
} else if (hasMovedOut && value === false) {
|
|
7815
|
-
// previously moved, coming back home
|
|
7816
|
-
parentNode.replaceChild(el, home);
|
|
7817
|
-
el.__transferDomData = Object.assign({}, el.__transferDomData, {
|
|
7818
|
-
hasMovedOut: false,
|
|
7819
|
-
target: getTarget(value)
|
|
7820
|
-
});
|
|
7821
|
-
} else if (value) {
|
|
7822
|
-
// already moved, going somewhere else
|
|
7823
|
-
getTarget(value).appendChild(el);
|
|
7824
|
-
}
|
|
7825
|
-
},
|
|
7826
|
-
|
|
7827
|
-
unbind(el) {
|
|
7828
|
-
if (el.dataset && el.dataset.transfer !== 'true') return false;
|
|
7829
|
-
el.className = el.className.replace('v-transfer-dom', '');
|
|
7830
|
-
const ref$1 = el.__transferDomData;
|
|
7831
|
-
if (!ref$1) return;
|
|
7832
|
-
|
|
7833
|
-
if (el.__transferDomData.hasMovedOut === true) {
|
|
7834
|
-
el.__transferDomData.parentNode && el.__transferDomData.parentNode.appendChild(el);
|
|
7835
|
-
}
|
|
7836
|
-
|
|
7837
|
-
el.__transferDomData = null;
|
|
7838
|
-
}
|
|
7839
|
-
|
|
7840
|
-
};
|
|
7841
|
-
var TransferDom = directive;
|
|
7842
|
-
|
|
7843
|
-
const on = function () {
|
|
7844
|
-
return function (element, event, handler) {
|
|
7845
|
-
let useCapture = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
7846
|
-
|
|
7847
|
-
if (element && event && handler) {
|
|
7848
|
-
element.addEventListener(event, handler, useCapture);
|
|
7849
|
-
}
|
|
7850
|
-
};
|
|
7851
|
-
}();
|
|
7852
|
-
const off = function () {
|
|
7853
|
-
return function (element, event, handler) {
|
|
7854
|
-
let useCapture = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
7855
|
-
|
|
7856
|
-
if (element && event) {
|
|
7857
|
-
element.removeEventListener(event, handler, useCapture);
|
|
7858
|
-
}
|
|
7859
|
-
};
|
|
7860
|
-
}();
|
|
7861
|
-
|
|
7862
7734
|
//
|
|
7863
|
-
|
|
7735
|
+
//
|
|
7736
|
+
//
|
|
7737
|
+
//
|
|
7738
|
+
//
|
|
7739
|
+
//
|
|
7740
|
+
//
|
|
7741
|
+
//
|
|
7742
|
+
//
|
|
7743
|
+
//
|
|
7744
|
+
//
|
|
7745
|
+
//
|
|
7746
|
+
//
|
|
7864
7747
|
var script$f = {
|
|
7865
|
-
name: '
|
|
7866
|
-
|
|
7867
|
-
TransferDom
|
|
7868
|
-
},
|
|
7748
|
+
name: 'ui-drawer',
|
|
7749
|
+
inheritAttrs: false,
|
|
7869
7750
|
props: {
|
|
7870
|
-
value:
|
|
7871
|
-
|
|
7872
|
-
default: false
|
|
7873
|
-
},
|
|
7874
|
-
title: {
|
|
7875
|
-
type: String
|
|
7876
|
-
},
|
|
7751
|
+
value: Boolean,
|
|
7752
|
+
visible: Boolean,
|
|
7877
7753
|
width: {
|
|
7878
7754
|
type: [Number, String],
|
|
7879
7755
|
default: 256
|
|
7880
7756
|
},
|
|
7881
|
-
|
|
7882
|
-
type: Boolean,
|
|
7883
|
-
default: true
|
|
7884
|
-
},
|
|
7885
|
-
maskClosable: {
|
|
7886
|
-
type: Boolean,
|
|
7887
|
-
default: true
|
|
7888
|
-
},
|
|
7889
|
-
mask: {
|
|
7890
|
-
type: Boolean,
|
|
7891
|
-
default: true
|
|
7892
|
-
},
|
|
7893
|
-
maskStyle: {
|
|
7894
|
-
type: Object
|
|
7895
|
-
},
|
|
7896
|
-
styles: {
|
|
7897
|
-
type: Object
|
|
7898
|
-
},
|
|
7899
|
-
scrollable: {
|
|
7900
|
-
type: Boolean,
|
|
7901
|
-
default: false
|
|
7902
|
-
},
|
|
7903
|
-
placement: {
|
|
7904
|
-
validator(value) {
|
|
7905
|
-
return oneOf(value, ['left', 'right']);
|
|
7906
|
-
},
|
|
7907
|
-
|
|
7908
|
-
default: 'right'
|
|
7909
|
-
},
|
|
7910
|
-
zIndex: {
|
|
7911
|
-
type: Number,
|
|
7912
|
-
default: 1000
|
|
7913
|
-
},
|
|
7914
|
-
transfer: {
|
|
7915
|
-
type: Boolean,
|
|
7916
|
-
default: true
|
|
7917
|
-
},
|
|
7918
|
-
className: {
|
|
7757
|
+
customClass: {
|
|
7919
7758
|
type: String
|
|
7920
|
-
},
|
|
7921
|
-
inner: {
|
|
7922
|
-
type: Boolean,
|
|
7923
|
-
default: false
|
|
7924
|
-
},
|
|
7925
|
-
// Whether drag and drop is allowed to adjust width
|
|
7926
|
-
draggable: {
|
|
7927
|
-
type: Boolean,
|
|
7928
|
-
default: false
|
|
7929
|
-
},
|
|
7930
|
-
beforeClose: Function,
|
|
7931
|
-
destroyOnClose: {
|
|
7932
|
-
type: Boolean,
|
|
7933
|
-
default: true
|
|
7934
7759
|
}
|
|
7935
7760
|
},
|
|
7936
|
-
|
|
7937
|
-
data() {
|
|
7938
|
-
return {
|
|
7939
|
-
prefixCls: prefixCls,
|
|
7940
|
-
visible: this.value,
|
|
7941
|
-
wrapShow: false,
|
|
7942
|
-
showHead: true,
|
|
7943
|
-
canMove: false,
|
|
7944
|
-
dragWidth: this.width,
|
|
7945
|
-
wrapperWidth: this.width,
|
|
7946
|
-
wrapperLeft: 0,
|
|
7947
|
-
minWidth: 256,
|
|
7948
|
-
key: 0
|
|
7949
|
-
};
|
|
7950
|
-
},
|
|
7951
|
-
|
|
7952
7761
|
computed: {
|
|
7953
|
-
|
|
7954
|
-
return
|
|
7955
|
-
[`${prefixCls}-hidden`]: !this.wrapShow,
|
|
7956
|
-
[`${this.className}`]: !!this.className,
|
|
7957
|
-
[`${prefixCls}-no-mask`]: !this.mask,
|
|
7958
|
-
[`${prefixCls}-wrap-inner`]: this.inner,
|
|
7959
|
-
[`${prefixCls}-wrap-dragging`]: this.canMove
|
|
7960
|
-
}];
|
|
7961
|
-
},
|
|
7962
|
-
|
|
7963
|
-
mainStyles() {
|
|
7964
|
-
let style = {};
|
|
7965
|
-
const width = parseInt(this.dragWidth);
|
|
7966
|
-
const styleWidth = {
|
|
7967
|
-
width: width <= 100 ? `${width}%` : `${width}px`
|
|
7968
|
-
};
|
|
7969
|
-
Object.assign(style, styleWidth);
|
|
7970
|
-
return style;
|
|
7971
|
-
},
|
|
7972
|
-
|
|
7973
|
-
contentClasses() {
|
|
7974
|
-
return [`${prefixCls}-content`, {
|
|
7975
|
-
[`${prefixCls}-content-no-mask`]: !this.mask
|
|
7976
|
-
}];
|
|
7977
|
-
},
|
|
7978
|
-
|
|
7979
|
-
classes() {
|
|
7980
|
-
return [`${prefixCls}`, `${prefixCls}-${this.placement}`, {
|
|
7981
|
-
[`${prefixCls}-no-header`]: !this.showHead,
|
|
7982
|
-
[`${prefixCls}-inner`]: this.inner
|
|
7983
|
-
}];
|
|
7762
|
+
realVisible() {
|
|
7763
|
+
return this.visible || this.value;
|
|
7984
7764
|
},
|
|
7985
7765
|
|
|
7986
|
-
|
|
7987
|
-
return
|
|
7988
|
-
[`${prefixCls}-mask-inner`]: this.inner
|
|
7989
|
-
}];
|
|
7766
|
+
realCustomClass() {
|
|
7767
|
+
return `ui-drawer ${this.customClass || ''}`;
|
|
7990
7768
|
}
|
|
7991
7769
|
|
|
7992
7770
|
},
|
|
7993
7771
|
methods: {
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
const before = this.beforeClose();
|
|
8000
|
-
|
|
8001
|
-
if (before && before.then) {
|
|
8002
|
-
before.then(() => {
|
|
8003
|
-
this.handleClose();
|
|
8004
|
-
});
|
|
8005
|
-
} else {
|
|
8006
|
-
this.handleClose();
|
|
8007
|
-
}
|
|
8008
|
-
},
|
|
8009
|
-
|
|
8010
|
-
handleClose() {
|
|
8011
|
-
this.visible = false;
|
|
8012
|
-
this.$emit('input', false);
|
|
8013
|
-
this.$emit('on-close');
|
|
8014
|
-
},
|
|
8015
|
-
|
|
8016
|
-
handleMask() {
|
|
8017
|
-
if (this.maskClosable && this.mask) {
|
|
8018
|
-
this.close();
|
|
8019
|
-
}
|
|
8020
|
-
},
|
|
8021
|
-
|
|
8022
|
-
handleWrapClick(event) {
|
|
8023
|
-
// use indexOf,do not use === ,because ivu-modal-wrap can have other custom className
|
|
8024
|
-
const className = event.target.getAttribute('class');
|
|
8025
|
-
if (className && className.indexOf(`${prefixCls}-wrap`) > -1) this.handleMask();
|
|
8026
|
-
},
|
|
8027
|
-
|
|
8028
|
-
handleMousemove(event) {
|
|
8029
|
-
if (!this.canMove || !this.draggable) return; // 更新容器宽度和距离左侧页面距离,如果是window则距左侧距离为0
|
|
8030
|
-
|
|
8031
|
-
this.handleSetWrapperWidth();
|
|
8032
|
-
const left = event.pageX - this.wrapperLeft; // 如果抽屉方向为右边,宽度计算需用容器宽度减去left
|
|
8033
|
-
|
|
8034
|
-
let width = this.placement === 'right' ? this.wrapperWidth - left : left; // 限定最小宽度
|
|
8035
|
-
|
|
8036
|
-
width = Math.max(width, parseFloat(this.minWidth));
|
|
8037
|
-
event.atMin = width === parseFloat(this.minWidth); // 如果当前width不大于100,视为百分比
|
|
8038
|
-
|
|
8039
|
-
if (width <= 100) width = width / this.wrapperWidth * 100;
|
|
8040
|
-
this.dragWidth = width;
|
|
8041
|
-
this.$emit('on-resize-width', parseInt(this.dragWidth));
|
|
8042
|
-
},
|
|
8043
|
-
|
|
8044
|
-
handleSetWrapperWidth() {
|
|
8045
|
-
const {
|
|
8046
|
-
width,
|
|
8047
|
-
left
|
|
8048
|
-
} = this.$el.getBoundingClientRect();
|
|
8049
|
-
this.wrapperWidth = width;
|
|
8050
|
-
this.wrapperLeft = left;
|
|
8051
|
-
},
|
|
8052
|
-
|
|
8053
|
-
handleMouseup() {
|
|
8054
|
-
if (!this.draggable) return;
|
|
8055
|
-
this.canMove = false;
|
|
8056
|
-
},
|
|
8057
|
-
|
|
8058
|
-
handleTriggerMousedown() {
|
|
8059
|
-
this.canMove = true; // 防止鼠标选中抽屉中文字,造成拖动trigger触发浏览器原生拖动行为
|
|
8060
|
-
|
|
8061
|
-
window.getSelection().removeAllRanges();
|
|
8062
|
-
}
|
|
8063
|
-
|
|
8064
|
-
},
|
|
8065
|
-
|
|
8066
|
-
mounted() {
|
|
8067
|
-
if (this.visible) {
|
|
8068
|
-
this.wrapShow = true;
|
|
8069
|
-
}
|
|
8070
|
-
|
|
8071
|
-
let showHead = true;
|
|
8072
|
-
|
|
8073
|
-
if (this.$slots.header === undefined && !this.title) {
|
|
8074
|
-
showHead = false;
|
|
8075
|
-
}
|
|
8076
|
-
|
|
8077
|
-
this.showHead = showHead;
|
|
8078
|
-
on(document, 'mousemove', this.handleMousemove);
|
|
8079
|
-
on(document, 'mouseup', this.handleMouseup);
|
|
8080
|
-
this.handleSetWrapperWidth();
|
|
8081
|
-
},
|
|
8082
|
-
|
|
8083
|
-
beforeDestroy() {
|
|
8084
|
-
off(document, 'mousemove', this.handleMousemove);
|
|
8085
|
-
off(document, 'mouseup', this.handleMouseup);
|
|
8086
|
-
},
|
|
8087
|
-
|
|
8088
|
-
watch: {
|
|
8089
|
-
value(val) {
|
|
8090
|
-
this.visible = val;
|
|
8091
|
-
|
|
8092
|
-
if (!val) {
|
|
8093
|
-
if (this.destroyOnClose) {
|
|
8094
|
-
this.$nextTick(() => {
|
|
8095
|
-
this.key++;
|
|
8096
|
-
});
|
|
8097
|
-
}
|
|
8098
|
-
}
|
|
8099
|
-
},
|
|
8100
|
-
|
|
8101
|
-
visible(val) {
|
|
8102
|
-
if (val === false) {
|
|
8103
|
-
this.timer = setTimeout(() => {
|
|
8104
|
-
this.wrapShow = false;
|
|
8105
|
-
}, 300);
|
|
8106
|
-
} else {
|
|
8107
|
-
if (this.timer) clearTimeout(this.timer);
|
|
8108
|
-
this.wrapShow = true;
|
|
8109
|
-
}
|
|
8110
|
-
|
|
8111
|
-
this.$emit('on-visible-change', val);
|
|
8112
|
-
},
|
|
8113
|
-
|
|
8114
|
-
title(val) {
|
|
8115
|
-
if (this.$slots.header === undefined) {
|
|
8116
|
-
this.showHead = !!val;
|
|
8117
|
-
}
|
|
8118
|
-
},
|
|
8119
|
-
|
|
8120
|
-
width(val) {
|
|
8121
|
-
this.dragWidth = val;
|
|
7772
|
+
onUpdateVisible(visible) {
|
|
7773
|
+
this.$emit('input', visible);
|
|
7774
|
+
this.$emit('change', visible);
|
|
7775
|
+
this.$emit('on-visible-change', visible);
|
|
8122
7776
|
}
|
|
8123
7777
|
|
|
8124
7778
|
}
|
|
@@ -8135,85 +7789,16 @@ var __vue_render__$e = function () {
|
|
|
8135
7789
|
|
|
8136
7790
|
var _c = _vm._self._c || _h;
|
|
8137
7791
|
|
|
8138
|
-
return _c('
|
|
8139
|
-
directives: [{
|
|
8140
|
-
name: "transfer-dom",
|
|
8141
|
-
rawName: "v-transfer-dom"
|
|
8142
|
-
}],
|
|
8143
|
-
attrs: {
|
|
8144
|
-
"data-transfer": _vm.transfer
|
|
8145
|
-
}
|
|
8146
|
-
}, [_c('transition', {
|
|
7792
|
+
return _c('el-drawer', _vm._g(_vm._b({
|
|
8147
7793
|
attrs: {
|
|
8148
|
-
"
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
directives: [{
|
|
8152
|
-
name: "show",
|
|
8153
|
-
rawName: "v-show",
|
|
8154
|
-
value: _vm.visible,
|
|
8155
|
-
expression: "visible"
|
|
8156
|
-
}],
|
|
8157
|
-
class: _vm.maskClasses,
|
|
8158
|
-
style: _vm.maskStyle,
|
|
8159
|
-
on: {
|
|
8160
|
-
"click": _vm.handleMask
|
|
8161
|
-
}
|
|
8162
|
-
}) : _vm._e()]), _vm._v(" "), _c('div', {
|
|
8163
|
-
class: _vm.wrapClasses,
|
|
8164
|
-
on: {
|
|
8165
|
-
"click": _vm.handleWrapClick
|
|
8166
|
-
}
|
|
8167
|
-
}, [_c('transition', {
|
|
8168
|
-
attrs: {
|
|
8169
|
-
"name": 'move-' + _vm.placement
|
|
8170
|
-
}
|
|
8171
|
-
}, [_c('div', {
|
|
8172
|
-
directives: [{
|
|
8173
|
-
name: "show",
|
|
8174
|
-
rawName: "v-show",
|
|
8175
|
-
value: _vm.visible,
|
|
8176
|
-
expression: "visible"
|
|
8177
|
-
}],
|
|
8178
|
-
class: _vm.classes,
|
|
8179
|
-
style: _vm.mainStyles
|
|
8180
|
-
}, [_c('div', {
|
|
8181
|
-
key: _vm.key,
|
|
8182
|
-
ref: "content",
|
|
8183
|
-
class: _vm.contentClasses
|
|
8184
|
-
}, [_vm.closable ? _c('a', {
|
|
8185
|
-
staticClass: "ui-drawer-close",
|
|
8186
|
-
on: {
|
|
8187
|
-
"click": _vm.close
|
|
8188
|
-
}
|
|
8189
|
-
}, [_vm._t("close", function () {
|
|
8190
|
-
return [_c('i', {
|
|
8191
|
-
staticClass: "el-icon-close"
|
|
8192
|
-
})];
|
|
8193
|
-
})], 2) : _vm._e(), _vm._v(" "), _vm.showHead ? _c('div', {
|
|
8194
|
-
class: [_vm.prefixCls + '-header']
|
|
8195
|
-
}, [_vm._t("header", function () {
|
|
8196
|
-
return [_c('div', {
|
|
8197
|
-
class: [_vm.prefixCls + '-header-inner']
|
|
8198
|
-
}, [_vm._v(_vm._s(_vm.title))])];
|
|
8199
|
-
})], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
8200
|
-
class: [_vm.prefixCls + '-body'],
|
|
8201
|
-
style: _vm.styles
|
|
8202
|
-
}, [_vm._t("default")], 2)]), _vm._v(" "), _vm.draggable ? _c('div', {
|
|
8203
|
-
staticClass: "ui-drawer-drag",
|
|
8204
|
-
class: {
|
|
8205
|
-
'ui-drawer-drag-left': _vm.placement === 'left'
|
|
7794
|
+
"size": _vm.width,
|
|
7795
|
+
"visible": _vm.realVisible,
|
|
7796
|
+
"custom-class": _vm.realCustomClass
|
|
8206
7797
|
},
|
|
8207
7798
|
on: {
|
|
8208
|
-
"
|
|
7799
|
+
"update:visible": _vm.onUpdateVisible
|
|
8209
7800
|
}
|
|
8210
|
-
}, [_vm._t("
|
|
8211
|
-
return [_c('div', {
|
|
8212
|
-
staticClass: "ui-drawer-drag-move-trigger"
|
|
8213
|
-
}, [_c('div', {
|
|
8214
|
-
staticClass: "ui-drawer-drag-move-trigger-point"
|
|
8215
|
-
}, [_c('i'), _c('i'), _c('i'), _c('i'), _c('i')])])];
|
|
8216
|
-
})], 2) : _vm._e()])])], 1)], 1);
|
|
7801
|
+
}, 'el-drawer', _vm.$attrs, false), _vm.$listeners), [_vm._t("default")], 2);
|
|
8217
7802
|
};
|
|
8218
7803
|
|
|
8219
7804
|
var __vue_staticRenderFns__$e = [];
|
|
@@ -8221,8 +7806,8 @@ var __vue_staticRenderFns__$e = [];
|
|
|
8221
7806
|
|
|
8222
7807
|
const __vue_inject_styles__$f = function (inject) {
|
|
8223
7808
|
if (!inject) return;
|
|
8224
|
-
inject("data-v-
|
|
8225
|
-
source: ".ui-drawer
|
|
7809
|
+
inject("data-v-f1a8d0b8_0", {
|
|
7810
|
+
source: ".ui-drawer .el-drawer__header{margin:0;padding:14px 16px;height:50px;border-bottom:1px solid #e8eaec;display:flex;flex-direction:row;align-items:center}.ui-drawer .el-drawer__header>span:first-child{color:#17233d}.ui-drawer .el-drawer__body{height:calc(100% - 51px);display:flex;flex-direction:column}",
|
|
8226
7811
|
map: undefined,
|
|
8227
7812
|
media: undefined
|
|
8228
7813
|
});
|
|
@@ -8296,20 +7881,6 @@ var script$e = {
|
|
|
8296
7881
|
loading: Boolean,
|
|
8297
7882
|
labelWidth: String,
|
|
8298
7883
|
labelPosition: String,
|
|
8299
|
-
// 是否将抽屉放置于 body 内
|
|
8300
|
-
transfer: {
|
|
8301
|
-
type: Boolean,
|
|
8302
|
-
default: false
|
|
8303
|
-
},
|
|
8304
|
-
mask: {
|
|
8305
|
-
type: Boolean,
|
|
8306
|
-
default: false
|
|
8307
|
-
},
|
|
8308
|
-
// 是否设置抽屉在某个元素内打开,开启此属性时,应当关闭 transfer 属性
|
|
8309
|
-
inner: {
|
|
8310
|
-
type: Boolean,
|
|
8311
|
-
default: true
|
|
8312
|
-
},
|
|
8313
7884
|
disabled: {
|
|
8314
7885
|
type: Boolean,
|
|
8315
7886
|
default: undefined
|
|
@@ -8472,15 +8043,12 @@ var __vue_render__$d = function () {
|
|
|
8472
8043
|
|
|
8473
8044
|
return _c('ui-drawer', _vm._g(_vm._b({
|
|
8474
8045
|
attrs: {
|
|
8475
|
-
"class
|
|
8476
|
-
"
|
|
8477
|
-
"width": _vm.width
|
|
8478
|
-
"transfer": _vm.transfer,
|
|
8479
|
-
"mask": _vm.mask,
|
|
8480
|
-
"inner": _vm.inner
|
|
8046
|
+
"custom-class": "ui-form-drawer",
|
|
8047
|
+
"visible": _vm.visible,
|
|
8048
|
+
"width": _vm.width
|
|
8481
8049
|
},
|
|
8482
8050
|
on: {
|
|
8483
|
-
"
|
|
8051
|
+
"update:visible": _vm.updateVisible
|
|
8484
8052
|
}
|
|
8485
8053
|
}, 'ui-drawer', _vm.$attrs, false), _vm.drawerListeners), [_c('div', {
|
|
8486
8054
|
directives: [{
|
|
@@ -8529,8 +8097,8 @@ var __vue_staticRenderFns__$d = [];
|
|
|
8529
8097
|
|
|
8530
8098
|
const __vue_inject_styles__$e = function (inject) {
|
|
8531
8099
|
if (!inject) return;
|
|
8532
|
-
inject("data-v-
|
|
8533
|
-
source: ".ui-form-drawer{display:flex;flex-direction:column;padding:0;outline:0}.ui-form-drawer .
|
|
8100
|
+
inject("data-v-168074a3_0", {
|
|
8101
|
+
source: ".ui-form-drawer{display:flex;flex-direction:column;padding:0;outline:0}.ui-form-drawer .el-drawer-body{flex:1;padding:0;overflow:hidden;display:flex;flex-direction:column}.ui-form-drawer .el-drawer-body>.el-form{flex:1;overflow:auto}.ui-form-drawer .el-drawer-body>.action-button{flex:none}.ui-form-drawer .ui-form-drawer-wrapper{flex:1;overflow:hidden}.ui-form-drawer .ui-form-drawer-wrapper .el-form{width:100%;height:100%;overflow:auto;padding:16px;box-sizing:border-box}.ui-form-drawer .action-button{flex:none;padding:16px;border-top:1px solid #e8eaec;display:flex;flex-direction:row-reverse}.ui-form-drawer .action-button button+button{margin-right:16px}.ui-form-drawer .action-button::after{content:'';clear:both}",
|
|
8534
8102
|
map: undefined,
|
|
8535
8103
|
media: undefined
|
|
8536
8104
|
});
|