@vtj/materials 0.12.29 → 0.12.31
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/README.md +0 -17
- package/dist/assets/antdv/index.umd.js +3 -3
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +3 -3
- package/dist/assets/icons/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +2 -2
- package/dist/assets/uni-ui/index.umd.js +2 -2
- package/dist/assets/vant/index.umd.js +2 -2
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +3 -3
- package/dist/deps/@vtj/utils/index.umd.js +3 -3
- package/dist/deps/element-plus/index.css +1 -1
- package/dist/deps/element-plus/index.full.min.js +13 -13
- package/dist/deps/element-plus/zh-cn.js +1 -1
- package/dist/deps/vue/vue.global.js +56 -24
- package/dist/deps/vue/vue.global.prod.js +4 -4
- package/package.json +6 -6
- package/src/antdv/affix.ts +6 -1
- package/src/antdv/alert.ts +1 -0
- package/src/antdv/anchor.ts +7 -4
- package/src/antdv/autocomplete.ts +1 -0
- package/src/antdv/avatar.ts +1 -1
- package/src/antdv/badge.ts +2 -2
- package/src/antdv/breadcrumb.ts +1 -0
- package/src/antdv/button.ts +1 -1
- package/src/antdv/calendar.ts +1 -0
- package/src/antdv/card.ts +1 -0
- package/src/antdv/cascader.ts +1 -0
- package/src/antdv/checkbox.ts +1 -0
- package/src/antdv/collapse.ts +2 -2
- package/src/antdv/comment.ts +1 -1
- package/src/antdv/configProvider.ts +1 -1
- package/src/antdv/datePicker.ts +2 -0
- package/src/antdv/description.ts +2 -2
- package/src/antdv/drawer.ts +1 -1
- package/src/antdv/dropdown.ts +7 -3
- package/src/antdv/empty.ts +1 -1
- package/src/antdv/flex.ts +8 -1
- package/src/antdv/floatButton.ts +3 -3
- package/src/antdv/form.ts +2 -2
- package/src/antdv/image.ts +1 -1
- package/src/antdv/input.ts +104 -12
- package/src/antdv/inputNumber.ts +9 -2
- package/src/antdv/layout.ts +1 -1
- package/src/antdv/list.ts +5 -2
- package/src/antdv/mentions.ts +34 -51
- package/src/antdv/menu.ts +10 -4
- package/src/antdv/modal.ts +1 -1
- package/src/antdv/pageHeader.ts +3 -3
- package/src/antdv/popconfirm.ts +1 -0
- package/src/antdv/popover.ts +1 -1
- package/src/antdv/radio.ts +1 -3
- package/src/antdv/rate.ts +1 -1
- package/src/antdv/result.ts +1 -1
- package/src/antdv/segmented.ts +1 -1
- package/src/antdv/select.ts +8 -0
- package/src/antdv/slider.ts +1 -1
- package/src/antdv/space.ts +9 -1
- package/src/antdv/spin.ts +1 -1
- package/src/antdv/statistic.ts +2 -2
- package/src/antdv/steps.ts +1 -1
- package/src/antdv/switch.ts +1 -1
- package/src/antdv/table.ts +1 -0
- package/src/antdv/tabs.ts +9 -2
- package/src/antdv/tag.ts +1 -1
- package/src/antdv/timePicker.ts +2 -1
- package/src/antdv/timeline.ts +2 -2
- package/src/antdv/tooltip.ts +1 -1
- package/src/antdv/tour.ts +2 -2
- package/src/antdv/transfer.ts +1 -1
- package/src/antdv/tree.ts +1 -1
- package/src/antdv/treeSelect.ts +1 -0
- package/src/antdv/typography.ts +27 -1
- package/src/antdv/upload.ts +1 -0
- package/src/element/statistic.ts +1 -1
- package/src/version.ts +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* vue v3.5.
|
2
|
+
* vue v3.5.16
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
4
4
|
* @license MIT
|
5
5
|
**/
|
@@ -2147,11 +2147,11 @@ var Vue = (function (exports) {
|
|
2147
2147
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
2148
2148
|
boundCleanup
|
2149
2149
|
];
|
2150
|
+
oldValue = newValue;
|
2150
2151
|
call ? call(cb, 3, args) : (
|
2151
2152
|
// @ts-expect-error
|
2152
2153
|
cb(...args)
|
2153
2154
|
);
|
2154
|
-
oldValue = newValue;
|
2155
2155
|
} finally {
|
2156
2156
|
activeWatcher = currentWatcher;
|
2157
2157
|
}
|
@@ -3076,15 +3076,16 @@ var Vue = (function (exports) {
|
|
3076
3076
|
updateCssVars(n2, true);
|
3077
3077
|
}
|
3078
3078
|
if (isTeleportDeferred(n2.props)) {
|
3079
|
+
n2.el.__isMounted = false;
|
3079
3080
|
queuePostRenderEffect(() => {
|
3080
3081
|
mountToTarget();
|
3081
|
-
n2.el.__isMounted
|
3082
|
+
delete n2.el.__isMounted;
|
3082
3083
|
}, parentSuspense);
|
3083
3084
|
} else {
|
3084
3085
|
mountToTarget();
|
3085
3086
|
}
|
3086
3087
|
} else {
|
3087
|
-
if (isTeleportDeferred(n2.props) &&
|
3088
|
+
if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
|
3088
3089
|
queuePostRenderEffect(() => {
|
3089
3090
|
TeleportImpl.process(
|
3090
3091
|
n1,
|
@@ -3098,7 +3099,6 @@ var Vue = (function (exports) {
|
|
3098
3099
|
optimized,
|
3099
3100
|
internals
|
3100
3101
|
);
|
3101
|
-
delete n1.el.__isMounted;
|
3102
3102
|
}, parentSuspense);
|
3103
3103
|
return;
|
3104
3104
|
}
|
@@ -4086,6 +4086,8 @@ var Vue = (function (exports) {
|
|
4086
4086
|
) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
|
4087
4087
|
const content = el.content.firstChild;
|
4088
4088
|
if (needCallTransitionHooks) {
|
4089
|
+
const cls = content.getAttribute("class");
|
4090
|
+
if (cls) content.$cls = cls;
|
4089
4091
|
transition.beforeEnter(content);
|
4090
4092
|
}
|
4091
4093
|
replaceNode(content, el, parentComponent);
|
@@ -4338,7 +4340,12 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
4338
4340
|
let actual;
|
4339
4341
|
let expected;
|
4340
4342
|
if (key === "class") {
|
4341
|
-
|
4343
|
+
if (el.$cls) {
|
4344
|
+
actual = el.$cls;
|
4345
|
+
delete el.$cls;
|
4346
|
+
} else {
|
4347
|
+
actual = el.getAttribute("class");
|
4348
|
+
}
|
4342
4349
|
expected = normalizeClass(clientValue);
|
4343
4350
|
if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) {
|
4344
4351
|
mismatchType = 2 /* CLASS */;
|
@@ -4633,14 +4640,25 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
4633
4640
|
name: "AsyncComponentWrapper",
|
4634
4641
|
__asyncLoader: load,
|
4635
4642
|
__asyncHydrate(el, instance, hydrate) {
|
4643
|
+
let patched = false;
|
4636
4644
|
const doHydrate = hydrateStrategy ? () => {
|
4645
|
+
const performHydrate = () => {
|
4646
|
+
if (patched) {
|
4647
|
+
warn$1(
|
4648
|
+
`Skipping lazy hydration for component '${getComponentName(resolvedComp)}': it was updated before lazy hydration performed.`
|
4649
|
+
);
|
4650
|
+
return;
|
4651
|
+
}
|
4652
|
+
hydrate();
|
4653
|
+
};
|
4637
4654
|
const teardown = hydrateStrategy(
|
4638
|
-
|
4655
|
+
performHydrate,
|
4639
4656
|
(cb) => forEachElement(el, cb)
|
4640
4657
|
);
|
4641
4658
|
if (teardown) {
|
4642
4659
|
(instance.bum || (instance.bum = [])).push(teardown);
|
4643
4660
|
}
|
4661
|
+
(instance.u || (instance.u = [])).push(() => patched = true);
|
4644
4662
|
} : hydrate;
|
4645
4663
|
if (resolvedComp) {
|
4646
4664
|
doHydrate();
|
@@ -6177,9 +6195,15 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
6177
6195
|
},
|
6178
6196
|
provide(key, value) {
|
6179
6197
|
if (key in context.provides) {
|
6180
|
-
|
6181
|
-
|
6182
|
-
|
6198
|
+
if (hasOwn(context.provides, key)) {
|
6199
|
+
warn$1(
|
6200
|
+
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
6201
|
+
);
|
6202
|
+
} else {
|
6203
|
+
warn$1(
|
6204
|
+
`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
|
6205
|
+
);
|
6206
|
+
}
|
6183
6207
|
}
|
6184
6208
|
context.provides[key] = value;
|
6185
6209
|
return app;
|
@@ -6216,7 +6240,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
6216
6240
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
6217
6241
|
const instance = currentInstance || currentRenderingInstance;
|
6218
6242
|
if (instance || currentApp) {
|
6219
|
-
|
6243
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
6220
6244
|
if (provides && key in provides) {
|
6221
6245
|
return provides[key];
|
6222
6246
|
} else if (arguments.length > 1) {
|
@@ -7213,7 +7237,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
7213
7237
|
(oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement
|
7214
7238
|
// which also requires the correct parent container
|
7215
7239
|
!isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything.
|
7216
|
-
oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : (
|
7240
|
+
oldVNode.shapeFlag & (6 | 64 | 128)) ? hostParentNode(oldVNode.el) : (
|
7217
7241
|
// In other cases, the parent container is not actually used so we
|
7218
7242
|
// just pass the block element here to avoid a DOM parentNode call.
|
7219
7243
|
fallbackContainer
|
@@ -10523,7 +10547,7 @@ Component that was made reactive: `,
|
|
10523
10547
|
return true;
|
10524
10548
|
}
|
10525
10549
|
|
10526
|
-
const version = "3.5.
|
10550
|
+
const version = "3.5.16";
|
10527
10551
|
const warn = warn$1 ;
|
10528
10552
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
10529
10553
|
const devtools = devtools$1 ;
|
@@ -11405,13 +11429,10 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11405
11429
|
this._root = this;
|
11406
11430
|
}
|
11407
11431
|
}
|
11408
|
-
if (!this._def.__asyncLoader) {
|
11409
|
-
this._resolveProps(this._def);
|
11410
|
-
}
|
11411
11432
|
}
|
11412
11433
|
connectedCallback() {
|
11413
11434
|
if (!this.isConnected) return;
|
11414
|
-
if (!this.shadowRoot) {
|
11435
|
+
if (!this.shadowRoot && !this._resolved) {
|
11415
11436
|
this._parseSlots();
|
11416
11437
|
}
|
11417
11438
|
this._connected = true;
|
@@ -11424,8 +11445,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11424
11445
|
}
|
11425
11446
|
if (!this._instance) {
|
11426
11447
|
if (this._resolved) {
|
11427
|
-
this.
|
11428
|
-
this._update();
|
11448
|
+
this._mount(this._def);
|
11429
11449
|
} else {
|
11430
11450
|
if (parent && parent._pendingResolve) {
|
11431
11451
|
this._pendingResolve = parent._pendingResolve.then(() => {
|
@@ -11441,7 +11461,15 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11441
11461
|
_setParent(parent = this._parent) {
|
11442
11462
|
if (parent) {
|
11443
11463
|
this._instance.parent = parent._instance;
|
11444
|
-
this.
|
11464
|
+
this._inheritParentContext(parent);
|
11465
|
+
}
|
11466
|
+
}
|
11467
|
+
_inheritParentContext(parent = this._parent) {
|
11468
|
+
if (parent && this._app) {
|
11469
|
+
Object.setPrototypeOf(
|
11470
|
+
this._app._context.provides,
|
11471
|
+
parent._instance.provides
|
11472
|
+
);
|
11445
11473
|
}
|
11446
11474
|
}
|
11447
11475
|
disconnectedCallback() {
|
@@ -11491,9 +11519,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11491
11519
|
}
|
11492
11520
|
}
|
11493
11521
|
this._numberProps = numberProps;
|
11494
|
-
|
11495
|
-
this._resolveProps(def);
|
11496
|
-
}
|
11522
|
+
this._resolveProps(def);
|
11497
11523
|
if (this.shadowRoot) {
|
11498
11524
|
this._applyStyles(styles);
|
11499
11525
|
} else if (styles) {
|
@@ -11517,6 +11543,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11517
11543
|
def.name = "VueElement";
|
11518
11544
|
}
|
11519
11545
|
this._app = this._createApp(def);
|
11546
|
+
this._inheritParentContext();
|
11520
11547
|
if (def.configureApp) {
|
11521
11548
|
def.configureApp(this._app);
|
11522
11549
|
}
|
@@ -11601,7 +11628,9 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
11601
11628
|
}
|
11602
11629
|
}
|
11603
11630
|
_update() {
|
11604
|
-
|
11631
|
+
const vnode = this._createVNode();
|
11632
|
+
if (this._app) vnode.appContext = this._app._context;
|
11633
|
+
render(vnode, this._root);
|
11605
11634
|
}
|
11606
11635
|
_createVNode() {
|
11607
11636
|
const baseProps = {};
|
@@ -17715,6 +17744,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
17715
17744
|
};
|
17716
17745
|
|
17717
17746
|
function isValidHTMLNesting(parent, child) {
|
17747
|
+
if (parent === "template") {
|
17748
|
+
return true;
|
17749
|
+
}
|
17718
17750
|
if (parent in onlyValidChildren) {
|
17719
17751
|
return onlyValidChildren[parent].has(child);
|
17720
17752
|
}
|