hy-dispatch-ui-v3 0.2.35 → 0.2.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/es/components/hyDialog/dialog.vue.mjs +20 -13
- package/es/components/hySearch/cpns/searchItem.vue.mjs +2 -1
- package/es/style/element/hy-element.scss +17 -0
- package/es/version.mjs +1 -1
- package/lib/components/hyDialog/dialog.vue.js +19 -12
- package/lib/components/hySearch/cpns/searchItem.vue.js +2 -1
- package/lib/style/element/hy-element.scss +17 -0
- package/lib/version.js +1 -1
- package/package.json +11 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useModel, ref, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, withCtx, createElementVNode, normalizeClass, renderSlot, createBlock, withModifiers, createTextVNode, toDisplayString, mergeModels, defineComponent } from 'vue';
|
|
1
|
+
import { useModel, ref, computed, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, withCtx, createElementVNode, normalizeClass, renderSlot, createBlock, withModifiers, createTextVNode, toDisplayString, mergeModels, defineComponent } from 'vue';
|
|
2
2
|
import { ElDialog } from 'element-plus';
|
|
3
3
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
4
4
|
import { HyButton } from '../hyButton/index.mjs';
|
|
@@ -131,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
131
131
|
onEnd?.();
|
|
132
132
|
}, 750);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function setDragLevelIndex(initDragLevelIndex) {
|
|
135
135
|
dragLevelIndex.value = initDragLevelIndex;
|
|
136
136
|
if (minimized.value) runAnim();
|
|
137
137
|
minimized.value = false;
|
|
@@ -148,8 +148,18 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
148
148
|
function dialogMousedown(e) {
|
|
149
149
|
emits("onDialogMousedown", e);
|
|
150
150
|
}
|
|
151
|
+
const modalClass = computed(() => {
|
|
152
|
+
const classes = [];
|
|
153
|
+
if (animating.value || minimized.value) {
|
|
154
|
+
classes.push("hy-dialog-app-shrink");
|
|
155
|
+
}
|
|
156
|
+
if (minimized.value) {
|
|
157
|
+
classes.push("hy-dialog-is-minimized");
|
|
158
|
+
}
|
|
159
|
+
return classes.join(" ");
|
|
160
|
+
});
|
|
151
161
|
__expose({
|
|
152
|
-
|
|
162
|
+
setDragLevelIndex,
|
|
153
163
|
hideToWorkspace
|
|
154
164
|
});
|
|
155
165
|
return (_ctx, _cache) => {
|
|
@@ -158,14 +168,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
158
168
|
null,
|
|
159
169
|
[
|
|
160
170
|
createCommentVNode(" @mousedown.stop"),
|
|
161
|
-
createCommentVNode(' :z-index="zIndex || dragLevelIndex"'),
|
|
162
|
-
createCommentVNode(" draggable"),
|
|
163
171
|
createCommentVNode(` :align-center="!['right', 'fullscreen'].includes(props.dialogType)"`),
|
|
164
172
|
createCommentVNode(' body-class="h-0 flex-1"'),
|
|
165
173
|
createCommentVNode(' :class="dialogClass"'),
|
|
166
|
-
createCommentVNode(' :overflow="false"'),
|
|
167
|
-
createCommentVNode(' :modal="false"'),
|
|
168
174
|
createVNode(unref(ElDialog), mergeProps({
|
|
175
|
+
"z-index": dragLevelIndex.value,
|
|
176
|
+
draggable: props.showShrink,
|
|
177
|
+
modal: !props.showShrink,
|
|
178
|
+
overflow: !props.showShrink,
|
|
179
|
+
"modal-penetrable": "",
|
|
169
180
|
ref_key: "dialogTestRef",
|
|
170
181
|
ref: dialogTestRef,
|
|
171
182
|
onMousedown: dialogMousedown,
|
|
@@ -173,11 +184,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
173
184
|
"close-on-click-modal": false,
|
|
174
185
|
"close-on-press-escape": false,
|
|
175
186
|
"show-close": false,
|
|
176
|
-
"modal-
|
|
177
|
-
"modal-class": {
|
|
178
|
-
"hy-dialog-app-shrink": animating.value || minimized.value,
|
|
179
|
-
"hy-dialog-is-minimized": minimized.value
|
|
180
|
-
},
|
|
187
|
+
"modal-class": modalClass.value,
|
|
181
188
|
modelValue: visible.value,
|
|
182
189
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
183
190
|
width: props.width,
|
|
@@ -283,7 +290,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
283
290
|
]),
|
|
284
291
|
_: 3
|
|
285
292
|
/* FORWARDED */
|
|
286
|
-
}, 16, ["modal-class", "modelValue", "onUpdate:modelValue", "width", "top"])
|
|
293
|
+
}, 16, ["z-index", "draggable", "modal", "overflow", "modal-class", "modelValue", "onUpdate:modelValue", "width", "top"])
|
|
287
294
|
],
|
|
288
295
|
2112
|
|
289
296
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -218,7 +218,8 @@ const _sfc_main = {
|
|
|
218
218
|
modelValue: bindValue.value,
|
|
219
219
|
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
220
220
|
}, __props.column.attrs, {
|
|
221
|
-
disabled: unref(isDisabled)(props, __props.column)
|
|
221
|
+
disabled: unref(isDisabled)(props, __props.column),
|
|
222
|
+
onChange: onChangeHandler
|
|
222
223
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
223
224
|
],
|
|
224
225
|
2112
|
|
@@ -216,6 +216,16 @@
|
|
|
216
216
|
white-space: nowrap;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
.hy-el-textarea__clear {
|
|
220
|
+
position: absolute;
|
|
221
|
+
right: 11px;
|
|
222
|
+
top: 15px;
|
|
223
|
+
transform: translateY(-50%);
|
|
224
|
+
color: var(--el-input-icon-color);
|
|
225
|
+
font-size: 14px;
|
|
226
|
+
cursor: pointer;
|
|
227
|
+
}
|
|
228
|
+
|
|
219
229
|
// 日期选择器
|
|
220
230
|
.hy-el-popper.hy-el-tooltip.hy-el-picker__popper {
|
|
221
231
|
--hy-el-border-color-light: rgba(var(--hy-auxiliary), 1);
|
|
@@ -921,6 +931,12 @@
|
|
|
921
931
|
position: relative;
|
|
922
932
|
height: 38px;
|
|
923
933
|
padding-left: 20px;
|
|
934
|
+
|
|
935
|
+
.hy-el-collapse-item__title {
|
|
936
|
+
overflow: hidden;
|
|
937
|
+
text-overflow: ellipsis;
|
|
938
|
+
white-space: nowrap;
|
|
939
|
+
}
|
|
924
940
|
}
|
|
925
941
|
|
|
926
942
|
.hy-el-collapse-item__wrap {
|
|
@@ -954,6 +970,7 @@
|
|
|
954
970
|
td.is-selected {
|
|
955
971
|
box-shadow: 0px 0 12px 0px rgba(var(--hy-theme), 1) inset;
|
|
956
972
|
background: rgba(var(--hy-background-2), 1);
|
|
973
|
+
|
|
957
974
|
.hy-el-calendar-day {
|
|
958
975
|
border: 1px solid rgba(var(--hy-theme), 1);
|
|
959
976
|
}
|
package/es/version.mjs
CHANGED
|
@@ -135,7 +135,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
135
135
|
onEnd?.();
|
|
136
136
|
}, 750);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function setDragLevelIndex(initDragLevelIndex) {
|
|
139
139
|
dragLevelIndex.value = initDragLevelIndex;
|
|
140
140
|
if (minimized.value) runAnim();
|
|
141
141
|
minimized.value = false;
|
|
@@ -152,8 +152,18 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
152
152
|
function dialogMousedown(e) {
|
|
153
153
|
emits("onDialogMousedown", e);
|
|
154
154
|
}
|
|
155
|
+
const modalClass = vue.computed(() => {
|
|
156
|
+
const classes = [];
|
|
157
|
+
if (animating.value || minimized.value) {
|
|
158
|
+
classes.push("hy-dialog-app-shrink");
|
|
159
|
+
}
|
|
160
|
+
if (minimized.value) {
|
|
161
|
+
classes.push("hy-dialog-is-minimized");
|
|
162
|
+
}
|
|
163
|
+
return classes.join(" ");
|
|
164
|
+
});
|
|
155
165
|
__expose({
|
|
156
|
-
|
|
166
|
+
setDragLevelIndex,
|
|
157
167
|
hideToWorkspace
|
|
158
168
|
});
|
|
159
169
|
return (_ctx, _cache) => {
|
|
@@ -162,14 +172,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
162
172
|
null,
|
|
163
173
|
[
|
|
164
174
|
vue.createCommentVNode(" @mousedown.stop"),
|
|
165
|
-
vue.createCommentVNode(' :z-index="zIndex || dragLevelIndex"'),
|
|
166
|
-
vue.createCommentVNode(" draggable"),
|
|
167
175
|
vue.createCommentVNode(` :align-center="!['right', 'fullscreen'].includes(props.dialogType)"`),
|
|
168
176
|
vue.createCommentVNode(' body-class="h-0 flex-1"'),
|
|
169
177
|
vue.createCommentVNode(' :class="dialogClass"'),
|
|
170
|
-
vue.createCommentVNode(' :overflow="false"'),
|
|
171
|
-
vue.createCommentVNode(' :modal="false"'),
|
|
172
178
|
vue.createVNode(vue.unref(elementPlus.ElDialog), vue.mergeProps({
|
|
179
|
+
"z-index": dragLevelIndex.value,
|
|
180
|
+
draggable: props.showShrink,
|
|
181
|
+
modal: !props.showShrink,
|
|
182
|
+
overflow: !props.showShrink,
|
|
183
|
+
"modal-penetrable": "",
|
|
173
184
|
ref_key: "dialogTestRef",
|
|
174
185
|
ref: dialogTestRef,
|
|
175
186
|
onMousedown: dialogMousedown,
|
|
@@ -177,11 +188,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
177
188
|
"close-on-click-modal": false,
|
|
178
189
|
"close-on-press-escape": false,
|
|
179
190
|
"show-close": false,
|
|
180
|
-
"modal-
|
|
181
|
-
"modal-class": {
|
|
182
|
-
"hy-dialog-app-shrink": animating.value || minimized.value,
|
|
183
|
-
"hy-dialog-is-minimized": minimized.value
|
|
184
|
-
},
|
|
191
|
+
"modal-class": modalClass.value,
|
|
185
192
|
modelValue: visible.value,
|
|
186
193
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
187
194
|
width: props.width,
|
|
@@ -287,7 +294,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
287
294
|
]),
|
|
288
295
|
_: 3
|
|
289
296
|
/* FORWARDED */
|
|
290
|
-
}, 16, ["modal-class", "modelValue", "onUpdate:modelValue", "width", "top"])
|
|
297
|
+
}, 16, ["z-index", "draggable", "modal", "overflow", "modal-class", "modelValue", "onUpdate:modelValue", "width", "top"])
|
|
291
298
|
],
|
|
292
299
|
2112
|
|
293
300
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -222,7 +222,8 @@ const _sfc_main = {
|
|
|
222
222
|
modelValue: bindValue.value,
|
|
223
223
|
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
224
224
|
}, __props.column.attrs, {
|
|
225
|
-
disabled: vue.unref(index.isDisabled)(props, __props.column)
|
|
225
|
+
disabled: vue.unref(index.isDisabled)(props, __props.column),
|
|
226
|
+
onChange: onChangeHandler
|
|
226
227
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
227
228
|
],
|
|
228
229
|
2112
|
|
@@ -216,6 +216,16 @@
|
|
|
216
216
|
white-space: nowrap;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
.hy-el-textarea__clear {
|
|
220
|
+
position: absolute;
|
|
221
|
+
right: 11px;
|
|
222
|
+
top: 15px;
|
|
223
|
+
transform: translateY(-50%);
|
|
224
|
+
color: var(--el-input-icon-color);
|
|
225
|
+
font-size: 14px;
|
|
226
|
+
cursor: pointer;
|
|
227
|
+
}
|
|
228
|
+
|
|
219
229
|
// 日期选择器
|
|
220
230
|
.hy-el-popper.hy-el-tooltip.hy-el-picker__popper {
|
|
221
231
|
--hy-el-border-color-light: rgba(var(--hy-auxiliary), 1);
|
|
@@ -921,6 +931,12 @@
|
|
|
921
931
|
position: relative;
|
|
922
932
|
height: 38px;
|
|
923
933
|
padding-left: 20px;
|
|
934
|
+
|
|
935
|
+
.hy-el-collapse-item__title {
|
|
936
|
+
overflow: hidden;
|
|
937
|
+
text-overflow: ellipsis;
|
|
938
|
+
white-space: nowrap;
|
|
939
|
+
}
|
|
924
940
|
}
|
|
925
941
|
|
|
926
942
|
.hy-el-collapse-item__wrap {
|
|
@@ -954,6 +970,7 @@
|
|
|
954
970
|
td.is-selected {
|
|
955
971
|
box-shadow: 0px 0 12px 0px rgba(var(--hy-theme), 1) inset;
|
|
956
972
|
background: rgba(var(--hy-background-2), 1);
|
|
973
|
+
|
|
957
974
|
.hy-el-calendar-day {
|
|
958
975
|
border: 1px solid rgba(var(--hy-theme), 1);
|
|
959
976
|
}
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hy-dispatch-ui-v3",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "es/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"body-parser": "^2.3.0",
|
|
23
23
|
"crypto-js": "^4.2.0",
|
|
24
24
|
"dayjs": "^1.11.20",
|
|
25
|
-
"element-plus": "^2.14.2",
|
|
26
25
|
"express": "^5.2.1",
|
|
27
26
|
"hy-virtual-tree": "^2.4.4",
|
|
28
27
|
"lodash-unified": "^1.0.3",
|
|
@@ -30,13 +29,12 @@
|
|
|
30
29
|
"mysql": "^2.18.1",
|
|
31
30
|
"sortablejs": "^1.15.7",
|
|
32
31
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
33
|
-
"vue": "^3.5.25",
|
|
34
32
|
"vue-cropper": "^1.1.4",
|
|
35
|
-
"vue-router": "^5.0.3",
|
|
36
33
|
"xlsx": "^0.17.3"
|
|
37
34
|
},
|
|
38
35
|
"devDependencies": {
|
|
39
36
|
"@babel/eslint-parser": "^7.28.6",
|
|
37
|
+
"@babel/parser": "^8.0.4",
|
|
40
38
|
"@pnpm/find-workspace-packages": "^6.0.9",
|
|
41
39
|
"@rollup/plugin-alias": "^6.0.0",
|
|
42
40
|
"@rollup/plugin-babel": "7.0.0",
|
|
@@ -136,8 +134,17 @@
|
|
|
136
134
|
"./tailwind.css": "./dist/tailwind.css"
|
|
137
135
|
},
|
|
138
136
|
"peerDependencies": {
|
|
137
|
+
"element-plus": ">=2.13.0",
|
|
139
138
|
"vue": ">=3.5.25"
|
|
140
139
|
},
|
|
140
|
+
"pnpm": {
|
|
141
|
+
"onlyBuiltDependencies": [
|
|
142
|
+
"@parcel/watcher",
|
|
143
|
+
"es5-ext",
|
|
144
|
+
"esbuild",
|
|
145
|
+
"fsevents"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
141
148
|
"author": "sailor-lin",
|
|
142
149
|
"license": "MIT"
|
|
143
150
|
}
|