xrk-components 0.4.2-beta.4 → 0.4.2-beta.5
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/lib/index.esm.js +69 -61
- package/lib/index.umd.js +69 -61
- package/lib/packages/hooks/use-create-modal.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -20446,7 +20446,7 @@ const inputEmits = {
|
|
|
20446
20446
|
|
|
20447
20447
|
const _hoisted_1$y = ["role"];
|
|
20448
20448
|
const _hoisted_2$m = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"];
|
|
20449
|
-
const _hoisted_3$
|
|
20449
|
+
const _hoisted_3$a = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
|
|
20450
20450
|
const __default__$Q = defineComponent({
|
|
20451
20451
|
name: "ElInput",
|
|
20452
20452
|
inheritAttrs: false
|
|
@@ -20839,7 +20839,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
20839
20839
|
onBlur: handleBlur,
|
|
20840
20840
|
onChange: handleChange,
|
|
20841
20841
|
onKeydown: handleKeydown
|
|
20842
|
-
}), null, 16, _hoisted_3$
|
|
20842
|
+
}), null, 16, _hoisted_3$a),
|
|
20843
20843
|
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
|
20844
20844
|
key: 0,
|
|
20845
20845
|
style: normalizeStyle(countStyle.value),
|
|
@@ -25940,7 +25940,7 @@ const useCheckbox = (props, slots) => {
|
|
|
25940
25940
|
|
|
25941
25941
|
const _hoisted_1$t = ["tabindex", "role", "aria-checked"];
|
|
25942
25942
|
const _hoisted_2$i = ["id", "aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
25943
|
-
const _hoisted_3$
|
|
25943
|
+
const _hoisted_3$9 = ["id", "aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
25944
25944
|
const __default__$E = defineComponent({
|
|
25945
25945
|
name: "ElCheckbox"
|
|
25946
25946
|
});
|
|
@@ -26020,7 +26020,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
26020
26020
|
onChange: _cache[5] || (_cache[5] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
|
|
26021
26021
|
onFocus: _cache[6] || (_cache[6] = ($event) => isFocused.value = true),
|
|
26022
26022
|
onBlur: _cache[7] || (_cache[7] = ($event) => isFocused.value = false)
|
|
26023
|
-
}, null, 42, _hoisted_3$
|
|
26023
|
+
}, null, 42, _hoisted_3$9)), [
|
|
26024
26024
|
[vModelCheckbox, unref(model)]
|
|
26025
26025
|
]),
|
|
26026
26026
|
createElementVNode("span", {
|
|
@@ -26877,7 +26877,7 @@ const _hoisted_2$g = {
|
|
|
26877
26877
|
key: 0,
|
|
26878
26878
|
scope: "col"
|
|
26879
26879
|
};
|
|
26880
|
-
const _hoisted_3$
|
|
26880
|
+
const _hoisted_3$8 = ["aria-label"];
|
|
26881
26881
|
const _hoisted_4$5 = ["aria-current", "aria-selected", "tabindex"];
|
|
26882
26882
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
26883
26883
|
__name: "basic-date-table",
|
|
@@ -27195,7 +27195,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
27195
27195
|
key,
|
|
27196
27196
|
scope: "col",
|
|
27197
27197
|
"aria-label": unref(t)("el.datepicker.weeksFull." + week)
|
|
27198
|
-
}, toDisplayString(unref(t)("el.datepicker.weeks." + week)), 9, _hoisted_3$
|
|
27198
|
+
}, toDisplayString(unref(t)("el.datepicker.weeks." + week)), 9, _hoisted_3$8);
|
|
27199
27199
|
}), 128))
|
|
27200
27200
|
]),
|
|
27201
27201
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, rowKey) => {
|
|
@@ -27233,7 +27233,7 @@ const basicMonthTableProps = buildProps({
|
|
|
27233
27233
|
|
|
27234
27234
|
const _hoisted_1$n = ["aria-label"];
|
|
27235
27235
|
const _hoisted_2$f = ["aria-selected", "aria-label", "tabindex", "onKeydown"];
|
|
27236
|
-
const _hoisted_3$
|
|
27236
|
+
const _hoisted_3$7 = { class: "cell" };
|
|
27237
27237
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
27238
27238
|
__name: "basic-month-table",
|
|
27239
27239
|
props: basicMonthTableProps,
|
|
@@ -27416,7 +27416,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
27416
27416
|
]
|
|
27417
27417
|
}, [
|
|
27418
27418
|
createElementVNode("div", null, [
|
|
27419
|
-
createElementVNode("span", _hoisted_3$
|
|
27419
|
+
createElementVNode("span", _hoisted_3$7, toDisplayString(unref(t)("el.datepicker.months." + months.value[cell.text])), 1)
|
|
27420
27420
|
])
|
|
27421
27421
|
], 42, _hoisted_2$f);
|
|
27422
27422
|
}), 128))
|
|
@@ -27438,7 +27438,7 @@ const basicYearTableProps = buildProps({
|
|
|
27438
27438
|
|
|
27439
27439
|
const _hoisted_1$m = ["aria-label"];
|
|
27440
27440
|
const _hoisted_2$e = ["aria-selected", "tabindex", "onKeydown"];
|
|
27441
|
-
const _hoisted_3$
|
|
27441
|
+
const _hoisted_3$6 = { class: "cell" };
|
|
27442
27442
|
const _hoisted_4$4 = { key: 1 };
|
|
27443
27443
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
27444
27444
|
__name: "basic-year-table",
|
|
@@ -27523,7 +27523,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
27523
27523
|
withKeys(withModifiers(handleYearTableClick, ["prevent", "stop"]), ["enter"])
|
|
27524
27524
|
]
|
|
27525
27525
|
}, [
|
|
27526
|
-
createElementVNode("span", _hoisted_3$
|
|
27526
|
+
createElementVNode("span", _hoisted_3$6, toDisplayString(unref(startYear) + i * 4 + j), 1)
|
|
27527
27527
|
], 42, _hoisted_2$e)) : (openBlock(), createElementBlock("td", _hoisted_4$4))
|
|
27528
27528
|
], 64);
|
|
27529
27529
|
}), 64))
|
|
@@ -27538,7 +27538,7 @@ var YearTable = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__file", "/home/runn
|
|
|
27538
27538
|
|
|
27539
27539
|
const _hoisted_1$l = ["onClick"];
|
|
27540
27540
|
const _hoisted_2$d = ["aria-label"];
|
|
27541
|
-
const _hoisted_3$
|
|
27541
|
+
const _hoisted_3$5 = ["aria-label"];
|
|
27542
27542
|
const _hoisted_4$3 = ["aria-label"];
|
|
27543
27543
|
const _hoisted_5$3 = ["aria-label"];
|
|
27544
27544
|
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
@@ -28026,7 +28026,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
28026
28026
|
]),
|
|
28027
28027
|
_: 1
|
|
28028
28028
|
})
|
|
28029
|
-
], 10, _hoisted_3$
|
|
28029
|
+
], 10, _hoisted_3$5), [
|
|
28030
28030
|
[vShow, currentView.value === "date"]
|
|
28031
28031
|
])
|
|
28032
28032
|
], 2),
|
|
@@ -28265,7 +28265,7 @@ const useRangePicker = (props, {
|
|
|
28265
28265
|
|
|
28266
28266
|
const _hoisted_1$k = ["onClick"];
|
|
28267
28267
|
const _hoisted_2$c = ["disabled"];
|
|
28268
|
-
const _hoisted_3$
|
|
28268
|
+
const _hoisted_3$4 = ["disabled"];
|
|
28269
28269
|
const _hoisted_4$2 = ["disabled"];
|
|
28270
28270
|
const _hoisted_5$2 = ["disabled"];
|
|
28271
28271
|
const unit$1 = "month";
|
|
@@ -28781,7 +28781,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
28781
28781
|
]),
|
|
28782
28782
|
_: 1
|
|
28783
28783
|
})
|
|
28784
|
-
], 10, _hoisted_3$
|
|
28784
|
+
], 10, _hoisted_3$4)) : createCommentVNode("v-if", true),
|
|
28785
28785
|
createElementVNode("div", null, toDisplayString(unref(leftLabel)), 1)
|
|
28786
28786
|
], 2),
|
|
28787
28787
|
createVNode(DateTable, {
|
|
@@ -28965,7 +28965,7 @@ const useMonthRangeHeader = ({
|
|
|
28965
28965
|
|
|
28966
28966
|
const _hoisted_1$j = ["onClick"];
|
|
28967
28967
|
const _hoisted_2$b = ["disabled"];
|
|
28968
|
-
const _hoisted_3$
|
|
28968
|
+
const _hoisted_3$3 = ["disabled"];
|
|
28969
28969
|
const unit = "year";
|
|
28970
28970
|
const __default__$x = defineComponent({
|
|
28971
28971
|
name: "DatePickerMonthRange"
|
|
@@ -29143,7 +29143,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
29143
29143
|
]),
|
|
29144
29144
|
_: 1
|
|
29145
29145
|
})
|
|
29146
|
-
], 10, _hoisted_3$
|
|
29146
|
+
], 10, _hoisted_3$3)) : createCommentVNode("v-if", true),
|
|
29147
29147
|
createElementVNode("button", {
|
|
29148
29148
|
type: "button",
|
|
29149
29149
|
class: normalizeClass([unref(ppNs).e("icon-btn"), "d-arrow-right"]),
|
|
@@ -33722,7 +33722,7 @@ const paginationPagerProps = buildProps({
|
|
|
33722
33722
|
|
|
33723
33723
|
const _hoisted_1$a = ["onKeyup"];
|
|
33724
33724
|
const _hoisted_2$6 = ["aria-current", "tabindex"];
|
|
33725
|
-
const _hoisted_3$
|
|
33725
|
+
const _hoisted_3$2 = ["tabindex"];
|
|
33726
33726
|
const _hoisted_4$1 = ["aria-current", "tabindex"];
|
|
33727
33727
|
const _hoisted_5$1 = ["tabindex"];
|
|
33728
33728
|
const _hoisted_6 = ["aria-current", "tabindex"];
|
|
@@ -33879,7 +33879,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
33879
33879
|
onBlur: _cache[3] || (_cache[3] = ($event) => quickPrevFocus.value = false)
|
|
33880
33880
|
}, [
|
|
33881
33881
|
quickPrevHover.value || quickPrevFocus.value ? (openBlock(), createBlock(unref(d_arrow_left_default), { key: 0 })) : (openBlock(), createBlock(unref(more_filled_default), { key: 1 }))
|
|
33882
|
-
], 42, _hoisted_3$
|
|
33882
|
+
], 42, _hoisted_3$2)) : createCommentVNode("v-if", true),
|
|
33883
33883
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(pagers), (pager) => {
|
|
33884
33884
|
return openBlock(), createElementBlock("li", {
|
|
33885
33885
|
key: pager,
|
|
@@ -34265,7 +34265,7 @@ const switchEmits = {
|
|
|
34265
34265
|
|
|
34266
34266
|
const _hoisted_1$9 = ["onClick"];
|
|
34267
34267
|
const _hoisted_2$5 = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"];
|
|
34268
|
-
const _hoisted_3$
|
|
34268
|
+
const _hoisted_3$1 = ["aria-hidden"];
|
|
34269
34269
|
const _hoisted_4 = ["aria-hidden"];
|
|
34270
34270
|
const _hoisted_5 = ["aria-hidden"];
|
|
34271
34271
|
const COMPONENT_NAME = "ElSwitch";
|
|
@@ -34426,7 +34426,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
34426
34426
|
!_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
|
|
34427
34427
|
key: 1,
|
|
34428
34428
|
"aria-hidden": unref(checked)
|
|
34429
|
-
}, toDisplayString(_ctx.inactiveText), 9, _hoisted_3$
|
|
34429
|
+
}, toDisplayString(_ctx.inactiveText), 9, _hoisted_3$1)) : createCommentVNode("v-if", true)
|
|
34430
34430
|
], 2)) : createCommentVNode("v-if", true),
|
|
34431
34431
|
createElementVNode("span", {
|
|
34432
34432
|
ref_key: "core",
|
|
@@ -36262,7 +36262,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
36262
36262
|
});
|
|
36263
36263
|
const _hoisted_1$8 = { key: 0 };
|
|
36264
36264
|
const _hoisted_2$4 = ["disabled"];
|
|
36265
|
-
const _hoisted_3
|
|
36265
|
+
const _hoisted_3 = ["label", "onClick"];
|
|
36266
36266
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36267
36267
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
36268
36268
|
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
@@ -36351,7 +36351,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36351
36351
|
class: normalizeClass([_ctx.ns.e("list-item"), _ctx.ns.is("active", _ctx.isActive(filter))]),
|
|
36352
36352
|
label: filter.value,
|
|
36353
36353
|
onClick: ($event) => _ctx.handleSelect(filter.value)
|
|
36354
|
-
}, toDisplayString(filter.text), 11, _hoisted_3
|
|
36354
|
+
}, toDisplayString(filter.text), 11, _hoisted_3);
|
|
36355
36355
|
}), 128))
|
|
36356
36356
|
], 2))
|
|
36357
36357
|
]),
|
|
@@ -41897,7 +41897,6 @@ var XrkTable = script$1;
|
|
|
41897
41897
|
|
|
41898
41898
|
var _hoisted_1 = { key: 1 };
|
|
41899
41899
|
var _hoisted_2 = { key: 1 };
|
|
41900
|
-
var _hoisted_3 = { key: 1 };
|
|
41901
41900
|
var __default__ = {
|
|
41902
41901
|
name: 'base-dialog'
|
|
41903
41902
|
};
|
|
@@ -42028,42 +42027,44 @@ var script = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__), {
|
|
|
42028
42027
|
key: 0,
|
|
42029
42028
|
render: __props.titleRender
|
|
42030
42029
|
}, null, 8 /* PROPS */, ["render"]))
|
|
42031
|
-
: (
|
|
42032
|
-
|
|
42033
|
-
|
|
42030
|
+
: renderSlot(_ctx.$slots, "header", { key: 1 }, function () { return [
|
|
42031
|
+
createTextVNode(toDisplayString(__props.title), 1 /* TEXT */)
|
|
42032
|
+
]; })
|
|
42034
42033
|
]; }),
|
|
42035
42034
|
footer: withCtx(function () { return [
|
|
42036
|
-
(
|
|
42037
|
-
|
|
42038
|
-
|
|
42039
|
-
|
|
42040
|
-
|
|
42041
|
-
|
|
42042
|
-
|
|
42043
|
-
(
|
|
42044
|
-
|
|
42045
|
-
|
|
42046
|
-
|
|
42047
|
-
|
|
42048
|
-
|
|
42049
|
-
|
|
42050
|
-
|
|
42051
|
-
|
|
42052
|
-
|
|
42053
|
-
|
|
42054
|
-
|
|
42055
|
-
|
|
42056
|
-
|
|
42057
|
-
|
|
42058
|
-
|
|
42059
|
-
|
|
42060
|
-
|
|
42061
|
-
|
|
42062
|
-
|
|
42063
|
-
|
|
42064
|
-
|
|
42065
|
-
|
|
42066
|
-
|
|
42035
|
+
renderSlot(_ctx.$slots, "footer", {}, function () { return [
|
|
42036
|
+
(__props.footerRender)
|
|
42037
|
+
? (openBlock(), createBlock(unref(BaseDialogRender), {
|
|
42038
|
+
key: 0,
|
|
42039
|
+
render: __props.footerRender
|
|
42040
|
+
}, null, 8 /* PROPS */, ["render"]))
|
|
42041
|
+
: (__props.showFooter)
|
|
42042
|
+
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
42043
|
+
(__props.cancelBtnConfig.show)
|
|
42044
|
+
? (openBlock(), createBlock(unref(BaseButton), mergeProps({
|
|
42045
|
+
key: 0,
|
|
42046
|
+
size: "large"
|
|
42047
|
+
}, __props.cancelBtnConfig, { click: handleCancelClick }), {
|
|
42048
|
+
default: withCtx(function () { return [
|
|
42049
|
+
createTextVNode(toDisplayString(__props.cancelBtnConfig.content), 1 /* TEXT */)
|
|
42050
|
+
]; }),
|
|
42051
|
+
_: 1 /* STABLE */
|
|
42052
|
+
}, 16 /* FULL_PROPS */))
|
|
42053
|
+
: createCommentVNode("v-if", true),
|
|
42054
|
+
(__props.confirmBtnConfig.show)
|
|
42055
|
+
? (openBlock(), createBlock(unref(BaseButton), mergeProps({
|
|
42056
|
+
key: 1,
|
|
42057
|
+
size: "large"
|
|
42058
|
+
}, __props.confirmBtnConfig, { click: handleConfirmClick }), {
|
|
42059
|
+
default: withCtx(function () { return [
|
|
42060
|
+
createTextVNode(toDisplayString(__props.confirmBtnConfig.content), 1 /* TEXT */)
|
|
42061
|
+
]; }),
|
|
42062
|
+
_: 1 /* STABLE */
|
|
42063
|
+
}, 16 /* FULL_PROPS */))
|
|
42064
|
+
: createCommentVNode("v-if", true)
|
|
42065
|
+
]))
|
|
42066
|
+
: createCommentVNode("v-if", true)
|
|
42067
|
+
]; })
|
|
42067
42068
|
]; }),
|
|
42068
42069
|
default: withCtx(function () { return [
|
|
42069
42070
|
(__props.contentRender)
|
|
@@ -42072,7 +42073,7 @@ var script = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__), {
|
|
|
42072
42073
|
render: __props.contentRender
|
|
42073
42074
|
}, null, 8 /* PROPS */, ["render"]))
|
|
42074
42075
|
: (__props.content)
|
|
42075
|
-
? (openBlock(), createElementBlock("div",
|
|
42076
|
+
? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.content), 1 /* TEXT */))
|
|
42076
42077
|
: renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
42077
42078
|
]; }),
|
|
42078
42079
|
_: 3 /* FORWARDED */
|
|
@@ -42189,12 +42190,18 @@ var useCreateModal = function (component, options, app) {
|
|
|
42189
42190
|
var _instance = null;
|
|
42190
42191
|
var container = document.createElement('div');
|
|
42191
42192
|
var remove = function () {
|
|
42192
|
-
_instance = null;
|
|
42193
42193
|
container.remove();
|
|
42194
|
+
_instance = null;
|
|
42194
42195
|
};
|
|
42195
|
-
_instance = createVNode(component, __assign({ remove: remove, onRemove: function () {
|
|
42196
|
+
_instance = createVNode(component, __assign({ remove: remove, close: remove, onRemove: function () {
|
|
42197
|
+
remove();
|
|
42198
|
+
},
|
|
42199
|
+
// 兼容base-dialog
|
|
42200
|
+
onClose: function () {
|
|
42196
42201
|
remove();
|
|
42197
|
-
}
|
|
42202
|
+
},
|
|
42203
|
+
// 兼容base-dialog,true会导致没有append到container容器中
|
|
42204
|
+
appendToBody: false }, options));
|
|
42198
42205
|
// inject 函数调用组件导致内部inject无法接收到,需要使用app.provide(全局): https://github.com/vuejs/core/issues/6220
|
|
42199
42206
|
// context createApp需要use插件,内部才能使用插件\库相关API。可以直接修改上下文: https://github.com/vuejs/core/issues/2097
|
|
42200
42207
|
if (app) {
|
|
@@ -42205,6 +42212,7 @@ var useCreateModal = function (component, options, app) {
|
|
|
42205
42212
|
// 在组件添加一个 remove 方法用来销毁组件
|
|
42206
42213
|
// 组件内调用 currentInstance.ctx.remove()
|
|
42207
42214
|
_instance.component.ctx.remove = remove;
|
|
42215
|
+
_instance.component.ctx.close = close;
|
|
42208
42216
|
console.log(_instance, '组件_instance');
|
|
42209
42217
|
// 更新props方法
|
|
42210
42218
|
_instance.component.ctx.$updateProps = function (props) {
|
package/lib/index.umd.js
CHANGED
|
@@ -20449,7 +20449,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
20449
20449
|
|
|
20450
20450
|
const _hoisted_1$y = ["role"];
|
|
20451
20451
|
const _hoisted_2$m = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"];
|
|
20452
|
-
const _hoisted_3$
|
|
20452
|
+
const _hoisted_3$a = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
|
|
20453
20453
|
const __default__$Q = vue.defineComponent({
|
|
20454
20454
|
name: "ElInput",
|
|
20455
20455
|
inheritAttrs: false
|
|
@@ -20842,7 +20842,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
20842
20842
|
onBlur: handleBlur,
|
|
20843
20843
|
onChange: handleChange,
|
|
20844
20844
|
onKeydown: handleKeydown
|
|
20845
|
-
}), null, 16, _hoisted_3$
|
|
20845
|
+
}), null, 16, _hoisted_3$a),
|
|
20846
20846
|
vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
20847
20847
|
key: 0,
|
|
20848
20848
|
style: vue.normalizeStyle(countStyle.value),
|
|
@@ -25943,7 +25943,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
25943
25943
|
|
|
25944
25944
|
const _hoisted_1$t = ["tabindex", "role", "aria-checked"];
|
|
25945
25945
|
const _hoisted_2$i = ["id", "aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
25946
|
-
const _hoisted_3$
|
|
25946
|
+
const _hoisted_3$9 = ["id", "aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
25947
25947
|
const __default__$E = vue.defineComponent({
|
|
25948
25948
|
name: "ElCheckbox"
|
|
25949
25949
|
});
|
|
@@ -26023,7 +26023,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
26023
26023
|
onChange: _cache[5] || (_cache[5] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
26024
26024
|
onFocus: _cache[6] || (_cache[6] = ($event) => isFocused.value = true),
|
|
26025
26025
|
onBlur: _cache[7] || (_cache[7] = ($event) => isFocused.value = false)
|
|
26026
|
-
}, null, 42, _hoisted_3$
|
|
26026
|
+
}, null, 42, _hoisted_3$9)), [
|
|
26027
26027
|
[vue.vModelCheckbox, vue.unref(model)]
|
|
26028
26028
|
]),
|
|
26029
26029
|
vue.createElementVNode("span", {
|
|
@@ -26880,7 +26880,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
26880
26880
|
key: 0,
|
|
26881
26881
|
scope: "col"
|
|
26882
26882
|
};
|
|
26883
|
-
const _hoisted_3$
|
|
26883
|
+
const _hoisted_3$8 = ["aria-label"];
|
|
26884
26884
|
const _hoisted_4$5 = ["aria-current", "aria-selected", "tabindex"];
|
|
26885
26885
|
const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
|
|
26886
26886
|
__name: "basic-date-table",
|
|
@@ -27198,7 +27198,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
27198
27198
|
key,
|
|
27199
27199
|
scope: "col",
|
|
27200
27200
|
"aria-label": vue.unref(t)("el.datepicker.weeksFull." + week)
|
|
27201
|
-
}, vue.toDisplayString(vue.unref(t)("el.datepicker.weeks." + week)), 9, _hoisted_3$
|
|
27201
|
+
}, vue.toDisplayString(vue.unref(t)("el.datepicker.weeks." + week)), 9, _hoisted_3$8);
|
|
27202
27202
|
}), 128))
|
|
27203
27203
|
]),
|
|
27204
27204
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(rows), (row, rowKey) => {
|
|
@@ -27236,7 +27236,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
27236
27236
|
|
|
27237
27237
|
const _hoisted_1$n = ["aria-label"];
|
|
27238
27238
|
const _hoisted_2$f = ["aria-selected", "aria-label", "tabindex", "onKeydown"];
|
|
27239
|
-
const _hoisted_3$
|
|
27239
|
+
const _hoisted_3$7 = { class: "cell" };
|
|
27240
27240
|
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
27241
27241
|
__name: "basic-month-table",
|
|
27242
27242
|
props: basicMonthTableProps,
|
|
@@ -27419,7 +27419,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
27419
27419
|
]
|
|
27420
27420
|
}, [
|
|
27421
27421
|
vue.createElementVNode("div", null, [
|
|
27422
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
27422
|
+
vue.createElementVNode("span", _hoisted_3$7, vue.toDisplayString(vue.unref(t)("el.datepicker.months." + months.value[cell.text])), 1)
|
|
27423
27423
|
])
|
|
27424
27424
|
], 42, _hoisted_2$f);
|
|
27425
27425
|
}), 128))
|
|
@@ -27441,7 +27441,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
27441
27441
|
|
|
27442
27442
|
const _hoisted_1$m = ["aria-label"];
|
|
27443
27443
|
const _hoisted_2$e = ["aria-selected", "tabindex", "onKeydown"];
|
|
27444
|
-
const _hoisted_3$
|
|
27444
|
+
const _hoisted_3$6 = { class: "cell" };
|
|
27445
27445
|
const _hoisted_4$4 = { key: 1 };
|
|
27446
27446
|
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
27447
27447
|
__name: "basic-year-table",
|
|
@@ -27526,7 +27526,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
27526
27526
|
vue.withKeys(vue.withModifiers(handleYearTableClick, ["prevent", "stop"]), ["enter"])
|
|
27527
27527
|
]
|
|
27528
27528
|
}, [
|
|
27529
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
27529
|
+
vue.createElementVNode("span", _hoisted_3$6, vue.toDisplayString(vue.unref(startYear) + i * 4 + j), 1)
|
|
27530
27530
|
], 42, _hoisted_2$e)) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_4$4))
|
|
27531
27531
|
], 64);
|
|
27532
27532
|
}), 64))
|
|
@@ -27541,7 +27541,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
27541
27541
|
|
|
27542
27542
|
const _hoisted_1$l = ["onClick"];
|
|
27543
27543
|
const _hoisted_2$d = ["aria-label"];
|
|
27544
|
-
const _hoisted_3$
|
|
27544
|
+
const _hoisted_3$5 = ["aria-label"];
|
|
27545
27545
|
const _hoisted_4$3 = ["aria-label"];
|
|
27546
27546
|
const _hoisted_5$3 = ["aria-label"];
|
|
27547
27547
|
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -28029,7 +28029,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
28029
28029
|
]),
|
|
28030
28030
|
_: 1
|
|
28031
28031
|
})
|
|
28032
|
-
], 10, _hoisted_3$
|
|
28032
|
+
], 10, _hoisted_3$5), [
|
|
28033
28033
|
[vue.vShow, currentView.value === "date"]
|
|
28034
28034
|
])
|
|
28035
28035
|
], 2),
|
|
@@ -28268,7 +28268,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
28268
28268
|
|
|
28269
28269
|
const _hoisted_1$k = ["onClick"];
|
|
28270
28270
|
const _hoisted_2$c = ["disabled"];
|
|
28271
|
-
const _hoisted_3$
|
|
28271
|
+
const _hoisted_3$4 = ["disabled"];
|
|
28272
28272
|
const _hoisted_4$2 = ["disabled"];
|
|
28273
28273
|
const _hoisted_5$2 = ["disabled"];
|
|
28274
28274
|
const unit$1 = "month";
|
|
@@ -28784,7 +28784,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
28784
28784
|
]),
|
|
28785
28785
|
_: 1
|
|
28786
28786
|
})
|
|
28787
|
-
], 10, _hoisted_3$
|
|
28787
|
+
], 10, _hoisted_3$4)) : vue.createCommentVNode("v-if", true),
|
|
28788
28788
|
vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(leftLabel)), 1)
|
|
28789
28789
|
], 2),
|
|
28790
28790
|
vue.createVNode(DateTable, {
|
|
@@ -28968,7 +28968,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
28968
28968
|
|
|
28969
28969
|
const _hoisted_1$j = ["onClick"];
|
|
28970
28970
|
const _hoisted_2$b = ["disabled"];
|
|
28971
|
-
const _hoisted_3$
|
|
28971
|
+
const _hoisted_3$3 = ["disabled"];
|
|
28972
28972
|
const unit = "year";
|
|
28973
28973
|
const __default__$x = vue.defineComponent({
|
|
28974
28974
|
name: "DatePickerMonthRange"
|
|
@@ -29146,7 +29146,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
29146
29146
|
]),
|
|
29147
29147
|
_: 1
|
|
29148
29148
|
})
|
|
29149
|
-
], 10, _hoisted_3$
|
|
29149
|
+
], 10, _hoisted_3$3)) : vue.createCommentVNode("v-if", true),
|
|
29150
29150
|
vue.createElementVNode("button", {
|
|
29151
29151
|
type: "button",
|
|
29152
29152
|
class: vue.normalizeClass([vue.unref(ppNs).e("icon-btn"), "d-arrow-right"]),
|
|
@@ -33725,7 +33725,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
33725
33725
|
|
|
33726
33726
|
const _hoisted_1$a = ["onKeyup"];
|
|
33727
33727
|
const _hoisted_2$6 = ["aria-current", "tabindex"];
|
|
33728
|
-
const _hoisted_3$
|
|
33728
|
+
const _hoisted_3$2 = ["tabindex"];
|
|
33729
33729
|
const _hoisted_4$1 = ["aria-current", "tabindex"];
|
|
33730
33730
|
const _hoisted_5$1 = ["tabindex"];
|
|
33731
33731
|
const _hoisted_6 = ["aria-current", "tabindex"];
|
|
@@ -33882,7 +33882,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
33882
33882
|
onBlur: _cache[3] || (_cache[3] = ($event) => quickPrevFocus.value = false)
|
|
33883
33883
|
}, [
|
|
33884
33884
|
quickPrevHover.value || quickPrevFocus.value ? (vue.openBlock(), vue.createBlock(vue.unref(d_arrow_left_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(more_filled_default), { key: 1 }))
|
|
33885
|
-
], 42, _hoisted_3$
|
|
33885
|
+
], 42, _hoisted_3$2)) : vue.createCommentVNode("v-if", true),
|
|
33886
33886
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(pagers), (pager) => {
|
|
33887
33887
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
33888
33888
|
key: pager,
|
|
@@ -34268,7 +34268,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
34268
34268
|
|
|
34269
34269
|
const _hoisted_1$9 = ["onClick"];
|
|
34270
34270
|
const _hoisted_2$5 = ["id", "aria-checked", "aria-disabled", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"];
|
|
34271
|
-
const _hoisted_3$
|
|
34271
|
+
const _hoisted_3$1 = ["aria-hidden"];
|
|
34272
34272
|
const _hoisted_4 = ["aria-hidden"];
|
|
34273
34273
|
const _hoisted_5 = ["aria-hidden"];
|
|
34274
34274
|
const COMPONENT_NAME = "ElSwitch";
|
|
@@ -34429,7 +34429,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
34429
34429
|
!_ctx.inactiveIcon && _ctx.inactiveText ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
34430
34430
|
key: 1,
|
|
34431
34431
|
"aria-hidden": vue.unref(checked)
|
|
34432
|
-
}, vue.toDisplayString(_ctx.inactiveText), 9, _hoisted_3$
|
|
34432
|
+
}, vue.toDisplayString(_ctx.inactiveText), 9, _hoisted_3$1)) : vue.createCommentVNode("v-if", true)
|
|
34433
34433
|
], 2)) : vue.createCommentVNode("v-if", true),
|
|
34434
34434
|
vue.createElementVNode("span", {
|
|
34435
34435
|
ref_key: "core",
|
|
@@ -36265,7 +36265,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
36265
36265
|
});
|
|
36266
36266
|
const _hoisted_1$8 = { key: 0 };
|
|
36267
36267
|
const _hoisted_2$4 = ["disabled"];
|
|
36268
|
-
const _hoisted_3
|
|
36268
|
+
const _hoisted_3 = ["label", "onClick"];
|
|
36269
36269
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36270
36270
|
const _component_el_checkbox = vue.resolveComponent("el-checkbox");
|
|
36271
36271
|
const _component_el_checkbox_group = vue.resolveComponent("el-checkbox-group");
|
|
@@ -36354,7 +36354,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
36354
36354
|
class: vue.normalizeClass([_ctx.ns.e("list-item"), _ctx.ns.is("active", _ctx.isActive(filter))]),
|
|
36355
36355
|
label: filter.value,
|
|
36356
36356
|
onClick: ($event) => _ctx.handleSelect(filter.value)
|
|
36357
|
-
}, vue.toDisplayString(filter.text), 11, _hoisted_3
|
|
36357
|
+
}, vue.toDisplayString(filter.text), 11, _hoisted_3);
|
|
36358
36358
|
}), 128))
|
|
36359
36359
|
], 2))
|
|
36360
36360
|
]),
|
|
@@ -41900,7 +41900,6 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
41900
41900
|
|
|
41901
41901
|
var _hoisted_1 = { key: 1 };
|
|
41902
41902
|
var _hoisted_2 = { key: 1 };
|
|
41903
|
-
var _hoisted_3 = { key: 1 };
|
|
41904
41903
|
var __default__ = {
|
|
41905
41904
|
name: 'base-dialog'
|
|
41906
41905
|
};
|
|
@@ -42031,42 +42030,44 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
42031
42030
|
key: 0,
|
|
42032
42031
|
render: __props.titleRender
|
|
42033
42032
|
}, null, 8 /* PROPS */, ["render"]))
|
|
42034
|
-
: (
|
|
42035
|
-
|
|
42036
|
-
|
|
42033
|
+
: vue.renderSlot(_ctx.$slots, "header", { key: 1 }, function () { return [
|
|
42034
|
+
vue.createTextVNode(vue.toDisplayString(__props.title), 1 /* TEXT */)
|
|
42035
|
+
]; })
|
|
42037
42036
|
]; }),
|
|
42038
42037
|
footer: vue.withCtx(function () { return [
|
|
42039
|
-
(
|
|
42040
|
-
|
|
42041
|
-
|
|
42042
|
-
|
|
42043
|
-
|
|
42044
|
-
|
|
42045
|
-
|
|
42046
|
-
(
|
|
42047
|
-
|
|
42048
|
-
|
|
42049
|
-
|
|
42050
|
-
|
|
42051
|
-
|
|
42052
|
-
vue.
|
|
42053
|
-
|
|
42054
|
-
|
|
42055
|
-
|
|
42056
|
-
|
|
42057
|
-
|
|
42058
|
-
|
|
42059
|
-
|
|
42060
|
-
|
|
42061
|
-
|
|
42062
|
-
|
|
42063
|
-
vue.
|
|
42064
|
-
|
|
42065
|
-
|
|
42066
|
-
|
|
42067
|
-
|
|
42068
|
-
|
|
42069
|
-
|
|
42038
|
+
vue.renderSlot(_ctx.$slots, "footer", {}, function () { return [
|
|
42039
|
+
(__props.footerRender)
|
|
42040
|
+
? (vue.openBlock(), vue.createBlock(vue.unref(BaseDialogRender), {
|
|
42041
|
+
key: 0,
|
|
42042
|
+
render: __props.footerRender
|
|
42043
|
+
}, null, 8 /* PROPS */, ["render"]))
|
|
42044
|
+
: (__props.showFooter)
|
|
42045
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
42046
|
+
(__props.cancelBtnConfig.show)
|
|
42047
|
+
? (vue.openBlock(), vue.createBlock(vue.unref(BaseButton), vue.mergeProps({
|
|
42048
|
+
key: 0,
|
|
42049
|
+
size: "large"
|
|
42050
|
+
}, __props.cancelBtnConfig, { click: handleCancelClick }), {
|
|
42051
|
+
default: vue.withCtx(function () { return [
|
|
42052
|
+
vue.createTextVNode(vue.toDisplayString(__props.cancelBtnConfig.content), 1 /* TEXT */)
|
|
42053
|
+
]; }),
|
|
42054
|
+
_: 1 /* STABLE */
|
|
42055
|
+
}, 16 /* FULL_PROPS */))
|
|
42056
|
+
: vue.createCommentVNode("v-if", true),
|
|
42057
|
+
(__props.confirmBtnConfig.show)
|
|
42058
|
+
? (vue.openBlock(), vue.createBlock(vue.unref(BaseButton), vue.mergeProps({
|
|
42059
|
+
key: 1,
|
|
42060
|
+
size: "large"
|
|
42061
|
+
}, __props.confirmBtnConfig, { click: handleConfirmClick }), {
|
|
42062
|
+
default: vue.withCtx(function () { return [
|
|
42063
|
+
vue.createTextVNode(vue.toDisplayString(__props.confirmBtnConfig.content), 1 /* TEXT */)
|
|
42064
|
+
]; }),
|
|
42065
|
+
_: 1 /* STABLE */
|
|
42066
|
+
}, 16 /* FULL_PROPS */))
|
|
42067
|
+
: vue.createCommentVNode("v-if", true)
|
|
42068
|
+
]))
|
|
42069
|
+
: vue.createCommentVNode("v-if", true)
|
|
42070
|
+
]; })
|
|
42070
42071
|
]; }),
|
|
42071
42072
|
default: vue.withCtx(function () { return [
|
|
42072
42073
|
(__props.contentRender)
|
|
@@ -42075,7 +42076,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
42075
42076
|
render: __props.contentRender
|
|
42076
42077
|
}, null, 8 /* PROPS */, ["render"]))
|
|
42077
42078
|
: (__props.content)
|
|
42078
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
42079
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, vue.toDisplayString(__props.content), 1 /* TEXT */))
|
|
42079
42080
|
: vue.renderSlot(_ctx.$slots, "default", { key: 2 })
|
|
42080
42081
|
]; }),
|
|
42081
42082
|
_: 3 /* FORWARDED */
|
|
@@ -42192,12 +42193,18 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
42192
42193
|
var _instance = null;
|
|
42193
42194
|
var container = document.createElement('div');
|
|
42194
42195
|
var remove = function () {
|
|
42195
|
-
_instance = null;
|
|
42196
42196
|
container.remove();
|
|
42197
|
+
_instance = null;
|
|
42197
42198
|
};
|
|
42198
|
-
_instance = vue.createVNode(component, __assign({ remove: remove, onRemove: function () {
|
|
42199
|
+
_instance = vue.createVNode(component, __assign({ remove: remove, close: remove, onRemove: function () {
|
|
42200
|
+
remove();
|
|
42201
|
+
},
|
|
42202
|
+
// 兼容base-dialog
|
|
42203
|
+
onClose: function () {
|
|
42199
42204
|
remove();
|
|
42200
|
-
}
|
|
42205
|
+
},
|
|
42206
|
+
// 兼容base-dialog,true会导致没有append到container容器中
|
|
42207
|
+
appendToBody: false }, options));
|
|
42201
42208
|
// inject 函数调用组件导致内部inject无法接收到,需要使用app.provide(全局): https://github.com/vuejs/core/issues/6220
|
|
42202
42209
|
// context createApp需要use插件,内部才能使用插件\库相关API。可以直接修改上下文: https://github.com/vuejs/core/issues/2097
|
|
42203
42210
|
if (app) {
|
|
@@ -42208,6 +42215,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
42208
42215
|
// 在组件添加一个 remove 方法用来销毁组件
|
|
42209
42216
|
// 组件内调用 currentInstance.ctx.remove()
|
|
42210
42217
|
_instance.component.ctx.remove = remove;
|
|
42218
|
+
_instance.component.ctx.close = close;
|
|
42211
42219
|
console.log(_instance, '组件_instance');
|
|
42212
42220
|
// 更新props方法
|
|
42213
42221
|
_instance.component.ctx.$updateProps = function (props) {
|
|
@@ -2,6 +2,7 @@ import { App, Component } from 'vue';
|
|
|
2
2
|
declare type anyObj = Record<string, any>;
|
|
3
3
|
interface ModalInstance {
|
|
4
4
|
remove(): void;
|
|
5
|
+
close(): void;
|
|
5
6
|
$updateProps(props: anyObj): void;
|
|
6
7
|
}
|
|
7
8
|
export declare const useCreateModal: (component: Component, options?: anyObj, app?: App) => ModalInstance;
|