jobsys-explore 4.0.12 → 4.0.13
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/.changeset/README.md +8 -8
- package/.changeset/{khaki-cobras-bathe.md → blue-bees-fix.md} +1 -1
- package/.changeset/config.json +11 -11
- package/.changeset/{five-fans-type.md → itchy-months-grow.md} +1 -1
- package/.changeset/{famous-yaks-doubt.md → mean-rice-repeat.md} +1 -1
- package/.changeset/{cyan-monkeys-draw.md → nasty-socks-watch.md} +1 -1
- package/.changeset/{moody-laws-change.md → nice-seahorses-visit.md} +1 -1
- package/.changeset/olive-roses-sing.md +5 -0
- package/.changeset/{dry-feet-float.md → orange-olives-reply.md} +1 -1
- package/.changeset/{moody-doors-grow.md → perfect-laws-warn.md} +1 -1
- package/.changeset/quiet-chairs-rhyme.md +5 -0
- package/.changeset/{popular-planets-play.md → rich-points-bake.md} +1 -1
- package/.changeset/serious-sloths-smoke.md +5 -0
- package/.changeset/{blue-spiders-roll.md → twenty-laws-melt.md} +1 -1
- package/.eslintrc.cjs +37 -37
- package/.prettierrc.cjs +38 -38
- package/CHANGELOG.md +17 -0
- package/components/form/ExField.jsx +1 -1
- package/components/form/ExForm.jsx +17 -15
- package/components/form/index.less +1 -0
- package/components/provider/index.js +4 -4
- package/components/search/ExSearch.jsx +13 -2
- package/components/uploader/ExUploader.jsx +3 -9
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/index-183ff5ec.js.map +1 -1
- package/dist/index-913186e2.cjs.map +1 -1
- package/dist/jobsys-explore.cjs +6 -6
- package/dist/jobsys-explore.cjs.map +1 -1
- package/dist/jobsys-explore.js +565 -554
- package/dist/jobsys-explore.js.map +1 -1
- package/dist/style.css +1 -1
- package/docs/.vuepress/.cache/deps/_metadata.json +52 -52
- package/docs/.vuepress/.cache/deps/lodash-es.js +8442 -8442
- package/docs/.vuepress/.cache/deps/lodash-es.js.map +7 -7
- package/docs/.vuepress/.temp/internal/clientConfigs.js +17 -17
- package/docs/.vuepress/.temp/internal/pagesComponents.js +24 -24
- package/docs/.vuepress/.temp/internal/pagesData.js +22 -22
- package/docs/.vuepress/.temp/internal/pagesRoutes.js +12 -12
- package/docs/.vuepress/.temp/internal/themeData.js +1 -1
- package/docs/.vuepress/.temp/pages/components/decorator/ExDecorator.html.js +1 -1
- package/docs/.vuepress/.temp/pages/components/decorator/ExDecorator.html.vue +37 -37
- package/docs/.vuepress/.temp/pages/components/sector/ExSector.html.js +1 -1
- package/docs/.vuepress/.temp/pages/components/sector/ExSector.html.vue +71 -71
- package/docs/.vuepress/.temp/styles/index.scss +1 -1
- package/docs/.vuepress/dist/404.html +33 -33
- package/docs/.vuepress/dist/assets/404.html-a0ce2184.js +1 -1
- package/docs/.vuepress/dist/assets/ExButton.html-ad283101.js +1 -1
- package/docs/.vuepress/dist/assets/ExDecorator.html-42d09114.js +1 -1
- package/docs/.vuepress/dist/assets/ExDecorator.html-c82c5fe8.js +1 -1
- package/docs/.vuepress/dist/assets/ExForm.html-9e3f8000.js +1 -1
- package/docs/.vuepress/dist/assets/ExProvider.html-78fdc6cd.js +1 -1
- package/docs/.vuepress/dist/assets/ExSearch.html-103f6f34.js +1 -1
- package/docs/.vuepress/dist/assets/ExSector.html-a1e24c3a.js +7 -7
- package/docs/.vuepress/dist/assets/ExSector.html-cff3fefd.js +1 -1
- package/docs/.vuepress/dist/assets/ExUploader.html-8310e424.js +1 -1
- package/docs/.vuepress/dist/assets/app-29fe8d1e.js +10 -10
- package/docs/.vuepress/dist/assets/hooks.html-90ccbc1a.js +1 -1
- package/docs/.vuepress/dist/assets/index.html-85b79c97.js +43 -43
- package/docs/.vuepress/dist/assets/style-46d7e227.css +1 -1
- package/docs/.vuepress/dist/components/button/ExButton.html +33 -33
- package/docs/.vuepress/dist/components/decorator/ExDecorator.html +33 -33
- package/docs/.vuepress/dist/components/form/ExForm.html +33 -33
- package/docs/.vuepress/dist/components/provider/ExProvider.html +33 -33
- package/docs/.vuepress/dist/components/search/ExSearch.html +33 -33
- package/docs/.vuepress/dist/components/sector/ExSector.html +39 -39
- package/docs/.vuepress/dist/components/uploader/ExUploader.html +33 -33
- package/docs/.vuepress/dist/hooks.html +33 -33
- package/docs/.vuepress/dist/index.html +75 -75
- package/docs/components/decorator/ExDecorator.md +14 -14
- package/hooks/datetime.js +63 -63
- package/hooks/form.js +190 -190
- package/hooks/index.js +5 -5
- package/hooks/network.js +122 -122
- package/index.js +26 -26
- package/package.json +1 -1
- package/playground/App.vue +1 -1
- package/playground/TestForm.vue +20 -8
- package/playground/TestSearch.vue +9 -1
- package/playground/http.js +23 -23
- package/postcss.config.cjs +8 -8
- package/utils/withInstall.js +7 -7
- package/.changeset/funny-hats-drop.md +0 -5
- package/.changeset/khaki-forks-shave.md +0 -5
- package/.changeset/lazy-yaks-crash.md +0 -5
- package/.changeset/loud-mirrors-explain.md +0 -5
- package/.changeset/lovely-balloons-protect.md +0 -5
- package/.changeset/mean-pens-travel.md +0 -5
- package/.changeset/nasty-goats-joke.md +0 -5
- package/.changeset/odd-forks-drop.md +0 -5
- package/.changeset/olive-windows-suffer.md +0 -5
- package/.changeset/rare-gorillas-boil.md +0 -5
- package/.changeset/rare-moose-teach.md +0 -5
- package/.changeset/slimy-sloths-refuse.md +0 -5
- package/.changeset/slow-boats-search.md +0 -5
- package/.changeset/smooth-horses-tie.md +0 -5
- package/.changeset/tidy-items-reflect.md +0 -5
- package/.changeset/weak-rockets-compare.md +0 -5
- package/.changeset/wild-glasses-bathe.md +0 -5
- package/.changeset/wise-ears-turn.md +0 -5
package/.changeset/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Changesets
|
|
2
|
-
|
|
3
|
-
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
4
|
-
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
5
|
-
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
|
|
6
|
-
|
|
7
|
-
We have a quick list of common questions to get you started engaging with this project in
|
|
8
|
-
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
|
|
1
|
+
# Changesets
|
|
2
|
+
|
|
3
|
+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
4
|
+
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
5
|
+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
|
|
6
|
+
|
|
7
|
+
We have a quick list of common questions to get you started engaging with this project in
|
|
8
|
+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
|
package/.changeset/config.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
|
|
3
|
-
"changelog": "@changesets/cli/changelog",
|
|
4
|
-
"commit": false,
|
|
5
|
-
"fixed": [],
|
|
6
|
-
"linked": [],
|
|
7
|
-
"access": "public",
|
|
8
|
-
"baseBranch": "master",
|
|
9
|
-
"updateInternalDependencies": "patch",
|
|
10
|
-
"ignore": []
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
|
|
3
|
+
"changelog": "@changesets/cli/changelog",
|
|
4
|
+
"commit": false,
|
|
5
|
+
"fixed": [],
|
|
6
|
+
"linked": [],
|
|
7
|
+
"access": "public",
|
|
8
|
+
"baseBranch": "master",
|
|
9
|
+
"updateInternalDependencies": "patch",
|
|
10
|
+
"ignore": []
|
|
11
|
+
}
|
package/.eslintrc.cjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true
|
|
5
|
-
},
|
|
6
|
-
globals: {
|
|
7
|
-
defineOptions: true
|
|
8
|
-
},
|
|
9
|
-
extends: ["eslint-config-prettier", "plugin:import/recommended", "eslint:recommended", "plugin:vue/vue3-recommended", "plugin:prettier/recommended"],
|
|
10
|
-
overrides: [],
|
|
11
|
-
parserOptions: {
|
|
12
|
-
ecmaVersion: "latest",
|
|
13
|
-
sourceType: "module",
|
|
14
|
-
ecmaFeatures: {
|
|
15
|
-
jsx: true
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
plugins: ["vue"],
|
|
19
|
-
rules: {
|
|
20
|
-
"import/prefer-default-export": "off",
|
|
21
|
-
"import/no-extraneous-dependencies": "off",
|
|
22
|
-
"import/no-duplicates": "off",
|
|
23
|
-
"import/named": "off",
|
|
24
|
-
"import/order": "off",
|
|
25
|
-
"import/first": "off",
|
|
26
|
-
"vue/attributes-order": "off",
|
|
27
|
-
"vue/no-mutating-props": "off",
|
|
28
|
-
"vue/no-reserved-component-names": "off",
|
|
29
|
-
"vue/no-v-html": "off",
|
|
30
|
-
"no-param-reassign": "off",
|
|
31
|
-
"no-console": "off",
|
|
32
|
-
"no-restricted-globals": "off",
|
|
33
|
-
"no-debugger": "off",
|
|
34
|
-
"no-use-before-define": "off",
|
|
35
|
-
"no-promise-executor-return": "off",
|
|
36
|
-
"spaced-comment": "off"
|
|
37
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
env: {
|
|
3
|
+
browser: true,
|
|
4
|
+
es2021: true
|
|
5
|
+
},
|
|
6
|
+
globals: {
|
|
7
|
+
defineOptions: true
|
|
8
|
+
},
|
|
9
|
+
extends: ["eslint-config-prettier", "plugin:import/recommended", "eslint:recommended", "plugin:vue/vue3-recommended", "plugin:prettier/recommended"],
|
|
10
|
+
overrides: [],
|
|
11
|
+
parserOptions: {
|
|
12
|
+
ecmaVersion: "latest",
|
|
13
|
+
sourceType: "module",
|
|
14
|
+
ecmaFeatures: {
|
|
15
|
+
jsx: true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
plugins: ["vue"],
|
|
19
|
+
rules: {
|
|
20
|
+
"import/prefer-default-export": "off",
|
|
21
|
+
"import/no-extraneous-dependencies": "off",
|
|
22
|
+
"import/no-duplicates": "off",
|
|
23
|
+
"import/named": "off",
|
|
24
|
+
"import/order": "off",
|
|
25
|
+
"import/first": "off",
|
|
26
|
+
"vue/attributes-order": "off",
|
|
27
|
+
"vue/no-mutating-props": "off",
|
|
28
|
+
"vue/no-reserved-component-names": "off",
|
|
29
|
+
"vue/no-v-html": "off",
|
|
30
|
+
"no-param-reassign": "off",
|
|
31
|
+
"no-console": "off",
|
|
32
|
+
"no-restricted-globals": "off",
|
|
33
|
+
"no-debugger": "off",
|
|
34
|
+
"no-use-before-define": "off",
|
|
35
|
+
"no-promise-executor-return": "off",
|
|
36
|
+
"spaced-comment": "off"
|
|
37
|
+
}
|
|
38
38
|
};
|
package/.prettierrc.cjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// 一行最多多少个字符
|
|
3
|
-
printWidth: 150,
|
|
4
|
-
// 指定每个缩进级别的空格数
|
|
5
|
-
tabWidth: 4,
|
|
6
|
-
// 使用制表符而不是空格缩进行
|
|
7
|
-
useTabs: true,
|
|
8
|
-
// 在语句末尾是否需要分号
|
|
9
|
-
semi: false,
|
|
10
|
-
// 是否使用单引号
|
|
11
|
-
singleQuote: false,
|
|
12
|
-
// 更改引用对象属性的时间 可选值"<as-needed|consistent|preserve>"
|
|
13
|
-
quoteProps: "as-needed",
|
|
14
|
-
// 多行时尽可能打印尾随逗号。(例如,单行数组永远不会出现逗号结尾。) 可选值"<none|es5|all>",默认none
|
|
15
|
-
trailingComma: "all",
|
|
16
|
-
// 在对象文字中的括号之间打印空格
|
|
17
|
-
bracketSpacing: true,
|
|
18
|
-
// 在单独的箭头函数参数周围包括括号 always:(x) => x \ avoid:x => x
|
|
19
|
-
arrowParens: "always",
|
|
20
|
-
// 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码
|
|
21
|
-
rangeStart: 0,
|
|
22
|
-
rangeEnd: Infinity,
|
|
23
|
-
// 指定要使用的解析器,不需要写文件开头的 @prettier
|
|
24
|
-
requirePragma: false,
|
|
25
|
-
// 不需要自动在文件开头插入 @prettier
|
|
26
|
-
insertPragma: false,
|
|
27
|
-
// 使用默认的折行标准 always\never\preserve
|
|
28
|
-
proseWrap: "preserve",
|
|
29
|
-
// 指定HTML文件的全局空格敏感度 css\strict\ignore
|
|
30
|
-
htmlWhitespaceSensitivity: "css",
|
|
31
|
-
// Vue文件脚本和样式标签缩进
|
|
32
|
-
vueIndentScriptAndStyle: false,
|
|
33
|
-
// 在 windows 操作系统中换行符通常是回车 (CR) 加换行分隔符 (LF),也就是回车换行(CRLF),
|
|
34
|
-
// 然而在 Linux 和 Unix 中只使用简单的换行分隔符 (LF)。
|
|
35
|
-
// 对应的控制字符为 "\n" (LF) 和 "\r\n"(CRLF)。auto意为保持现有的行尾
|
|
36
|
-
// 换行符使用 lf 结尾是 可选值"<auto|lf|crlf|cr>"
|
|
37
|
-
endOfLine: "auto"
|
|
38
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
// 一行最多多少个字符
|
|
3
|
+
printWidth: 150,
|
|
4
|
+
// 指定每个缩进级别的空格数
|
|
5
|
+
tabWidth: 4,
|
|
6
|
+
// 使用制表符而不是空格缩进行
|
|
7
|
+
useTabs: true,
|
|
8
|
+
// 在语句末尾是否需要分号
|
|
9
|
+
semi: false,
|
|
10
|
+
// 是否使用单引号
|
|
11
|
+
singleQuote: false,
|
|
12
|
+
// 更改引用对象属性的时间 可选值"<as-needed|consistent|preserve>"
|
|
13
|
+
quoteProps: "as-needed",
|
|
14
|
+
// 多行时尽可能打印尾随逗号。(例如,单行数组永远不会出现逗号结尾。) 可选值"<none|es5|all>",默认none
|
|
15
|
+
trailingComma: "all",
|
|
16
|
+
// 在对象文字中的括号之间打印空格
|
|
17
|
+
bracketSpacing: true,
|
|
18
|
+
// 在单独的箭头函数参数周围包括括号 always:(x) => x \ avoid:x => x
|
|
19
|
+
arrowParens: "always",
|
|
20
|
+
// 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码
|
|
21
|
+
rangeStart: 0,
|
|
22
|
+
rangeEnd: Infinity,
|
|
23
|
+
// 指定要使用的解析器,不需要写文件开头的 @prettier
|
|
24
|
+
requirePragma: false,
|
|
25
|
+
// 不需要自动在文件开头插入 @prettier
|
|
26
|
+
insertPragma: false,
|
|
27
|
+
// 使用默认的折行标准 always\never\preserve
|
|
28
|
+
proseWrap: "preserve",
|
|
29
|
+
// 指定HTML文件的全局空格敏感度 css\strict\ignore
|
|
30
|
+
htmlWhitespaceSensitivity: "css",
|
|
31
|
+
// Vue文件脚本和样式标签缩进
|
|
32
|
+
vueIndentScriptAndStyle: false,
|
|
33
|
+
// 在 windows 操作系统中换行符通常是回车 (CR) 加换行分隔符 (LF),也就是回车换行(CRLF),
|
|
34
|
+
// 然而在 Linux 和 Unix 中只使用简单的换行分隔符 (LF)。
|
|
35
|
+
// 对应的控制字符为 "\n" (LF) 和 "\r\n"(CRLF)。auto意为保持现有的行尾
|
|
36
|
+
// 换行符使用 lf 结尾是 可选值"<auto|lf|crlf|cr>"
|
|
37
|
+
endOfLine: "auto"
|
|
38
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# jobsys-explore
|
|
2
2
|
|
|
3
|
+
## 4.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- address
|
|
8
|
+
- add exPros parameter
|
|
9
|
+
- option fetch data only once
|
|
10
|
+
- fixed
|
|
11
|
+
- add sm2 encrypt
|
|
12
|
+
- form expose fetchItem method
|
|
13
|
+
- fixed address modelValue
|
|
14
|
+
- fixed textInValue
|
|
15
|
+
- fixed textInValue
|
|
16
|
+
- add key_cn
|
|
17
|
+
- search watch model value
|
|
18
|
+
- e
|
|
19
|
+
|
|
3
20
|
## 4.0.12
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -95,7 +95,6 @@ export default defineComponent({
|
|
|
95
95
|
|
|
96
96
|
return () => {
|
|
97
97
|
let fieldSlots = pick(slots, Object.keys(defaultFieldSlots))
|
|
98
|
-
|
|
99
98
|
if (!fieldSlots.label) {
|
|
100
99
|
fieldSlots.label = labelElem
|
|
101
100
|
}
|
|
@@ -119,6 +118,7 @@ export default defineComponent({
|
|
|
119
118
|
onClickInput={() => emit("click")}
|
|
120
119
|
onUpdate:modelValue={onUpdateValue}
|
|
121
120
|
{...props.fieldProps}
|
|
121
|
+
showWordLimit={isReadonly.value ? false : props.fieldProps?.showWordLimit}
|
|
122
122
|
>
|
|
123
123
|
{{
|
|
124
124
|
...fieldSlots,
|
|
@@ -205,7 +205,22 @@ export default defineComponent({
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
onMounted(() => {
|
|
208
|
-
|
|
208
|
+
if (props.autoLoad && props.fetchUrl) {
|
|
209
|
+
let auto = true
|
|
210
|
+
if (props.autoLoad && isObject(props.autoLoad)) {
|
|
211
|
+
auto = every(Object.values(pick(props.extraData, Object.keys(props.autoLoad))))
|
|
212
|
+
} else if (props.autoLoad && isString(props.autoLoad)) {
|
|
213
|
+
auto = !!props.extraData[props.autoLoad]
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (auto) {
|
|
217
|
+
fetchItem()
|
|
218
|
+
} else {
|
|
219
|
+
init()
|
|
220
|
+
}
|
|
221
|
+
} else {
|
|
222
|
+
init()
|
|
223
|
+
}
|
|
209
224
|
})
|
|
210
225
|
|
|
211
226
|
/**
|
|
@@ -254,19 +269,6 @@ export default defineComponent({
|
|
|
254
269
|
}
|
|
255
270
|
}
|
|
256
271
|
|
|
257
|
-
if (props.autoLoad) {
|
|
258
|
-
let auto = true
|
|
259
|
-
if (props.autoLoad && isObject(props.autoLoad)) {
|
|
260
|
-
auto = every(Object.values(pick(props.extraData, Object.keys(props.autoLoad))))
|
|
261
|
-
} else if (props.autoLoad && isString(props.autoLoad)) {
|
|
262
|
-
auto = !!props.extraData[props.autoLoad]
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
if (auto) {
|
|
266
|
-
fetchItem()
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
272
|
const onSubmit = async () => {
|
|
271
273
|
await formRef.value.validate()
|
|
272
274
|
|
|
@@ -365,7 +367,7 @@ export default defineComponent({
|
|
|
365
367
|
)
|
|
366
368
|
|
|
367
369
|
const skeletonElem = () => (
|
|
368
|
-
<Skeleton
|
|
370
|
+
<Skeleton row={10} title loading={state.isInitializing}>
|
|
369
371
|
{{
|
|
370
372
|
default: () => formItemElems(),
|
|
371
373
|
}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _ExProvider from "./ExProvider.jsx"
|
|
2
|
-
import withInstall from "../../utils/withInstall"
|
|
3
|
-
export const ExProvider = withInstall(_ExProvider)
|
|
4
|
-
export default ExProvider
|
|
1
|
+
import _ExProvider from "./ExProvider.jsx"
|
|
2
|
+
import withInstall from "../../utils/withInstall"
|
|
3
|
+
export const ExProvider = withInstall(_ExProvider)
|
|
4
|
+
export default ExProvider
|
|
@@ -71,7 +71,7 @@ export default defineComponent({
|
|
|
71
71
|
searchProps: { type: Object, default: () => ({}) },
|
|
72
72
|
},
|
|
73
73
|
emits: ["update:modelValue", "search"],
|
|
74
|
-
setup(props, { emit }) {
|
|
74
|
+
setup(props, { expose, emit }) {
|
|
75
75
|
const componentValue = ref(props.modelValue)
|
|
76
76
|
|
|
77
77
|
watch(
|
|
@@ -129,7 +129,6 @@ export default defineComponent({
|
|
|
129
129
|
}
|
|
130
130
|
form[item.key] = value
|
|
131
131
|
})
|
|
132
|
-
|
|
133
132
|
state.queryForm = form
|
|
134
133
|
}
|
|
135
134
|
|
|
@@ -182,6 +181,18 @@ export default defineComponent({
|
|
|
182
181
|
})
|
|
183
182
|
}
|
|
184
183
|
|
|
184
|
+
const reset = () => {
|
|
185
|
+
state.fieldColumns.forEach((item) => {
|
|
186
|
+
state.queryForm[item.key] = searchItemDefaultValue(item)
|
|
187
|
+
})
|
|
188
|
+
state.quickColumns.forEach((item) => {
|
|
189
|
+
state.queryForm[item.key] = searchItemDefaultValue(item)
|
|
190
|
+
})
|
|
191
|
+
componentValue.value = ""
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
expose({ reset: reset })
|
|
195
|
+
|
|
185
196
|
/******************* render *********************/
|
|
186
197
|
|
|
187
198
|
const quickElems = () => {
|
|
@@ -183,15 +183,9 @@ export default defineComponent({
|
|
|
183
183
|
file.message = result || "上传失败"
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
const onDelete = (
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
if (fileIndex > -1) {
|
|
190
|
-
state.fileList.splice(fileIndex, 1)
|
|
191
|
-
|
|
192
|
-
emit("update:modelValue", getModelValue())
|
|
193
|
-
emit("change", getModelValue())
|
|
194
|
-
}
|
|
186
|
+
const onDelete = () => {
|
|
187
|
+
emit("update:modelValue", getModelValue())
|
|
188
|
+
emit("change", getModelValue())
|
|
195
189
|
}
|
|
196
190
|
|
|
197
191
|
const onSubmit = async (file) => {
|
package/dist/hooks.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.cjs","sources":["../hooks/cipher.js","../hooks/datetime.js"],"sourcesContent":["import { sm2, sm3, sm4 } from \"sm-crypto-v2\"\r\n\r\n/**\r\n * 国密 sm2 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [cipherMode]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm2Encrypt(msg, key, cipherMode) {\r\n\treturn sm2.doEncrypt(msg, key, cipherMode)\r\n}\r\n\r\n/**\r\n * 国密 sm3 加密\r\n * @param msg\r\n * @param {Object} [options]\r\n * @return {*}\r\n */\r\nexport function useSm3(msg, options) {\r\n\treturn sm3(msg, options) // 杂凑\r\n}\r\n\r\n/**\r\n * 国密 sm4 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Encrypt(msg, key, options) {\r\n\treturn sm4.encrypt(msg, key, options)\r\n}\r\n\r\n/**\r\n * 国密 sm4 解密\r\n * @param encryptData\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Decrypt(encryptData, key, options) {\r\n\treturn sm4.encrypt(encryptData, key, options)\r\n}\r\n","import dayjs from \"dayjs\"\nimport { isString } from \"lodash-es\"\n\n/**\n * 根据格式创建 Dayjs 对象\n * @param {string|number} date\n * @param {string} [format] - 日期格式\n * @return {dayjs.Dayjs}\n */\nexport function useDayjs(date, format) {\n\treturn format ? dayjs(date, format) : dayjs(date)\n}\n\n/**\n * 格式化日期\n * @param {dayjs.Dayjs|Date} date\n * @param {string} format\n * @return {string}\n */\nexport function useDateFormat(date, format) {\n\tif (!date) {\n\t\treturn \"\"\n\t}\n\tif (!dayjs.isDayjs(date)) {\n\t\tdate = dayjs(date)\n\t}\n\n\treturn date.format(format || \"YYYY-MM-DD HH:mm\")\n}\n\n/**\n * 获取日期的 Unix 时间戳\n * @param {dayjs.Dayjs|Date} date\n * @return {number|string}\n */\nexport function useDateUnix(date) {\n\tif (!date) {\n\t\treturn \"\"\n\t}\n\tif (!dayjs.isDayjs(date)) {\n\t\tdate = dayjs(date)\n\t}\n\n\treturn date.unix()\n}\n\n/**\n * 根据时间戳格式化日期\n * @param timestamp 时间戳\n * @param [format] 日期格式\n * @return {string}\n */\nexport function useTimestampFormat(timestamp, format) {\n\tif (timestamp && isString(timestamp)) {\n\t\ttimestamp = parseInt(timestamp)\n\t}\n\n\tif (timestamp < 9999999999) {\n\t\ttimestamp *= 1000\n\t}\n\n\treturn useDateFormat(new Date(timestamp), format)\n}\n"],"names":["useSm2Encrypt","msg","key","cipherMode","sm2","useSm3","options","sm3","useSm4Encrypt","sm4","useSm4Decrypt","encryptData","useDayjs","date","format","dayjs","useDateFormat","useDateUnix","useTimestampFormat","timestamp","isString"],"mappings":"mMASO,SAASA,EAAcC,EAAKC,EAAKC,EAAY,CACnD,OAAOC,EAAG,YAAC,UAAUH,EAAKC,EAAKC,CAAU,CAC1C,CAQO,SAASE,EAAOJ,EAAKK,EAAS,CACpC,OAAOC,EAAG,KAACN,EAAKK,CAAO,CACxB,CASO,SAASE,EAAcP,EAAKC,EAAKI,EAAS,CAChD,OAAOG,EAAG,YAAC,QAAQR,EAAKC,EAAKI,CAAO,CACrC,CASO,SAASI,EAAcC,EAAaT,EAAKI,EAAS,CACxD,OAAOG,EAAG,YAAC,QAAQE,EAAaT,EAAKI,CAAO,CAC7C,CClCO,SAASM,EAASC,EAAMC,EAAQ,CACtC,OAAOA,EAASC,EAAMF,EAAMC,CAAM,EAAIC,EAAMF,CAAI,CACjD,CAQO,SAASG,EAAcH,EAAMC,EAAQ,CAC3C,OAAKD,GAGAE,EAAM,QAAQF,CAAI,IACtBA,EAAOE,EAAMF,CAAI,GAGXA,EAAK,OAAOC,GAAU,kBAAkB,GANvC,EAOT,CAOO,SAASG,EAAYJ,EAAM,CACjC,OAAKA,GAGAE,EAAM,QAAQF,CAAI,IACtBA,EAAOE,EAAMF,CAAI,GAGXA,EAAK,KAAM,GANV,EAOT,CAQO,SAASK,EAAmBC,EAAWL,EAAQ,CACrD,OAAIK,GAAaC,WAASD,CAAS,IAClCA,EAAY,SAASA,CAAS,GAG3BA,EAAY,aACfA,GAAa,KAGPH,EAAc,IAAI,KAAKG,CAAS,EAAGL,CAAM,CACjD"}
|
|
1
|
+
{"version":3,"file":"hooks.cjs","sources":["../hooks/cipher.js","../hooks/datetime.js"],"sourcesContent":["import { sm2, sm3, sm4 } from \"sm-crypto-v2\"\r\n\r\n/**\r\n * 国密 sm2 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [cipherMode]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm2Encrypt(msg, key, cipherMode) {\r\n\treturn sm2.doEncrypt(msg, key, cipherMode)\r\n}\r\n\r\n/**\r\n * 国密 sm3 加密\r\n * @param msg\r\n * @param {Object} [options]\r\n * @return {*}\r\n */\r\nexport function useSm3(msg, options) {\r\n\treturn sm3(msg, options) // 杂凑\r\n}\r\n\r\n/**\r\n * 国密 sm4 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Encrypt(msg, key, options) {\r\n\treturn sm4.encrypt(msg, key, options)\r\n}\r\n\r\n/**\r\n * 国密 sm4 解密\r\n * @param encryptData\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Decrypt(encryptData, key, options) {\r\n\treturn sm4.encrypt(encryptData, key, options)\r\n}\r\n","import dayjs from \"dayjs\"\r\nimport { isString } from \"lodash-es\"\r\n\r\n/**\r\n * 根据格式创建 Dayjs 对象\r\n * @param {string|number} date\r\n * @param {string} [format] - 日期格式\r\n * @return {dayjs.Dayjs}\r\n */\r\nexport function useDayjs(date, format) {\r\n\treturn format ? dayjs(date, format) : dayjs(date)\r\n}\r\n\r\n/**\r\n * 格式化日期\r\n * @param {dayjs.Dayjs|Date} date\r\n * @param {string} format\r\n * @return {string}\r\n */\r\nexport function useDateFormat(date, format) {\r\n\tif (!date) {\r\n\t\treturn \"\"\r\n\t}\r\n\tif (!dayjs.isDayjs(date)) {\r\n\t\tdate = dayjs(date)\r\n\t}\r\n\r\n\treturn date.format(format || \"YYYY-MM-DD HH:mm\")\r\n}\r\n\r\n/**\r\n * 获取日期的 Unix 时间戳\r\n * @param {dayjs.Dayjs|Date} date\r\n * @return {number|string}\r\n */\r\nexport function useDateUnix(date) {\r\n\tif (!date) {\r\n\t\treturn \"\"\r\n\t}\r\n\tif (!dayjs.isDayjs(date)) {\r\n\t\tdate = dayjs(date)\r\n\t}\r\n\r\n\treturn date.unix()\r\n}\r\n\r\n/**\r\n * 根据时间戳格式化日期\r\n * @param timestamp 时间戳\r\n * @param [format] 日期格式\r\n * @return {string}\r\n */\r\nexport function useTimestampFormat(timestamp, format) {\r\n\tif (timestamp && isString(timestamp)) {\r\n\t\ttimestamp = parseInt(timestamp)\r\n\t}\r\n\r\n\tif (timestamp < 9999999999) {\r\n\t\ttimestamp *= 1000\r\n\t}\r\n\r\n\treturn useDateFormat(new Date(timestamp), format)\r\n}\r\n"],"names":["useSm2Encrypt","msg","key","cipherMode","sm2","useSm3","options","sm3","useSm4Encrypt","sm4","useSm4Decrypt","encryptData","useDayjs","date","format","dayjs","useDateFormat","useDateUnix","useTimestampFormat","timestamp","isString"],"mappings":"mMASO,SAASA,EAAcC,EAAKC,EAAKC,EAAY,CACnD,OAAOC,EAAG,YAAC,UAAUH,EAAKC,EAAKC,CAAU,CAC1C,CAQO,SAASE,EAAOJ,EAAKK,EAAS,CACpC,OAAOC,EAAG,KAACN,EAAKK,CAAO,CACxB,CASO,SAASE,EAAcP,EAAKC,EAAKI,EAAS,CAChD,OAAOG,EAAG,YAAC,QAAQR,EAAKC,EAAKI,CAAO,CACrC,CASO,SAASI,EAAcC,EAAaT,EAAKI,EAAS,CACxD,OAAOG,EAAG,YAAC,QAAQE,EAAaT,EAAKI,CAAO,CAC7C,CClCO,SAASM,EAASC,EAAMC,EAAQ,CACtC,OAAOA,EAASC,EAAMF,EAAMC,CAAM,EAAIC,EAAMF,CAAI,CACjD,CAQO,SAASG,EAAcH,EAAMC,EAAQ,CAC3C,OAAKD,GAGAE,EAAM,QAAQF,CAAI,IACtBA,EAAOE,EAAMF,CAAI,GAGXA,EAAK,OAAOC,GAAU,kBAAkB,GANvC,EAOT,CAOO,SAASG,EAAYJ,EAAM,CACjC,OAAKA,GAGAE,EAAM,QAAQF,CAAI,IACtBA,EAAOE,EAAMF,CAAI,GAGXA,EAAK,KAAM,GANV,EAOT,CAQO,SAASK,EAAmBC,EAAWL,EAAQ,CACrD,OAAIK,GAAaC,WAASD,CAAS,IAClCA,EAAY,SAASA,CAAS,GAG3BA,EAAY,aACfA,GAAa,KAGPH,EAAc,IAAI,KAAKG,CAAS,EAAGL,CAAM,CACjD"}
|
package/dist/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":["../hooks/cipher.js","../hooks/datetime.js"],"sourcesContent":["import { sm2, sm3, sm4 } from \"sm-crypto-v2\"\r\n\r\n/**\r\n * 国密 sm2 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [cipherMode]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm2Encrypt(msg, key, cipherMode) {\r\n\treturn sm2.doEncrypt(msg, key, cipherMode)\r\n}\r\n\r\n/**\r\n * 国密 sm3 加密\r\n * @param msg\r\n * @param {Object} [options]\r\n * @return {*}\r\n */\r\nexport function useSm3(msg, options) {\r\n\treturn sm3(msg, options) // 杂凑\r\n}\r\n\r\n/**\r\n * 国密 sm4 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Encrypt(msg, key, options) {\r\n\treturn sm4.encrypt(msg, key, options)\r\n}\r\n\r\n/**\r\n * 国密 sm4 解密\r\n * @param encryptData\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Decrypt(encryptData, key, options) {\r\n\treturn sm4.encrypt(encryptData, key, options)\r\n}\r\n","import dayjs from \"dayjs\"\nimport { isString } from \"lodash-es\"\n\n/**\n * 根据格式创建 Dayjs 对象\n * @param {string|number} date\n * @param {string} [format] - 日期格式\n * @return {dayjs.Dayjs}\n */\nexport function useDayjs(date, format) {\n\treturn format ? dayjs(date, format) : dayjs(date)\n}\n\n/**\n * 格式化日期\n * @param {dayjs.Dayjs|Date} date\n * @param {string} format\n * @return {string}\n */\nexport function useDateFormat(date, format) {\n\tif (!date) {\n\t\treturn \"\"\n\t}\n\tif (!dayjs.isDayjs(date)) {\n\t\tdate = dayjs(date)\n\t}\n\n\treturn date.format(format || \"YYYY-MM-DD HH:mm\")\n}\n\n/**\n * 获取日期的 Unix 时间戳\n * @param {dayjs.Dayjs|Date} date\n * @return {number|string}\n */\nexport function useDateUnix(date) {\n\tif (!date) {\n\t\treturn \"\"\n\t}\n\tif (!dayjs.isDayjs(date)) {\n\t\tdate = dayjs(date)\n\t}\n\n\treturn date.unix()\n}\n\n/**\n * 根据时间戳格式化日期\n * @param timestamp 时间戳\n * @param [format] 日期格式\n * @return {string}\n */\nexport function useTimestampFormat(timestamp, format) {\n\tif (timestamp && isString(timestamp)) {\n\t\ttimestamp = parseInt(timestamp)\n\t}\n\n\tif (timestamp < 9999999999) {\n\t\ttimestamp *= 1000\n\t}\n\n\treturn useDateFormat(new Date(timestamp), format)\n}\n"],"names":["useSm2Encrypt","msg","key","cipherMode","sm2","useSm3","options","sm3","useSm4Encrypt","sm4","useSm4Decrypt","encryptData","useDayjs","date","format","dayjs","useDateFormat","useDateUnix","useTimestampFormat","timestamp","isString"],"mappings":";;;;;;AASO,SAASA,EAAcC,GAAKC,GAAKC,GAAY;AACnD,SAAOC,EAAI,UAAUH,GAAKC,GAAKC,CAAU;AAC1C;AAQO,SAASE,EAAOJ,GAAKK,GAAS;AACpC,SAAOC,EAAIN,GAAKK,CAAO;AACxB;AASO,SAASE,EAAcP,GAAKC,GAAKI,GAAS;AAChD,SAAOG,EAAI,QAAQR,GAAKC,GAAKI,CAAO;AACrC;AASO,SAASI,EAAcC,GAAaT,GAAKI,GAAS;AACxD,SAAOG,EAAI,QAAQE,GAAaT,GAAKI,CAAO;AAC7C;AClCO,SAASM,EAASC,GAAMC,GAAQ;AACtC,SAAOA,IAASC,EAAMF,GAAMC,CAAM,IAAIC,EAAMF,CAAI;AACjD;AAQO,SAASG,EAAcH,GAAMC,GAAQ;AAC3C,SAAKD,KAGAE,EAAM,QAAQF,CAAI,MACtBA,IAAOE,EAAMF,CAAI,IAGXA,EAAK,OAAOC,KAAU,kBAAkB,KANvC;AAOT;AAOO,SAASG,EAAYJ,GAAM;AACjC,SAAKA,KAGAE,EAAM,QAAQF,CAAI,MACtBA,IAAOE,EAAMF,CAAI,IAGXA,EAAK,KAAM,KANV;AAOT;AAQO,SAASK,EAAmBC,GAAWL,GAAQ;AACrD,SAAIK,KAAaC,EAASD,CAAS,MAClCA,IAAY,SAASA,CAAS,IAG3BA,IAAY,eACfA,KAAa,MAGPH,EAAc,IAAI,KAAKG,CAAS,GAAGL,CAAM;AACjD;"}
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":["../hooks/cipher.js","../hooks/datetime.js"],"sourcesContent":["import { sm2, sm3, sm4 } from \"sm-crypto-v2\"\r\n\r\n/**\r\n * 国密 sm2 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [cipherMode]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm2Encrypt(msg, key, cipherMode) {\r\n\treturn sm2.doEncrypt(msg, key, cipherMode)\r\n}\r\n\r\n/**\r\n * 国密 sm3 加密\r\n * @param msg\r\n * @param {Object} [options]\r\n * @return {*}\r\n */\r\nexport function useSm3(msg, options) {\r\n\treturn sm3(msg, options) // 杂凑\r\n}\r\n\r\n/**\r\n * 国密 sm4 加密\r\n * @param msg\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Encrypt(msg, key, options) {\r\n\treturn sm4.encrypt(msg, key, options)\r\n}\r\n\r\n/**\r\n * 国密 sm4 解密\r\n * @param encryptData\r\n * @param key\r\n * @param {Object} [options]\r\n * @return {Uint8Array}\r\n */\r\nexport function useSm4Decrypt(encryptData, key, options) {\r\n\treturn sm4.encrypt(encryptData, key, options)\r\n}\r\n","import dayjs from \"dayjs\"\r\nimport { isString } from \"lodash-es\"\r\n\r\n/**\r\n * 根据格式创建 Dayjs 对象\r\n * @param {string|number} date\r\n * @param {string} [format] - 日期格式\r\n * @return {dayjs.Dayjs}\r\n */\r\nexport function useDayjs(date, format) {\r\n\treturn format ? dayjs(date, format) : dayjs(date)\r\n}\r\n\r\n/**\r\n * 格式化日期\r\n * @param {dayjs.Dayjs|Date} date\r\n * @param {string} format\r\n * @return {string}\r\n */\r\nexport function useDateFormat(date, format) {\r\n\tif (!date) {\r\n\t\treturn \"\"\r\n\t}\r\n\tif (!dayjs.isDayjs(date)) {\r\n\t\tdate = dayjs(date)\r\n\t}\r\n\r\n\treturn date.format(format || \"YYYY-MM-DD HH:mm\")\r\n}\r\n\r\n/**\r\n * 获取日期的 Unix 时间戳\r\n * @param {dayjs.Dayjs|Date} date\r\n * @return {number|string}\r\n */\r\nexport function useDateUnix(date) {\r\n\tif (!date) {\r\n\t\treturn \"\"\r\n\t}\r\n\tif (!dayjs.isDayjs(date)) {\r\n\t\tdate = dayjs(date)\r\n\t}\r\n\r\n\treturn date.unix()\r\n}\r\n\r\n/**\r\n * 根据时间戳格式化日期\r\n * @param timestamp 时间戳\r\n * @param [format] 日期格式\r\n * @return {string}\r\n */\r\nexport function useTimestampFormat(timestamp, format) {\r\n\tif (timestamp && isString(timestamp)) {\r\n\t\ttimestamp = parseInt(timestamp)\r\n\t}\r\n\r\n\tif (timestamp < 9999999999) {\r\n\t\ttimestamp *= 1000\r\n\t}\r\n\r\n\treturn useDateFormat(new Date(timestamp), format)\r\n}\r\n"],"names":["useSm2Encrypt","msg","key","cipherMode","sm2","useSm3","options","sm3","useSm4Encrypt","sm4","useSm4Decrypt","encryptData","useDayjs","date","format","dayjs","useDateFormat","useDateUnix","useTimestampFormat","timestamp","isString"],"mappings":";;;;;;AASO,SAASA,EAAcC,GAAKC,GAAKC,GAAY;AACnD,SAAOC,EAAI,UAAUH,GAAKC,GAAKC,CAAU;AAC1C;AAQO,SAASE,EAAOJ,GAAKK,GAAS;AACpC,SAAOC,EAAIN,GAAKK,CAAO;AACxB;AASO,SAASE,EAAcP,GAAKC,GAAKI,GAAS;AAChD,SAAOG,EAAI,QAAQR,GAAKC,GAAKI,CAAO;AACrC;AASO,SAASI,EAAcC,GAAaT,GAAKI,GAAS;AACxD,SAAOG,EAAI,QAAQE,GAAaT,GAAKI,CAAO;AAC7C;AClCO,SAASM,EAASC,GAAMC,GAAQ;AACtC,SAAOA,IAASC,EAAMF,GAAMC,CAAM,IAAIC,EAAMF,CAAI;AACjD;AAQO,SAASG,EAAcH,GAAMC,GAAQ;AAC3C,SAAKD,KAGAE,EAAM,QAAQF,CAAI,MACtBA,IAAOE,EAAMF,CAAI,IAGXA,EAAK,OAAOC,KAAU,kBAAkB,KANvC;AAOT;AAOO,SAASG,EAAYJ,GAAM;AACjC,SAAKA,KAGAE,EAAM,QAAQF,CAAI,MACtBA,IAAOE,EAAMF,CAAI,IAGXA,EAAK,KAAM,KANV;AAOT;AAQO,SAASK,EAAmBC,GAAWL,GAAQ;AACrD,SAAIK,KAAaC,EAASD,CAAS,MAClCA,IAAY,SAASA,CAAS,IAG3BA,IAAY,eACfA,KAAa,MAGPH,EAAc,IAAI,KAAKG,CAAS,GAAGL,CAAM;AACjD;"}
|