@opentinyvue/vue-cascader-select 2.22.0 → 3.22.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 CHANGED
@@ -118,7 +118,7 @@ var CascaderSelect = {
118
118
  });
119
119
  }
120
120
  };
121
- var version = "2.22.0";
121
+ var version = "3.22.0";
122
122
  CascaderSelect.model = {
123
123
  prop: "modelValue",
124
124
  event: "update:modelValue"
@@ -1,38 +1,42 @@
1
1
  import { renderless as renderless$1, api as api$1 } from '@opentinyvue/vue-renderless/cascader-select/vue';
2
2
  import { defineComponent, $prefix, $props, setup, props } from '@opentinyvue/vue-common';
3
3
  import { renderless, api } from '@opentinyvue/vue-renderless/cascader-select/column';
4
+ import { openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, createCommentVNode, resolveComponent, createVNode, withCtx, renderSlot, withModifiers, createTextVNode } from 'vue';
4
5
  import ActionSheet from '@opentinyvue/vue-action-sheet';
5
6
  import Button from '@opentinyvue/vue-button';
6
7
 
7
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
8
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
9
- if (render) {
10
- options.render = render;
11
- options.staticRenderFns = staticRenderFns;
12
- options._compiled = true;
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
- var hook;
15
- if (injectStyles) {
16
- hook = injectStyles;
17
- }
18
- if (hook) {
19
- if (options.functional) {
20
- options._injectStyles = hook;
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
41
  function _extends() {
38
42
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
@@ -54,7 +58,7 @@ var classes = {
54
58
  "col-item-tile": "block text-center w-full truncate",
55
59
  "col-roller-mask": "absolute w-full h-full block [background-image:linear-gradient(180deg,rgba(255,255,255,0.9),rgba(255,255,255,0.4)),linear-gradient(0deg,rgba(255,255,255,0.9),rgba(255,255,255,0.4))] [background-position:top,bottom] bg-no-repeat z-1"
56
60
  };
57
- var __vue2_script$1 = defineComponent({
61
+ var _sfc_main$1 = defineComponent({
58
62
  name: $prefix + "CascaderSelectColumn",
59
63
  props: _extends({}, $props, {
60
64
  // 当前选中项
@@ -111,76 +115,95 @@ var __vue2_script$1 = defineComponent({
111
115
  });
112
116
  }
113
117
  });
114
- var render$1 = function render$12() {
115
- var _vm = this;
116
- var _h = _vm.$createElement;
117
- var _c = _vm._self._c || _h;
118
- return _c("div", {
119
- class: _vm.gcls("col-list"),
120
- attrs: {
121
- "data-tag": "tiny-cascader-picker__list"
122
- },
123
- on: {
124
- "touchstart": _vm.onTouchStart,
125
- "touchmove": _vm.onTouchMove,
126
- "touchend": _vm.onTouchEnd
127
- }
128
- }, [_c("div", {
129
- ref: "roller",
130
- class: _vm.gcls("col-roller"),
131
- style: _vm.threeDimensional ? _vm.state.touchRollerStyle : _vm.state.touchTileStyle,
132
- attrs: {
133
- "data-tag": "tiny-cascader-picker-roller"
134
- },
135
- on: {
136
- "transitionend": _vm.stopMomentum
137
- }
138
- }, _vm._l(_vm.column, function(item, index) {
139
- var _vm$m, _vm$m2, _vm$m3, _vm$m4;
140
- return _c("div", {
141
- key: item[_vm.fieldNames.value] || index
142
- }, [item && item[_vm.fieldNames.text] && _vm.threeDimensional ? _c("div", {
143
- class: _vm.m(_vm.gcls("col-roller-item"), {
144
- "invisible opacity-0": _vm.isHidden(index + 1)
145
- }, {
146
- "text-color-brand": item === _vm.column[_vm.state.currIndex - 1]
147
- }, {
148
- "text-color-icon-disabled": item === _vm.column[_vm.state.currIndex - 1] && _vm.disabled
118
+ function _sfc_render$1(_ctx, _cache, $props2, $setup, $data, $options) {
119
+ return openBlock(), createElementBlock(
120
+ "div",
121
+ {
122
+ "data-tag": "tiny-cascader-picker__list",
123
+ class: normalizeClass(_ctx.gcls("col-list")),
124
+ onTouchstart: _cache[1] || (_cache[1] = function() {
125
+ return _ctx.onTouchStart && _ctx.onTouchStart.apply(_ctx, arguments);
149
126
  }),
150
- style: _vm.setRollerStyle(index + 1),
151
- attrs: {
152
- "data-tag": "tiny-cascader-picker-roller-item"
153
- }
154
- }, [_vm._v(" " + _vm._s(item[_vm.fieldNames.text]) + " ")]) : _vm._e(), item && item[_vm.fieldNames.text] && !_vm.threeDimensional ? _c("div", {
155
- class: _vm.m(_vm.gcls("col-item-tile"), _vm.textColor.default || "text-color-text-primary", (_vm$m = {}, _vm$m[_vm.textColor.third || "text-color-icon-placeholder"] = _vm.OptionStyle(item, _vm.column, 2), _vm$m), (_vm$m2 = {}, _vm$m2[_vm.textColor.second || "text-color-icon-secondary"] = _vm.OptionStyle(item, _vm.column, 1), _vm$m2), (_vm$m3 = {}, _vm$m3[_vm.textColor.first || "text-color-icon-focus"] = _vm.OptionStyle(item, _vm.column, 0), _vm$m3), (_vm$m4 = {}, _vm$m4[_vm.textColor.disabled || "text-color-icon-disabled"] = _vm.OptionStyle(item, _vm.column, 0) && _vm.disabled, _vm$m4)),
156
- style: {
157
- height: _vm.pxCheck(_vm.optionHeight),
158
- lineHeight: _vm.pxCheck(_vm.optionHeight)
127
+ onTouchmove: _cache[2] || (_cache[2] = function() {
128
+ return _ctx.onTouchMove && _ctx.onTouchMove.apply(_ctx, arguments);
129
+ }),
130
+ onTouchend: _cache[3] || (_cache[3] = function() {
131
+ return _ctx.onTouchEnd && _ctx.onTouchEnd.apply(_ctx, arguments);
132
+ })
133
+ },
134
+ [createElementVNode(
135
+ "div",
136
+ {
137
+ ref: "roller",
138
+ "data-tag": "tiny-cascader-picker-roller",
139
+ class: normalizeClass(_ctx.gcls("col-roller")),
140
+ style: normalizeStyle(_ctx.threeDimensional ? _ctx.state.touchRollerStyle : _ctx.state.touchTileStyle),
141
+ onTransitionend: _cache[0] || (_cache[0] = function() {
142
+ return _ctx.stopMomentum && _ctx.stopMomentum.apply(_ctx, arguments);
143
+ })
159
144
  },
160
- attrs: {
161
- "data-tag": "tiny-cascader-picker-roller-item-tile"
162
- }
163
- }, [_vm._v(" " + _vm._s(item[_vm.fieldNames.text]) + " ")]) : _vm._e()]);
164
- }), 0), _c("div", {
165
- class: _vm.gcls("col-roller-mask"),
166
- style: _vm.state.maskStyles,
167
- attrs: {
168
- "data-tag": "tiny-cascader-picker-roller-mask"
169
- }
170
- })]);
171
- };
172
- var staticRenderFns$1 = [];
173
- var __cssModules$1 = {};
174
- var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1);
175
- function __vue2_injectStyles$1(context) {
176
- for (var o in __cssModules$1) {
177
- this[o] = __cssModules$1[o];
178
- }
145
+ [(openBlock(true), createElementBlock(
146
+ Fragment,
147
+ null,
148
+ renderList(_ctx.column, function(item, index) {
149
+ var _ctx$m, _ctx$m2, _ctx$m3, _ctx$m4;
150
+ return openBlock(), createElementBlock("div", {
151
+ key: item[_ctx.fieldNames.value] || index
152
+ }, [item && item[_ctx.fieldNames.text] && _ctx.threeDimensional ? (openBlock(), createElementBlock(
153
+ "div",
154
+ {
155
+ key: 0,
156
+ "data-tag": "tiny-cascader-picker-roller-item",
157
+ class: normalizeClass(_ctx.m(_ctx.gcls("col-roller-item"), {
158
+ "invisible opacity-0": _ctx.isHidden(index + 1)
159
+ }, {
160
+ "text-color-brand": item === _ctx.column[_ctx.state.currIndex - 1]
161
+ }, {
162
+ "text-color-icon-disabled": item === _ctx.column[_ctx.state.currIndex - 1] && _ctx.disabled
163
+ })),
164
+ style: normalizeStyle(_ctx.setRollerStyle(index + 1))
165
+ },
166
+ toDisplayString(item[_ctx.fieldNames.text]),
167
+ 7
168
+ /* TEXT, CLASS, STYLE */
169
+ )) : createCommentVNode("v-if", true), item && item[_ctx.fieldNames.text] && !_ctx.threeDimensional ? (openBlock(), createElementBlock(
170
+ "div",
171
+ {
172
+ key: 1,
173
+ "data-tag": "tiny-cascader-picker-roller-item-tile",
174
+ class: normalizeClass(_ctx.m(_ctx.gcls("col-item-tile"), _ctx.textColor.default || "text-color-text-primary", (_ctx$m = {}, _ctx$m[_ctx.textColor.third || "text-color-icon-placeholder"] = _ctx.OptionStyle(item, _ctx.column, 2), _ctx$m), (_ctx$m2 = {}, _ctx$m2[_ctx.textColor.second || "text-color-icon-secondary"] = _ctx.OptionStyle(item, _ctx.column, 1), _ctx$m2), (_ctx$m3 = {}, _ctx$m3[_ctx.textColor.first || "text-color-icon-focus"] = _ctx.OptionStyle(item, _ctx.column, 0), _ctx$m3), (_ctx$m4 = {}, _ctx$m4[_ctx.textColor.disabled || "text-color-icon-disabled"] = _ctx.OptionStyle(item, _ctx.column, 0) && _ctx.disabled, _ctx$m4))),
175
+ style: normalizeStyle({
176
+ height: _ctx.pxCheck(_ctx.optionHeight),
177
+ lineHeight: _ctx.pxCheck(_ctx.optionHeight)
178
+ })
179
+ },
180
+ toDisplayString(item[_ctx.fieldNames.text]),
181
+ 7
182
+ /* TEXT, CLASS, STYLE */
183
+ )) : createCommentVNode("v-if", true)]);
184
+ }),
185
+ 128
186
+ /* KEYED_FRAGMENT */
187
+ ))],
188
+ 38
189
+ /* CLASS, STYLE, NEED_HYDRATION */
190
+ ), createElementVNode(
191
+ "div",
192
+ {
193
+ "data-tag": "tiny-cascader-picker-roller-mask",
194
+ class: normalizeClass(_ctx.gcls("col-roller-mask")),
195
+ style: normalizeStyle(_ctx.state.maskStyles)
196
+ },
197
+ null,
198
+ 6
199
+ /* CLASS, STYLE */
200
+ )],
201
+ 34
202
+ /* CLASS, NEED_HYDRATION */
203
+ );
179
204
  }
180
- var PickerColumn = /* @__PURE__ */ function() {
181
- return __component__$1.exports;
182
- }();
183
- var __vue2_script = defineComponent({
205
+ var PickerColumn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
206
+ var _sfc_main = defineComponent({
184
207
  components: {
185
208
  PickerColumn,
186
209
  TinyActionSheet: ActionSheet,
@@ -198,116 +221,118 @@ var __vue2_script = defineComponent({
198
221
  });
199
222
  }
200
223
  });
201
- var render = function render2() {
202
- var _vm = this;
203
- var _h = _vm.$createElement;
204
- var _c = _vm._self._c || _h;
205
- return _c("div", {
206
- attrs: {
207
- "data-tag": "tiny-mobile-cascader-select"
208
- }
209
- }, [_c("tiny-action-sheet", {
210
- attrs: {
211
- "custom-class": _vm.m("rounded-t-lg bg-color-bg-1", _vm.customClass),
212
- "lock-scroll": _vm.lockScroll,
213
- "visible": _vm.state.actionSheetVisible
214
- },
215
- on: {
216
- "update:visible": function updateVisible($event) {
217
- _vm.state.actionSheetVisible = $event;
218
- }
219
- },
220
- scopedSlots: _vm._u([{
221
- key: "header-left",
222
- fn: function fn() {
223
- return [_vm._t("header-left")];
224
- },
225
- proxy: true
226
- }], null, true)
227
- }, [_c("div", {
228
- staticClass: "w-full h-max rounded-t-lg bg-color-bg-1 select-none overflow-hidden",
229
- attrs: {
230
- "data-tag": "tiny-mobile-cascader-select-body"
231
- },
232
- on: {
233
- "click": function click($event) {
234
- $event.stopPropagation();
235
- }
236
- }
237
- }, [_c("div", {
238
- ref: "selectPanel",
239
- class: _vm.m("w-full h-max grid", _vm.panelCustomClass),
240
- attrs: {
241
- "data-tag": "tiny-mobile-cascader-select-selectpanel"
242
- }
243
- }, [_c("div", {
244
- staticClass: "relative text-sm",
245
- attrs: {
246
- "data-tag": "tiny-cascader-select-picker"
247
- }
248
- }, [_vm._t("top"), _c("div", {
249
- class: _vm.gcls("picker-column"),
250
- style: _vm.columnStyle,
251
- attrs: {
252
- "data-tag": "tiny-cascader-picker__column"
253
- }
254
- }, _vm._l(_vm.columnsList, function(column, columnIndex) {
255
- return _c("div", {
256
- key: columnIndex,
257
- class: _vm.gcls("picker-columnitem"),
258
- attrs: {
259
- "data-tag": "tiny-cascader-picker__columnitem"
260
- }
261
- }, [columnIndex > 0 ? _vm._t("split") : _vm._e(), _c("picker-column", {
262
- ref: "swipeRef",
263
- refInFor: true,
264
- attrs: {
265
- "column": column,
266
- "disabled": _vm.isDisabled,
267
- "text-color": _vm.textColor,
268
- "columns-type": _vm.columnsType,
269
- "field-names": _vm.columnFieldNames,
270
- "value": _vm.defaultValues[columnIndex],
271
- "default-value": _vm.defaultValue[columnIndex],
272
- "three-dimensional": _vm.threeDimensional,
273
- "swipe-duration": _vm.swipeDuration,
274
- "visible-option-num": _vm.visibleOptionNum,
275
- "option-height": _vm.optionHeight,
276
- "visible": _vm.state.actionSheetVisible
277
- },
278
- on: {
279
- "change": function change(option) {
280
- _vm.changeHandler(columnIndex, option);
281
- }
282
- }
283
- })], 2);
284
- }), 0), _vm._t("default")], 2)]), _c("div", {
285
- staticClass: "w-full h-11 mt-4 flex justify-center items-center",
286
- attrs: {
287
- "data-tag": "tiny-mobile-cascader-select-button"
288
- }
289
- }, [_c("tiny-button", {
290
- attrs: {
291
- "type": "primary",
292
- "size": "large",
293
- "custom-class": _vm.m("h-10 sm:h-10 w-full sm:w-auto mx-4 sm:mx-0 flex justify-center items-center", _vm.isDisabled ? "bg-color-icon-disabled" : "bg-color-icon-focus"),
294
- "disabled": _vm.isDisabled
295
- },
296
- on: {
297
- "click": _vm.confirm
298
- }
299
- }, [_vm._v(_vm._s(_vm.t("ui.button.confirm")))])], 1)])])], 1);
224
+ var _hoisted_1 = {
225
+ "data-tag": "tiny-mobile-cascader-select"
300
226
  };
301
- var staticRenderFns = [];
302
- var __cssModules = {};
303
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
304
- function __vue2_injectStyles(context) {
305
- for (var o in __cssModules) {
306
- this[o] = __cssModules[o];
307
- }
227
+ var _hoisted_2 = {
228
+ "data-tag": "tiny-cascader-select-picker",
229
+ class: "relative text-sm"
230
+ };
231
+ var _hoisted_3 = {
232
+ class: "w-full h-11 mt-4 flex justify-center items-center",
233
+ "data-tag": "tiny-mobile-cascader-select-button"
234
+ };
235
+ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
236
+ var _component_picker_column = resolveComponent("picker-column");
237
+ var _component_tiny_button = resolveComponent("tiny-button");
238
+ var _component_tiny_action_sheet = resolveComponent("tiny-action-sheet");
239
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_tiny_action_sheet, {
240
+ "custom-class": _ctx.m("rounded-t-lg bg-color-bg-1", _ctx.customClass),
241
+ "lock-scroll": _ctx.lockScroll,
242
+ visible: _ctx.state.actionSheetVisible,
243
+ "onUpdate:visible": _cache[1] || (_cache[1] = function($event) {
244
+ return _ctx.state.actionSheetVisible = $event;
245
+ })
246
+ }, {
247
+ "header-left": withCtx(function() {
248
+ return [renderSlot(_ctx.$slots, "header-left")];
249
+ }),
250
+ default: withCtx(function() {
251
+ return [createElementVNode("div", {
252
+ "data-tag": "tiny-mobile-cascader-select-body",
253
+ class: "w-full h-max rounded-t-lg bg-color-bg-1 select-none overflow-hidden",
254
+ onClick: _cache[0] || (_cache[0] = withModifiers(function() {
255
+ }, ["stop"]))
256
+ }, [createElementVNode(
257
+ "div",
258
+ {
259
+ "data-tag": "tiny-mobile-cascader-select-selectpanel",
260
+ ref: "selectPanel",
261
+ class: normalizeClass(_ctx.m("w-full h-max grid", _ctx.panelCustomClass))
262
+ },
263
+ [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "top"), createElementVNode(
264
+ "div",
265
+ {
266
+ "data-tag": "tiny-cascader-picker__column",
267
+ class: normalizeClass(_ctx.gcls("picker-column")),
268
+ style: normalizeStyle(_ctx.columnStyle)
269
+ },
270
+ [(openBlock(true), createElementBlock(
271
+ Fragment,
272
+ null,
273
+ renderList(_ctx.columnsList, function(column, columnIndex) {
274
+ return openBlock(), createElementBlock(
275
+ "div",
276
+ {
277
+ key: columnIndex,
278
+ "data-tag": "tiny-cascader-picker__columnitem",
279
+ class: normalizeClass(_ctx.gcls("picker-columnitem"))
280
+ },
281
+ [columnIndex > 0 ? renderSlot(_ctx.$slots, "split", {
282
+ key: 0
283
+ }) : createCommentVNode("v-if", true), createVNode(_component_picker_column, {
284
+ ref_for: true,
285
+ ref: "swipeRef",
286
+ column,
287
+ disabled: _ctx.isDisabled,
288
+ "text-color": _ctx.textColor,
289
+ "columns-type": _ctx.columnsType,
290
+ "field-names": _ctx.columnFieldNames,
291
+ value: _ctx.defaultValues[columnIndex],
292
+ "default-value": _ctx.defaultValue[columnIndex],
293
+ "three-dimensional": _ctx.threeDimensional,
294
+ "swipe-duration": _ctx.swipeDuration,
295
+ "visible-option-num": _ctx.visibleOptionNum,
296
+ "option-height": _ctx.optionHeight,
297
+ visible: _ctx.state.actionSheetVisible,
298
+ onChange: function onChange(option) {
299
+ _ctx.changeHandler(columnIndex, option);
300
+ }
301
+ }, null, 8, ["column", "disabled", "text-color", "columns-type", "field-names", "value", "default-value", "three-dimensional", "swipe-duration", "visible-option-num", "option-height", "visible", "onChange"])],
302
+ 2
303
+ /* CLASS */
304
+ );
305
+ }),
306
+ 128
307
+ /* KEYED_FRAGMENT */
308
+ ))],
309
+ 6
310
+ /* CLASS, STYLE */
311
+ ), renderSlot(_ctx.$slots, "default")])],
312
+ 2
313
+ /* CLASS */
314
+ ), createElementVNode("div", _hoisted_3, [createVNode(_component_tiny_button, {
315
+ type: "primary",
316
+ size: "large",
317
+ "custom-class": _ctx.m("h-10 sm:h-10 w-full sm:w-auto mx-4 sm:mx-0 flex justify-center items-center", _ctx.isDisabled ? "bg-color-icon-disabled" : "bg-color-icon-focus"),
318
+ disabled: _ctx.isDisabled,
319
+ onClick: _ctx.confirm
320
+ }, {
321
+ default: withCtx(function() {
322
+ return [createTextVNode(
323
+ toDisplayString(_ctx.t("ui.button.confirm")),
324
+ 1
325
+ /* TEXT */
326
+ )];
327
+ }),
328
+ _: 1
329
+ /* STABLE */
330
+ }, 8, ["custom-class", "disabled", "onClick"])])])];
331
+ }),
332
+ _: 3
333
+ /* FORWARDED */
334
+ }, 8, ["custom-class", "lock-scroll", "visible"])]);
308
335
  }
309
- var mobileFirst = /* @__PURE__ */ function() {
310
- return __component__.exports;
311
- }();
336
+ var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
312
337
 
313
338
  export { mobileFirst as default };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-cascader-select",
3
- "version": "2.22.0",
3
+ "version": "3.22.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-action-sheet": "~2.22.0",
11
- "@opentinyvue/vue-button": "~2.22.0",
12
- "@opentinyvue/vue-common": "~2.22.0",
10
+ "@opentinyvue/vue-action-sheet": "~3.22.0",
11
+ "@opentinyvue/vue-button": "~3.22.0",
12
+ "@opentinyvue/vue-common": "~3.22.0",
13
13
  "@opentinyvue/vue-renderless": "~3.22.0"
14
14
  },
15
15
  "license": "MIT",
@@ -1,2 +1,105 @@
1
- declare const _default: any;
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<{
2
+ value: (StringConstructor | NumberConstructor)[];
3
+ defaultValue: (StringConstructor | NumberConstructor)[];
4
+ columnsType: StringConstructor;
5
+ column: {
6
+ type: ArrayConstructor;
7
+ default: () => never[];
8
+ };
9
+ threeDimensional: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ swipeDuration: {
14
+ type: (StringConstructor | NumberConstructor)[];
15
+ default: number;
16
+ };
17
+ visibleOptionNum: {
18
+ type: (StringConstructor | NumberConstructor)[];
19
+ default: number;
20
+ };
21
+ optionHeight: {
22
+ type: (StringConstructor | NumberConstructor)[];
23
+ default: number;
24
+ };
25
+ fieldNames: {
26
+ type: ObjectConstructor;
27
+ default: () => {};
28
+ };
29
+ disabled: BooleanConstructor;
30
+ visible: BooleanConstructor;
31
+ textColor: {
32
+ type: ObjectConstructor;
33
+ default: () => {};
34
+ };
35
+ tiny_mode: StringConstructor;
36
+ tiny_mode_root: BooleanConstructor;
37
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
38
+ tiny_renderless: FunctionConstructor;
39
+ tiny_theme: StringConstructor;
40
+ tiny_chart_theme: ObjectConstructor;
41
+ }, {
42
+ t: (this: any, path: any, options?: any) => any;
43
+ vm: any;
44
+ f: (props: any, attrs?: {}) => {};
45
+ a: (attrs: any, filters: any, include: any) => {};
46
+ d: (props: any) => void;
47
+ dp: (props: any) => void;
48
+ gcls: (key: any) => any;
49
+ m: (...cssClasses: any[]) => string;
50
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "click")[], "change" | "click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
51
+ value: (StringConstructor | NumberConstructor)[];
52
+ defaultValue: (StringConstructor | NumberConstructor)[];
53
+ columnsType: StringConstructor;
54
+ column: {
55
+ type: ArrayConstructor;
56
+ default: () => never[];
57
+ };
58
+ threeDimensional: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ swipeDuration: {
63
+ type: (StringConstructor | NumberConstructor)[];
64
+ default: number;
65
+ };
66
+ visibleOptionNum: {
67
+ type: (StringConstructor | NumberConstructor)[];
68
+ default: number;
69
+ };
70
+ optionHeight: {
71
+ type: (StringConstructor | NumberConstructor)[];
72
+ default: number;
73
+ };
74
+ fieldNames: {
75
+ type: ObjectConstructor;
76
+ default: () => {};
77
+ };
78
+ disabled: BooleanConstructor;
79
+ visible: BooleanConstructor;
80
+ textColor: {
81
+ type: ObjectConstructor;
82
+ default: () => {};
83
+ };
84
+ tiny_mode: StringConstructor;
85
+ tiny_mode_root: BooleanConstructor;
86
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
87
+ tiny_renderless: FunctionConstructor;
88
+ tiny_theme: StringConstructor;
89
+ tiny_chart_theme: ObjectConstructor;
90
+ }>> & {
91
+ onChange?: ((...args: any[]) => any) | undefined;
92
+ onClick?: ((...args: any[]) => any) | undefined;
93
+ }, {
94
+ disabled: boolean;
95
+ visible: boolean;
96
+ tiny_mode_root: boolean;
97
+ optionHeight: string | number;
98
+ column: unknown[];
99
+ threeDimensional: boolean;
100
+ swipeDuration: string | number;
101
+ visibleOptionNum: string | number;
102
+ fieldNames: Record<string, any>;
103
+ textColor: Record<string, any>;
104
+ }, {}>;
2
105
  export default _default;
package/src/index.d.ts CHANGED
@@ -73,8 +73,8 @@ declare const _default: {
73
73
  type: BooleanConstructor;
74
74
  default: boolean;
75
75
  };
76
- customClass: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
77
- panelCustomClass: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
76
+ customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
77
+ panelCustomClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
78
78
  type: {
79
79
  type: StringConstructor;
80
80
  validator: (value: any) => number;
@@ -87,6 +87,8 @@ declare const _default: {
87
87
  tiny_theme: StringConstructor;
88
88
  tiny_chart_theme: ObjectConstructor;
89
89
  };
90
- setup(props: any, context: any): () => any;
90
+ setup(props: any, context: any): () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
91
+ [key: string]: any;
92
+ }>;
91
93
  };
92
94
  export default _default;
@@ -1,2 +1,98 @@
1
- declare const _default: any;
1
+ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ disabled?: any;
3
+ type?: any;
4
+ options?: any;
5
+ visible?: any;
6
+ customClass?: any;
7
+ tiny_mode?: any;
8
+ tiny_mode_root?: any;
9
+ tiny_template?: any;
10
+ tiny_renderless?: any;
11
+ _constants?: any;
12
+ tiny_theme?: any;
13
+ tiny_chart_theme?: any;
14
+ modelValue?: any;
15
+ textField?: any;
16
+ valueField?: any;
17
+ lockScroll?: any;
18
+ defaultValue?: any;
19
+ valueType?: any;
20
+ optionHeight?: any;
21
+ threeDimensional?: any;
22
+ swipeDuration?: any;
23
+ visibleOptionNum?: any;
24
+ fieldNames?: any;
25
+ textColor?: any;
26
+ childrenField?: any;
27
+ panelCustomClass?: any;
28
+ }>, {
29
+ t: (this: any, path: any, options?: any) => any;
30
+ vm: any;
31
+ f: (props: any, attrs?: {}) => {};
32
+ a: (attrs: any, filters: any, include: any) => {};
33
+ d: (props: any) => void;
34
+ dp: (props: any) => void;
35
+ gcls: (key: any) => any;
36
+ m: (...cssClasses: any[]) => string;
37
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "cancel" | "update:modelValue" | "update:visible" | "confirm")[], "change" | "cancel" | "update:modelValue" | "update:visible" | "confirm", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
38
+ disabled?: any;
39
+ type?: any;
40
+ options?: any;
41
+ visible?: any;
42
+ customClass?: any;
43
+ tiny_mode?: any;
44
+ tiny_mode_root?: any;
45
+ tiny_template?: any;
46
+ tiny_renderless?: any;
47
+ _constants?: any;
48
+ tiny_theme?: any;
49
+ tiny_chart_theme?: any;
50
+ modelValue?: any;
51
+ textField?: any;
52
+ valueField?: any;
53
+ lockScroll?: any;
54
+ defaultValue?: any;
55
+ valueType?: any;
56
+ optionHeight?: any;
57
+ threeDimensional?: any;
58
+ swipeDuration?: any;
59
+ visibleOptionNum?: any;
60
+ fieldNames?: any;
61
+ textColor?: any;
62
+ childrenField?: any;
63
+ panelCustomClass?: any;
64
+ }>>> & {
65
+ onChange?: ((...args: any[]) => any) | undefined;
66
+ onCancel?: ((...args: any[]) => any) | undefined;
67
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
68
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
69
+ onConfirm?: ((...args: any[]) => any) | undefined;
70
+ }, {
71
+ readonly disabled?: any;
72
+ readonly type?: any;
73
+ readonly options?: any;
74
+ readonly visible?: any;
75
+ readonly customClass?: any;
76
+ readonly tiny_mode?: any;
77
+ readonly tiny_mode_root?: any;
78
+ readonly tiny_template?: any;
79
+ readonly tiny_renderless?: any;
80
+ readonly _constants?: any;
81
+ readonly tiny_theme?: any;
82
+ readonly tiny_chart_theme?: any;
83
+ readonly modelValue?: any;
84
+ readonly textField?: any;
85
+ readonly valueField?: any;
86
+ readonly lockScroll?: any;
87
+ readonly defaultValue?: any;
88
+ readonly valueType?: any;
89
+ readonly optionHeight?: any;
90
+ readonly threeDimensional?: any;
91
+ readonly swipeDuration?: any;
92
+ readonly visibleOptionNum?: any;
93
+ readonly fieldNames?: any;
94
+ readonly textColor?: any;
95
+ readonly childrenField?: any;
96
+ readonly panelCustomClass?: any;
97
+ }, {}>;
2
98
  export default _default;