@ibiz-template/mob-vue3-components 0.7.41-alpha.10 → 0.7.41-alpha.12
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/index-yGM1h2Ma.js +76 -0
- package/dist/index-yGM1h2Ma.js.map +1 -0
- package/dist/index.min.css +8 -8
- package/dist/index.system.min.js +1 -1
- package/dist/{quill-EpIYtlVK.js → quill-7fiycnP7.js} +2 -2
- package/dist/{quill-EpIYtlVK.js.map → quill-7fiycnP7.js.map} +1 -1
- package/dist/{quill-editor-U1UE37xw.js → quill-editor-Nndlb9WE.js} +2 -2
- package/dist/{quill-editor-U1UE37xw.js.map → quill-editor-Nndlb9WE.js.map} +1 -1
- package/dist/{quill-editor-preview-v7UO7Unq.js → quill-editor-preview-GUdcFmjn.js} +2 -2
- package/dist/{quill-editor-preview-v7UO7Unq.js.map → quill-editor-preview-GUdcFmjn.js.map} +1 -1
- package/es/_virtual/index12.mjs +2 -2
- package/es/_virtual/index13.mjs +2 -2
- package/es/_virtual/index17.mjs +2 -2
- package/es/_virtual/index18.mjs +2 -2
- package/es/editor/dropdown-list/dropdown-list-editor.provider.mjs +3 -0
- package/es/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.css +1 -0
- package/es/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.d.ts +84 -0
- package/es/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.mjs +149 -0
- package/es/editor/dropdown-list/index.d.ts +1 -0
- package/es/editor/dropdown-list/index.mjs +1 -0
- package/es/editor/index.mjs +11 -1
- package/es/editor/text-box/input/input.d.ts +1 -0
- package/es/editor/text-box/input/input.mjs +6 -5
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +2 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +3 -0
- package/es/editor/upload/upload-editor.controller.d.ts +4 -0
- package/es/editor/upload/upload-editor.controller.mjs +15 -1
- package/es/editor/upload/use/use-van-upload.d.ts +1 -0
- package/es/editor/upload/use/use-van-upload.mjs +8 -2
- package/es/index.mjs +1 -0
- package/es/node_modules/.pnpm/dingtalk-jsapi@3.0.38/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.mjs +1 -1
- package/es/node_modules/.pnpm/dingtalk-jsapi@3.0.38/node_modules/dingtalk-jsapi/lib/sdk/middlewares/index.mjs +1 -1
- package/es/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.mjs +1 -1
- package/es/node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.mjs +1 -1
- package/es/util/directive/loading.mjs +1 -0
- package/lib/_virtual/index12.cjs +2 -2
- package/lib/_virtual/index13.cjs +2 -2
- package/lib/_virtual/index17.cjs +2 -2
- package/lib/_virtual/index18.cjs +2 -2
- package/lib/editor/dropdown-list/dropdown-list-editor.provider.cjs +3 -0
- package/lib/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.cjs +151 -0
- package/lib/editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.css +1 -0
- package/lib/editor/dropdown-list/index.cjs +2 -0
- package/lib/editor/index.cjs +11 -0
- package/lib/editor/text-box/input/input.cjs +6 -5
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +3 -0
- package/lib/editor/upload/upload-editor.controller.cjs +15 -1
- package/lib/editor/upload/use/use-van-upload.cjs +8 -2
- package/lib/index.cjs +2 -0
- package/lib/node_modules/.pnpm/dingtalk-jsapi@3.0.38/node_modules/dingtalk-jsapi/lib/packages/frame-talk-client-pc/index.cjs +1 -1
- package/lib/node_modules/.pnpm/dingtalk-jsapi@3.0.38/node_modules/dingtalk-jsapi/lib/sdk/middlewares/index.cjs +1 -1
- package/lib/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.cjs +1 -1
- package/lib/node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.cjs +1 -1
- package/lib/util/directive/loading.cjs +1 -0
- package/package.json +4 -4
- package/dist/index-pP9MJGoH.js +0 -76
- package/dist/index-pP9MJGoH.js.map +0 -1
- package/es/editor/upload/use/use-ibiz-upload.d.ts +0 -95
- package/es/editor/upload/use/use-ibiz-upload.mjs +0 -170
- package/lib/editor/upload/use/use-ibiz-upload.cjs +0 -175
|
@@ -21,6 +21,7 @@ export declare function useVanUpload(props: IParams, valueChange: (_value: strin
|
|
|
21
21
|
url?: string | undefined;
|
|
22
22
|
}[]>;
|
|
23
23
|
limit: ComputedRef<1 | 9999>;
|
|
24
|
+
loading: Ref<boolean>;
|
|
24
25
|
onDownload: (file: IData) => void;
|
|
25
26
|
onError: (...args: IData[]) => never;
|
|
26
27
|
onRemove: (file: IData) => void;
|
|
@@ -9,6 +9,7 @@ function useVanUpload(props, valueChange, c) {
|
|
|
9
9
|
});
|
|
10
10
|
const uploadUrl = ref("");
|
|
11
11
|
const downloadUrl = ref("");
|
|
12
|
+
const loading = ref(false);
|
|
12
13
|
watch(
|
|
13
14
|
() => props.value,
|
|
14
15
|
(newVal) => {
|
|
@@ -92,7 +93,6 @@ function useVanUpload(props, valueChange, c) {
|
|
|
92
93
|
emitValue();
|
|
93
94
|
};
|
|
94
95
|
const uploadFile = (file) => {
|
|
95
|
-
console.log(file);
|
|
96
96
|
const formData = new FormData();
|
|
97
97
|
formData.append("file", file.file);
|
|
98
98
|
return new Promise((resolve, reject) => {
|
|
@@ -103,7 +103,6 @@ function useVanUpload(props, valueChange, c) {
|
|
|
103
103
|
headers: headers.value
|
|
104
104
|
}).then((res) => {
|
|
105
105
|
if (res.status === 200) {
|
|
106
|
-
console.log(88, res);
|
|
107
106
|
onSuccess(res.data);
|
|
108
107
|
resolve(true);
|
|
109
108
|
} else {
|
|
@@ -116,6 +115,9 @@ function useVanUpload(props, valueChange, c) {
|
|
|
116
115
|
});
|
|
117
116
|
};
|
|
118
117
|
const afterRead = async (file) => {
|
|
118
|
+
if (c.showLoading) {
|
|
119
|
+
loading.value = true;
|
|
120
|
+
}
|
|
119
121
|
if (file.length && file.length > 0) {
|
|
120
122
|
for (let i = 0; i < file.length; i++) {
|
|
121
123
|
const fi = file[i];
|
|
@@ -124,6 +126,9 @@ function useVanUpload(props, valueChange, c) {
|
|
|
124
126
|
} else {
|
|
125
127
|
await uploadFile(file);
|
|
126
128
|
}
|
|
129
|
+
if (c.showLoading) {
|
|
130
|
+
loading.value = false;
|
|
131
|
+
}
|
|
127
132
|
};
|
|
128
133
|
const onDownload = (file) => {
|
|
129
134
|
const url = file.url || downloadUrl.value.replace("%fileId%", file.id);
|
|
@@ -138,6 +143,7 @@ function useVanUpload(props, valueChange, c) {
|
|
|
138
143
|
headers,
|
|
139
144
|
files,
|
|
140
145
|
limit,
|
|
146
|
+
loading,
|
|
141
147
|
onDownload,
|
|
142
148
|
onError,
|
|
143
149
|
onRemove,
|
package/es/index.mjs
CHANGED
|
@@ -107,6 +107,7 @@ export { DateRangeEditorController } from './editor/date-range/date-range-editor
|
|
|
107
107
|
export { DateRangeEditorProvider } from './editor/date-range/date-range-editor.provider.mjs';
|
|
108
108
|
export { IBizDropdown } from './editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs';
|
|
109
109
|
export { IBizEmojiPicker } from './editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs';
|
|
110
|
+
export { IBizCascaderDropdown } from './editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.mjs';
|
|
110
111
|
export { DropDownListEditorController } from './editor/dropdown-list/dropdown-list-editor.controller.mjs';
|
|
111
112
|
export { DropDownListEditorProvider } from './editor/dropdown-list/dropdown-list-editor.provider.mjs';
|
|
112
113
|
export { MarkDownEditorController } from './editor/markdown/markdown-editor.controller.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal } from '../../../../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __module as frameTalkClientPc$1 } from '../../../../../../../../_virtual/
|
|
2
|
+
import { __module as frameTalkClientPc$1 } from '../../../../../../../../_virtual/index13.mjs';
|
|
3
3
|
|
|
4
4
|
var frameTalkClientPc = frameTalkClientPc$1.exports;
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal } from '../../../../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __exports as middlewares } from '../../../../../../../../_virtual/
|
|
2
|
+
import { __exports as middlewares } from '../../../../../../../../_virtual/index12.mjs';
|
|
3
3
|
import '../../../../../../../../_virtual/bridge.mjs';
|
|
4
4
|
import { __require as requireRetry } from './retry.mjs';
|
|
5
5
|
import '../../../../../../../../_virtual/dealParamsAndResult.mjs';
|
package/es/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal, getDefaultExportFromCjs } from '../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __module as lodash_clonedeep$1 } from '../../../../../_virtual/
|
|
2
|
+
import { __module as lodash_clonedeep$1 } from '../../../../../_virtual/index17.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { commonjsGlobal, getDefaultExportFromCjs } from '../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __module as lodash_isequal$1 } from '../../../../../_virtual/
|
|
2
|
+
import { __module as lodash_isequal$1 } from '../../../../../_virtual/index18.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Lodash (Custom Build) <https://lodash.com/>
|
package/lib/_virtual/index12.cjs
CHANGED
package/lib/_virtual/index13.cjs
CHANGED
package/lib/_virtual/index17.cjs
CHANGED
package/lib/_virtual/index18.cjs
CHANGED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var ramda = require('ramda');
|
|
6
|
+
var rightIcon = require('../../common/right-icon/right-icon.cjs');
|
|
7
|
+
require('../../../util/index.cjs');
|
|
8
|
+
require('./ibiz-cascader-dropdown.css');
|
|
9
|
+
var usePopstateUtil = require('../../../util/use-popstate-util/use-popstate-util.cjs');
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
const IBizCascaderDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
+
name: "IBizCascaderDropdown",
|
|
14
|
+
props: vue3Util.getDropdownProps(),
|
|
15
|
+
emits: vue3Util.getEditorEmits(),
|
|
16
|
+
setup(props, {
|
|
17
|
+
emit
|
|
18
|
+
}) {
|
|
19
|
+
const ns = vue3Util.useNamespace("cascader-dropdown");
|
|
20
|
+
const c = props.controller;
|
|
21
|
+
const treeData = vue.ref([]);
|
|
22
|
+
const codeListMap = /* @__PURE__ */ new Map();
|
|
23
|
+
const curValue = vue.ref("");
|
|
24
|
+
const selectValue = vue.ref(null);
|
|
25
|
+
const show = vue.ref(false);
|
|
26
|
+
const onClose = () => {
|
|
27
|
+
show.value = false;
|
|
28
|
+
};
|
|
29
|
+
const transformTreeData = (list, pValueField) => {
|
|
30
|
+
codeListMap.clear();
|
|
31
|
+
list.forEach((item) => {
|
|
32
|
+
codeListMap.set(item.value, {
|
|
33
|
+
...item
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
const rootNodes = [];
|
|
37
|
+
if (pValueField) {
|
|
38
|
+
list.forEach((item) => {
|
|
39
|
+
const node = codeListMap.get(item.value);
|
|
40
|
+
if (ramda.isNil(item.data[pValueField])) {
|
|
41
|
+
rootNodes.push(node);
|
|
42
|
+
} else {
|
|
43
|
+
const parent = codeListMap.get(item.data[pValueField]);
|
|
44
|
+
if (parent) {
|
|
45
|
+
if (!parent.children) {
|
|
46
|
+
parent.children = [];
|
|
47
|
+
}
|
|
48
|
+
parent.children.push(node);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
} else {
|
|
53
|
+
rootNodes.push(...list);
|
|
54
|
+
}
|
|
55
|
+
return rootNodes;
|
|
56
|
+
};
|
|
57
|
+
const loadCodeList = async () => {
|
|
58
|
+
const codeList = await c.loadCodeList(props.data);
|
|
59
|
+
const {
|
|
60
|
+
pvaluefield
|
|
61
|
+
} = c.editorParams;
|
|
62
|
+
treeData.value = transformTreeData(codeList, pvaluefield);
|
|
63
|
+
if (props.value) {
|
|
64
|
+
const item = codeListMap.get(props.value);
|
|
65
|
+
curValue.value = (item == null ? void 0 : item.text) || "";
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
loadCodeList();
|
|
69
|
+
const onFinish = ($event) => {
|
|
70
|
+
const {
|
|
71
|
+
value
|
|
72
|
+
} = $event;
|
|
73
|
+
onClose();
|
|
74
|
+
emit("change", value);
|
|
75
|
+
};
|
|
76
|
+
const onChange = ($event) => {
|
|
77
|
+
const {
|
|
78
|
+
value
|
|
79
|
+
} = $event;
|
|
80
|
+
emit("change", value);
|
|
81
|
+
};
|
|
82
|
+
vue.watch(() => props.value, (newVal) => {
|
|
83
|
+
const item = codeListMap.get(newVal || "");
|
|
84
|
+
curValue.value = (item == null ? void 0 : item.text) || "";
|
|
85
|
+
}, {
|
|
86
|
+
immediate: true
|
|
87
|
+
});
|
|
88
|
+
const onBlur = () => {
|
|
89
|
+
emit("blur");
|
|
90
|
+
};
|
|
91
|
+
const onFocus = () => {
|
|
92
|
+
emit("focus");
|
|
93
|
+
};
|
|
94
|
+
const openPopup = () => {
|
|
95
|
+
if (props.disabled || props.readonly) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
show.value = !show.value;
|
|
99
|
+
};
|
|
100
|
+
usePopstateUtil.usePopstateListener(onClose);
|
|
101
|
+
return {
|
|
102
|
+
ns,
|
|
103
|
+
c,
|
|
104
|
+
show,
|
|
105
|
+
treeData,
|
|
106
|
+
selectValue,
|
|
107
|
+
curValue,
|
|
108
|
+
onBlur,
|
|
109
|
+
onFocus,
|
|
110
|
+
openPopup,
|
|
111
|
+
onClose,
|
|
112
|
+
onChange,
|
|
113
|
+
onFinish
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
render() {
|
|
117
|
+
return vue.createVNode("div", {
|
|
118
|
+
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""]
|
|
119
|
+
}, [this.readonly && this.curValue, !this.readonly && vue.createVNode(vue.resolveComponent("van-field"), {
|
|
120
|
+
"modelValue": this.curValue,
|
|
121
|
+
"onUpdate:modelValue": ($event) => this.curValue = $event,
|
|
122
|
+
"readonly": true,
|
|
123
|
+
"disabled": this.disabled,
|
|
124
|
+
"placeholder": this.c.placeHolder,
|
|
125
|
+
"onBlur": this.onBlur,
|
|
126
|
+
"onFocus": this.onFocus,
|
|
127
|
+
"onClick": this.openPopup
|
|
128
|
+
}, {
|
|
129
|
+
"right-icon": !this.readonly && vue.createVNode(rightIcon.IBizCommonRightIcon, null, null)
|
|
130
|
+
}), vue.createVNode(vue.resolveComponent("van-popup"), {
|
|
131
|
+
"show": this.show,
|
|
132
|
+
"onUpdate:show": ($event) => this.show = $event,
|
|
133
|
+
"round": true,
|
|
134
|
+
"position": "bottom",
|
|
135
|
+
"teleport": "body",
|
|
136
|
+
"close-on-popstate": true
|
|
137
|
+
}, {
|
|
138
|
+
default: () => [vue.createVNode(vue.resolveComponent("van-cascader"), {
|
|
139
|
+
"modelValue": this.selectValue,
|
|
140
|
+
"onUpdate:modelValue": ($event) => this.selectValue = $event,
|
|
141
|
+
"title": this.c.placeHolder ? this.c.placeHolder : " ",
|
|
142
|
+
"options": this.treeData,
|
|
143
|
+
"onClose": this.onClose,
|
|
144
|
+
"onChange": this.onChange,
|
|
145
|
+
"onFinish": this.onFinish
|
|
146
|
+
}, null)]
|
|
147
|
+
})]);
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
exports.IBizCascaderDropdown = IBizCascaderDropdown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-cascader-dropdown{height:100%}.ibiz-cascader-dropdown .van-field{font-size:var(--ibiz-form-item-font-size)}.ibiz-cascader-dropdown .van-field::after{display:none}.ibiz-cascader-dropdown .van-cell--clickable:active{background-color:transparent}.ibiz-cascader-dropdown--disabled{color:var(--ibiz-form-item-disabled-color);--van-field-input-text-color:var(--ibiz-form-item-disabled-color)}.ibiz-cascader-dropdown--readonly{--van-field-input-text-color:var(--ibiz-form-item-readonly-color);color:var(--ibiz-form-item-readonly-color)}.ibiz-cascader-dropdown input{text-align:var(--ibiz-form-item-container-editor-align)}.ibiz-cascader-dropdown.ibiz-cascader--readonly{text-align:var(--ibiz-form-item-container-editor-align)}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var ibizDropdown = require('./ibiz-dropdown/ibiz-dropdown.cjs');
|
|
4
4
|
var ibizEmojiPicker = require('./ibiz-emoji-picker/ibiz-emoji-picker.cjs');
|
|
5
|
+
var ibizCascaderDropdown = require('./ibiz-cascader-dropdown/ibiz-cascader-dropdown.cjs');
|
|
5
6
|
var dropdownListEditor_controller = require('./dropdown-list-editor.controller.cjs');
|
|
6
7
|
var dropdownListEditor_provider = require('./dropdown-list-editor.provider.cjs');
|
|
7
8
|
|
|
@@ -9,5 +10,6 @@ var dropdownListEditor_provider = require('./dropdown-list-editor.provider.cjs')
|
|
|
9
10
|
|
|
10
11
|
exports.IBizDropdown = ibizDropdown.IBizDropdown;
|
|
11
12
|
exports.IBizEmojiPicker = ibizEmojiPicker.IBizEmojiPicker;
|
|
13
|
+
exports.IBizCascaderDropdown = ibizCascaderDropdown.IBizCascaderDropdown;
|
|
12
14
|
exports.DropDownListEditorController = dropdownListEditor_controller.DropDownListEditorController;
|
|
13
15
|
exports.DropDownListEditorProvider = dropdownListEditor_provider.DropDownListEditorProvider;
|
package/lib/editor/index.cjs
CHANGED
|
@@ -36,6 +36,7 @@ var ibizSwitch = require('./switch/ibiz-switch/ibiz-switch.cjs');
|
|
|
36
36
|
var ibizRadio = require('./radio-button-list/ibiz-radio/ibiz-radio.cjs');
|
|
37
37
|
var ibizDropdown = require('./dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs');
|
|
38
38
|
var ibizEmojiPicker = require('./dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs');
|
|
39
|
+
var ibizCascaderDropdown = require('./dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.cjs');
|
|
39
40
|
var ibizCheckboxList = require('./check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs');
|
|
40
41
|
var ibizSlider = require('./slider/ibiz-slider/ibiz-slider.cjs');
|
|
41
42
|
var ibizRaw = require('./raw/ibiz-raw/ibiz-raw.cjs');
|
|
@@ -113,6 +114,7 @@ const IBizEditor = {
|
|
|
113
114
|
v.component(ibizDropdown.IBizDropdown.name, ibizDropdown.IBizDropdown);
|
|
114
115
|
v.component(ibizDropdownList.IBizDropdownList.name, ibizDropdownList.IBizDropdownList);
|
|
115
116
|
v.component(ibizEmojiPicker.IBizEmojiPicker.name, ibizEmojiPicker.IBizEmojiPicker);
|
|
117
|
+
v.component(ibizCascaderDropdown.IBizCascaderDropdown.name, ibizCascaderDropdown.IBizCascaderDropdown);
|
|
116
118
|
v.component(ibizCheckboxList.IBizCheckboxList.name, ibizCheckboxList.IBizCheckboxList);
|
|
117
119
|
v.component(ibizSlider.IBizSlider.name, ibizSlider.IBizSlider);
|
|
118
120
|
v.component(ibizRaw.IBizRaw.name, ibizRaw.IBizRaw);
|
|
@@ -181,6 +183,14 @@ const IBizEditor = {
|
|
|
181
183
|
"MOBDROPDOWNLIST_EMOJI_PICKER",
|
|
182
184
|
() => new dropdownListEditor_provider.DropDownListEditorProvider("EMOJI_PICKER")
|
|
183
185
|
);
|
|
186
|
+
runtime.registerEditorProvider(
|
|
187
|
+
"ROPDOWNLIST_CASCADER",
|
|
188
|
+
() => new dropdownListEditor_provider.DropDownListEditorProvider("MOBDROPDOWNLIST_CASCADER")
|
|
189
|
+
);
|
|
190
|
+
runtime.registerEditorProvider(
|
|
191
|
+
"MOBDROPDOWNLIST_CASCADER",
|
|
192
|
+
() => new dropdownListEditor_provider.DropDownListEditorProvider("MOBDROPDOWNLIST_CASCADER")
|
|
193
|
+
);
|
|
184
194
|
runtime.registerEditorProvider(
|
|
185
195
|
"MOBCHECKLIST",
|
|
186
196
|
() => new dropdownListEditor_provider.DropDownListEditorProvider("MOBCHECKLIST")
|
|
@@ -396,6 +406,7 @@ exports.IBizSwitch = ibizSwitch.IBizSwitch;
|
|
|
396
406
|
exports.IBizRadio = ibizRadio.IBizRadio;
|
|
397
407
|
exports.IBizDropdown = ibizDropdown.IBizDropdown;
|
|
398
408
|
exports.IBizEmojiPicker = ibizEmojiPicker.IBizEmojiPicker;
|
|
409
|
+
exports.IBizCascaderDropdown = ibizCascaderDropdown.IBizCascaderDropdown;
|
|
399
410
|
exports.IBizCheckboxList = ibizCheckboxList.IBizCheckboxList;
|
|
400
411
|
exports.IBizSlider = ibizSlider.IBizSlider;
|
|
401
412
|
exports.IBizStepper = ibizStepper.IBizStepper;
|
|
@@ -22,13 +22,13 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
22
22
|
const editorModel = c.model;
|
|
23
23
|
const inputRef = vue.ref();
|
|
24
24
|
const showPassword = vue.ref(false);
|
|
25
|
-
let
|
|
25
|
+
let enableshowpwd = false;
|
|
26
26
|
const rows = vue.ref(2);
|
|
27
27
|
if (editorModel.editorType === "TEXTAREA_10") {
|
|
28
28
|
rows.value = 10;
|
|
29
29
|
}
|
|
30
|
-
if (c.editorParams.
|
|
31
|
-
|
|
30
|
+
if (c.editorParams.enableshowpwd) {
|
|
31
|
+
enableshowpwd = c.editorParams.enableshowpwd === "true" || c.editorParams.enableshowpwd === "TRUE";
|
|
32
32
|
}
|
|
33
33
|
const type = vue.computed(() => {
|
|
34
34
|
switch (editorModel.editorType) {
|
|
@@ -109,7 +109,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
109
109
|
emit("change", "");
|
|
110
110
|
};
|
|
111
111
|
const switchPwd = () => {
|
|
112
|
-
showPassword.value = !showPassword.value
|
|
112
|
+
showPassword.value = !showPassword.value;
|
|
113
113
|
};
|
|
114
114
|
return {
|
|
115
115
|
c,
|
|
@@ -124,6 +124,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
124
124
|
onClear,
|
|
125
125
|
inputRef,
|
|
126
126
|
showPassword,
|
|
127
|
+
enableshowpwd,
|
|
127
128
|
switchPwd
|
|
128
129
|
};
|
|
129
130
|
},
|
|
@@ -146,7 +147,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
|
|
|
146
147
|
}, [unitName]);
|
|
147
148
|
};
|
|
148
149
|
}
|
|
149
|
-
if (this.type === "password") {
|
|
150
|
+
if (this.type === "password" && this.enableshowpwd) {
|
|
150
151
|
slots["right-icon"] = () => {
|
|
151
152
|
return this.showPassword ? vue.createVNode("ion-icon", {
|
|
152
153
|
"name": "eye-off-outline",
|
|
@@ -19,6 +19,7 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
19
19
|
uploadUrl,
|
|
20
20
|
headers,
|
|
21
21
|
files,
|
|
22
|
+
loading,
|
|
22
23
|
onRemove,
|
|
23
24
|
beforeUpload,
|
|
24
25
|
onDownload,
|
|
@@ -54,6 +55,7 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
55
|
uploadUrl,
|
|
55
56
|
headers,
|
|
56
57
|
files,
|
|
58
|
+
loading,
|
|
57
59
|
onRemove,
|
|
58
60
|
beforeUpload,
|
|
59
61
|
onDownload,
|
|
@@ -79,6 +81,7 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
81
|
}, this.$attrs), {
|
|
80
82
|
default: () => {
|
|
81
83
|
return !this.readonly && !this.disabled && vue.createVNode(vue.resolveComponent("van-button"), {
|
|
84
|
+
"loading": this.loading,
|
|
82
85
|
"class": this.ns.b("button"),
|
|
83
86
|
"icon": "add-o",
|
|
84
87
|
"type": "primary"
|
|
@@ -33,6 +33,10 @@ class UploadEditorController extends runtime.EditorController {
|
|
|
33
33
|
* 下载参数
|
|
34
34
|
*/
|
|
35
35
|
__publicField(this, "exportParams");
|
|
36
|
+
/**
|
|
37
|
+
* 显示加载动画
|
|
38
|
+
*/
|
|
39
|
+
__publicField(this, "showLoading", false);
|
|
36
40
|
/**
|
|
37
41
|
* 文件类型
|
|
38
42
|
*
|
|
@@ -101,7 +105,14 @@ class UploadEditorController extends runtime.EditorController {
|
|
|
101
105
|
this.multiple = false;
|
|
102
106
|
}
|
|
103
107
|
if (this.editorParams) {
|
|
104
|
-
const {
|
|
108
|
+
const {
|
|
109
|
+
isDrag,
|
|
110
|
+
multiple,
|
|
111
|
+
accept,
|
|
112
|
+
uploadParams,
|
|
113
|
+
exportParams,
|
|
114
|
+
showloading
|
|
115
|
+
} = this.editorParams;
|
|
105
116
|
if (isDrag) {
|
|
106
117
|
this.isDrag = Boolean(isDrag);
|
|
107
118
|
}
|
|
@@ -111,6 +122,9 @@ class UploadEditorController extends runtime.EditorController {
|
|
|
111
122
|
if (accept) {
|
|
112
123
|
this.accept = accept;
|
|
113
124
|
}
|
|
125
|
+
if (showloading) {
|
|
126
|
+
this.showLoading = Boolean(showloading);
|
|
127
|
+
}
|
|
114
128
|
if (uploadParams) {
|
|
115
129
|
try {
|
|
116
130
|
this.uploadParams = JSON.parse(uploadParams);
|
|
@@ -11,6 +11,7 @@ function useVanUpload(props, valueChange, c) {
|
|
|
11
11
|
});
|
|
12
12
|
const uploadUrl = vue.ref("");
|
|
13
13
|
const downloadUrl = vue.ref("");
|
|
14
|
+
const loading = vue.ref(false);
|
|
14
15
|
vue.watch(
|
|
15
16
|
() => props.value,
|
|
16
17
|
(newVal) => {
|
|
@@ -94,7 +95,6 @@ function useVanUpload(props, valueChange, c) {
|
|
|
94
95
|
emitValue();
|
|
95
96
|
};
|
|
96
97
|
const uploadFile = (file) => {
|
|
97
|
-
console.log(file);
|
|
98
98
|
const formData = new FormData();
|
|
99
99
|
formData.append("file", file.file);
|
|
100
100
|
return new Promise((resolve, reject) => {
|
|
@@ -105,7 +105,6 @@ function useVanUpload(props, valueChange, c) {
|
|
|
105
105
|
headers: headers.value
|
|
106
106
|
}).then((res) => {
|
|
107
107
|
if (res.status === 200) {
|
|
108
|
-
console.log(88, res);
|
|
109
108
|
onSuccess(res.data);
|
|
110
109
|
resolve(true);
|
|
111
110
|
} else {
|
|
@@ -118,6 +117,9 @@ function useVanUpload(props, valueChange, c) {
|
|
|
118
117
|
});
|
|
119
118
|
};
|
|
120
119
|
const afterRead = async (file) => {
|
|
120
|
+
if (c.showLoading) {
|
|
121
|
+
loading.value = true;
|
|
122
|
+
}
|
|
121
123
|
if (file.length && file.length > 0) {
|
|
122
124
|
for (let i = 0; i < file.length; i++) {
|
|
123
125
|
const fi = file[i];
|
|
@@ -126,6 +128,9 @@ function useVanUpload(props, valueChange, c) {
|
|
|
126
128
|
} else {
|
|
127
129
|
await uploadFile(file);
|
|
128
130
|
}
|
|
131
|
+
if (c.showLoading) {
|
|
132
|
+
loading.value = false;
|
|
133
|
+
}
|
|
129
134
|
};
|
|
130
135
|
const onDownload = (file) => {
|
|
131
136
|
const url = file.url || downloadUrl.value.replace("%fileId%", file.id);
|
|
@@ -140,6 +145,7 @@ function useVanUpload(props, valueChange, c) {
|
|
|
140
145
|
headers,
|
|
141
146
|
files,
|
|
142
147
|
limit,
|
|
148
|
+
loading,
|
|
143
149
|
onDownload,
|
|
144
150
|
onError,
|
|
145
151
|
onRemove,
|
package/lib/index.cjs
CHANGED
|
@@ -109,6 +109,7 @@ var dateRangeEditor_controller = require('./editor/date-range/date-range-editor.
|
|
|
109
109
|
var dateRangeEditor_provider = require('./editor/date-range/date-range-editor.provider.cjs');
|
|
110
110
|
var ibizDropdown = require('./editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs');
|
|
111
111
|
var ibizEmojiPicker = require('./editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs');
|
|
112
|
+
var ibizCascaderDropdown = require('./editor/dropdown-list/ibiz-cascader-dropdown/ibiz-cascader-dropdown.cjs');
|
|
112
113
|
var dropdownListEditor_controller = require('./editor/dropdown-list/dropdown-list-editor.controller.cjs');
|
|
113
114
|
var dropdownListEditor_provider = require('./editor/dropdown-list/dropdown-list-editor.provider.cjs');
|
|
114
115
|
var markdownEditor_controller = require('./editor/markdown/markdown-editor.controller.cjs');
|
|
@@ -290,6 +291,7 @@ exports.DateRangeEditorController = dateRangeEditor_controller.DateRangeEditorCo
|
|
|
290
291
|
exports.DateRangeEditorProvider = dateRangeEditor_provider.DateRangeEditorProvider;
|
|
291
292
|
exports.IBizDropdown = ibizDropdown.IBizDropdown;
|
|
292
293
|
exports.IBizEmojiPicker = ibizEmojiPicker.IBizEmojiPicker;
|
|
294
|
+
exports.IBizCascaderDropdown = ibizCascaderDropdown.IBizCascaderDropdown;
|
|
293
295
|
exports.DropDownListEditorController = dropdownListEditor_controller.DropDownListEditorController;
|
|
294
296
|
exports.DropDownListEditorProvider = dropdownListEditor_provider.DropDownListEditorProvider;
|
|
295
297
|
exports.MarkDownEditorController = markdownEditor_controller.MarkDownEditorController;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _commonjsHelpers = require('../../../../../../../../_virtual/_commonjsHelpers.cjs');
|
|
4
|
-
var index = require('../../../../../../../../_virtual/
|
|
4
|
+
var index = require('../../../../../../../../_virtual/index13.cjs');
|
|
5
5
|
|
|
6
6
|
var frameTalkClientPc = index.__module.exports;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _commonjsHelpers = require('../../../../../../../../_virtual/_commonjsHelpers.cjs');
|
|
4
|
-
var index = require('../../../../../../../../_virtual/
|
|
4
|
+
var index = require('../../../../../../../../_virtual/index12.cjs');
|
|
5
5
|
require('../../../../../../../../_virtual/bridge.cjs');
|
|
6
6
|
var retry = require('./retry.cjs');
|
|
7
7
|
require('../../../../../../../../_virtual/dealParamsAndResult.cjs');
|
package/lib/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _commonjsHelpers = require('../../../../../_virtual/_commonjsHelpers.cjs');
|
|
6
|
-
var index$1 = require('../../../../../_virtual/
|
|
6
|
+
var index$1 = require('../../../../../_virtual/index17.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _commonjsHelpers = require('../../../../../_virtual/_commonjsHelpers.cjs');
|
|
6
|
-
var index$1 = require('../../../../../_virtual/
|
|
6
|
+
var index$1 = require('../../../../../_virtual/index18.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Lodash (Custom Build) <https://lodash.com/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/mob-vue3-components",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.12",
|
|
4
4
|
"description": "移动端组件库(vue3)",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@floating-ui/dom": "^1.5.3",
|
|
29
29
|
"@ibiz-template-package/vs-tree-ex": "^0.1.1",
|
|
30
30
|
"@ibiz-template/core": "0.7.41-alpha.18",
|
|
31
|
-
"@ibiz-template/model-helper": "0.7.41-alpha.
|
|
32
|
-
"@ibiz-template/runtime": "0.7.41-alpha.
|
|
31
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.22",
|
|
32
|
+
"@ibiz-template/runtime": "0.7.41-alpha.22",
|
|
33
33
|
"@ibiz-template/theme": "0.7.39",
|
|
34
|
-
"@ibiz-template/vue3-util": "0.7.41-alpha.
|
|
34
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.22",
|
|
35
35
|
"@ibiz-template/devtool": "0.0.11",
|
|
36
36
|
"@ibiz/model-core": "^0.1.81",
|
|
37
37
|
"@ibiz-template/mob-theme": "3.0.0",
|