lw-cdp-ui 1.0.54 → 1.0.56
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/components/lwForm/index.vue +2 -0
- package/dist/components/lwLayout/components/tags.vue +14 -13
- package/dist/components/lwTable/index.vue +1 -1
- package/dist/lw-cdp-ui.esm.js +20 -19
- package/dist/lw-cdp-ui.esm.js.map +1 -1
- package/dist/lw-cdp-ui.umd.js +2 -2
- package/dist/lw-cdp-ui.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
:start-placeholder="item.options.startPlaceholder"
|
|
163
163
|
:end-placeholder="item.options.endPlaceholder"
|
|
164
164
|
:shortcuts="item.options.shortcuts"
|
|
165
|
+
:disabled-date="item.options.disabledDate"
|
|
165
166
|
:default-time="item.options.defaultTime"
|
|
166
167
|
:value-format="item.options.valueFormat"
|
|
167
168
|
:placeholder="item.options.placeholder || '请选择'"></el-date-picker>
|
|
@@ -173,6 +174,7 @@
|
|
|
173
174
|
:start-placeholder="item.options.startPlaceholder"
|
|
174
175
|
:end-placeholder="item.options.endPlaceholder"
|
|
175
176
|
:shortcuts="item.options.shortcuts"
|
|
177
|
+
:disabled-date="item.options.disabledDate"
|
|
176
178
|
:default-time="item.options.defaultTime"
|
|
177
179
|
:value-format="item.options.valueFormat"
|
|
178
180
|
:placeholder="item.options.placeholder || '请选择'"></el-date-picker>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@contextmenu.prevent="openContextMenu($event, tag)">
|
|
8
8
|
<router-link :to="tag">
|
|
9
9
|
<span>{{ tag.meta.title }}</span>
|
|
10
|
-
<el-icon v-if="!tag.meta.affix
|
|
10
|
+
<el-icon v-if="!tag.meta.affix"
|
|
11
11
|
@click.prevent.stop='closeSelectedTag(tag)'><el-icon-close /></el-icon>
|
|
12
12
|
</router-link>
|
|
13
13
|
</li>
|
|
@@ -103,24 +103,18 @@ export default {
|
|
|
103
103
|
methods: {
|
|
104
104
|
// 初始化
|
|
105
105
|
init() {
|
|
106
|
-
|
|
107
|
-
if (
|
|
108
|
-
dashboardRoute.fullPath = dashboardRoute.path
|
|
106
|
+
let tags = this.$tool.data.get('RouteTags') || []
|
|
107
|
+
if (tags.length > 0) {
|
|
109
108
|
|
|
110
|
-
|
|
111
|
-
tags.forEach(tag => {
|
|
109
|
+
tags.forEach((tag, index) => {
|
|
112
110
|
var isRoute = this.treeFind(this.menu, node => node.path == tag.path)
|
|
113
111
|
if (isRoute) {
|
|
114
112
|
this.addViewTags(tag)
|
|
115
113
|
}
|
|
116
|
-
|
|
117
114
|
})
|
|
118
|
-
if (tags.length === 0) {
|
|
119
|
-
this.addViewTags(dashboardRoute)
|
|
120
|
-
this.addViewTags(this.$route)
|
|
121
|
-
}
|
|
122
|
-
|
|
123
115
|
}
|
|
116
|
+
this.addViewTags(this.$route)
|
|
117
|
+
|
|
124
118
|
},
|
|
125
119
|
//查找树
|
|
126
120
|
treeFind(tree, func) {
|
|
@@ -157,12 +151,19 @@ export default {
|
|
|
157
151
|
},
|
|
158
152
|
//关闭tag
|
|
159
153
|
closeSelectedTag(tag, autoPushLatestView = true) {
|
|
154
|
+
let item = this.menu[0]
|
|
155
|
+
if (item.children) {
|
|
156
|
+
item = item.children[0]
|
|
157
|
+
}
|
|
158
|
+
if (this.tagList.length == 1 && item.path == this.$route.fullPath) {
|
|
159
|
+
return false
|
|
160
|
+
}
|
|
160
161
|
this.$store.commit("removeViewTags", tag)
|
|
161
162
|
this.$store.commit("removeIframeList", tag)
|
|
162
163
|
this.$store.commit("removeKeepLive", tag.name)
|
|
164
|
+
this.$tool.data.set('RouteTags', this.$store.state.viewTags.viewTags)
|
|
163
165
|
if (autoPushLatestView && this.isActive(tag)) {
|
|
164
166
|
const latestView = this.tagList.slice(-1)[0]
|
|
165
|
-
this.$tool.data.set('RouteTags', this.$store.state.viewTags.viewTags)
|
|
166
167
|
if (latestView) {
|
|
167
168
|
this.$router.push(latestView)
|
|
168
169
|
} else {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<div v-if="t.operation">
|
|
37
37
|
<!-- 操作按钮少于3个或不需要省略号 -->
|
|
38
38
|
<div
|
|
39
|
-
v-if="!t.ellipsis || t.operation.filter(o => !o.isShow || o.isShow(row)).length <= 3">
|
|
39
|
+
v-if="!t.ellipsis || t.operation.filter(o => !o.isShow || o.isShow(scope.row)).length <= 3">
|
|
40
40
|
<span v-for="o in t.operation"
|
|
41
41
|
:key="o"
|
|
42
42
|
v-show="o.isShow ? o.isShow(row) : true">
|
package/dist/lw-cdp-ui.esm.js
CHANGED
|
@@ -407,15 +407,11 @@ const Topbar = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$
|
|
|
407
407
|
methods: {
|
|
408
408
|
// 初始化
|
|
409
409
|
init() {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
var g = this.treeFind(this.menu, (d) => d.path == s.path);
|
|
416
|
-
g && this.addViewTags(s);
|
|
417
|
-
}), a.length === 0 && (this.addViewTags(o), this.addViewTags(this.$route));
|
|
418
|
-
}
|
|
410
|
+
let o = this.$tool.data.get("RouteTags") || [];
|
|
411
|
+
o.length > 0 && o.forEach((a, s) => {
|
|
412
|
+
var g = this.treeFind(this.menu, (d) => d.path == a.path);
|
|
413
|
+
g && this.addViewTags(a);
|
|
414
|
+
}), this.addViewTags(this.$route);
|
|
419
415
|
},
|
|
420
416
|
//查找树
|
|
421
417
|
treeFind(o, a) {
|
|
@@ -446,9 +442,12 @@ const Topbar = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$
|
|
|
446
442
|
},
|
|
447
443
|
//关闭tag
|
|
448
444
|
closeSelectedTag(o, a = !0) {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
445
|
+
let s = this.menu[0];
|
|
446
|
+
if (s.children && (s = s.children[0]), this.tagList.length == 1 && s.path == this.$route.fullPath)
|
|
447
|
+
return !1;
|
|
448
|
+
if (this.$store.commit("removeViewTags", o), this.$store.commit("removeIframeList", o), this.$store.commit("removeKeepLive", o.name), this.$tool.data.set("RouteTags", this.$store.state.viewTags.viewTags), a && this.isActive(o)) {
|
|
449
|
+
const g = this.tagList.slice(-1)[0];
|
|
450
|
+
g ? this.$router.push(g) : this.$router.push("/");
|
|
452
451
|
}
|
|
453
452
|
},
|
|
454
453
|
//tag右键
|
|
@@ -532,7 +531,7 @@ function _sfc_render$j(o, a, s, g, d, h) {
|
|
|
532
531
|
createVNode(N, { to: M }, {
|
|
533
532
|
default: withCtx(() => [
|
|
534
533
|
createElementVNode("span", null, toDisplayString(M.meta.title), 1),
|
|
535
|
-
|
|
534
|
+
M.meta.affix ? createCommentVNode("", !0) : (openBlock(), createBlock(f, {
|
|
536
535
|
key: 0,
|
|
537
536
|
onClick: withModifiers(($) => h.closeSelectedTag(M), ["prevent", "stop"])
|
|
538
537
|
}, {
|
|
@@ -540,7 +539,7 @@ function _sfc_render$j(o, a, s, g, d, h) {
|
|
|
540
539
|
createVNode(S)
|
|
541
540
|
]),
|
|
542
541
|
_: 2
|
|
543
|
-
}, 1032, ["onClick"]))
|
|
542
|
+
}, 1032, ["onClick"]))
|
|
544
543
|
]),
|
|
545
544
|
_: 2
|
|
546
545
|
}, 1032, ["to"])
|
|
@@ -5067,7 +5066,7 @@ function _sfc_render$5(o, a, s, g, d, h) {
|
|
|
5067
5066
|
}, {
|
|
5068
5067
|
default: withCtx((v) => [
|
|
5069
5068
|
_.operation ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
5070
|
-
!_.ellipsis || _.operation.filter((i) => !i.isShow || i.isShow(
|
|
5069
|
+
!_.ellipsis || _.operation.filter((i) => !i.isShow || i.isShow(v.row)).length <= 3 ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
|
|
5071
5070
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(_.operation, (i) => withDirectives((openBlock(), createElementBlock("span", { key: i }, [
|
|
5072
5071
|
i.icon ? (openBlock(), createBlock(N, {
|
|
5073
5072
|
key: 0,
|
|
@@ -5472,7 +5471,7 @@ function _sfc_render$5(o, a, s, g, d, h) {
|
|
|
5472
5471
|
])) : createCommentVNode("", !0)
|
|
5473
5472
|
]);
|
|
5474
5473
|
}
|
|
5475
|
-
const lwTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-
|
|
5474
|
+
const lwTable = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-c34432c5"]]), _sfc_main$4 = {
|
|
5476
5475
|
name: "lwUpload",
|
|
5477
5476
|
props: {
|
|
5478
5477
|
modelValue: { type: String, default: "" },
|
|
@@ -6039,10 +6038,11 @@ function _sfc_render$3(o, a, s, g, d, h) {
|
|
|
6039
6038
|
"start-placeholder": i.options.startPlaceholder,
|
|
6040
6039
|
"end-placeholder": i.options.endPlaceholder,
|
|
6041
6040
|
shortcuts: i.options.shortcuts,
|
|
6041
|
+
"disabled-date": i.options.disabledDate,
|
|
6042
6042
|
"default-time": i.options.defaultTime,
|
|
6043
6043
|
"value-format": i.options.valueFormat,
|
|
6044
6044
|
placeholder: i.options.placeholder || "请选择"
|
|
6045
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "start-placeholder", "end-placeholder", "shortcuts", "default-time", "value-format", "placeholder"])) : (openBlock(), createBlock(ae, {
|
|
6045
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "start-placeholder", "end-placeholder", "shortcuts", "disabled-date", "default-time", "value-format", "placeholder"])) : (openBlock(), createBlock(ae, {
|
|
6046
6046
|
key: 1,
|
|
6047
6047
|
modelValue: d.form[i.name],
|
|
6048
6048
|
"onUpdate:modelValue": (E) => d.form[i.name] = E,
|
|
@@ -6051,10 +6051,11 @@ function _sfc_render$3(o, a, s, g, d, h) {
|
|
|
6051
6051
|
"start-placeholder": i.options.startPlaceholder,
|
|
6052
6052
|
"end-placeholder": i.options.endPlaceholder,
|
|
6053
6053
|
shortcuts: i.options.shortcuts,
|
|
6054
|
+
"disabled-date": i.options.disabledDate,
|
|
6054
6055
|
"default-time": i.options.defaultTime,
|
|
6055
6056
|
"value-format": i.options.valueFormat,
|
|
6056
6057
|
placeholder: i.options.placeholder || "请选择"
|
|
6057
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "start-placeholder", "end-placeholder", "shortcuts", "default-time", "value-format", "placeholder"]))
|
|
6058
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "type", "start-placeholder", "end-placeholder", "shortcuts", "disabled-date", "default-time", "value-format", "placeholder"]))
|
|
6058
6059
|
], 64)) : i.component == "number" ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [
|
|
6059
6060
|
(ne = i == null ? void 0 : i.options) != null && ne.name ? (openBlock(), createBlock(K, mergeProps({
|
|
6060
6061
|
key: 0,
|
|
@@ -6238,7 +6239,7 @@ function _sfc_render$3(o, a, s, g, d, h) {
|
|
|
6238
6239
|
[v, s.loading]
|
|
6239
6240
|
]);
|
|
6240
6241
|
}
|
|
6241
|
-
const lwForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-
|
|
6242
|
+
const lwForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-f279a453"]]), config$1 = {
|
|
6242
6243
|
icons: [
|
|
6243
6244
|
{
|
|
6244
6245
|
name: "默认",
|