@jnrs/vue-core 1.2.43 → 1.2.44
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/AGENTS.md +1 -1
- package/CHANGELOG.md +11 -1
- package/dist/components/index.js +5 -4
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -629,7 +629,7 @@ import { downloadTemplate, importData, exportData } from '@/api/data'
|
|
|
629
629
|
| -------------- | ------------- | ------- | ------------------------------------------------------------------------------- |
|
|
630
630
|
| src | `string` | `''` | 图片源地址 |
|
|
631
631
|
| previewSrcList | `IFileItem[]` | `[]` | 开启图片预览功能 |
|
|
632
|
-
| preview | `boolean` | `
|
|
632
|
+
| preview | `boolean` | `true` | 是否开启预览功能 |
|
|
633
633
|
| height | `string` | — | 图片高度 |
|
|
634
634
|
| maxHeight | `string` | — | 图片最大高度 |
|
|
635
635
|
| width | `string` | — | 图片宽度 |
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# 发版日志
|
|
2
2
|
|
|
3
|
-
## [1.2.
|
|
3
|
+
## [1.2.44] - 2026-08-06 【latest】
|
|
4
|
+
|
|
5
|
+
### ⚠️ Breaking Changes
|
|
6
|
+
|
|
7
|
+
- `JnImageView`:`preview` prop 默认值从 `false` 改为 `true`,图片默认开启预览功能
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- `JnImageView`:图片预览新增 `hide-on-click-modal`,点击遮层可关闭预览
|
|
12
|
+
|
|
13
|
+
## [1.2.43] - 2026-07-30
|
|
4
14
|
|
|
5
15
|
### ⚠️ Breaking Changes
|
|
6
16
|
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".jn_globalSetting_header{margin-bottom:0;padding-bottom:20px}.jn_globalSetting_item[data-v-1c160a11]{margin-bottom:20px}.jn_imageView[data-v-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".jn_globalSetting_header{margin-bottom:0;padding-bottom:20px}.jn_globalSetting_item[data-v-1c160a11]{margin-bottom:20px}.jn_imageView[data-v-4b40d759]{display:block;position:relative;width:100%;height:100%;border:1px solid var(--jnrs-font-primary-03)}.jn_imageView[data-v-4b40d759] img{transition:all .25s ease}.jn_imageView[data-v-4b40d759] img:hover{transform:scale(1.2)}.jn_imageView .jn_imageView_error[data-v-4b40d759]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:.8em;line-height:1.1em;text-align:center;filter:opacity(.7)}.jn_imageView_badge[data-v-4b40d759]:after{content:attr(data-count);position:absolute;top:0;right:0;padding:2px 2px 2px 4px;background-color:#000000b3;color:#fff;font-size:.7em;line-height:1;pointer-events:none;z-index:1}.jn_imageView_wrapper[data-v-4b40d759]{display:flex;flex-wrap:wrap;gap:4px;justify-content:center}.jn_imageView_wrapper_all[data-v-4b40d759]{justify-content:flex-start}.jn_image_view_icon[data-v-4b40d759]:hover{color:var(--jnrs-color-primary);transform:scale(1.2);transition:all .3s ease}.jn_fileView[data-v-66598075]{display:block;width:100%;height:100%;line-height:1em;cursor:pointer}.jn_fileView:hover .jn_fileView_button[data-v-66598075]{color:var(--jnrs-color-primary)}.jn_fileView .jn_fileView_fileName[data-v-66598075]{font-size:.8em;color:var(--jnrs-font-primary-05);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.jn_fileView .jn_fileView_button[data-v-66598075]{height:auto;padding:0;text-decoration:underline;font-size:.9em;transition:all .3s ease}.jn_fileUpload[data-v-c97c1306]{position:relative;width:100%;color:var(--jnrs-font-primary-05)}.jn_fileUpload[data-v-c97c1306] .el-upload-dragger{padding:30px 0 10px}.jn_fileUpload .jn_uploadTips[data-v-c97c1306]{display:block;width:100%;margin-top:5px;line-height:1.2em}.jn_fileUpload .jn_uploadTips span[data-v-c97c1306]{display:inline-block;margin-right:10px}.jn_fileUpload .jn_uploadTips b[data-v-c97c1306]{color:var(--el-color-danger, #ff3300)}.jn_fileUpload .jn_uploadTips_isDrag[data-v-c97c1306]{position:absolute;top:4px;left:0;text-align:center}.jn_fileUpload .jn_fileList[data-v-c97c1306]{width:100%}.jn_fileUpload .jn_fileList .jn_fileLis_item[data-v-c97c1306]{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:8px;padding:5px 0;border:1px solid var(--jnrs-font-primary-03);background:var(--jnrs-background-primary)}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_left[data-v-c97c1306]{flex:1;position:relative;display:flex;align-items:center;justify-content:flex-start;padding-right:60px;line-height:1.1em}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_right[data-v-c97c1306]{flex-shrink:0;width:85px;display:flex;align-items:center;justify-content:flex-end;padding-right:4px}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_index[data-v-c97c1306]{flex-shrink:0;width:20px;height:20px;line-height:20px;text-align:center}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_icon[data-v-c97c1306]{flex-shrink:0;width:20px;height:20px}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_name[data-v-c97c1306]{padding:0 4px;word-break:break-all}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_size[data-v-c97c1306]{position:absolute;right:0;width:50px;color:#999;white-space:nowrap;text-align:right}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_btn[data-v-c97c1306]{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin:0 2px;border-radius:3px;font-size:16px;color:var(--el-color-primary, #5887f7);transition:all .3s ease;cursor:pointer}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_btn[data-v-c97c1306]:hover{background-color:var(--jnrs-card-primary)}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_btn_danger[data-v-c97c1306]{color:var(--el-color-danger, #ff3300)}.jnImportAndExport_button.is-text[data-v-2b07c696]{padding:0}.jnImportAndExport_underlineBtn[data-v-2b07c696]{display:inline-block;margin-right:36px;color:#3697fc;text-decoration:underline;cursor:pointer}.jnImportAndExport_underlineBtn[data-v-2b07c696]:hover{opacity:.8}.jn-datetime-date[data-v-6d9d4c9b]{display:block}.jn-datetime-time[data-v-6d9d4c9b]{opacity:.7;font-size:.9em}.jn-datetime-time-inline[data-v-6d9d4c9b]{display:inline-block;margin-left:.5em;font-size:1em}.jn_table[data-v-14a38a55]{width:100%}.jn_table[data-v-14a38a55] .jn_table_header{color:var(--jnrs-font-primary)!important;background:var(--jnrs-background-head)!important}.jn_table[data-v-14a38a55] .jn_table_header .cell{padding:0 8px;line-height:1.2em}.jn-main-table[data-v-14a38a55] .el-table__row{cursor:pointer}.jn-main-table[data-v-14a38a55] .jn-row-selected td{background-color:var(--jnrs-color-primary-fade03)!important}.jn_selectTemplate[data-v-d4b003b4]{display:flex;align-items:center;font-size:0}.jn_selectTemplate .jn_select[data-v-d4b003b4]{flex:1;right:-1px;z-index:1}.jn_selectTemplate .jn_select[data-v-d4b003b4] .el-select__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.jn_selectTemplate .jn_select_button[data-v-d4b003b4]{border-radius:0 3px 3px 0}.jn_selectTemplate .jn_select_button[data-v-d4b003b4]:hover{z-index:1}.t_select_button_only[data-v-d4b003b4]{margin-left:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.jn_dialog_header[data-v-d4b003b4]{display:flex;align-items:center}[data-v-d4b003b4] .el-input__validateIcon{display:none}[data-v-d4b003b4] th .el-checkbox--small{display:none!important}[data-v-d4b003b4] .el-table__row{cursor:pointer}.tableIsSingle[data-v-d4b003b4] .el-checkbox__inner{border-radius:50%}.jn-date-query[data-v-f9c1ea28]{display:flex;align-items:center;gap:10px}.jn-date-query__main[data-v-f9c1ea28]{display:flex;align-items:center;gap:0}.jn-date-query__switcher[data-v-f9c1ea28]{display:flex;align-items:center}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
2
|
import { defineComponent as q, ref as V, createBlock as F, openBlock as d, unref as l, withCtx as p, createElementVNode as j, createVNode as E, toDisplayString as C, isRef as ta, createElementBlock as k, Fragment as J, renderList as Z, createTextVNode as H, computed as X, normalizeClass as te, normalizeStyle as ke, createCommentVNode as T, renderSlot as fe, withDirectives as Xe, vShow as aa, nextTick as se, withModifiers as He, watch as de, onMounted as jt, mergeProps as na } from "vue";
|
|
3
3
|
import { storeToRefs as la } from "pinia";
|
|
4
4
|
import { ElDrawer as ia, ElSwitch as oa, ElRadioGroup as Ue, ElRadio as ze, ElImage as ra, ElIcon as G, ElButton as R, ElDialog as Tt, ElUpload as sa, vLoading as Oe, ElMessage as Y, ElForm as Ut, ElFormItem as ua, ElMessageBox as lt, ElLoading as Fe, ElPagination as zt, ElTable as Ft, ElTableColumn as Ie, ElSelect as Lt, ElOption as Vt, ElCheckbox as ca, ElButtonGroup as da, ElDatePicker as Aa } from "element-plus";
|
|
@@ -108,7 +108,7 @@ const Fa = { class: "jn_globalSetting_item" }, La = { class: "jn_globalSetting_i
|
|
|
108
108
|
props: {
|
|
109
109
|
src: { default: "" },
|
|
110
110
|
previewSrcList: { default: () => [] },
|
|
111
|
-
preview: { type: Boolean, default: !
|
|
111
|
+
preview: { type: Boolean, default: !0 },
|
|
112
112
|
height: {},
|
|
113
113
|
maxHeight: {},
|
|
114
114
|
width: {},
|
|
@@ -133,7 +133,8 @@ const Fa = { class: "jn_globalSetting_item" }, La = { class: "jn_globalSetting_i
|
|
|
133
133
|
"preview-src-list": a.value,
|
|
134
134
|
"initial-index": g,
|
|
135
135
|
fit: "fill",
|
|
136
|
-
"show-progress": ""
|
|
136
|
+
"show-progress": "",
|
|
137
|
+
"hide-on-click-modal": !0
|
|
137
138
|
}, {
|
|
138
139
|
error: p(() => [
|
|
139
140
|
f.src ? (d(), k("span", Ha, C(c.$t("components.JnImageView.noDisplay")), 1)) : (d(), k("span", Oa, " "))
|
|
@@ -225,7 +226,7 @@ const Fa = { class: "jn_globalSetting_item" }, La = { class: "jn_globalSetting_i
|
|
|
225
226
|
}, 1032, ["class", "data-count", "style", "src", "preview-src-list", "initial-index"]))), 128))
|
|
226
227
|
], 2));
|
|
227
228
|
}
|
|
228
|
-
}), _r = /* @__PURE__ */ _(Ma, [["__scopeId", "data-v-
|
|
229
|
+
}), _r = /* @__PURE__ */ _(Ma, [["__scopeId", "data-v-4b40d759"]]), Ka = ["title", "onClick"], Ra = {
|
|
229
230
|
key: 0,
|
|
230
231
|
class: "jn_fileView_fileName"
|
|
231
232
|
}, Ja = /* @__PURE__ */ q({
|