jobsys-explore 4.2.18 → 4.2.19
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/{silent-icons-chew.md → blue-spiders-roll.md} +1 -1
- package/.changeset/config.json +11 -11
- package/.changeset/{cool-beds-explain.md → cyan-monkeys-draw.md} +1 -1
- package/.changeset/{twenty-dolls-fix.md → dry-feet-float.md} +1 -1
- package/.changeset/famous-yaks-doubt.md +5 -0
- package/.changeset/five-fans-type.md +5 -0
- package/.changeset/funny-hats-drop.md +5 -0
- package/.changeset/{stupid-wombats-count.md → khaki-cobras-bathe.md} +1 -1
- package/.changeset/khaki-forks-shave.md +5 -0
- package/.changeset/lazy-yaks-crash.md +5 -0
- package/.changeset/loud-mirrors-explain.md +5 -0
- package/.changeset/lovely-balloons-protect.md +5 -0
- package/.changeset/mean-pens-travel.md +5 -0
- package/.changeset/moody-doors-grow.md +5 -0
- package/.changeset/moody-laws-change.md +5 -0
- package/.changeset/nasty-goats-joke.md +5 -0
- package/.changeset/odd-forks-drop.md +5 -0
- package/.changeset/olive-windows-suffer.md +5 -0
- package/.changeset/popular-planets-play.md +5 -0
- package/.changeset/rare-gorillas-boil.md +5 -0
- package/.changeset/rare-moose-teach.md +5 -0
- package/.changeset/sharp-tools-hope.md +5 -0
- package/.changeset/slimy-sloths-refuse.md +5 -0
- package/.changeset/slow-boats-search.md +5 -0
- package/.changeset/smooth-horses-tie.md +5 -0
- package/.changeset/tidy-items-reflect.md +5 -0
- package/.changeset/weak-rockets-compare.md +5 -0
- package/.changeset/wild-glasses-bathe.md +5 -0
- package/.changeset/wise-ears-turn.md +5 -0
- package/.eslintrc.cjs +37 -37
- package/.prettierrc.cjs +38 -38
- package/CHANGELOG.md +32 -0
- package/components/form/ExForm.jsx +17 -8
- package/components/provider/index.js +4 -4
- package/dist/index-20463bba.js.map +1 -1
- package/dist/index-f397a67d.cjs.map +1 -1
- package/dist/jobsys-explore.cjs +6 -6
- package/dist/jobsys-explore.cjs.map +1 -1
- package/dist/jobsys-explore.js +436 -436
- package/dist/jobsys-explore.js.map +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/index.js +5 -5
- package/hooks/network.js +122 -122
- package/index.js +26 -26
- package/package.json +1 -1
- package/playground/http.js +23 -23
- package/postcss.config.cjs +8 -8
- package/utils/withInstall.js +7 -7
- package/.changeset/.keep +0 -0
- package/.changeset/chatty-eels-vanish.md +0 -5
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,37 @@
|
|
|
1
1
|
# jobsys-explore
|
|
2
2
|
|
|
3
|
+
## 4.2.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix
|
|
8
|
+
- Build
|
|
9
|
+
- Drop the unused property
|
|
10
|
+
- Fix clear error in ExSearch
|
|
11
|
+
- Rewrite ExPagiantion
|
|
12
|
+
- Add init and beforeSubmit
|
|
13
|
+
- Fix
|
|
14
|
+
- Add disabled and readonly for ex form
|
|
15
|
+
- hide upload when readonly or disabled
|
|
16
|
+
- Add form item pattern support
|
|
17
|
+
- Add cascader search and filter search issue
|
|
18
|
+
- Fix sector style
|
|
19
|
+
- Fix exupload
|
|
20
|
+
- Add ex-decorator
|
|
21
|
+
- clone the options before traverse
|
|
22
|
+
- Upgrade useFormFormat
|
|
23
|
+
- upgrade
|
|
24
|
+
- Fix
|
|
25
|
+
- Add useFindParentValues
|
|
26
|
+
- Fix form submit await
|
|
27
|
+
- Add status adapter and useFetch loading
|
|
28
|
+
- Adjust form item render order
|
|
29
|
+
- Add pagination expose
|
|
30
|
+
- Fix upload file
|
|
31
|
+
- Add useFindPropertyRecursive
|
|
32
|
+
- upgrade
|
|
33
|
+
- Fix beforeSubmit
|
|
34
|
+
|
|
3
35
|
## 4.2.18
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -283,7 +283,7 @@ export default defineComponent({
|
|
|
283
283
|
// 为了在 item 中也能定制 beforeSubmit 这里和下面的 useFormFormat 会重复 copy 一次 submitForm
|
|
284
284
|
let form = cloneDeep(state.submitForm)
|
|
285
285
|
|
|
286
|
-
formItems.value
|
|
286
|
+
const itemsWithBeforeSubmit = formItems.value
|
|
287
287
|
.map((item) => {
|
|
288
288
|
if (item.match) {
|
|
289
289
|
// match 的属性需要在这里处理
|
|
@@ -292,13 +292,13 @@ export default defineComponent({
|
|
|
292
292
|
return item
|
|
293
293
|
})
|
|
294
294
|
.filter((item) => item.beforeSubmit && isFunction(item.beforeSubmit))
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
})
|
|
295
|
+
|
|
296
|
+
for (const item of itemsWithBeforeSubmit) {
|
|
297
|
+
form[item.key] = await item.beforeSubmit({
|
|
298
|
+
value: form[item.key],
|
|
299
|
+
submitForm: state.submitForm,
|
|
301
300
|
})
|
|
301
|
+
}
|
|
302
302
|
|
|
303
303
|
form = useFormFormat(form, formProvider.format || {})
|
|
304
304
|
|
|
@@ -379,7 +379,16 @@ export default defineComponent({
|
|
|
379
379
|
})
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
expose({
|
|
382
|
+
expose({
|
|
383
|
+
getForm: getFormStandalone,
|
|
384
|
+
getFormStandalone,
|
|
385
|
+
getFormRealtime,
|
|
386
|
+
getField,
|
|
387
|
+
setForm,
|
|
388
|
+
isDirty,
|
|
389
|
+
fetchItem,
|
|
390
|
+
reset,
|
|
391
|
+
})
|
|
383
392
|
|
|
384
393
|
/********** render **********/
|
|
385
394
|
|
|
@@ -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
|