Aktualisiere die Version auf 1.0.2 in package.json und package-solution.json; verbessere die Handhabung von leeren Titeln im Webpart
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"name": "modern-recurring-events-webpart",
|
||||
"title": "modern-recurring-events-webpart",
|
||||
"id": "f1082b4a-bbdf-4d31-852d-97e0685c20e2",
|
||||
"version": "1.0.1.0",
|
||||
"version": "1.0.2.0",
|
||||
"includeClientSideAssets": true,
|
||||
"skipFeatureDeployment": true
|
||||
},
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "modern-recurring-events-webpart",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"private": true,
|
||||
"main": "lib/index.js",
|
||||
"engines": { "node": ">=6.9.0 <9.0.0" },
|
||||
|
||||
@@ -53,7 +53,7 @@ export default class RecurringEventsWebPart extends BaseClientSideWebPart<IRecur
|
||||
const listUrl: string = list.serverRelativeUrl.replace(/\/$/, '');
|
||||
const element: React.ReactElement<IRecurringEventsProps> = React.createElement(RecurringEvents, {
|
||||
events: events,
|
||||
title: this.properties.title || strings.DefaultTitle,
|
||||
title: String(this.properties.title || '').trim(),
|
||||
layout: this.properties.layout === 'compact' ? 'compact' : 'filmstrip',
|
||||
locale: this.context.pageContext.cultureInfo.currentUICultureName || 'en-us',
|
||||
allDayLabel: strings.AllDayLabel,
|
||||
|
||||
@@ -24,6 +24,8 @@ assert(packageSolution.solution.includeClientSideAssets === true && packageSolut
|
||||
'Central deployment is not configured.');
|
||||
assert(!!config.bundles['modern-recurring-events-webpart'], 'Bundle name is inconsistent.');
|
||||
assert(manifest.componentType === 'WebPart' && manifest.alias === 'RecurringEventsWebPart', 'Manifest is invalid.');
|
||||
assert(webPart.indexOf("String(this.properties.title || '').trim()") >= 0 &&
|
||||
component.indexOf('this.props.title &&') >= 0, 'An empty web part title must remain hidden.');
|
||||
assert(service.indexOf('BaseTemplate eq 106') >= 0, 'Events-list filtering is missing.');
|
||||
assert(service.indexOf('<ExpandRecurrence>TRUE</ExpandRecurrence>') >= 0, 'Server-side recurrence expansion is missing.');
|
||||
assert(service.indexOf('<CalendarDate>') >= 0 && service.indexOf('<Month/>') >= 0, 'Calendar month expansion is incomplete.');
|
||||
|
||||
Reference in New Issue
Block a user