@opentinyvue/vue-currency 2.21.0 → 3.21.0
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/lib/index.js +1 -1
- package/lib/mobile-first.js +52 -63
- package/lib/pc.js +113 -99
- package/package.json +6 -6
- package/src/index.d.ts +133 -1
- package/src/mobile-first.vue.d.ts +70 -1
- package/src/pc.vue.d.ts +90 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -1,65 +1,42 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/currency/vue';
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import SelectMobile from '@opentinyvue/vue-select-mobile';
|
|
4
|
+
import { resolveComponent, openBlock, createBlock, mergeProps } from 'vue';
|
|
4
5
|
|
|
5
|
-
function
|
|
6
|
-
var
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
7
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
9
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
10
|
+
t && (r = t);
|
|
11
|
+
var o = 0;
|
|
12
|
+
return function() {
|
|
13
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
14
|
+
};
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var originalRender = options.render;
|
|
20
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
21
|
-
hook.call(context);
|
|
22
|
-
return originalRender(h, context);
|
|
23
|
-
};
|
|
24
|
-
} else {
|
|
25
|
-
var existing = options.beforeCreate;
|
|
26
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
27
|
-
}
|
|
16
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
|
+
}
|
|
18
|
+
function _unsupportedIterableToArray(r, a) {
|
|
19
|
+
if (r) {
|
|
20
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
21
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
22
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
28
23
|
}
|
|
29
|
-
return {
|
|
30
|
-
exports: scriptExports,
|
|
31
|
-
options
|
|
32
|
-
};
|
|
33
24
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"text-field": "label",
|
|
47
|
-
"title": _vm.title || _vm.t("ui.currency.chooseCurrency"),
|
|
48
|
-
"placeholder": _vm.placeholder,
|
|
49
|
-
"multiple": _vm.multiple,
|
|
50
|
-
"visible": _vm.visible,
|
|
51
|
-
"search-config": _vm.state.searchConfig
|
|
52
|
-
},
|
|
53
|
-
on: {
|
|
54
|
-
"update:modelValue": function updateModelValue($event) {
|
|
55
|
-
return _vm.$emit("update:modelValue", $event);
|
|
56
|
-
},
|
|
57
|
-
"update:visible": _vm.visibleChange
|
|
58
|
-
}
|
|
59
|
-
}, "tiny-select-mobile", _vm.a(_vm.$attrs, ["^on[A-Z]"]), false));
|
|
25
|
+
function _arrayLikeToArray(r, a) {
|
|
26
|
+
(null == a || a > r.length) && (a = r.length);
|
|
27
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
31
|
+
var target = sfc.__vccOpts || sfc;
|
|
32
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
33
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
34
|
+
target[key] = val;
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
60
37
|
};
|
|
61
|
-
|
|
62
|
-
var
|
|
38
|
+
|
|
39
|
+
var _sfc_main = defineComponent({
|
|
63
40
|
inheritAttrs: false,
|
|
64
41
|
components: {
|
|
65
42
|
TinySelectMobile: SelectMobile
|
|
@@ -75,15 +52,27 @@ var __vue2_script = defineComponent({
|
|
|
75
52
|
});
|
|
76
53
|
}
|
|
77
54
|
});
|
|
78
|
-
|
|
79
|
-
var
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
55
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
56
|
+
var _component_tiny_select_mobile = resolveComponent("tiny-select-mobile");
|
|
57
|
+
return openBlock(), createBlock(_component_tiny_select_mobile, mergeProps({
|
|
58
|
+
"data-tag": "tiny-currency"
|
|
59
|
+
}, _ctx.a(_ctx.$attrs, ["^on[A-Z]"]), {
|
|
60
|
+
mode: _ctx.mode,
|
|
61
|
+
"model-value": _ctx.state.selectedValue,
|
|
62
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
|
|
63
|
+
return _ctx.$emit("update:modelValue", $event);
|
|
64
|
+
}),
|
|
65
|
+
menus: _ctx.state.options,
|
|
66
|
+
"value-field": "value",
|
|
67
|
+
"text-field": "label",
|
|
68
|
+
title: _ctx.title || _ctx.t("ui.currency.chooseCurrency"),
|
|
69
|
+
placeholder: _ctx.placeholder,
|
|
70
|
+
multiple: _ctx.multiple,
|
|
71
|
+
visible: _ctx.visible,
|
|
72
|
+
"search-config": _ctx.state.searchConfig,
|
|
73
|
+
"onUpdate:visible": _ctx.visibleChange
|
|
74
|
+
}), null, 16, ["mode", "model-value", "menus", "title", "placeholder", "multiple", "visible", "search-config", "onUpdate:visible"]);
|
|
84
75
|
}
|
|
85
|
-
var mobileFirst = /* @__PURE__ */
|
|
86
|
-
return __component__.exports;
|
|
87
|
-
}();
|
|
76
|
+
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
88
77
|
|
|
89
78
|
export { mobileFirst as default };
|
package/lib/pc.js
CHANGED
|
@@ -3,38 +3,42 @@ import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
|
3
3
|
import Select from '@opentinyvue/vue-select';
|
|
4
4
|
import Option from '@opentinyvue/vue-option';
|
|
5
5
|
import { IconStarActive, IconStarDisable } from '@opentinyvue/vue-icon';
|
|
6
|
+
import { resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, resolveDynamicComponent, createCommentVNode } from 'vue';
|
|
6
7
|
|
|
7
|
-
function
|
|
8
|
-
var
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
9
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
10
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
11
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
12
|
+
t && (r = t);
|
|
13
|
+
var o = 0;
|
|
14
|
+
return function() {
|
|
15
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
16
|
+
};
|
|
13
17
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var originalRender = options.render;
|
|
22
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
23
|
-
hook.call(context);
|
|
24
|
-
return originalRender(h, context);
|
|
25
|
-
};
|
|
26
|
-
} else {
|
|
27
|
-
var existing = options.beforeCreate;
|
|
28
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
29
|
-
}
|
|
18
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19
|
+
}
|
|
20
|
+
function _unsupportedIterableToArray(r, a) {
|
|
21
|
+
if (r) {
|
|
22
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
23
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
24
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
30
25
|
}
|
|
31
|
-
return {
|
|
32
|
-
exports: scriptExports,
|
|
33
|
-
options
|
|
34
|
-
};
|
|
35
26
|
}
|
|
27
|
+
function _arrayLikeToArray(r, a) {
|
|
28
|
+
(null == a || a > r.length) && (a = r.length);
|
|
29
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
30
|
+
return n;
|
|
31
|
+
}
|
|
32
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
33
|
+
var target = sfc.__vccOpts || sfc;
|
|
34
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
35
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
36
|
+
target[key] = val;
|
|
37
|
+
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
36
40
|
|
|
37
|
-
var
|
|
41
|
+
var _sfc_main = defineComponent({
|
|
38
42
|
inheritAttrs: false,
|
|
39
43
|
components: {
|
|
40
44
|
TinySelect: Select,
|
|
@@ -53,79 +57,89 @@ var __vue2_script = defineComponent({
|
|
|
53
57
|
});
|
|
54
58
|
}
|
|
55
59
|
});
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var _c = _vm._self._c || _h;
|
|
60
|
-
return _c("tiny-select", _vm._b({
|
|
61
|
-
staticClass: "tiny-currency",
|
|
62
|
-
attrs: {
|
|
63
|
-
"filterable": !_vm.shape,
|
|
64
|
-
"size": _vm.size,
|
|
65
|
-
"clearable": _vm.clearable,
|
|
66
|
-
"label": _vm.label,
|
|
67
|
-
"tip": _vm.tip,
|
|
68
|
-
"shape": _vm.shape,
|
|
69
|
-
"disabled": _vm.disabled,
|
|
70
|
-
"placeholder": _vm.placeholder,
|
|
71
|
-
"drop-style": _vm.dropStyle
|
|
72
|
-
},
|
|
73
|
-
on: {
|
|
74
|
-
"change": _vm.change,
|
|
75
|
-
"clear": function clear($event) {
|
|
76
|
-
return _vm.$emit("clear");
|
|
77
|
-
},
|
|
78
|
-
"visible-change": function visibleChange($event) {
|
|
79
|
-
return _vm.$emit("visible-change", $event);
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
model: {
|
|
83
|
-
value: _vm.state.selectedValue,
|
|
84
|
-
callback: function callback($$v) {
|
|
85
|
-
_vm.$set(_vm.state, "selectedValue", $$v);
|
|
86
|
-
},
|
|
87
|
-
expression: "state.selectedValue"
|
|
88
|
-
}
|
|
89
|
-
}, "tiny-select", _vm.a(_vm.$attrs, ["^on[A-Z]"]), false), _vm._l(_vm.state.options, function(item) {
|
|
90
|
-
return _c("tiny-option", {
|
|
91
|
-
key: item.value,
|
|
92
|
-
staticClass: "tiny-currency-option",
|
|
93
|
-
class: {
|
|
94
|
-
"set-default": _vm.setDefault,
|
|
95
|
-
"is-active": item.value === _vm.state.defaultCurrency
|
|
96
|
-
},
|
|
97
|
-
attrs: {
|
|
98
|
-
"label": item.label,
|
|
99
|
-
"value": item.value
|
|
100
|
-
}
|
|
101
|
-
}, [_c("span", {
|
|
102
|
-
staticStyle: {
|
|
103
|
-
"display": "flex"
|
|
104
|
-
}
|
|
105
|
-
}, [_c("span", {
|
|
106
|
-
staticClass: "tiny-currency-option-label"
|
|
107
|
-
}, [_vm._v(_vm._s(item.label))]), _vm.setDefault ? _c("span", {
|
|
108
|
-
staticClass: "tiny-currency-option-set",
|
|
109
|
-
on: {
|
|
110
|
-
"click": function click($event) {
|
|
111
|
-
return _vm.toogleDefaultCurrency(item.value, item.value === _vm.state.defaultCurrency);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}, [_c(item.value === _vm.state.defaultCurrency ? "icon-star-active" : "icon-star-disable", {
|
|
115
|
-
tag: "component"
|
|
116
|
-
}), _c("span", [_vm._v(" " + _vm._s(item.value === _vm.state.defaultCurrency ? _vm.t("ui.currency.defaultCurrency") : _vm.t("ui.currency.setDefault")) + " ")])], 1) : _vm._e()])]);
|
|
117
|
-
}), 1);
|
|
118
|
-
};
|
|
119
|
-
var staticRenderFns = [];
|
|
120
|
-
var __cssModules = {};
|
|
121
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
|
|
122
|
-
function __vue2_injectStyles(context) {
|
|
123
|
-
for (var o in __cssModules) {
|
|
124
|
-
this[o] = __cssModules[o];
|
|
60
|
+
var _hoisted_1 = {
|
|
61
|
+
style: {
|
|
62
|
+
"display": "flex"
|
|
125
63
|
}
|
|
64
|
+
};
|
|
65
|
+
var _hoisted_2 = {
|
|
66
|
+
class: "tiny-currency-option-label"
|
|
67
|
+
};
|
|
68
|
+
var _hoisted_3 = ["onClick"];
|
|
69
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
70
|
+
var _component_tiny_option = resolveComponent("tiny-option");
|
|
71
|
+
var _component_tiny_select = resolveComponent("tiny-select");
|
|
72
|
+
return openBlock(), createBlock(_component_tiny_select, mergeProps({
|
|
73
|
+
class: "tiny-currency",
|
|
74
|
+
modelValue: _ctx.state.selectedValue,
|
|
75
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = function($event) {
|
|
76
|
+
return _ctx.state.selectedValue = $event;
|
|
77
|
+
}),
|
|
78
|
+
filterable: !_ctx.shape,
|
|
79
|
+
size: _ctx.size,
|
|
80
|
+
clearable: _ctx.clearable,
|
|
81
|
+
label: _ctx.label,
|
|
82
|
+
tip: _ctx.tip,
|
|
83
|
+
shape: _ctx.shape,
|
|
84
|
+
disabled: _ctx.disabled,
|
|
85
|
+
placeholder: _ctx.placeholder,
|
|
86
|
+
onChange: _ctx.change
|
|
87
|
+
}, _ctx.a(_ctx.$attrs, ["^on[A-Z]"]), {
|
|
88
|
+
onClear: _cache[1] || (_cache[1] = function($event) {
|
|
89
|
+
return _ctx.$emit("clear");
|
|
90
|
+
}),
|
|
91
|
+
onVisibleChange: _cache[2] || (_cache[2] = function($event) {
|
|
92
|
+
return _ctx.$emit("visible-change", $event);
|
|
93
|
+
}),
|
|
94
|
+
"drop-style": _ctx.dropStyle
|
|
95
|
+
}), {
|
|
96
|
+
default: withCtx(function() {
|
|
97
|
+
return [(openBlock(true), createElementBlock(
|
|
98
|
+
Fragment,
|
|
99
|
+
null,
|
|
100
|
+
renderList(_ctx.state.options, function(item) {
|
|
101
|
+
return openBlock(), createBlock(_component_tiny_option, {
|
|
102
|
+
class: normalizeClass(["tiny-currency-option", {
|
|
103
|
+
"set-default": _ctx.setDefault,
|
|
104
|
+
"is-active": item.value === _ctx.state.defaultCurrency
|
|
105
|
+
}]),
|
|
106
|
+
key: item.value,
|
|
107
|
+
label: item.label,
|
|
108
|
+
value: item.value
|
|
109
|
+
}, {
|
|
110
|
+
default: withCtx(function() {
|
|
111
|
+
return [createElementVNode("span", _hoisted_1, [createElementVNode(
|
|
112
|
+
"span",
|
|
113
|
+
_hoisted_2,
|
|
114
|
+
toDisplayString(item.label),
|
|
115
|
+
1
|
|
116
|
+
/* TEXT */
|
|
117
|
+
), _ctx.setDefault ? (openBlock(), createElementBlock("span", {
|
|
118
|
+
key: 0,
|
|
119
|
+
class: "tiny-currency-option-set",
|
|
120
|
+
onClick: function onClick($event) {
|
|
121
|
+
return _ctx.toogleDefaultCurrency(item.value, item.value === _ctx.state.defaultCurrency);
|
|
122
|
+
}
|
|
123
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(item.value === _ctx.state.defaultCurrency ? "icon-star-active" : "icon-star-disable"))), createElementVNode(
|
|
124
|
+
"span",
|
|
125
|
+
null,
|
|
126
|
+
toDisplayString(item.value === _ctx.state.defaultCurrency ? _ctx.t("ui.currency.defaultCurrency") : _ctx.t("ui.currency.setDefault")),
|
|
127
|
+
1
|
|
128
|
+
/* TEXT */
|
|
129
|
+
)], 8, _hoisted_3)) : createCommentVNode("v-if", true)])];
|
|
130
|
+
}),
|
|
131
|
+
_: 2
|
|
132
|
+
/* DYNAMIC */
|
|
133
|
+
}, 1032, ["label", "value", "class"]);
|
|
134
|
+
}),
|
|
135
|
+
128
|
|
136
|
+
/* KEYED_FRAGMENT */
|
|
137
|
+
))];
|
|
138
|
+
}),
|
|
139
|
+
_: 1
|
|
140
|
+
/* STABLE */
|
|
141
|
+
}, 16, ["modelValue", "filterable", "size", "clearable", "label", "tip", "shape", "disabled", "placeholder", "onChange", "drop-style"]);
|
|
126
142
|
}
|
|
127
|
-
var pc = /* @__PURE__ */
|
|
128
|
-
return __component__.exports;
|
|
129
|
-
}();
|
|
143
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
130
144
|
|
|
131
145
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-currency",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/vue-common": "~
|
|
10
|
+
"@opentinyvue/vue-common": "~3.21.0",
|
|
11
11
|
"@opentinyvue/vue-renderless": "~3.21.0",
|
|
12
|
-
"@opentinyvue/vue-select": "~
|
|
13
|
-
"@opentinyvue/vue-option": "~
|
|
12
|
+
"@opentinyvue/vue-select": "~3.21.0",
|
|
13
|
+
"@opentinyvue/vue-option": "~3.21.0",
|
|
14
14
|
"@opentinyvue/vue-theme": "~3.21.0",
|
|
15
|
-
"@opentinyvue/vue-select-mobile": "~
|
|
16
|
-
"@opentinyvue/vue-icon": "~
|
|
15
|
+
"@opentinyvue/vue-select-mobile": "~3.21.0",
|
|
16
|
+
"@opentinyvue/vue-icon": "~3.21.0"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,134 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
clearable: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
currency: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
disabled: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
fetchCurrency: FunctionConstructor;
|
|
15
|
+
fields: ObjectConstructor;
|
|
16
|
+
modelValue: {};
|
|
17
|
+
placeholder: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
popperAppendToBody: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
popperClass: StringConstructor;
|
|
26
|
+
size: StringConstructor;
|
|
27
|
+
setDefault: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
fetchDefaultCurrency: FunctionConstructor;
|
|
32
|
+
setDefaultCurrency: FunctionConstructor;
|
|
33
|
+
visible: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
title: StringConstructor;
|
|
38
|
+
mode: StringConstructor;
|
|
39
|
+
multiple: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
searchConfig: ObjectConstructor;
|
|
44
|
+
dropStyle: {
|
|
45
|
+
type: ObjectConstructor;
|
|
46
|
+
default: () => {};
|
|
47
|
+
};
|
|
48
|
+
label: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
tip: StringConstructor;
|
|
53
|
+
shape: StringConstructor;
|
|
54
|
+
tiny_mode: StringConstructor;
|
|
55
|
+
tiny_mode_root: BooleanConstructor;
|
|
56
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
57
|
+
tiny_renderless: FunctionConstructor;
|
|
58
|
+
tiny_theme: StringConstructor;
|
|
59
|
+
tiny_chart_theme: ObjectConstructor;
|
|
60
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
63
|
+
clearable: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
currency: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
disabled: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
fetchCurrency: FunctionConstructor;
|
|
76
|
+
fields: ObjectConstructor;
|
|
77
|
+
modelValue: {};
|
|
78
|
+
placeholder: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
popperAppendToBody: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
popperClass: StringConstructor;
|
|
87
|
+
size: StringConstructor;
|
|
88
|
+
setDefault: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
fetchDefaultCurrency: FunctionConstructor;
|
|
93
|
+
setDefaultCurrency: FunctionConstructor;
|
|
94
|
+
visible: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
title: StringConstructor;
|
|
99
|
+
mode: StringConstructor;
|
|
100
|
+
multiple: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
searchConfig: ObjectConstructor;
|
|
105
|
+
dropStyle: {
|
|
106
|
+
type: ObjectConstructor;
|
|
107
|
+
default: () => {};
|
|
108
|
+
};
|
|
109
|
+
label: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
tip: StringConstructor;
|
|
114
|
+
shape: StringConstructor;
|
|
115
|
+
tiny_mode: StringConstructor;
|
|
116
|
+
tiny_mode_root: BooleanConstructor;
|
|
117
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
118
|
+
tiny_renderless: FunctionConstructor;
|
|
119
|
+
tiny_theme: StringConstructor;
|
|
120
|
+
tiny_chart_theme: ObjectConstructor;
|
|
121
|
+
}>>, {
|
|
122
|
+
label: string;
|
|
123
|
+
disabled: boolean;
|
|
124
|
+
tiny_mode_root: boolean;
|
|
125
|
+
popperAppendToBody: boolean;
|
|
126
|
+
visible: boolean;
|
|
127
|
+
clearable: boolean;
|
|
128
|
+
currency: string;
|
|
129
|
+
placeholder: string;
|
|
130
|
+
setDefault: boolean;
|
|
131
|
+
multiple: boolean;
|
|
132
|
+
dropStyle: Record<string, any>;
|
|
133
|
+
}, {}>;
|
|
2
134
|
export default _default;
|
|
@@ -1,2 +1,71 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
title?: any;
|
|
3
|
+
mode?: any;
|
|
4
|
+
tiny_mode?: any;
|
|
5
|
+
tiny_mode_root?: any;
|
|
6
|
+
tiny_template?: any;
|
|
7
|
+
tiny_renderless?: any;
|
|
8
|
+
_constants?: any;
|
|
9
|
+
tiny_theme?: any;
|
|
10
|
+
tiny_chart_theme?: any;
|
|
11
|
+
modelValue?: any;
|
|
12
|
+
visible?: any;
|
|
13
|
+
currency?: any;
|
|
14
|
+
fetchCurrency?: any;
|
|
15
|
+
fields?: any;
|
|
16
|
+
placeholder?: any;
|
|
17
|
+
multiple?: any;
|
|
18
|
+
searchConfig?: any;
|
|
19
|
+
}>, {
|
|
20
|
+
t: (this: any, path: any, options?: any) => any;
|
|
21
|
+
vm: any;
|
|
22
|
+
f: (props: any, attrs?: {}) => {};
|
|
23
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
24
|
+
d: (props: any) => void;
|
|
25
|
+
dp: (props: any) => void;
|
|
26
|
+
gcls: (key: any) => any;
|
|
27
|
+
m: (...cssClasses: any[]) => string;
|
|
28
|
+
}, any, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("visible-change" | "change" | "clear" | "update:modelValue" | "update:visible")[], "visible-change" | "change" | "clear" | "update:modelValue" | "update:visible", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
29
|
+
title?: any;
|
|
30
|
+
mode?: any;
|
|
31
|
+
tiny_mode?: any;
|
|
32
|
+
tiny_mode_root?: any;
|
|
33
|
+
tiny_template?: any;
|
|
34
|
+
tiny_renderless?: any;
|
|
35
|
+
_constants?: any;
|
|
36
|
+
tiny_theme?: any;
|
|
37
|
+
tiny_chart_theme?: any;
|
|
38
|
+
modelValue?: any;
|
|
39
|
+
visible?: any;
|
|
40
|
+
currency?: any;
|
|
41
|
+
fetchCurrency?: any;
|
|
42
|
+
fields?: any;
|
|
43
|
+
placeholder?: any;
|
|
44
|
+
multiple?: any;
|
|
45
|
+
searchConfig?: any;
|
|
46
|
+
}>>> & {
|
|
47
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
readonly title?: any;
|
|
54
|
+
readonly mode?: any;
|
|
55
|
+
readonly tiny_mode?: any;
|
|
56
|
+
readonly tiny_mode_root?: any;
|
|
57
|
+
readonly tiny_template?: any;
|
|
58
|
+
readonly tiny_renderless?: any;
|
|
59
|
+
readonly _constants?: any;
|
|
60
|
+
readonly tiny_theme?: any;
|
|
61
|
+
readonly tiny_chart_theme?: any;
|
|
62
|
+
readonly modelValue?: any;
|
|
63
|
+
readonly visible?: any;
|
|
64
|
+
readonly currency?: any;
|
|
65
|
+
readonly fetchCurrency?: any;
|
|
66
|
+
readonly fields?: any;
|
|
67
|
+
readonly placeholder?: any;
|
|
68
|
+
readonly multiple?: any;
|
|
69
|
+
readonly searchConfig?: any;
|
|
70
|
+
}, {}>;
|
|
2
71
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,91 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
label?: any;
|
|
3
|
+
disabled?: any;
|
|
4
|
+
size?: any;
|
|
5
|
+
tiny_mode?: any;
|
|
6
|
+
tiny_mode_root?: any;
|
|
7
|
+
tiny_template?: any;
|
|
8
|
+
tiny_renderless?: any;
|
|
9
|
+
_constants?: any;
|
|
10
|
+
tiny_theme?: any;
|
|
11
|
+
tiny_chart_theme?: any;
|
|
12
|
+
modelValue?: any;
|
|
13
|
+
popperClass?: any;
|
|
14
|
+
popperAppendToBody?: any;
|
|
15
|
+
tip?: any;
|
|
16
|
+
clearable?: any;
|
|
17
|
+
currency?: any;
|
|
18
|
+
fetchCurrency?: any;
|
|
19
|
+
fields?: any;
|
|
20
|
+
placeholder?: any;
|
|
21
|
+
setDefault?: any;
|
|
22
|
+
fetchDefaultCurrency?: any;
|
|
23
|
+
setDefaultCurrency?: any;
|
|
24
|
+
dropStyle?: any;
|
|
25
|
+
shape?: any;
|
|
26
|
+
}>, {
|
|
27
|
+
t: (this: any, path: any, options?: any) => any;
|
|
28
|
+
vm: any;
|
|
29
|
+
f: (props: any, attrs?: {}) => {};
|
|
30
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
31
|
+
d: (props: any) => void;
|
|
32
|
+
dp: (props: any) => void;
|
|
33
|
+
gcls: (key: any) => any;
|
|
34
|
+
m: (...cssClasses: any[]) => string;
|
|
35
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("visible-change" | "change" | "clear" | "update:modelValue")[], "visible-change" | "change" | "clear" | "update:modelValue", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
36
|
+
label?: any;
|
|
37
|
+
disabled?: any;
|
|
38
|
+
size?: any;
|
|
39
|
+
tiny_mode?: any;
|
|
40
|
+
tiny_mode_root?: any;
|
|
41
|
+
tiny_template?: any;
|
|
42
|
+
tiny_renderless?: any;
|
|
43
|
+
_constants?: any;
|
|
44
|
+
tiny_theme?: any;
|
|
45
|
+
tiny_chart_theme?: any;
|
|
46
|
+
modelValue?: any;
|
|
47
|
+
popperClass?: any;
|
|
48
|
+
popperAppendToBody?: any;
|
|
49
|
+
tip?: any;
|
|
50
|
+
clearable?: any;
|
|
51
|
+
currency?: any;
|
|
52
|
+
fetchCurrency?: any;
|
|
53
|
+
fields?: any;
|
|
54
|
+
placeholder?: any;
|
|
55
|
+
setDefault?: any;
|
|
56
|
+
fetchDefaultCurrency?: any;
|
|
57
|
+
setDefaultCurrency?: any;
|
|
58
|
+
dropStyle?: any;
|
|
59
|
+
shape?: any;
|
|
60
|
+
}>>> & {
|
|
61
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
readonly label?: any;
|
|
67
|
+
readonly disabled?: any;
|
|
68
|
+
readonly size?: any;
|
|
69
|
+
readonly tiny_mode?: any;
|
|
70
|
+
readonly tiny_mode_root?: any;
|
|
71
|
+
readonly tiny_template?: any;
|
|
72
|
+
readonly tiny_renderless?: any;
|
|
73
|
+
readonly _constants?: any;
|
|
74
|
+
readonly tiny_theme?: any;
|
|
75
|
+
readonly tiny_chart_theme?: any;
|
|
76
|
+
readonly modelValue?: any;
|
|
77
|
+
readonly popperClass?: any;
|
|
78
|
+
readonly popperAppendToBody?: any;
|
|
79
|
+
readonly tip?: any;
|
|
80
|
+
readonly clearable?: any;
|
|
81
|
+
readonly currency?: any;
|
|
82
|
+
readonly fetchCurrency?: any;
|
|
83
|
+
readonly fields?: any;
|
|
84
|
+
readonly placeholder?: any;
|
|
85
|
+
readonly setDefault?: any;
|
|
86
|
+
readonly fetchDefaultCurrency?: any;
|
|
87
|
+
readonly setDefaultCurrency?: any;
|
|
88
|
+
readonly dropStyle?: any;
|
|
89
|
+
readonly shape?: any;
|
|
90
|
+
}, {}>;
|
|
2
91
|
export default _default;
|