vome-core 0.1.57 → 0.1.59
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/admin/components/vm-group-cascader.vue +2 -1
- package/dist/admin/components/vm-icon-picker.vue +2 -1
- package/dist/admin/components/vm-role-picker.vue +2 -1
- package/dist/admin/config/plugin-dev.js +1 -1
- package/dist/admin/crud/components/vm-color-picker.vue +2 -1
- package/dist/admin/crud/components/vm-datetime-field.vue +2 -1
- package/dist/admin/crud/components/vm-multi-select.vue +122 -33
- package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
- package/dist/admin/crud/components/vm-select.vue +2 -1
- package/dist/admin/crud/components/vm-tree-select.vue +2 -1
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/key.js +1 -1
- package/dist/admin/crud/plugins.js +1 -1
- package/dist/admin/crud/span.js +1 -1
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/lib/browser.js +1 -1
- package/dist/admin/lib/cn.js +1 -1
- package/dist/admin/lib/dialog-float.d.ts +2 -0
- package/dist/admin/lib/dialog-float.js +1 -1
- package/dist/admin/lib/export-excel.js +1 -1
- package/dist/admin/lib/import-excel.js +1 -1
- package/dist/admin/lib/json.js +1 -1
- package/dist/admin/lib/menu.js +1 -1
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.js +1 -1
- package/dist/admin/lib/video-frame.js +1 -1
- package/dist/ai/index.js +8 -18
- package/dist/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/shared/datetime-picker.js +1 -1
- package/dist/shared/excel.d.ts +9 -8
- package/dist/shared/excel.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/locale-json.js +1 -1
- package/dist/shared/tree.js +1 -1
- package/package.json +1 -1
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
|
|
92
92
|
<script setup lang="ts">
|
|
93
93
|
import { ref, computed, watch, nextTick, onMounted, onUnmounted } from 'vue'
|
|
94
|
+
import { POPUP_TRIGGER_GAP } from '../lib/dialog-float'
|
|
94
95
|
import type { GroupCascaderNode } from '../../../typings/admin/comm/cascader'
|
|
95
96
|
defineOptions({ name: 'vm-group-cascader' })
|
|
96
97
|
|
|
@@ -236,7 +237,7 @@ function syncPanelPos() {
|
|
|
236
237
|
// 贴触发框左侧 + 底部
|
|
237
238
|
panelStyle.value = {
|
|
238
239
|
position: 'fixed',
|
|
239
|
-
top: `${r.bottom +
|
|
240
|
+
top: `${r.bottom + POPUP_TRIGGER_GAP}px`,
|
|
240
241
|
left: `${r.left}px`,
|
|
241
242
|
zIndex: '200',
|
|
242
243
|
maxWidth: `${maxW}px`,
|
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
<script setup lang="ts">
|
|
124
124
|
import { ref, computed, watch, nextTick, onMounted, onUnmounted } from 'vue'
|
|
125
125
|
import { FocusScope } from 'reka-ui'
|
|
126
|
+
import { POPUP_TRIGGER_GAP } from '../lib/dialog-float'
|
|
126
127
|
import allIcons from '../data/remixicon-all.json'
|
|
127
128
|
|
|
128
129
|
defineOptions({ name: 'vm-icon-picker' })
|
|
@@ -262,7 +263,7 @@ function syncPanelPos() {
|
|
|
262
263
|
// 贴触发框左侧 + 底部
|
|
263
264
|
panelStyle.value = {
|
|
264
265
|
position: 'fixed',
|
|
265
|
-
top: `${r.bottom +
|
|
266
|
+
top: `${r.bottom + POPUP_TRIGGER_GAP}px`,
|
|
266
267
|
left: `${r.left}px`,
|
|
267
268
|
width: `${width}px`,
|
|
268
269
|
zIndex: '100',
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
<script setup lang="ts">
|
|
51
51
|
import { useVome } from '../hooks/useVome'
|
|
52
52
|
import { ref, computed, watch, nextTick, onMounted, onUnmounted } from 'vue'
|
|
53
|
+
import { POPUP_TRIGGER_GAP } from '../lib/dialog-float'
|
|
53
54
|
defineOptions({ name: 'vm-role-picker' })
|
|
54
55
|
|
|
55
56
|
const props = withDefaults(
|
|
@@ -137,7 +138,7 @@ function syncPanelPos() {
|
|
|
137
138
|
// 贴触发框左侧 + 底部
|
|
138
139
|
panelStyle.value = {
|
|
139
140
|
position: 'fixed',
|
|
140
|
-
top: `${r.bottom +
|
|
141
|
+
top: `${r.bottom + POPUP_TRIGGER_GAP}px`,
|
|
141
142
|
left: `${r.left}px`,
|
|
142
143
|
width: `${width}px`,
|
|
143
144
|
zIndex: '200',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x599140=_0x55f9;(function(_0x1c3f96,_0x2fa045){const _0x4b1557=_0x55f9,_0x3660fd=_0x1c3f96();while(!![]){try{const _0x3f7875=parseInt(_0x4b1557(0x1e3))/0x1+parseInt(_0x4b1557(0x1e7))/0x2+parseInt(_0x4b1557(0x1f8))/0x3*(parseInt(_0x4b1557(0x1ed))/0x4)+-parseInt(_0x4b1557(0x1f0))/0x5*(-parseInt(_0x4b1557(0x1ee))/0x6)+-parseInt(_0x4b1557(0x1f1))/0x7*(-parseInt(_0x4b1557(0x1f4))/0x8)+-parseInt(_0x4b1557(0x1f3))/0x9+-parseInt(_0x4b1557(0x1ec))/0xa;if(_0x3f7875===_0x2fa045)break;else _0x3660fd['push'](_0x3660fd['shift']());}catch(_0x34f8d2){_0x3660fd['push'](_0x3660fd['shift']());}}}(_0x5b8b,0xa43dc));const ORG='vomekj';export function serviceUrlFromDocs(_0x2cb695){const _0x450806=_0x55f9,_0x2c6818=new URL(_0x2cb695),_0x379f9c=_0x2c6818[_0x450806(0x1f6)][_0x450806(0x1ea)](/^www\./,'')[_0x450806(0x1ea)](/^service\./,'');return _0x2c6818[_0x450806(0x1fe)]+_0x450806(0x1f9)+_0x379f9c;}function _0x5b8b(){const _0x3424d1=['odKXntK0wNbrD1Pd','Ahr0Chm6lY9NAxrLzs5JB20V','l2fWCc9WBhvNAw5tDg9Yzs9Zzwf0','CMvWBgfJzq','57QV5yMn56UV','mZe1mdqWsxzwCePR','mte5mdq0A1HcD015','mta4ntu4wKzkuhrK','DM9Tzs1WBhvNAw4TzNjVBNq','odvprfnVD08','mtG5y3v0s3Pi','l3bSDwDPBNmVDxbSB2fK','otGZnZu0mhryCuTvAq','nZK5mtjeAfbxvfe','Ahr0Chm6lY9NAxrODwiUy29TlW','Ag9ZDg5HBwu','DM9Tzs1WBhvNAw4TC2vYDMLJzq','mZbWEuL6C1C','lY9Zzxj2AwnLlG','z2L0zwu','yMfJA2vUza','zNvSBa','l3jLCg9ZAxrVCNKVyxjJAgL2zs9Tyxn0zxiUEMLW','ChjVDg9JB2W','6zkP5A2qic8G5PYn5yQH56UV5O+s5lU26isA5OMl5P6277YilNzVBwxVVjRKU4uGC2vYDMvY77Yj77Ym6ycc5zci5lIk5lYG44cb55+T5l+H44cb5PsV5lUy562j6io95yQB5OMP5Bgv44cc','ndC2nJa1yNjjwKri','DM9Tzs1WBhvNAw4TzNvSBa','5zco5y+W5B6U5BQu55sO6isA5OMl5P6277YilNzVBwxVVjRLKkSGD2vIl++8IE+8Jos7Psb3DwPPzsdMJilOVB3NI6ZNQ4VLIy3NQ6/POBxPNAlJGii','l2fYy2HPDMuVCMvMCY9OzwfKCY9Tyxn0zxiUEMLW'];_0x5b8b=function(){return _0x3424d1;};return _0x5b8b();}export function seatApiBaseFromDocs(_0x416f02){const _0x4e74a7=_0x55f9;return serviceUrlFromDocs(_0x416f02)+_0x4e74a7(0x1e9);}export function licenseIssueUrlFromDocs(_0x208ef1){return serviceUrlFromDocs(_0x208ef1)+'/app/pluginStore/wallet/license/issue';}function giteeArchive(_0x1ef892){const _0x4e4eef=_0x55f9;return _0x4e4eef(0x1e8)+ORG+'/'+_0x1ef892+_0x4e4eef(0x1fd);}function githubArchive(_0x123d32){const _0x1ce2b1=_0x55f9;return'https://github.com/'+ORG+'/'+_0x123d32+_0x1ce2b1(0x1e6);}function _0x55f9(_0x11420b,_0x30a87c){_0x11420b=_0x11420b-0x1e3;const _0x5b8bc3=_0x5b8b();let _0x55f917=_0x5b8bc3[_0x11420b];if(_0x55f9['lPOsNV']===undefined){var _0x45f5bb=function(_0x496db9){const _0x33c458='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2cb695='',_0x2c6818='';for(let _0x379f9c=0x0,_0x416f02,_0x208ef1,_0x1ef892=0x0;_0x208ef1=_0x496db9['charAt'](_0x1ef892++);~_0x208ef1&&(_0x416f02=_0x379f9c%0x4?_0x416f02*0x40+_0x208ef1:_0x208ef1,_0x379f9c++%0x4)?_0x2cb695+=String['fromCharCode'](0xff&_0x416f02>>(-0x2*_0x379f9c&0x6)):0x0){_0x208ef1=_0x33c458['indexOf'](_0x208ef1);}for(let _0x123d32=0x0,_0xa3735c=_0x2cb695['length'];_0x123d32<_0xa3735c;_0x123d32++){_0x2c6818+='%'+('00'+_0x2cb695['charCodeAt'](_0x123d32)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2c6818);};_0x55f9['CdEfKw']=_0x45f5bb,_0x55f9['KGPLnG']={},_0x55f9['lPOsNV']=!![];}const _0x31b0a7=_0x5b8bc3[0x0],_0x3fe1aa=_0x11420b+_0x31b0a7,_0x23b891=_0x55f9['KGPLnG'][_0x3fe1aa];return!_0x23b891?(_0x55f917=_0x55f9['CdEfKw'](_0x55f917),_0x55f9['KGPLnG'][_0x3fe1aa]=_0x55f917):_0x55f917=_0x23b891,_0x55f917;}function giteeRepo(_0xa3735c){const _0x2c1105=_0x55f9;return _0x2c1105(0x1e8)+ORG+'/'+_0xa3735c;}function githubRepo(_0x20a549){return'https://github.com/'+ORG+'/'+_0x20a549;}const docsUrl='https://vomekj.com';export const pluginDev={'docsUrl':docsUrl,'serviceUrl':serviceUrlFromDocs(docsUrl),'uploadUrl':docsUrl+_0x599140(0x1f2),'mirrors':{'prefer':_0x599140(0x1fa),'giteeOrg':_0x599140(0x1e8)+ORG,'githubOrg':_0x599140(0x1f5)+ORG},'scaffolds':{'full':{'key':_0x599140(0x1fc),'title':'前端\x20+\x20后端','desc':'完整业务模块脚手架(.vome:含\x20server\x20与\x20web),本地开发打包后发布。','repo':_0x599140(0x1e4),'repoUrl':giteeRepo(_0x599140(0x1e4)),'githubRepoUrl':githubRepo(_0x599140(0x1e4)),'downloadUrl':giteeArchive(_0x599140(0x1e4)),'githubDownloadUrl':githubArchive(_0x599140(0x1e4))},'backend':{'key':_0x599140(0x1fb),'title':'纯后端','desc':_0x599140(0x1ff),'repo':_0x599140(0x1f7),'repoUrl':giteeRepo(_0x599140(0x1f7)),'githubRepoUrl':githubRepo(_0x599140(0x1f7)),'downloadUrl':giteeArchive(_0x599140(0x1f7)),'githubDownloadUrl':githubArchive(_0x599140(0x1f7))},'frontend':{'key':'frontend','title':_0x599140(0x1eb),'desc':_0x599140(0x1e5),'repo':_0x599140(0x1ef),'repoUrl':giteeRepo(_0x599140(0x1ef)),'githubRepoUrl':githubRepo(_0x599140(0x1ef)),'downloadUrl':giteeArchive(_0x599140(0x1ef)),'githubDownloadUrl':githubArchive(_0x599140(0x1ef))}}};
|
|
@@ -241,6 +241,7 @@
|
|
|
241
241
|
<script setup lang="ts">
|
|
242
242
|
import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
|
|
243
243
|
import { FocusScope } from 'reka-ui'
|
|
244
|
+
import { POPUP_TRIGGER_GAP } from '../../lib/dialog-float'
|
|
244
245
|
|
|
245
246
|
defineOptions({ name: 'vm-color-picker' })
|
|
246
247
|
|
|
@@ -1028,7 +1029,7 @@ function syncPanelPos() {
|
|
|
1028
1029
|
// 贴触发框左侧 + 底部
|
|
1029
1030
|
panelStyle.value = {
|
|
1030
1031
|
position: 'fixed',
|
|
1031
|
-
top: `${r.bottom +
|
|
1032
|
+
top: `${r.bottom + POPUP_TRIGGER_GAP}px`,
|
|
1032
1033
|
left: `${r.left}px`,
|
|
1033
1034
|
width: `${width}px`,
|
|
1034
1035
|
zIndex: '100',
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
import { computed, onBeforeUnmount, onMounted, ref } from 'vue'
|
|
46
46
|
import { FocusScope } from 'reka-ui'
|
|
47
47
|
import VmDateCalendarPanel from './vm-date-calendar-panel.vue'
|
|
48
|
+
import { POPUP_TRIGGER_GAP } from '../../lib/dialog-float'
|
|
48
49
|
import {
|
|
49
50
|
dateTimeDisplayText,
|
|
50
51
|
normalizeDateTimePrecision,
|
|
@@ -90,7 +91,7 @@ function syncPanelPos() {
|
|
|
90
91
|
panelStyle.value = {
|
|
91
92
|
position: 'fixed',
|
|
92
93
|
left: `${r.left}px`,
|
|
93
|
-
top: `${r.bottom +
|
|
94
|
+
top: `${r.bottom + POPUP_TRIGGER_GAP}px`,
|
|
94
95
|
zIndex: '10050',
|
|
95
96
|
}
|
|
96
97
|
}
|
|
@@ -1,36 +1,61 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
ref="rootRef"
|
|
4
|
+
class="vm-multi-select"
|
|
5
|
+
:class="{ 'is-open': open, 'is-disabled': disabled }"
|
|
6
|
+
>
|
|
3
7
|
<button
|
|
8
|
+
ref="triggerRef"
|
|
4
9
|
type="button"
|
|
5
10
|
class="vm-multi-select__trigger"
|
|
6
11
|
:disabled="disabled"
|
|
7
|
-
@click="
|
|
12
|
+
@click="toggle"
|
|
8
13
|
>
|
|
9
14
|
<span class="vm-multi-select__label" :class="{ 'is-placeholder': !selected.length }">
|
|
10
15
|
{{ triggerText }}
|
|
11
16
|
</span>
|
|
12
17
|
<i class="ri-arrow-down-s-line vm-multi-select__caret" />
|
|
13
18
|
</button>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
|
|
20
|
+
<Teleport to="body">
|
|
21
|
+
<FocusScope
|
|
22
|
+
v-if="open"
|
|
23
|
+
as-child
|
|
24
|
+
loop
|
|
25
|
+
:trapped="true"
|
|
26
|
+
@unmount-auto-focus="onPanelUnmountAutoFocus"
|
|
19
27
|
>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
<div
|
|
29
|
+
ref="panelRef"
|
|
30
|
+
class="vm-multi-select__panel vm-dialog-float"
|
|
31
|
+
:style="panelStyle"
|
|
32
|
+
@pointerdown.stop
|
|
33
|
+
@mousedown.stop
|
|
34
|
+
>
|
|
35
|
+
<label
|
|
36
|
+
v-for="opt in options"
|
|
37
|
+
:key="String(opt.value)"
|
|
38
|
+
class="vm-multi-select__option"
|
|
39
|
+
>
|
|
40
|
+
<input
|
|
41
|
+
type="checkbox"
|
|
42
|
+
:checked="isChecked(opt.value)"
|
|
43
|
+
@change="toggleValue(opt.value)"
|
|
44
|
+
/>
|
|
45
|
+
<span>{{ opt.label }}</span>
|
|
46
|
+
</label>
|
|
47
|
+
<div v-if="!options.length" class="vm-multi-select__empty">暂无选项</div>
|
|
48
|
+
</div>
|
|
49
|
+
</FocusScope>
|
|
50
|
+
</Teleport>
|
|
29
51
|
</div>
|
|
30
52
|
</template>
|
|
31
53
|
|
|
32
54
|
<script setup lang="ts">
|
|
33
|
-
import { ref, computed, onMounted,
|
|
55
|
+
import { ref, computed, nextTick, onMounted, onUnmounted } from 'vue'
|
|
56
|
+
import { FocusScope } from 'reka-ui'
|
|
57
|
+
import { POPUP_TRIGGER_GAP } from '../../lib/dialog-float'
|
|
58
|
+
|
|
34
59
|
defineOptions({ name: 'vm-multi-select' })
|
|
35
60
|
|
|
36
61
|
const props = withDefaults(
|
|
@@ -52,8 +77,12 @@ const emit = defineEmits<{
|
|
|
52
77
|
change: [v: Array<string | number | boolean>]
|
|
53
78
|
}>()
|
|
54
79
|
|
|
55
|
-
const
|
|
80
|
+
const rootRef = ref<HTMLElement | null>(null)
|
|
81
|
+
const triggerRef = ref<HTMLElement | null>(null)
|
|
82
|
+
const panelRef = ref<HTMLElement | null>(null)
|
|
56
83
|
const open = ref(false)
|
|
84
|
+
const panelStyle = ref<Record<string, string>>({})
|
|
85
|
+
const suppressOpen = ref(false)
|
|
57
86
|
|
|
58
87
|
const selected = computed(() => props.modelValue || [])
|
|
59
88
|
|
|
@@ -71,7 +100,7 @@ function isChecked(v: string | number | boolean) {
|
|
|
71
100
|
return selected.value.some((x) => String(x) === String(v))
|
|
72
101
|
}
|
|
73
102
|
|
|
74
|
-
function
|
|
103
|
+
function toggleValue(v: string | number | boolean) {
|
|
75
104
|
const next = [...selected.value]
|
|
76
105
|
const i = next.findIndex((x) => String(x) === String(v))
|
|
77
106
|
if (i >= 0) next.splice(i, 1)
|
|
@@ -80,12 +109,78 @@ function toggle(v: string | number | boolean) {
|
|
|
80
109
|
emit('change', next)
|
|
81
110
|
}
|
|
82
111
|
|
|
83
|
-
function
|
|
84
|
-
|
|
112
|
+
function syncPanelPos() {
|
|
113
|
+
const el = triggerRef.value
|
|
114
|
+
if (!el) return
|
|
115
|
+
const r = el.getBoundingClientRect()
|
|
116
|
+
const width = Math.max(r.width, 200)
|
|
117
|
+
panelStyle.value = {
|
|
118
|
+
position: 'fixed',
|
|
119
|
+
top: `${r.bottom + POPUP_TRIGGER_GAP}px`,
|
|
120
|
+
left: `${r.left}px`,
|
|
121
|
+
width: `${width}px`,
|
|
122
|
+
zIndex: '200',
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function onPanelUnmountAutoFocus(event: Event) {
|
|
127
|
+
event.preventDefault()
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function closePanel() {
|
|
131
|
+
if (!open.value) return
|
|
132
|
+
suppressOpen.value = true
|
|
133
|
+
open.value = false
|
|
134
|
+
nextTick(() => {
|
|
135
|
+
requestAnimationFrame(() => {
|
|
136
|
+
suppressOpen.value = false
|
|
137
|
+
})
|
|
138
|
+
})
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
async function openPanel() {
|
|
142
|
+
if (props.disabled || suppressOpen.value) return
|
|
143
|
+
open.value = true
|
|
144
|
+
await nextTick()
|
|
145
|
+
syncPanelPos()
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
async function toggle() {
|
|
149
|
+
if (props.disabled) return
|
|
150
|
+
if (open.value) {
|
|
151
|
+
closePanel()
|
|
152
|
+
return
|
|
153
|
+
}
|
|
154
|
+
await openPanel()
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function isInside(el: Node | null) {
|
|
158
|
+
if (!el) return false
|
|
159
|
+
if (rootRef.value?.contains(el)) return true
|
|
160
|
+
if (panelRef.value?.contains(el)) return true
|
|
161
|
+
return el instanceof Element && Boolean(el.closest('.vm-multi-select__panel'))
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function onDocPointer(e: Event) {
|
|
165
|
+
if (!open.value) return
|
|
166
|
+
const t = e.target as Node | null
|
|
167
|
+
if (!isInside(t)) closePanel()
|
|
85
168
|
}
|
|
86
169
|
|
|
87
|
-
|
|
88
|
-
|
|
170
|
+
function onWinChange() {
|
|
171
|
+
if (open.value) syncPanelPos()
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
onMounted(() => {
|
|
175
|
+
document.addEventListener('pointerdown', onDocPointer, true)
|
|
176
|
+
window.addEventListener('resize', onWinChange)
|
|
177
|
+
window.addEventListener('scroll', onWinChange, true)
|
|
178
|
+
})
|
|
179
|
+
onUnmounted(() => {
|
|
180
|
+
document.removeEventListener('pointerdown', onDocPointer, true)
|
|
181
|
+
window.removeEventListener('resize', onWinChange)
|
|
182
|
+
window.removeEventListener('scroll', onWinChange, true)
|
|
183
|
+
})
|
|
89
184
|
</script>
|
|
90
185
|
|
|
91
186
|
<style lang="scss" scoped>
|
|
@@ -110,13 +205,12 @@ onBeforeUnmount(() => document.removeEventListener('mousedown', onDoc))
|
|
|
110
205
|
gap: 6px;
|
|
111
206
|
padding: 0 10px;
|
|
112
207
|
border: 1px solid transparent;
|
|
113
|
-
border-radius:
|
|
208
|
+
border-radius: var(--vm-control-radius);
|
|
114
209
|
background: var(--muted);
|
|
115
210
|
color: var(--foreground);
|
|
116
|
-
font-size:
|
|
211
|
+
font-size: var(--vm-control-font-size);
|
|
117
212
|
cursor: pointer;
|
|
118
213
|
outline: none;
|
|
119
|
-
/* 弹层触发:不展示打开/聚焦描边 */
|
|
120
214
|
}
|
|
121
215
|
|
|
122
216
|
.vm-multi-select__label {
|
|
@@ -139,16 +233,11 @@ onBeforeUnmount(() => document.removeEventListener('mousedown', onDoc))
|
|
|
139
233
|
}
|
|
140
234
|
|
|
141
235
|
.vm-multi-select__panel {
|
|
142
|
-
|
|
143
|
-
z-index: 50;
|
|
144
|
-
top: calc(100% + 2px);
|
|
145
|
-
left: 0;
|
|
146
|
-
right: 0;
|
|
147
|
-
max-height: 220px;
|
|
236
|
+
max-height: min(220px, 45vh);
|
|
148
237
|
overflow: auto;
|
|
149
238
|
padding: 6px;
|
|
150
239
|
border: 1px solid var(--border);
|
|
151
|
-
border-radius:
|
|
240
|
+
border-radius: var(--vm-control-radius);
|
|
152
241
|
background: var(--card);
|
|
153
242
|
box-shadow: var(--shadow-card);
|
|
154
243
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x141d09=_0x363b;(function(_0xcd6988,_0x3ec00b){const _0x59593b=_0x363b,_0x24ba9d=_0xcd6988();while(!![]){try{const _0x364e30=parseInt(_0x59593b(0xb0))/0x1*(parseInt(_0x59593b(0xb8))/0x2)+parseInt(_0x59593b(0xbb))/0x3+-parseInt(_0x59593b(0xab))/0x4*(-parseInt(_0x59593b(0xb7))/0x5)+parseInt(_0x59593b(0xac))/0x6*(-parseInt(_0x59593b(0xb2))/0x7)+parseInt(_0x59593b(0xb6))/0x8+-parseInt(_0x59593b(0xba))/0x9+-parseInt(_0x59593b(0xad))/0xa*(parseInt(_0x59593b(0xb1))/0xb);if(_0x364e30===_0x3ec00b)break;else _0x24ba9d['push'](_0x24ba9d['shift']());}catch(_0x47a729){_0x24ba9d['push'](_0x24ba9d['shift']());}}}(_0x35bc,0x5b443));import{Node,mergeAttributes}from'@tiptap/core';export const VmRichtextVideo=Node[_0x141d09(0xb3)]({'name':_0x141d09(0xb5),'group':_0x141d09(0xb4),'atom':!![],'selectable':!![],'draggable':!![],'addAttributes'(){return{'src':{'default':null},'controls':{'default':!![]}};},'parseHTML'(){const _0x162edb=_0x141d09;return[{'tag':_0x162edb(0xaf)}];},'renderHTML'({HTMLAttributes:_0x44b50c}){const _0x21a310=_0x141d09;return[_0x21a310(0xb5),mergeAttributes(_0x44b50c,{'controls':!![],'style':'max-width:100%;border-radius:8px'})];},'addCommands'(){const _0xc72c25=_0x141d09;return{'setVideo':_0x3d5edf=>({commands:_0x463e60})=>_0x463e60[_0xc72c25(0xae)]({'type':this['name'],'attrs':_0x3d5edf})};}});function _0x363b(_0x54e370,_0x4528e9){_0x54e370=_0x54e370-0xab;const _0x35bc38=_0x35bc();let _0x363b34=_0x35bc38[_0x54e370];if(_0x363b['LNCDTd']===undefined){var _0x8407b8=function(_0x5e0471){const _0x4c8671='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44b50c='',_0x3d5edf='';for(let _0x463e60=0x0,_0x1d05ba,_0x3add34,_0x5d19a4=0x0;_0x3add34=_0x5e0471['charAt'](_0x5d19a4++);~_0x3add34&&(_0x1d05ba=_0x463e60%0x4?_0x1d05ba*0x40+_0x3add34:_0x3add34,_0x463e60++%0x4)?_0x44b50c+=String['fromCharCode'](0xff&_0x1d05ba>>(-0x2*_0x463e60&0x6)):0x0){_0x3add34=_0x4c8671['indexOf'](_0x3add34);}for(let _0x48e2b6=0x0,_0x1e152f=_0x44b50c['length'];_0x48e2b6<_0x1e152f;_0x48e2b6++){_0x3d5edf+='%'+('00'+_0x44b50c['charCodeAt'](_0x48e2b6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3d5edf);};_0x363b['iSylWx']=_0x8407b8,_0x363b['otRCLD']={},_0x363b['LNCDTd']=!![];}const _0x306d50=_0x35bc38[0x0],_0x30fcbd=_0x54e370+_0x306d50,_0x192609=_0x363b['otRCLD'][_0x30fcbd];return!_0x192609?(_0x363b34=_0x363b['iSylWx'](_0x363b34),_0x363b['otRCLD'][_0x30fcbd]=_0x363b34):_0x363b34=_0x192609,_0x363b34;}export const VM_RICHTEXT_EMOJIS=['\uD83D\uDE00','\uD83D\uDE03','\uD83D\uDE04','\uD83D\uDE01','\uD83D\uDE06','\uD83D\uDE05','\uD83E\uDD23','\uD83D\uDE02','\uD83D\uDE42','\uD83D\uDE43','\uD83D\uDE09','\uD83D\uDE0A','\uD83D\uDE07','\uD83E\uDD70','\uD83D\uDE0D','\uD83E\uDD29','\uD83D\uDE18','\uD83D\uDE17','\uD83D\uDE1A','\uD83D\uDE19','\uD83D\uDE0B','\uD83D\uDE1B','\uD83D\uDE1C','\uD83E\uDD2A','\uD83D\uDE1D','\uD83E\uDD11','\uD83E\uDD17','\uD83E\uDD2D','\uD83E\uDD2B','\uD83E\uDD14','\uD83E\uDD10','\uD83E\uDD28','\uD83D\uDE10','\uD83D\uDE11','\uD83D\uDE36','\uD83D\uDE0F','\uD83D\uDE12','\uD83D\uDE44','\uD83D\uDE2C','\uD83E\uDD25','\uD83D\uDE0C','\uD83D\uDE14','\uD83D\uDE2A','\uD83E\uDD24','\uD83D\uDE34','\uD83D\uDE37','\uD83E\uDD12','\uD83E\uDD15','\uD83E\uDD22','\uD83E\uDD2E','\uD83E\uDD75','\uD83E\uDD76','\uD83E\uDD74','\uD83D\uDE35','\uD83E\uDD2F','\uD83E\uDD20','\uD83E\uDD73','\uD83D\uDE0E','\uD83E\uDD13','\uD83E\uDDD0','\uD83D\uDE15','\uD83D\uDE1F','\uD83D\uDE41','☹️','\uD83D\uDE2E','\uD83D\uDE2F','\uD83D\uDE32','\uD83D\uDE33','\uD83E\uDD7A','\uD83D\uDE26','\uD83D\uDE27','\uD83D\uDE28','\uD83D\uDE30','\uD83D\uDE25','\uD83D\uDE22','\uD83D\uDE2D','\uD83D\uDE31','\uD83D\uDE16','\uD83D\uDE23','\uD83D\uDE1E','\uD83D\uDE13','\uD83D\uDE29','\uD83D\uDE2B','\uD83E\uDD71','\uD83D\uDE24','\uD83D\uDE21','\uD83D\uDE20','\uD83E\uDD2C','\uD83D\uDE08','\uD83D\uDC7F','\uD83D\uDC4B','\uD83E\uDD1A','\uD83D\uDD90','✋','\uD83D\uDD96','\uD83D\uDC4C','\uD83E\uDD0C','\uD83E\uDD0F','✌️','\uD83E\uDD1E','\uD83E\uDD1F','\uD83E\uDD18','\uD83E\uDD19','\uD83D\uDC48','\uD83D\uDC49','\uD83D\uDC46','\uD83D\uDD95','\uD83D\uDC47','☝️','\uD83D\uDC4D','\uD83D\uDC4E','✊','\uD83D\uDC4A','\uD83E\uDD1B','\uD83E\uDD1C','\uD83D\uDC4F','\uD83D\uDE4C','\uD83D\uDC50','\uD83E\uDD32','\uD83E\uDD1D','\uD83D\uDE4F','\uD83D\uDCAA','\uD83E\uDDBE','✍️','\uD83D\uDC85','\uD83E\uDD33','❤️','\uD83E\uDDE1','\uD83D\uDC9B','\uD83D\uDC9A','\uD83D\uDC99','\uD83D\uDC9C','\uD83D\uDDA4','\uD83E\uDD0D','\uD83E\uDD0E','\uD83D\uDC94','❣️','\uD83D\uDC95','\uD83D\uDC9E','\uD83D\uDC93','\uD83D\uDC97','\uD83D\uDC96','\uD83D\uDC98','\uD83D\uDC9D','\uD83D\uDC9F','☮️','✝️','☪️','\uD83D\uDD49','☸️','✡️','\uD83D\uDD2F','\uD83D\uDD4E','☯️','☦️','\uD83D\uDED0','⭐','\uD83C\uDF1F','✨','⚡','\uD83D\uDD25','\uD83D\uDCA5','☀️','\uD83C\uDF19','⭐️','\uD83C\uDF08','✅','❌','⭕','❗','❓','‼️','⁉️','\uD83D\uDCAF','\uD83D\uDD14','\uD83D\uDD15','\uD83D\uDCCC','\uD83D\uDCCD','\uD83D\uDCCE','\uD83D\uDD17','\uD83D\uDD12','\uD83D\uDD13','\uD83D\uDD11','\uD83D\uDDDD','\uD83D\uDCA1','\uD83D\uDD26','\uD83D\uDCDD','✏️','✒️','\uD83D\uDD8A','\uD83D\uDD8B','\uD83D\uDD8C','\uD83D\uDD8D','\uD83D\uDCBC','\uD83D\uDCC1','\uD83D\uDCC2','\uD83D\uDCC5','\uD83D\uDCC6','\uD83D\uDDD3','\uD83D\uDCC7','\uD83D\uDCC8','\uD83D\uDCC9','\uD83D\uDCCA','\uD83D\uDCCB','\uD83D\uDCE4','\uD83D\uDCE5','\uD83D\uDCE6','\uD83D\uDCEB','\uD83D\uDCEC','\uD83D\uDCED','\uD83D\uDCEE','\uD83D\uDCEF','\uD83D\uDCDC','\uD83D\uDCC3','\uD83D\uDCC4','\uD83D\uDCD1','☕','\uD83C\uDF75','\uD83E\uDDC3','\uD83E\uDD64','\uD83E\uDDCB','\uD83C\uDF7A','\uD83C\uDF7B','\uD83E\uDD42','\uD83C\uDF77','\uD83C\uDF78','\uD83C\uDF55','\uD83C\uDF54','\uD83C\uDF5F','\uD83C\uDF2D','\uD83C\uDF7F','\uD83C\uDF69','\uD83C\uDF6A','\uD83C\uDF82','\uD83C\uDF70','\uD83E\uDDC1','\uD83C\uDF4E','\uD83C\uDF4A','\uD83C\uDF4B','\uD83C\uDF4C','\uD83C\uDF49','\uD83C\uDF47','\uD83C\uDF53','\uD83E\uDED0','\uD83C\uDF52','\uD83C\uDF51','⚽','\uD83C\uDFC0','\uD83C\uDFC8','⚾','\uD83C\uDFBE','\uD83C\uDFD0','\uD83C\uDFC9','\uD83C\uDFB1','\uD83C\uDFD3','\uD83C\uDFF8','\uD83C\uDFAE','\uD83D\uDD79','\uD83C\uDFB2','\uD83E\uDDE9','\uD83C\uDFAF','\uD83C\uDFB3','\uD83C\uDFB0','\uD83C\uDFB8','\uD83C\uDFB9','\uD83E\uDD41','\uD83C\uDFA4','\uD83C\uDFA7','\uD83C\uDFAC','\uD83C\uDFA5','\uD83D\uDCF7','\uD83D\uDCF8','\uD83D\uDCF9','\uD83D\uDCFA','\uD83D\uDCFB','\uD83C\uDF99','\uD83D\uDE80','✈️','\uD83D\uDEE9','\uD83D\uDEEB','\uD83D\uDEEC','\uD83D\uDEF0','\uD83D\uDCBA','\uD83D\uDEF8','\uD83D\uDE81','\uD83D\uDEF6','\uD83D\uDE97','\uD83D\uDE95','\uD83D\uDE99','\uD83D\uDE8C','\uD83D\uDE8E','\uD83C\uDFCE','\uD83D\uDE93','\uD83D\uDE91','\uD83D\uDE92','\uD83D\uDE90','\uD83C\uDFE0','\uD83C\uDFE1','\uD83C\uDFE2','\uD83C\uDFE3','\uD83C\uDFE4','\uD83C\uDFE5','\uD83C\uDFE6','\uD83C\uDFE8','\uD83C\uDFE9','\uD83C\uDFEA','\uD83D\uDC36','\uD83D\uDC31','\uD83D\uDC2D','\uD83D\uDC39','\uD83D\uDC30','\uD83E\uDD8A','\uD83D\uDC3B','\uD83D\uDC3C',_0x141d09(0xb9),'\uD83D\uDC28','\uD83D\uDC2F','\uD83E\uDD81','\uD83D\uDC2E','\uD83D\uDC37','\uD83D\uDC38','\uD83D\uDC35','\uD83D\uDE48','\uD83D\uDE49','\uD83D\uDE4A','\uD83D\uDC12','\uD83D\uDC14','\uD83D\uDC27','\uD83D\uDC26','\uD83D\uDC24','\uD83D\uDC23','\uD83D\uDC25','\uD83E\uDD86','\uD83E\uDD85','\uD83E\uDD89','\uD83E\uDD87','\uD83C\uDF89','\uD83C\uDF8A','\uD83C\uDF88','\uD83C\uDF81','\uD83C\uDF80','\uD83C\uDF97','\uD83C\uDFAB','\uD83C\uDF9F','\uD83C\uDFC6','\uD83C\uDFC5'];function _0x35bc(){const _0x7f8c09=['mM1OqKLOsG','8j+qU+kaJEkDHo+4JW','ndiWodC2ywv4uMfV','mJeZnJmWm2TXzgHesa','mZK1mte2sLHoB1vv','mtjpv3DNrem','mtbdzfzdAK4','Aw5Zzxj0q29UDgvUDa','DMLKzw9BC3jJxq','mtC1mJq1wevJrxvn','otCYndGYnuzdA1z5zG','oty2mJy2v3viBuzs','y3jLyxrL','yMXVy2S','DMLKzw8','mJm4nJi0mgTLyK5NEa','mJbAA0jnru4'];_0x35bc=function(){return _0x7f8c09;};return _0x35bc();}
|
|
@@ -103,6 +103,7 @@
|
|
|
103
103
|
import { ref, computed, watch, nextTick, onMounted, onUnmounted } from 'vue'
|
|
104
104
|
import { FocusScope } from 'reka-ui'
|
|
105
105
|
import { useCrud } from '../useCrud'
|
|
106
|
+
import { POPUP_TRIGGER_GAP } from '../../lib/dialog-float'
|
|
106
107
|
|
|
107
108
|
defineOptions({ name: 'vm-select' })
|
|
108
109
|
|
|
@@ -250,7 +251,7 @@ function syncPanelPos() {
|
|
|
250
251
|
// 贴触发框左侧 + 底部
|
|
251
252
|
panelStyle.value = {
|
|
252
253
|
position: 'fixed',
|
|
253
|
-
top: `${r.bottom +
|
|
254
|
+
top: `${r.bottom + POPUP_TRIGGER_GAP}px`,
|
|
254
255
|
left: `${r.left}px`,
|
|
255
256
|
width: `${width}px`,
|
|
256
257
|
zIndex: '200',
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
<script setup lang="ts">
|
|
56
56
|
import { ref, computed, watch, nextTick, onMounted, onUnmounted } from 'vue'
|
|
57
|
+
import { POPUP_TRIGGER_GAP } from '../../lib/dialog-float'
|
|
57
58
|
import type { TreeSelectOption } from '../../../../typings/admin/comm/crud'
|
|
58
59
|
type FlatRow = {
|
|
59
60
|
key: string
|
|
@@ -226,7 +227,7 @@ function syncPanelPos() {
|
|
|
226
227
|
// 贴触发框左侧 + 底部
|
|
227
228
|
panelStyle.value = {
|
|
228
229
|
position: 'fixed',
|
|
229
|
-
top: `${r.bottom +
|
|
230
|
+
top: `${r.bottom + POPUP_TRIGGER_GAP}px`,
|
|
230
231
|
left: `${r.left}px`,
|
|
231
232
|
width: `${width}px`,
|
|
232
233
|
zIndex: '200',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x44af50,_0x3cc4ac){const _0xd55c2a=_0x1feb,_0x1b7275=_0x44af50();while(!![]){try{const _0x38a928=parseInt(_0xd55c2a(0xce))/0x1*(-parseInt(_0xd55c2a(0xcd))/0x2)+parseInt(_0xd55c2a(0xca))/0x3*(parseInt(_0xd55c2a(0xbe))/0x4)+parseInt(_0xd55c2a(0xc9))/0x5*(parseInt(_0xd55c2a(0xc8))/0x6)+-parseInt(_0xd55c2a(0xbd))/0x7*(-parseInt(_0xd55c2a(0xc3))/0x8)+parseInt(_0xd55c2a(0xbf))/0x9*(parseInt(_0xd55c2a(0xcb))/0xa)+parseInt(_0xd55c2a(0xc4))/0xb+-parseInt(_0xd55c2a(0xc6))/0xc;if(_0x38a928===_0x3cc4ac)break;else _0x1b7275['push'](_0x1b7275['shift']());}catch(_0x34dc44){_0x1b7275['push'](_0x1b7275['shift']());}}}(_0x10e6,0x41c8f));import{getCrudConfig}from'./style';import{CRUD_LABELS,DEFAULT_CRUD_DICT}from'./dict';function _0x10e6(){const _0x1c9ce5=['yxbP','mtjhvunQA1O','ote5mtbtD1jOCe8','m1fWz213Ba','mtiWvwfytMHf','zgLJDa','nJG0veHQBKfh','mtKZvxHPzhvc','nJiZnZyZquTSyuzI','mti2mZC5nNPIuu5vCW','mZa1odGZA3fVuKnt','CgfNAw5HDgLVBG','C29YDa','BgfIzwW','mJrXCvvvq2y','ntGYntm1og9RwM5hta','C2vHCMnO','mtq2nJqWmtjnCwjuAgi'];_0x10e6=function(){return _0x1c9ce5;};return _0x10e6();}export{CRUD_LABELS,DEFAULT_CRUD_DICT};function _0x1feb(_0xeeac3f,_0x144c4b){_0xeeac3f=_0xeeac3f-0xbd;const _0x10e6d0=_0x10e6();let _0x1febac=_0x10e6d0[_0xeeac3f];if(_0x1feb['QLHtsp']===undefined){var _0x3a30e1=function(_0xcf232c){const _0x50449a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5796f9='',_0x29644c='';for(let _0x28331e=0x0,_0x4ac010,_0x11f6be,_0x29d947=0x0;_0x11f6be=_0xcf232c['charAt'](_0x29d947++);~_0x11f6be&&(_0x4ac010=_0x28331e%0x4?_0x4ac010*0x40+_0x11f6be:_0x11f6be,_0x28331e++%0x4)?_0x5796f9+=String['fromCharCode'](0xff&_0x4ac010>>(-0x2*_0x28331e&0x6)):0x0){_0x11f6be=_0x50449a['indexOf'](_0x11f6be);}for(let _0x4ba431=0x0,_0x32f0ec=_0x5796f9['length'];_0x4ba431<_0x32f0ec;_0x4ba431++){_0x29644c+='%'+('00'+_0x5796f9['charCodeAt'](_0x4ba431)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x29644c);};_0x1feb['DrgMBz']=_0x3a30e1,_0x1feb['jEidsK']={},_0x1feb['QLHtsp']=!![];}const _0x322734=_0x10e6d0[0x0],_0x2404ca=_0xeeac3f+_0x322734,_0x195f5f=_0x1feb['jEidsK'][_0x2404ca];return!_0x195f5f?(_0x1febac=_0x1feb['DrgMBz'](_0x1febac),_0x1feb['jEidsK'][_0x2404ca]=_0x1febac):_0x1febac=_0x195f5f,_0x1febac;}const DEFAULT_CRUD_PERMISSION={'page':!![],'list':!![],'info':!![],'add':![],'delete':![],'update':![],'restore':![]};export function mergeDict(_0x5796f9){const _0x251a04=_0x1feb,_0x29644c=getCrudConfig()[_0x251a04(0xcc)];if(!_0x5796f9)return{..._0x29644c,'label':{..._0x29644c[_0x251a04(0xc2)]}};return{..._0x29644c,..._0x5796f9,'api':{..._0x29644c[_0x251a04(0xc7)],..._0x5796f9[_0x251a04(0xc7)]},'pagination':{..._0x29644c['pagination'],..._0x5796f9[_0x251a04(0xc0)]},'search':{..._0x29644c[_0x251a04(0xc5)],..._0x5796f9[_0x251a04(0xc5)]},'sort':{..._0x29644c[_0x251a04(0xc1)],..._0x5796f9[_0x251a04(0xc1)]},'label':{..._0x29644c[_0x251a04(0xc2)],..._0x5796f9[_0x251a04(0xc2)]}};}export function mergePermission(_0x28331e,_0x4ac010){return{...DEFAULT_CRUD_PERMISSION,..._0x4ac010,..._0x28331e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x44b1(_0x5e9b3a,_0x4fdcd6){_0x5e9b3a=_0x5e9b3a-0x168;const _0x716c5a=_0x716c();let _0x44b11a=_0x716c5a[_0x5e9b3a];if(_0x44b1['RkdkVS']===undefined){var _0x3c3e4a=function(_0x3824db){const _0x1c1555='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ec171='',_0x1c7fe4='';for(let _0x49848f=0x0,_0x28eb9f,_0x1ef83d,_0x341f75=0x0;_0x1ef83d=_0x3824db['charAt'](_0x341f75++);~_0x1ef83d&&(_0x28eb9f=_0x49848f%0x4?_0x28eb9f*0x40+_0x1ef83d:_0x1ef83d,_0x49848f++%0x4)?_0x4ec171+=String['fromCharCode'](0xff&_0x28eb9f>>(-0x2*_0x49848f&0x6)):0x0){_0x1ef83d=_0x1c1555['indexOf'](_0x1ef83d);}for(let _0x24f6d1=0x0,_0x1b29b7=_0x4ec171['length'];_0x24f6d1<_0x1b29b7;_0x24f6d1++){_0x1c7fe4+='%'+('00'+_0x4ec171['charCodeAt'](_0x24f6d1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c7fe4);};_0x44b1['IfygZm']=_0x3c3e4a,_0x44b1['tcOkxv']={},_0x44b1['RkdkVS']=!![];}const _0x10050e=_0x716c5a[0x0],_0x305f7e=_0x5e9b3a+_0x10050e,_0x3a0f78=_0x44b1['tcOkxv'][_0x305f7e];return!_0x3a0f78?(_0x44b11a=_0x44b1['IfygZm'](_0x44b11a),_0x44b1['tcOkxv'][_0x305f7e]=_0x44b11a):_0x44b11a=_0x3a0f78,_0x44b11a;}const _0x24c22c=_0x44b1;(function(_0x2bec62,_0x27750f){const _0x5ad271=_0x44b1,_0x40233c=_0x2bec62();while(!![]){try{const _0x3ff012=-parseInt(_0x5ad271(0x16f))/0x1*(-parseInt(_0x5ad271(0x168))/0x2)+-parseInt(_0x5ad271(0x171))/0x3+parseInt(_0x5ad271(0x175))/0x4+parseInt(_0x5ad271(0x16a))/0x5*(-parseInt(_0x5ad271(0x16e))/0x6)+-parseInt(_0x5ad271(0x172))/0x7+parseInt(_0x5ad271(0x181))/0x8+parseInt(_0x5ad271(0x17c))/0x9;if(_0x3ff012===_0x27750f)break;else _0x40233c['push'](_0x40233c['shift']());}catch(_0xab46b2){_0x40233c['push'](_0x40233c['shift']());}}}(_0x716c,0x5b77d));import{createApp,h,ref}from'vue';import{Dialog,DialogContent,DialogFooter,DialogHeader,DialogTitle}from'#vome-host/components/ui/dialog';function _0x716c(){const _0x365193=['C3rYAw5N','Dw5KzwzPBMvK','mta3otGWohLxDuvwqW','DMfSDwu','zgL2','y2fUy2vSvgv4Da','DM0Ty29UzMLYBv9FzM9VDa','Dw5TB3vUDa','mJq0mZiWD0zfu09g','DM0Ty29UzMLYBv9FyNrUigLZlxbYAw1HCNK','mJu0nvzrB1nvqW','C3r5Bgu','DM0Ty29UzMLYBv9FDgL0Bgu','yxbWzw5Kq2HPBgq','nJe4nLzsAvnRqq','mu53y2r2wG','AgvHza','mtq0mdu1offgs0Hnqq','mZe1mZuWww9krhbM','DM0Ty29UzMLYBq','DM0Ty29UzMLYBv9FAgvHza','mJaYotmZnMzPwxjOsW','yNv0Dg9U','y3jLyxrLrwXLBwvUDa','yM9KEq','DM0Ty29UzMLYBv9FyM9KEq','Bw91BNq','z2v0rwXLBwvUDej5swq','ntK0mtC4mLbcywfmAa','BwvZC2fNzq','cI52Bs1JB25MAxjTw2rHDgeTC2XVDd0NzgLHBg9NlwnVBNrLBNqNxsb7cIaGD2LKDgG6ig1PBIG0mdbWEcWGy2fSyYGXmdb2DYaTidmYChGPksaHAw1WB3j0yw50oWOGig1HEc13Awr0AdOGBwLUkdqWmhb4lcbJywXJkdeWmhz3ic0GmZjWEcKPicfPBxbVCNrHBNq7cIaGz2fWoIaWicfPBxbVCNrHBNq7cIaGCgfKzgLUzZOGmcaHAw1WB3j0yw50oWOGigjVCMrLCJOGBM9UzsaHAw1WB3j0yw50oWOGigjVCMrLCI1YywrPDxm6idi0ChGGiwLTCg9YDgfUDdSkicbIB3GTC2HHzg93oIb2yxiOls1ZAgfKB3CTC29MDcKGiwLTCg9YDgfUDdSkFqOUDM0Ty29UzMLYBv9FAgvHzcb7ihbHzgrPBMC6ide4ChGGmJjWEcaWoYbIB3jKzxiTyM90Dg9ToIbUB25LoYb9cI52Bs1JB25MAxjTx190AxrSzsb7igzVBNqTC2L6ztOGmtzWEdSGzM9UDc13zwLNAhq6idy1mdSGFqOUDM0Ty29UzMLYBv9FyM9KEsb7cIaGCgfKzgLUzZOGmtjWEcaYmNb4idHWEdSkicbJB2XVCJOGDMfYkc0TzM9YzwDYB3vUzcK7cIaGzM9UDc1ZAxPLoIaXnhb4oWOGigXPBMuTAgvPz2H0oIaXlJy7cN0klNzTlwnVBMzPCM1Fx2zVB3qGEWOGigrPC3bSyxK6igzSzxG7cIaGANvZDgLMEs1JB250zw50oIbMBgv4lwvUzdSkicbNyxa6idHWEdSkicbWywrKAw5NoIaXnhb4idiYChG7cN0klNzTlwnVBMzPCM1Fx2j0BIb7cIaGAgvPz2H0oIaZnNb4oWOGihbHzgrPBMC6idaGmtzWEdSkicbIB3jKzxi6ig5VBMu7cIaGyM9YzgvYlxjHzgL1CZOGmtjWEdSkicbMB250lxnPEMu6ideZChG7cIaGzM9UDc13zwLNAhq6idyWmdSkicbJDxjZB3i6ihbVAw50zxi7cN0klNzTlwnVBMzPCM1Fx2j0BI5PCY1WCMLTyxj5ihSGyMfJA2DYB3vUzdOGDMfYkc0TyNjHBMqPoYbJB2XVCJOGi2zMzJSGFqOUDM0Ty29UzMLYBv9FyNrUlMLZlxbYAw1HCNK6Ag92zxiGEYbIywnRz3jVDw5KoIb2yxiOls1ICMfUzc1KzwvWktSGFqOUDM0Ty29UzMLYBv9FyNrUlMLZlwDOB3n0ihSGyMfJA2DYB3vUzdOGDMfYkc0TBxv0zwqPoYbJB2XVCJOGDMfYkc0TzM9YzwDYB3vUzcK7ih0k'];_0x716c=function(){return _0x365193;};return _0x716c();}export function vmConfirm(_0x4ec171){const _0x39e722=_0x44b1,_0x1c7fe4=typeof _0x4ec171===_0x39e722(0x17f)?{'message':_0x4ec171}:_0x4ec171;return new Promise(_0x49848f=>{const _0x1e4cde=_0x39e722,_0x28eb9f=ref(!![]),_0x1ef83d=document[_0x1e4cde(0x177)](_0x1e4cde(0x183));document[_0x1e4cde(0x178)][_0x1e4cde(0x16d)](_0x1ef83d);const _0x341f75=createApp({'setup'(){const _0x65b7df=_0x1e4cde;function _0x24f6d1(_0x1b29b7){_0x28eb9f['value']=![],_0x49848f(_0x1b29b7),setTimeout(()=>{const _0x891e7f=_0x44b1;_0x341f75[_0x891e7f(0x186)](),_0x1ef83d['remove']();},0xc8);}return()=>h(Dialog,{'open':_0x28eb9f[_0x65b7df(0x182)],'onUpdate:open':_0x49d7d7=>{if(!_0x49d7d7)_0x24f6d1(![]);}},{'default':()=>h(DialogContent,{'class':_0x65b7df(0x173),'showCloseButton':![]},{'default':()=>[h(DialogHeader,{'class':_0x65b7df(0x174)},()=>h(DialogTitle,{'class':_0x65b7df(0x16c)},()=>_0x1c7fe4['title']||'提示')),h(_0x65b7df(0x183),{'class':_0x65b7df(0x179)},_0x1c7fe4[_0x65b7df(0x17d)]),h(DialogFooter,{'class':_0x65b7df(0x185)},()=>[h(_0x65b7df(0x176),{'type':_0x65b7df(0x176),'class':'vm-confirm__btn\x20is-ghost','onClick':()=>_0x24f6d1(![])},_0x1c7fe4[_0x65b7df(0x184)]||'取消'),h(_0x65b7df(0x176),{'type':'button','class':_0x65b7df(0x169),'onClick':()=>_0x24f6d1(!![])},_0x1c7fe4['confirmText']||'确定')])]})});}});_0x341f75[_0x1e4cde(0x17a)](_0x1ef83d);});}if(typeof document!==_0x24c22c(0x180)&&!document[_0x24c22c(0x17b)]('vm-confirm-style')){const style=document['createElement'](_0x24c22c(0x16b));style['id']='vm-confirm-style',style['textContent']=_0x24c22c(0x17e),document[_0x24c22c(0x170)][_0x24c22c(0x16d)](style);}
|
package/dist/admin/crud/dict.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2a33ea=_0x5bca;(function(_0x3ebb9f,_0x57c096){const _0x111525=_0x5bca,_0x2a0161=_0x3ebb9f();while(!![]){try{const _0x36d353=-parseInt(_0x111525(0x13c))/0x1+parseInt(_0x111525(0x13a))/0x2+-parseInt(_0x111525(0x151))/0x3*(-parseInt(_0x111525(0x13f))/0x4)+-parseInt(_0x111525(0x139))/0x5*(parseInt(_0x111525(0x157))/0x6)+-parseInt(_0x111525(0x14b))/0x7*(-parseInt(_0x111525(0x14c))/0x8)+parseInt(_0x111525(0x141))/0x9*(-parseInt(_0x111525(0x140))/0xa)+parseInt(_0x111525(0x137))/0xb*(-parseInt(_0x111525(0x150))/0xc);if(_0x36d353===_0x57c096)break;else _0x2a0161['push'](_0x2a0161['shift']());}catch(_0x3f8991){_0x2a0161['push'](_0x2a0161['shift']());}}}(_0x50cc,0xec19e));function _0x5bca(_0x1cba28,_0x1d3f6f){_0x1cba28=_0x1cba28-0x134;const _0x50cc13=_0x50cc();let _0x5bcac1=_0x50cc13[_0x1cba28];if(_0x5bca['LxgBIw']===undefined){var _0x9f079e=function(_0xdc3ed5){const _0xe4b596='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5be0dd='',_0x2cd0d7='';for(let _0x5413c8=0x0,_0x5bea65,_0x2dfdbd,_0x319686=0x0;_0x2dfdbd=_0xdc3ed5['charAt'](_0x319686++);~_0x2dfdbd&&(_0x5bea65=_0x5413c8%0x4?_0x5bea65*0x40+_0x2dfdbd:_0x2dfdbd,_0x5413c8++%0x4)?_0x5be0dd+=String['fromCharCode'](0xff&_0x5bea65>>(-0x2*_0x5413c8&0x6)):0x0){_0x2dfdbd=_0xe4b596['indexOf'](_0x2dfdbd);}for(let _0xba8d40=0x0,_0x134665=_0x5be0dd['length'];_0xba8d40<_0x134665;_0xba8d40++){_0x2cd0d7+='%'+('00'+_0x5be0dd['charCodeAt'](_0xba8d40)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2cd0d7);};_0x5bca['EOuGoT']=_0x9f079e,_0x5bca['dXipjW']={},_0x5bca['LxgBIw']=!![];}const _0x4bcee1=_0x50cc13[0x0],_0x307c7b=_0x1cba28+_0x4bcee1,_0x295429=_0x5bca['dXipjW'][_0x307c7b];return!_0x295429?(_0x5bcac1=_0x5bca['EOuGoT'](_0x5bcac1),_0x5bca['dXipjW'][_0x307c7b]=_0x5bcac1):_0x5bcac1=_0x295429,_0x5bcac1;}export const CRUD_LABELS={'op':'操作','add':'新增','delete':'删除','multiDelete':'删除','export':'导出','import':'导入','update':'编辑','refresh':'刷新','info':'详情','search':'搜索','reset':'重置','clear':'清空','save':'保存','close':'取消','confirm':'确定','advSearch':_0x2a33ea(0x148),'searchKey':_0x2a33ea(0x14a),'placeholder':_0x2a33ea(0x143),'tips':'提示','saveSuccess':_0x2a33ea(0x135),'deleteSuccess':_0x2a33ea(0x155),'deleteConfirm':'此操作将数据标记为已删除,是否继续?','forceDeleteConfirm':_0x2a33ea(0x146),'empty':_0x2a33ea(0x14e),'desc':'降序','asc':'升序','select':'选择','deselect':'取消选择','seeMore':_0x2a33ea(0x154),'hideContent':'隐藏内容','nonEmpty':_0x2a33ea(0x152),'list':'列表','trash':'回收站','searchNamed':_0x2a33ea(0x147),'selectNamed':_0x2a33ea(0x149),'keyword':'关键字','range':'区间','min':'最小值','max':'最大值','start':'开始','end':'结束','total':_0x2a33ea(0x145),'pageSize':_0x2a33ea(0x138),'prevPage':_0x2a33ea(0x14d),'nextPage':_0x2a33ea(0x142),'jumpPage':'页码','forceDeleted':_0x2a33ea(0x156),'deleted':_0x2a33ea(0x134),'restore':'恢复','forceDelete':_0x2a33ea(0x14f),'loading':_0x2a33ea(0x13b)};function _0x50cc(){const _0xbfbf=['B3jKzxi','5BEY5yIG6zMK','5l+D5A2y5OIq5yQF','BgLZDa','oda2nJm3n0zZCxHjAW','EZb9ic8G6Ag1','mtvUv0HYDM8','mJK1mJi5mgrJAu9wsW','5yQG6l295lIT4OcM','mte2ntm0yxPPEefd','zgvSzxrL','DxbKyxrL','mtiZnZmYvLHjy1LH','mtaWBNvpAfHN','mtmXntm5nu93uwnrDq','5lIl5lIa6Ag1','6k+36l6t5ywL','C29YDa','5ywXihSWFsdMNAe','5Q2K5Pon5l2C5Bcg5Rc45lMf5yIG6zMK6ycj5lIT5PwW5O2U77Ym5PIV5zcM57UN57UT77YF','5PcC57sIEZb9','6AUy57QN5PcC57sI','6ycj5OUPEZb9','5PcC57sI5ywZ6zsU5A2x','n1vhyMn4zq','nJe2ndqWu1LvAunR','5lIk5lIa6Ag1','5PQc5PEG5PwW5O2U','5B275BQv5yIG6zMK','mtjjzKfwzgC','mtC0CvnxyNDR','5lIn6io95lI656M6','A2v5v29Yza','5P+L55Yl5PU05AsA','5yIG6zMK5OIq5yQF','5BEY5B275BQv5yIG6zMK','mtm3nZa2qLjpvfPp'];_0x50cc=function(){return _0xbfbf;};return _0x50cc();}export const DEFAULT_CRUD_DICT={'primaryId':'id','api':{'list':_0x2a33ea(0x136),'add':'add','update':_0x2a33ea(0x13e),'delete':_0x2a33ea(0x13d),'info':'info','page':'page'},'pagination':{'page':'page','size':'size'},'search':{'keyWord':_0x2a33ea(0x153),'query':'query'},'sort':{'prop':_0x2a33ea(0x158),'order':_0x2a33ea(0x144)},'label':CRUD_LABELS};
|
package/dist/admin/crud/key.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x598d6e=_0x2c61;(function(_0x52d71b,_0x1766dd){const _0x366492=_0x2c61,_0x40e558=_0x52d71b();while(!![]){try{const _0x57dd17=parseInt(_0x366492(0xe6))/0x1+-parseInt(_0x366492(0xe4))/0x2+parseInt(_0x366492(0xea))/0x3+parseInt(_0x366492(0xe2))/0x4+-parseInt(_0x366492(0xe5))/0x5*(-parseInt(_0x366492(0xeb))/0x6)+parseInt(_0x366492(0xe8))/0x7+-parseInt(_0x366492(0xe9))/0x8;if(_0x57dd17===_0x1766dd)break;else _0x40e558['push'](_0x40e558['shift']());}catch(_0xdd1ca1){_0x40e558['push'](_0x40e558['shift']());}}}(_0x3135,0x28a35));import{inject}from'vue';export const CRUD_KEY=Symbol(_0x598d6e(0xe1));export const CRUD_OPTIONS_KEY=Symbol('useCrud__options');export const TABLE_OPTIONS_KEY=Symbol('useTable__options');function _0x3135(){const _0x2d8b86=['mZG5mJi0DhzmwMD3','nda4nwfcu3jMwG','mJqWnJaXBKrwsM1j','DM0TDgfIBguTyxbP','mte4otKZr0jozw5H','ndCZotm4nhvgBhbHzG','nZa0ndi3EefqAK9h','mty4nKXIwM9Xyq','DM0Ty3j1za','oti2mda4tLPjtvbI','DxnLvxbZzxj0x19VChrPB25Z'];_0x3135=function(){return _0x2d8b86;};return _0x3135();}export const UPSERT_OPTIONS_KEY=Symbol(_0x598d6e(0xe3));function _0x2c61(_0x4fdae5,_0x5aa936){_0x4fdae5=_0x4fdae5-0xe1;const _0x31356d=_0x3135();let _0x2c6118=_0x31356d[_0x4fdae5];if(_0x2c61['sKFsyO']===undefined){var _0x2b0a93=function(_0x326b4f){const _0x282757='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x70cebc='',_0x5225bb='';for(let _0x13d0ed=0x0,_0x515164,_0x50d824,_0x50918b=0x0;_0x50d824=_0x326b4f['charAt'](_0x50918b++);~_0x50d824&&(_0x515164=_0x13d0ed%0x4?_0x515164*0x40+_0x50d824:_0x50d824,_0x13d0ed++%0x4)?_0x70cebc+=String['fromCharCode'](0xff&_0x515164>>(-0x2*_0x13d0ed&0x6)):0x0){_0x50d824=_0x282757['indexOf'](_0x50d824);}for(let _0x321f81=0x0,_0x249687=_0x70cebc['length'];_0x321f81<_0x249687;_0x321f81++){_0x5225bb+='%'+('00'+_0x70cebc['charCodeAt'](_0x321f81)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5225bb);};_0x2c61['MKWZMb']=_0x2b0a93,_0x2c61['qKMFnA']={},_0x2c61['sKFsyO']=!![];}const _0x4a6342=_0x31356d[0x0],_0x2a6ee8=_0x4fdae5+_0x4a6342,_0x50729e=_0x2c61['qKMFnA'][_0x2a6ee8];return!_0x50729e?(_0x2c6118=_0x2c61['MKWZMb'](_0x2c6118),_0x2c61['qKMFnA'][_0x2a6ee8]=_0x2c6118):_0x2c6118=_0x50729e,_0x2c6118;}export const SEARCH_OPTIONS_KEY=Symbol('useSearch__options');export const TABLE_API_KEY=Symbol(_0x598d6e(0xe7));export function injectCrudOptions(){return inject(CRUD_OPTIONS_KEY,undefined);}export function injectTableOptions(){return inject(TABLE_OPTIONS_KEY,undefined);}export function injectUpsertOptions(){return inject(UPSERT_OPTIONS_KEY,undefined);}export function injectSearchOptions(){return inject(SEARCH_OPTIONS_KEY,undefined);}
|