meixioacomponent 2.0.47 → 2.0.49

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.
Files changed (102) hide show
  1. package/lib/components/base/baseGuide/GuideControl.d.ts +44 -44
  2. package/lib/components/base/baseGuide/GuideControl.js +238 -238
  3. package/lib/components/dynamicmount/DynamicMountClass.d.ts +15 -15
  4. package/lib/components/dynamicmount/DynamicMountClass.js +65 -65
  5. package/lib/components/dynamicmount/index.d.ts +4 -4
  6. package/lib/components/dynamicmount/index.js +71 -71
  7. package/lib/components/index.d.ts +110 -110
  8. package/lib/components/index.d.ts.map +1 -1
  9. package/lib/components/index.js +244 -242
  10. package/lib/config/LinkViewClass.d.ts +56 -56
  11. package/lib/config/LinkViewClass.js +154 -154
  12. package/lib/config/ProTableLocalConfigManage/ProTableLocalConfigManage.d.ts +12 -12
  13. package/lib/config/ProTableLocalConfigManage/ProTableLocalConfigManage.js +68 -68
  14. package/lib/config/componentConfig.d.ts +3 -3
  15. package/lib/config/componentConfig.js +71 -71
  16. package/lib/config/uploadRequest.d.ts +2 -2
  17. package/lib/config/uploadRequest.js +87 -87
  18. package/lib/config/use/UseGuide.d.ts +8 -8
  19. package/lib/config/use/UseGuide.js +33 -33
  20. package/lib/config/use/UseImg.d.ts +9 -9
  21. package/lib/config/use/UseImg.js +44 -44
  22. package/lib/config/use/UseUpload.d.ts +12 -12
  23. package/lib/config/use/UseUpload.js +79 -79
  24. package/lib/config/use/UseViewVideo.d.ts +11 -11
  25. package/lib/config/use/UseViewVideo.js +41 -41
  26. package/lib/config/use/UseWait.d.ts +4 -4
  27. package/lib/config/use/UseWait.js +21 -21
  28. package/lib/config/use/WaitPlugin.d.ts +25 -25
  29. package/lib/config/use/WaitPlugin.js +106 -106
  30. package/lib/config/use/useConfirm/UseConfirm.d.ts +6 -6
  31. package/lib/config/use/useConfirm/UseConfirm.js +33 -33
  32. package/lib/config/use/useConfirm/UseNotify.d.ts +6 -6
  33. package/lib/config/use/useConfirm/UseNotify.js +18 -18
  34. package/lib/config/use/useConfirm/executeConfirm.d.ts +2 -2
  35. package/lib/config/use/useConfirm/executeConfirm.js +11 -11
  36. package/lib/config/use/useConfirm/registerConfirm.d.ts +4 -4
  37. package/lib/config/use/useConfirm/registerConfirm.js +8 -8
  38. package/lib/meixioacomponent.common.js +22844 -22820
  39. package/lib/meixioacomponent.umd.js +22824 -22800
  40. package/lib/meixioacomponent.umd.min.js +3 -3
  41. package/lib/plugin/PluginByReferenceByOss.d.ts +2 -0
  42. package/lib/plugin/PluginByReferenceByOss.d.ts.map +1 -0
  43. package/lib/plugin/PluginByReferenceByOss.js +16 -0
  44. package/lib/style/tdesignStyle.less +21 -21
  45. package/lib/typings/type.d.ts +405 -405
  46. package/lib/typings/type.js +2 -2
  47. package/lib/useType/useType.d.ts +27 -27
  48. package/lib/useType/useType.js +89 -89
  49. package/package.json +1 -1
  50. package/packages/components/base/baseAnchor/baseAnchor.vue +168 -168
  51. package/packages/components/base/baseAnchor/baseAnchorV2.vue +165 -165
  52. package/packages/components/base/baseArea/api.js +6 -6
  53. package/packages/components/base/baseArea/area.js +14979 -14979
  54. package/packages/components/base/baseArea/areaConfig.js +7 -7
  55. package/packages/components/base/baseArea/baseArea.vue +590 -590
  56. package/packages/components/base/baseArea/baseAreaV2.vue +144 -144
  57. package/packages/components/base/baseArea/baseAreaV21.vue +156 -156
  58. package/packages/components/base/baseArea/index.js +6 -6
  59. package/packages/components/base/baseAreaByMultiple/baseAreaByMultiple.vue +70 -70
  60. package/packages/components/base/baseAreaByMultiple/index.js +7 -7
  61. package/packages/components/base/baseButton/baseButton.vue +85 -85
  62. package/packages/components/base/baseButton/index.js +6 -6
  63. package/packages/components/base/baseInput/baseInput.vue +98 -98
  64. package/packages/components/base/baseSelect/baseSelect.vue +102 -102
  65. package/packages/components/base/baseSelect/index.js +6 -6
  66. package/packages/components/base/baseTimeRangePicker/baseTimeRangePicker.vue +59 -59
  67. package/packages/components/base/baseTimeRangePicker/index.js +7 -7
  68. package/packages/components/base/tDateRangePicker/index.js +5 -5
  69. package/packages/components/base/tDateRangePicker/tDateRangePicker.vue +95 -95
  70. package/packages/components/dynamicmount/DynamicMountClass.js +64 -64
  71. package/packages/components/dynamicmount/index.js +69 -69
  72. package/packages/components/hooks/useHookByBaseArea.js +49 -49
  73. package/packages/components/hooks/useHookByGuide.js +46 -46
  74. package/packages/components/hooks/useHookByUpload.js +130 -130
  75. package/packages/components/index.js +241 -239
  76. package/packages/components/index.ts +2 -0
  77. package/packages/components/mixins/mixinsByBaseArea.js +53 -53
  78. package/packages/components/proPageTable/oa_pro_colum_config.vue +1 -1
  79. package/packages/components/proPageTable/oa_pro_table.vue +3 -4
  80. package/packages/components/style/tdesignStyle.less +21 -21
  81. package/packages/config/LinkViewClass.js +152 -152
  82. package/packages/config/ProTableLocalConfigManage/ProTableLocalConfigManage.js +75 -75
  83. package/packages/config/ProTableLocalConfigManage/ProTableLocalConfigManage.ts +99 -99
  84. package/packages/config/componentConfig.js +68 -68
  85. package/packages/config/use/UseGuide.js +43 -43
  86. package/packages/config/use/UseImg.js +44 -44
  87. package/packages/config/use/UseUpload.js +79 -79
  88. package/packages/config/use/UseViewVideo.js +40 -40
  89. package/packages/config/use/UseWait.js +18 -18
  90. package/packages/config/use/WaitPlugin.js +106 -106
  91. package/packages/config/use/useConfirm/UseConfirm.js +31 -31
  92. package/packages/config/use/useConfirm/UseConfirm.ts +34 -34
  93. package/packages/config/use/useConfirm/UseNotify.js +16 -16
  94. package/packages/config/use/useConfirm/UseNotify.ts +18 -18
  95. package/packages/config/use/useConfirm/executeConfirm.js +8 -8
  96. package/packages/config/use/useConfirm/executeConfirm.ts +6 -6
  97. package/packages/config/use/useConfirm/registerConfirm.js +8 -8
  98. package/packages/config/use/useConfirm/registerConfirm.ts +7 -7
  99. package/packages/plugin/PluginByReferenceByOss.js +16 -0
  100. package/packages/plugin/PluginByReferenceByOss.ts +13 -0
  101. package/packages/typings/type.js +2 -2
  102. package/packages/useType/useType.js +90 -90
@@ -1,144 +1,144 @@
1
- <template>
2
- <div class="base-area-select-wrap">
3
- <t-cascader
4
- ref="cascader"
5
- :keys="{
6
- value:'code',
7
- label:'name',
8
- children: 'children',
9
- }"
10
- :load="load"
11
- :options="options"
12
- :disabled="disable||loading"
13
- :size="componentSize" @change="onChange"
14
- :placeholder="placeholder"
15
- :input-props="inputProps"
16
- v-model="localValue">
17
- </t-cascader>
18
- </div>
19
- </template>
20
-
21
- <script>
22
- import baseButtonHandleVue from '../baseButtonHandle/baseButtonHandle.vue'
23
- import areaConfig from "./areaConfig";
24
- import {TransomComponentSize} from "../../../utils/utils";
25
- import {mixinsByBaseArea} from "../../mixins/mixinsByBaseArea";
26
- //
27
-
28
- export default {
29
- name: 'baseArea',
30
- data() {
31
- return {
32
- localValue: [],
33
- localDetailValue: {},
34
- inputProps: {
35
- value: '',
36
- },
37
- }
38
- },
39
- mixins: [mixinsByBaseArea],
40
- created() {
41
- },
42
- props: {
43
- value: {
44
- default: null,
45
- },
46
- },
47
-
48
- components: {
49
- baseButtonHandleVue,
50
- },
51
- computed: {
52
- module: {
53
- set(val) {
54
- this.$emit('input', val)
55
- },
56
- get() {
57
- return this.$props.value
58
- },
59
- },
60
- componentSize() {
61
- return TransomComponentSize(this.$props.size);
62
- }
63
-
64
- },
65
- methods: {
66
- init() {
67
- if (this.module) {
68
- const {province, city, district, town} = this.module;
69
- this.inputProps.value = `${province}/${city}/${district}`
70
- if (town) {
71
- this.inputProps.value += `/${town}`
72
- this.localValue = [province, city, district, town]
73
- } else {
74
- this.localValue = [province, city, district]
75
- }
76
- this.localDetailValue = {
77
- province,
78
- city,
79
- district,
80
- town
81
- }
82
- }
83
- },
84
- onChange() {
85
- this.inputProps.value = '';
86
- this.$nextTick(() => {
87
- const list = this.$refs.cascader.panels;
88
- list.forEach(itemList => {
89
- this.onAreaChange(itemList)
90
- })
91
- const _value = {
92
- ...this.localDetailValue,
93
- }
94
- this.$emit('confirmAreaValue', _value)
95
- this.module = _value;
96
- console.log(this.localValue);
97
- })
98
- },
99
- onAreaChange(list) {
100
- try {
101
- let index = null;
102
- for (let i = 0; i < list.length; i++) {
103
- const item = list[i];
104
- if (item.indeterminate || item.checked) {
105
- index = i;
106
- }
107
- }
108
- const value = list[index];
109
- const {data} = value;
110
- const {name, code, level} = data;
111
- if (!level) return;
112
- if (!this.localDetailValue[`idList`]) {
113
- this.localDetailValue[`idList`] = [0, 0, 0, 0];
114
- }
115
- this.localDetailValue[`${areaConfig[level - 1].value}`] = name;
116
- this.localDetailValue[`idList`][level - 1] = code;
117
- console.log(this.localDetailValue);
118
- } catch (error) {
119
- console.log(error);
120
- }
121
- },
122
- },
123
- watch: {
124
- module: {
125
- deep: true,
126
- handler() {
127
- this.$nextTick(() => {
128
- this.init();
129
- })
130
- }
131
- }
132
- }
133
- }
134
- </script>
135
-
136
- <style lang="less" scoped>
137
- .base-area-select-wrap {
138
- width: 100%;
139
- height: auto;
140
- overflow: hidden;
141
- border-radius: calc(var(--radius) * 2);
142
- }
143
-
144
- </style>
1
+ <template>
2
+ <div class="base-area-select-wrap">
3
+ <t-cascader
4
+ ref="cascader"
5
+ :keys="{
6
+ value:'code',
7
+ label:'name',
8
+ children: 'children',
9
+ }"
10
+ :load="load"
11
+ :options="options"
12
+ :disabled="disable||loading"
13
+ :size="componentSize" @change="onChange"
14
+ :placeholder="placeholder"
15
+ :input-props="inputProps"
16
+ v-model="localValue">
17
+ </t-cascader>
18
+ </div>
19
+ </template>
20
+
21
+ <script>
22
+ import baseButtonHandleVue from '../baseButtonHandle/baseButtonHandle.vue'
23
+ import areaConfig from "./areaConfig";
24
+ import {TransomComponentSize} from "../../../utils/utils";
25
+ import {mixinsByBaseArea} from "../../mixins/mixinsByBaseArea";
26
+ //
27
+
28
+ export default {
29
+ name: 'baseArea',
30
+ data() {
31
+ return {
32
+ localValue: [],
33
+ localDetailValue: {},
34
+ inputProps: {
35
+ value: '',
36
+ },
37
+ }
38
+ },
39
+ mixins: [mixinsByBaseArea],
40
+ created() {
41
+ },
42
+ props: {
43
+ value: {
44
+ default: null,
45
+ },
46
+ },
47
+
48
+ components: {
49
+ baseButtonHandleVue,
50
+ },
51
+ computed: {
52
+ module: {
53
+ set(val) {
54
+ this.$emit('input', val)
55
+ },
56
+ get() {
57
+ return this.$props.value
58
+ },
59
+ },
60
+ componentSize() {
61
+ return TransomComponentSize(this.$props.size);
62
+ }
63
+
64
+ },
65
+ methods: {
66
+ init() {
67
+ if (this.module) {
68
+ const {province, city, district, town} = this.module;
69
+ this.inputProps.value = `${province}/${city}/${district}`
70
+ if (town) {
71
+ this.inputProps.value += `/${town}`
72
+ this.localValue = [province, city, district, town]
73
+ } else {
74
+ this.localValue = [province, city, district]
75
+ }
76
+ this.localDetailValue = {
77
+ province,
78
+ city,
79
+ district,
80
+ town
81
+ }
82
+ }
83
+ },
84
+ onChange() {
85
+ this.inputProps.value = '';
86
+ this.$nextTick(() => {
87
+ const list = this.$refs.cascader.panels;
88
+ list.forEach(itemList => {
89
+ this.onAreaChange(itemList)
90
+ })
91
+ const _value = {
92
+ ...this.localDetailValue,
93
+ }
94
+ this.$emit('confirmAreaValue', _value)
95
+ this.module = _value;
96
+ console.log(this.localValue);
97
+ })
98
+ },
99
+ onAreaChange(list) {
100
+ try {
101
+ let index = null;
102
+ for (let i = 0; i < list.length; i++) {
103
+ const item = list[i];
104
+ if (item.indeterminate || item.checked) {
105
+ index = i;
106
+ }
107
+ }
108
+ const value = list[index];
109
+ const {data} = value;
110
+ const {name, code, level} = data;
111
+ if (!level) return;
112
+ if (!this.localDetailValue[`idList`]) {
113
+ this.localDetailValue[`idList`] = [0, 0, 0, 0];
114
+ }
115
+ this.localDetailValue[`${areaConfig[level - 1].value}`] = name;
116
+ this.localDetailValue[`idList`][level - 1] = code;
117
+ console.log(this.localDetailValue);
118
+ } catch (error) {
119
+ console.log(error);
120
+ }
121
+ },
122
+ },
123
+ watch: {
124
+ module: {
125
+ deep: true,
126
+ handler() {
127
+ this.$nextTick(() => {
128
+ this.init();
129
+ })
130
+ }
131
+ }
132
+ }
133
+ }
134
+ </script>
135
+
136
+ <style lang="less" scoped>
137
+ .base-area-select-wrap {
138
+ width: 100%;
139
+ height: auto;
140
+ overflow: hidden;
141
+ border-radius: calc(var(--radius) * 2);
142
+ }
143
+
144
+ </style>
@@ -1,157 +1,157 @@
1
- <template>
2
- <div class="base-area-select-wrap">
3
- <t-cascader
4
- ref="cascader"
5
- :keys="{
6
- value:'code',
7
- label:'name',
8
- children: 'children',
9
- }"
10
- :load="load"
11
- :options="options"
12
- :disabled="disable||loading"
13
- :size="componentSize" @change="onChange"
14
- :placeholder="placeholder"
15
- :input-props="inputProps"
16
- v-model="localValue">
17
- </t-cascader>
18
- </div>
19
- </template>
20
-
21
-
22
- <script>
23
- export default {
24
- name: 'baseArea'
25
- }
26
- </script>
27
-
28
- <script setup>
29
- import areaConfig from "./areaConfig";
30
- import {TransomComponentSize} from "../../../utils/utils";
31
- import useHookByBaseArea from "../../hooks/useHookByBaseArea";
32
- import {computed, onMounted, reactive, ref, toRaw, watch, nextTick, getCurrentInstance} from "vue";
33
-
34
-
35
- const cascader = ref();
36
- console.log(cascader.value)
37
-
38
- getCurrentInstance().proxy.$mount(() => {
39
- loadArea('').then(res => {
40
- console.log('v2');
41
- options.value = res;
42
- })
43
- })
44
-
45
-
46
- const localValue = ref([]);
47
- const localDetailValue = reactive({});
48
- const inputProps = reactive({
49
- value: '',
50
- },)
51
-
52
-
53
- const emits = defineEmits(['input', 'confirmAreaValue'])
54
- const {options, loading, placeholder, load, loadArea} = useHookByBaseArea();
55
-
56
- const props = defineProps({
57
- value: {
58
- default: null,
59
- },
60
- disable: {
61
- type: Boolean,
62
- default: false,
63
- },
64
- size: {type: String, default: 'small'}
65
- })
66
-
67
-
68
- const module = computed({
69
- set(val) {
70
- emits('input', val)
71
- },
72
- get() {
73
- return props.value;
74
- },
75
- })
76
-
77
-
78
- const componentSize = computed(() => {
79
- return TransomComponentSize(props.size);
80
- })
81
-
82
-
83
- const init = () => {
84
- if (module.value) {
85
- const {province, city, district, town} = module.value;
86
- inputProps.value = `${province}/${city}/${district}`
87
- if (town) {
88
- inputProps.value += `/${town}`
89
- localValue.value = [province, city, district, town]
90
- } else {
91
- localValue.value = [province, city, district]
92
- }
93
- Object.assign(localDetailValue, {
94
- province,
95
- city,
96
- district,
97
- town
98
- })
99
- }
100
- }
101
-
102
-
103
- const onChange = () => {
104
- inputProps.value = '';
105
- nextTick(() => {
106
- const list = cascader.value.panels;
107
- list.forEach(itemList => {
108
- onAreaChange(itemList)
109
- })
110
- const _value = {
111
- ...toRaw(localDetailValue),
112
- }
113
- emits('confirmAreaValue', _value)
114
- module.value = _value;
115
- })
116
- }
117
-
118
- const onAreaChange = (list) => {
119
- try {
120
- let index = null;
121
- for (let i = 0; i < list.length; i++) {
122
- const item = list[i];
123
- if (item.indeterminate || item.checked) {
124
- index = i;
125
- }
126
- }
127
- const value = list[index];
128
- const {data} = value;
129
- const {name, code, level} = data;
130
- if (!level) return;
131
- if (!localDetailValue[`idList`]) {
132
- localDetailValue[`idList`] = [0, 0, 0, 0];
133
- }
134
- localDetailValue[`${areaConfig[level - 1].value}`] = name;
135
- localDetailValue[`idList`][level - 1] = code;
136
- } catch (error) {
137
- }
138
- };
139
-
140
-
141
- watch(() => module, () => {
142
- nextTick(() => {
143
- init();
144
- })
145
- }, {deep: true,})
146
-
147
-
148
- </script>
149
-
150
- <style scoped lang="less">
151
- .base-area-select-wrap {
152
- width: 100%;
153
- height: auto;
154
- overflow: hidden;
155
- border-radius: calc(var(--radius) * 2);
156
- }
1
+ <template>
2
+ <div class="base-area-select-wrap">
3
+ <t-cascader
4
+ ref="cascader"
5
+ :keys="{
6
+ value:'code',
7
+ label:'name',
8
+ children: 'children',
9
+ }"
10
+ :load="load"
11
+ :options="options"
12
+ :disabled="disable||loading"
13
+ :size="componentSize" @change="onChange"
14
+ :placeholder="placeholder"
15
+ :input-props="inputProps"
16
+ v-model="localValue">
17
+ </t-cascader>
18
+ </div>
19
+ </template>
20
+
21
+
22
+ <script>
23
+ export default {
24
+ name: 'baseArea'
25
+ }
26
+ </script>
27
+
28
+ <script setup>
29
+ import areaConfig from "./areaConfig";
30
+ import {TransomComponentSize} from "../../../utils/utils";
31
+ import useHookByBaseArea from "../../hooks/useHookByBaseArea";
32
+ import {computed, onMounted, reactive, ref, toRaw, watch, nextTick, getCurrentInstance} from "vue";
33
+
34
+
35
+ const cascader = ref();
36
+ console.log(cascader.value)
37
+
38
+ getCurrentInstance().proxy.$mount(() => {
39
+ loadArea('').then(res => {
40
+ console.log('v2');
41
+ options.value = res;
42
+ })
43
+ })
44
+
45
+
46
+ const localValue = ref([]);
47
+ const localDetailValue = reactive({});
48
+ const inputProps = reactive({
49
+ value: '',
50
+ },)
51
+
52
+
53
+ const emits = defineEmits(['input', 'confirmAreaValue'])
54
+ const {options, loading, placeholder, load, loadArea} = useHookByBaseArea();
55
+
56
+ const props = defineProps({
57
+ value: {
58
+ default: null,
59
+ },
60
+ disable: {
61
+ type: Boolean,
62
+ default: false,
63
+ },
64
+ size: {type: String, default: 'small'}
65
+ })
66
+
67
+
68
+ const module = computed({
69
+ set(val) {
70
+ emits('input', val)
71
+ },
72
+ get() {
73
+ return props.value;
74
+ },
75
+ })
76
+
77
+
78
+ const componentSize = computed(() => {
79
+ return TransomComponentSize(props.size);
80
+ })
81
+
82
+
83
+ const init = () => {
84
+ if (module.value) {
85
+ const {province, city, district, town} = module.value;
86
+ inputProps.value = `${province}/${city}/${district}`
87
+ if (town) {
88
+ inputProps.value += `/${town}`
89
+ localValue.value = [province, city, district, town]
90
+ } else {
91
+ localValue.value = [province, city, district]
92
+ }
93
+ Object.assign(localDetailValue, {
94
+ province,
95
+ city,
96
+ district,
97
+ town
98
+ })
99
+ }
100
+ }
101
+
102
+
103
+ const onChange = () => {
104
+ inputProps.value = '';
105
+ nextTick(() => {
106
+ const list = cascader.value.panels;
107
+ list.forEach(itemList => {
108
+ onAreaChange(itemList)
109
+ })
110
+ const _value = {
111
+ ...toRaw(localDetailValue),
112
+ }
113
+ emits('confirmAreaValue', _value)
114
+ module.value = _value;
115
+ })
116
+ }
117
+
118
+ const onAreaChange = (list) => {
119
+ try {
120
+ let index = null;
121
+ for (let i = 0; i < list.length; i++) {
122
+ const item = list[i];
123
+ if (item.indeterminate || item.checked) {
124
+ index = i;
125
+ }
126
+ }
127
+ const value = list[index];
128
+ const {data} = value;
129
+ const {name, code, level} = data;
130
+ if (!level) return;
131
+ if (!localDetailValue[`idList`]) {
132
+ localDetailValue[`idList`] = [0, 0, 0, 0];
133
+ }
134
+ localDetailValue[`${areaConfig[level - 1].value}`] = name;
135
+ localDetailValue[`idList`][level - 1] = code;
136
+ } catch (error) {
137
+ }
138
+ };
139
+
140
+
141
+ watch(() => module, () => {
142
+ nextTick(() => {
143
+ init();
144
+ })
145
+ }, {deep: true,})
146
+
147
+
148
+ </script>
149
+
150
+ <style scoped lang="less">
151
+ .base-area-select-wrap {
152
+ width: 100%;
153
+ height: auto;
154
+ overflow: hidden;
155
+ border-radius: calc(var(--radius) * 2);
156
+ }
157
157
  </style>
@@ -1,6 +1,6 @@
1
- import baseArea from "./baseAreaV2.vue";
2
- baseArea.install = function (Vue) {
3
- Vue.component(baseArea.name, baseArea);
4
- };
5
-
6
- export default baseArea;
1
+ import baseArea from "./baseAreaV2.vue";
2
+ baseArea.install = function (Vue) {
3
+ Vue.component(baseArea.name, baseArea);
4
+ };
5
+
6
+ export default baseArea;