@jnrs/vue-core 1.2.4 → 1.2.6
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/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-c92f56b2]{margin-bottom:20px}.jn_imageView[data-v-e432e827]{display:block;width:100%;height:100%}.jn_imageView .jn_imageView_error[data-v-e432e827]{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_image_view_icon[data-v-e432e827]:hover{color:var(--jnrs-color-primary);transform:scale(1.2);transition:all .3s ease}.jn_fileView[data-v-d95b99b8]{display:block;width:100%;height:100%;line-height:1em;cursor:pointer}.jn_fileView:hover .jn_fileView_button[data-v-d95b99b8]{color:var(--jnrs-color-primary)}.jn_fileView .jn_fileView_fileName[data-v-d95b99b8]{font-size:.8em;color:var(--jnrs-font-primary-06);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.jn_fileView .jn_fileView_button[data-v-d95b99b8]{height:auto;padding:0;text-decoration:underline;font-size:.9em;transition:all .3s ease}.jn_fileUpload[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-c92f56b2]{margin-bottom:20px}.jn_imageView[data-v-e432e827]{display:block;width:100%;height:100%}.jn_imageView .jn_imageView_error[data-v-e432e827]{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_image_view_icon[data-v-e432e827]:hover{color:var(--jnrs-color-primary);transform:scale(1.2);transition:all .3s ease}.jn_fileView[data-v-d95b99b8]{display:block;width:100%;height:100%;line-height:1em;cursor:pointer}.jn_fileView:hover .jn_fileView_button[data-v-d95b99b8]{color:var(--jnrs-color-primary)}.jn_fileView .jn_fileView_fileName[data-v-d95b99b8]{font-size:.8em;color:var(--jnrs-font-primary-06);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.jn_fileView .jn_fileView_button[data-v-d95b99b8]{height:auto;padding:0;text-decoration:underline;font-size:.9em;transition:all .3s ease}.jn_fileUpload[data-v-2979c34e]{position:relative;width:100%;color:var(--jnrs-font-primary-06)}.jn_fileUpload[data-v-2979c34e] .el-upload-dragger{padding:30px 0 10px}.jn_fileUpload .jn_uploadTips[data-v-2979c34e]{display:block;width:100%;margin-top:5px;line-height:1.2em}.jn_fileUpload .jn_uploadTips span[data-v-2979c34e]{display:inline-block;margin-right:10px}.jn_fileUpload .jn_uploadTips b[data-v-2979c34e]{color:var(--el-color-danger, #ff3300)}.jn_fileUpload .jn_uploadTips_isDrag[data-v-2979c34e]{position:absolute;top:4px;left:0;text-align:center}.jn_fileUpload .jn_fileList[data-v-2979c34e]{width:100%}.jn_fileUpload .jn_fileList .jn_fileLis_item[data-v-2979c34e]{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-2979c34e]{flex:1;position:relative;display:flex;align-items:center;justify-content:flex-start;padding-right:50px;line-height:1.1em}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_right[data-v-2979c34e]{flex-shrink:0;width:60px;display:flex;align-items:center;justify-content:flex-end;padding-right:4px}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_index[data-v-2979c34e]{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-2979c34e]{flex-shrink:0;width:20px;height:20px}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_name[data-v-2979c34e]{padding:0 4px;word-break:break-all}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_size[data-v-2979c34e]{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-2979c34e]{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-2979c34e]:hover{background-color:var(--jnrs-card-primary)}.jn_fileUpload .jn_fileList .jn_fileLis_item .fileLis_item_btn_danger[data-v-2979c34e]{color:var(--el-color-danger, #ff3300)}.jnImportAndExport_button.is-text[data-v-32a46b54]{padding:0}.jnImportAndExport_underlineBtn[data-v-32a46b54]{display:inline-block;margin-right:36px;color:#3697fc;text-decoration:underline;cursor:pointer}.jnImportAndExport_underlineBtn[data-v-32a46b54]:hover{opacity:.8}.jn_table[data-v-dc758066]{width:100%}.jn_table[data-v-dc758066] .jn_table_header{color:var(--jnrs-font-primary)!important;background:var(--jnrs-background-head)!important}.jn_table[data-v-dc758066] .jn_table_header .cell{padding:0 8px;line-height:1.2em}.jn_selectTemplate[data-v-8915de2a]{display:flex;align-items:center;font-size:0}.jn_selectTemplate .jn_select[data-v-8915de2a]{flex:1;right:-1px;z-index:1}.jn_selectTemplate .jn_select[data-v-8915de2a] .el-select__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.jn_selectTemplate .jn_select_button[data-v-8915de2a]{border-radius:0 3px 3px 0}.jn_selectTemplate .t_select_button_only[data-v-8915de2a]{margin-left:0;border-top-left-radius:3px;border-bottom-left-radius:3px}.jn_dialog_header[data-v-8915de2a]{display:flex;align-items:center}[data-v-8915de2a] .el-input__validateIcon{display:none}[data-v-8915de2a] th .el-checkbox--small{display:none!important}[data-v-8915de2a] .el-table__row{cursor:pointer}.tableIsSingle[data-v-8915de2a] .el-checkbox__inner{border-radius:50%}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
2
|
import { defineComponent as H, ref as B, createBlock as U, openBlock as I, unref as i, withCtx as g, createElementVNode as p, createVNode as h, toDisplayString as b, isRef as zt, createElementBlock as E, Fragment as X, renderList as ee, createTextVNode as T, computed as N, normalizeStyle as Ie, createCommentVNode as k, renderSlot as le, withDirectives as Pe, normalizeClass as ke, vShow as Vt, nextTick as te, withModifiers as Be, watch as Ae, onMounted as Xt, mergeProps as Ft } from "vue";
|
|
3
3
|
import { storeToRefs as Ht } from "pinia";
|
|
4
4
|
import { ElDrawer as xt, ElSwitch as Ot, ElRadioGroup as Ee, ElRadio as pe, ElImage as Kt, ElIcon as L, ElButton as F, ElDialog as mt, ElUpload as Mt, vLoading as De, ElMessage as G, ElForm as vt, ElFormItem as Rt, ElMessageBox as Ke, ElLoading as Qe, ElPagination as ht, ElTable as It, ElTableColumn as fe, ElSelect as Gt, ElOption as Nt, ElCheckbox as Jt } from "element-plus";
|
|
@@ -309,6 +309,7 @@ const ga = { class: "jn_globalSetting_item" }, ma = { class: "jn_globalSetting_i
|
|
|
309
309
|
modelValue: {},
|
|
310
310
|
uploadName: { default: "file" },
|
|
311
311
|
drag: { type: Boolean, default: !1 },
|
|
312
|
+
disabled: { type: Boolean, default: !1 },
|
|
312
313
|
showFileList: { type: Boolean, default: !0 },
|
|
313
314
|
accept: {},
|
|
314
315
|
fileSizeMb: { default: 100 },
|
|
@@ -321,7 +322,7 @@ const ga = { class: "jn_globalSetting_item" }, ma = { class: "jn_globalSetting_i
|
|
|
321
322
|
},
|
|
322
323
|
emits: ["update:modelValue"],
|
|
323
324
|
setup(e, { emit: t }) {
|
|
324
|
-
const a = t, n = B(!1), s = B(), l = N(() => e.limit && e.modelValue && e.modelValue.length >= e.limit
|
|
325
|
+
const a = t, n = B(!1), s = B(), l = N(() => e.disabled || e.limit !== 0 && e.modelValue && e.modelValue.length >= e.limit), c = (r) => {
|
|
325
326
|
const o = ["B", "KB", "MB", "GB"];
|
|
326
327
|
let A = r, Q = 0;
|
|
327
328
|
for (; A >= 1024 && Q < o.length - 1; )
|
|
@@ -505,7 +506,7 @@ const ga = { class: "jn_globalSetting_item" }, ma = { class: "jn_globalSetting_i
|
|
|
505
506
|
]) : k("", !0)
|
|
506
507
|
]));
|
|
507
508
|
}
|
|
508
|
-
}), dn = /* @__PURE__ */ Y(An, [["__scopeId", "data-v-
|
|
509
|
+
}), dn = /* @__PURE__ */ Y(An, [["__scopeId", "data-v-2979c34e"]]), fn = /* @__PURE__ */ H({
|
|
509
510
|
__name: "JnImportAndExport",
|
|
510
511
|
props: {
|
|
511
512
|
importTemplateApi: { type: Function },
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jnrs/vue-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "巨能前端工程化开发,Vue 专用核心功能包。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jnrs",
|
|
7
7
|
"vue-core"
|
|
8
8
|
],
|
|
9
|
-
"author": "
|
|
9
|
+
"author": "talia_tan",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"vue": "^3.5.22",
|
|
63
63
|
"vue-router": "^4.5.1",
|
|
64
64
|
"vue-i18n": "^9.14.5",
|
|
65
|
-
"@jnrs/shared": "1.1.
|
|
65
|
+
"@jnrs/shared": "1.1.10"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@vitejs/plugin-vue": "^6.0.1",
|