@reviewpush/rp-treeselect 0.0.9 → 0.0.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/rp-treeselect.cjs.js +19 -8
- package/dist/rp-treeselect.cjs.js.map +1 -1
- package/dist/rp-treeselect.cjs.min.js +1 -1
- package/dist/rp-treeselect.cjs.min.js.map +1 -1
- package/dist/rp-treeselect.umd.js +19 -8
- package/dist/rp-treeselect.umd.js.map +1 -1
- package/dist/rp-treeselect.umd.min.js +1 -1
- package/dist/rp-treeselect.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/HiddenFields.vue +0 -1
- package/src/components/MenuPortal.vue +7 -3
|
@@ -214,7 +214,6 @@ var external_fuzzysearch_default = /*#__PURE__*/__webpack_require__.n(external_f
|
|
|
214
214
|
|
|
215
215
|
// EXTERNAL MODULE: external "vue"
|
|
216
216
|
var external_vue_ = __webpack_require__(4);
|
|
217
|
-
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
218
217
|
|
|
219
218
|
// EXTERNAL MODULE: external "lodash/noop"
|
|
220
219
|
var noop_ = __webpack_require__(5);
|
|
@@ -523,7 +522,6 @@ function stringifyValue(value) {
|
|
|
523
522
|
render: function render() {
|
|
524
523
|
var _this = this;
|
|
525
524
|
var h = arguments[0];
|
|
526
|
-
console.log(this);
|
|
527
525
|
if (!this.instance.name || this.instance.disabled || !this.instance.hasValue) return null;
|
|
528
526
|
var stringifiedValues = this.instance.internalValue.map(stringifyValue);
|
|
529
527
|
if (this.instance.multiple && this.instance.joinValues) stringifiedValues = [stringifiedValues.join(this.instance.delimiter)];
|
|
@@ -1524,10 +1522,16 @@ Tip_component.options.__file = "src/components/Tip.vue"
|
|
|
1524
1522
|
|
|
1525
1523
|
|
|
1526
1524
|
|
|
1525
|
+
|
|
1527
1526
|
var arrowPlaceholder, checkMark, minusMark;
|
|
1528
1527
|
var Option = {
|
|
1529
1528
|
name: 'rp-treeselect--option',
|
|
1530
|
-
|
|
1529
|
+
setup: function setup() {
|
|
1530
|
+
var instance = Object(external_vue_["inject"])('instance');
|
|
1531
|
+
return {
|
|
1532
|
+
instance: instance
|
|
1533
|
+
};
|
|
1534
|
+
},
|
|
1531
1535
|
props: {
|
|
1532
1536
|
node: {
|
|
1533
1537
|
type: Object,
|
|
@@ -2117,7 +2121,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
2117
2121
|
|
|
2118
2122
|
var PortalTarget = {
|
|
2119
2123
|
name: 'rp-treeselect--portal-target',
|
|
2120
|
-
|
|
2124
|
+
setup: function setup() {
|
|
2125
|
+
var instance = Object(external_vue_["inject"])('instance');
|
|
2126
|
+
return {
|
|
2127
|
+
instance: instance
|
|
2128
|
+
};
|
|
2129
|
+
},
|
|
2121
2130
|
watch: {
|
|
2122
2131
|
'instance.menu.isOpen': function instanceMenuIsOpen(newValue) {
|
|
2123
2132
|
if (newValue) {
|
|
@@ -2239,11 +2248,13 @@ var placeholder;
|
|
|
2239
2248
|
methods: {
|
|
2240
2249
|
setup: function setup() {
|
|
2241
2250
|
var el = document.createElement('div');
|
|
2251
|
+
el.setAttribute('id', "menu-target-".concat(this._uid));
|
|
2242
2252
|
document.body.appendChild(el);
|
|
2243
|
-
|
|
2244
|
-
el: el,
|
|
2253
|
+
var targetApp = _objectSpread({
|
|
2245
2254
|
parent: this
|
|
2246
|
-
}, PortalTarget)
|
|
2255
|
+
}, PortalTarget);
|
|
2256
|
+
this.portalTarget = Object(external_vue_["createApp"])(targetApp);
|
|
2257
|
+
this.portalTarget.mount("#menu-target-".concat(this._uid));
|
|
2247
2258
|
},
|
|
2248
2259
|
teardown: function teardown() {
|
|
2249
2260
|
document.body.removeChild(this.portalTarget.$el);
|
|
@@ -3682,7 +3693,7 @@ var style = __webpack_require__(15);
|
|
|
3682
3693
|
/* harmony default export */ var src = __webpack_exports__["default"] = (Treeselect);
|
|
3683
3694
|
|
|
3684
3695
|
|
|
3685
|
-
var VERSION = "0.0.
|
|
3696
|
+
var VERSION = "0.0.12";
|
|
3686
3697
|
|
|
3687
3698
|
/***/ })
|
|
3688
3699
|
/******/ ]);
|